[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-patches
Subject: Fix for i386.c's checking of SUPPORTS_ONE_ONLY
From: Kean Johnston <jkj () sco ! com>
Date: 2005-11-30 18:55:51
Message-ID: 438DF5B7.5090304 () sco ! com
[Download RAW message or body]
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
["oneonly.patch" (text/plain)]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic