pkgsrc/lang/pgcc/patches/patch-ao
wiz 36b7c5af00 Pull over gcc package files from before the 2.95.3 update.
Compiles and installs/deinstalls cleanly on 1.5ZA/i386, otherwise untested,
but that's better than a BROKEN package.
Some cleanup.
2002-03-14 14:54:48 +00:00

18 lines
586 B
Text

$NetBSD: patch-ao,v 1.1 2002/03/14 14:54:53 wiz Exp $
--- ../gcc-2.95.2/gcc/objc/objc-act.c.orig Wed Apr 14 22:28:54 1999
+++ ../gcc-2.95.2/gcc/objc/objc-act.c Sat Sep 16 00:17:43 2000
@@ -8399,8 +8399,11 @@
pushdecl (decl);
rest_of_decl_compilation (decl, 0, 0, 0);
- /* Make following constant read-only (why not)? */
- readonly_data_section ();
+ /* Make following constant read-only, if not compiling PIC. */
+ if (flag_pic)
+ data_section();
+ else
+ readonly_data_section ();
exp = build1 (ADDR_EXPR, string_type_node, decl);