This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix for i386.c's checking of SUPPORTS_ONE_ONLY
- From: Kean Johnston <jkj at sco dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Nov 2005 10:55:51 -0800
- Subject: Fix for i386.c's checking of SUPPORTS_ONE_ONLY
- Reply-to: jkj at sco dot com
All,
Attached is a patch for i386.c to correctly check the VALUE of
SUPPORTS_ONE_ONLY, rather than just its presense. The fix will
actually work for both cases (either explicitly set to 0 or
not defined at all).
Kean
2005-11-30 Kean Johnston <jkj@sco.com>
* config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
Index: config/i386/i386.c
===================================================================
--- config/i386/i386.c (revision 107723)
+++ config/i386/i386.c (working copy)
@@ -4339,7 +4339,7 @@
cfun->machine->accesses_prev_frame = 1;
}
-#if defined(HAVE_GAS_HIDDEN) && defined(SUPPORTS_ONE_ONLY)
+#if defined(HAVE_GAS_HIDDEN) && (SUPPORTS_ONE_ONLY - 0)
# define USE_HIDDEN_LINKONCE 1
#else
# define USE_HIDDEN_LINKONCE 0