Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Peter Schauer
Sun, 22 Nov 1992 12:08
gcc-2.3.1 i386gas.h NO_UNDERSCORES problem + fix
Author: Peter Schauer
Date: Sun, 22 Nov 1992 12:08
Date: Sun, 22 Nov 1992 12:08
45 lines
2157 bytes
2157 bytes
(An apology if you receive this twice but I sent it to bug-gcc and never
saw it on the gnu.bug.gcc newsgroup)
There are two small bugs in i386gas.h that manifest themselves on systems
that have NO_UNDERSCORES. LPREFIX is not redefined to .L as necessary
and the * was dropped from ASM_GENERATE_INTERNAL_LABEL which causes problems
with the Ltext label output in dbxread.c.
Here are the diffs:
*** ./config/i386gas.h.orig Fri Oct 30 02:15:41 1992
--- ./config/i386gas.h Wed Nov 11 09:57:45 1992
***************
*** 139,144 ****
--- 139,148 ----
then it must take more than `L' to identify
a label that should be ignored. */
+ /* Local labels are prefixed with ".L" */
+ #undef LPREFIX
+ #define LPREFIX ".L"
+
/* This is how to store into the string BUF
the symbol_ref name of an internal numbered label where
PREFIX is the class of label and NUM is the number within the class.
***************
*** 146,152 ****
#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
! sprintf ((BUF), ".%s%d", (PREFIX), (NUMBER))
/* This is how to output an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
--- 150,156 ----
#undef ASM_GENERATE_INTERNAL_LABEL
#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER) \
! sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER))
/* This is how to output an internal numbered label where
PREFIX is the class of label and NUM is the number within the class. */
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de
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