This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix USER_LABEL_PREFIX for Darwin
- From: Stan Shebs <shebs at apple dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Sep 2002 21:05:42 -0700
- Subject: Fix USER_LABEL_PREFIX for Darwin
Zack's fiddling with underscores inadvertantly revealed that
powerpc-darwin has somehow been getting away without defining
USER_LABEL_PREFIX. This patch just moves the definition to where
it affects all Darwin archs equally.
Stan
2002-09-12 Stan Shebs <shebs@apple.com>
* config/darwin.h (USER_LABEL_PREFIX): Define here...
* config/i386/darwin.h: ... instead of here.
Index: config/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.h,v
retrieving revision 1.39
diff -p -r1.39 darwin.h
*** config/darwin.h 13 Sep 2002 03:44:54 -0000 1.39
--- config/darwin.h 13 Sep 2002 03:54:54 -0000
*************** do { text_section (); \
*** 141,146 ****
--- 141,150 ----
#define TARGET_ASM_CONSTRUCTOR machopic_asm_out_constructor
#define TARGET_ASM_DESTRUCTOR machopic_asm_out_destructor
+ /* Always prefix with an underscore. */
+
+ #define USER_LABEL_PREFIX "_"
+
/* Don't output a .file directive. That is only used by the assembler for
error reporting. */
Index: config/i386/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/i386/darwin.h,v
retrieving revision 1.2
diff -p -r1.2 darwin.h
*** config/i386/darwin.h 11 Aug 2002 19:14:26 -0000 1.2
--- config/i386/darwin.h 13 Sep 2002 03:54:54 -0000
*************** Boston, MA 02111-1307, USA. */
*** 72,82 ****
#define LPREFIX "L"
- /* This definition is unlikely to be used, but provide it just in
- case. */
-
- #define USER_LABEL_PREFIX "_"
-
/* Assembler pseudos to introduce constants of various size. */
#define ASM_BYTE_OP "\t.byte\t"
--- 72,77 ----