Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Ronald F. Guilmette
Mon, 25 Nov 1996 00:00
Need underscores for m68k/coff
Author: Ronald F. Guilmette
Date: Mon, 25 Nov 1996 00:00
Date: Mon, 25 Nov 1996 00:00
42 lines
1851 bytes
1851 bytes
The longstanding and general tradition is that when/if you are using COFF, all C language identifiers get an underscore prepended to them as they are being changed into assembly-level names. In gcc 2.7.2.1 however, the m68k-unknown-coff configuration fails to pro- vide this effect. The following patch fixes the problem. -- rfg *** ./config/m68k/coff.h Thu Jun 15 12:04:25 1995 --- ./config/m68k/coff.h Mon Nov 25 14:09:20 1996 *************** *** 35,42 **** #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG ! /* COFF symbols don't start with an underscore. */ #undef USER_LABEL_PREFIX ! #define USER_LABEL_PREFIX "" /* Use a prefix for local labels, just to be on the save side. */ --- 35,51 ---- #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG ! /* This is how to output a reference to a user-level label named NAME. ! `assemble_name' uses this. ! ! For COFF, the convention is to prepend a leading ! underscore onto user-level symbol names. */ ! ! #undef ASM_OUTPUT_LABELREF ! #define ASM_OUTPUT_LABELREF(FILE,NAME) fprintf (FILE, "_%s", NAME) ! ! /* COFF symbols *do* start with an underscore. */ #undef USER_LABEL_PREFIX ! #define USER_LABEL_PREFIX "_" /* Use a prefix for local labels, just to be on the save side. */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads