Commit a1e27b76 by Nick Clifton Committed by Nick Clifton

Enable -fleading-underscore for arm-elf builds.

From-SVN: r24409
parent 5a005d9e
Wed Dec 23 10:27:44 1998 Nick Clifton <nickc@cygnus.com>
* config/arm/t-arm-elf: Add multiplib option for leading
underscores.
* config/arm/thumb.h (ASM_OUTPUT_LABELREF): Use variable
'user_label_prefix' rather than macro USER_LABEL_PREFIX.
(thumb_shiftable_const): Use macro 'BASE_REG_CLASS' rather
than variable 'reload_address_base_reg_class'. [Note this
change is unrelated to the others in this patch].
* config/arm/unknown-elf.h (USER_LABEL_PREFIX): Default to no
leading underscore.
Wed Dec 23 09:51:32 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> Wed Dec 23 09:51:32 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* alias.c (record_alias_subset): Remove ignored `&'. * alias.c (record_alias_subset): Remove ignored `&'.
......
...@@ -47,6 +47,15 @@ Boston, MA 02111-1307, USA. */ ...@@ -47,6 +47,15 @@ Boston, MA 02111-1307, USA. */
#error __USER_LABEL_PREFIX__ not defined #error __USER_LABEL_PREFIX__ not defined
#endif #endif
/* ANSI concatenation macros. */
#define CONCAT1(a, b) CONCAT2(a, b)
#define CONCAT2(a, b) a ## b
/* Use the right prefix for global labels. */
#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
#ifdef __elf__ #ifdef __elf__
#define __PLT__ (PLT) #define __PLT__ (PLT)
#define TYPE(x) .type SYM(x),function #define TYPE(x) .type SYM(x),function
...@@ -57,15 +66,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -57,15 +66,6 @@ Boston, MA 02111-1307, USA. */
#define SIZE(x) #define SIZE(x)
#endif #endif
/* ANSI concatenation macros. */
#define CONCAT1(a, b) CONCAT2(a, b)
#define CONCAT2(a, b) a ## b
/* Use the right prefix for global labels. */
#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
#ifdef L_udivsi3 #ifdef L_udivsi3
dividend .req r0 dividend .req r0
......
...@@ -23,8 +23,8 @@ dp-bit.c: $(srcdir)/config/fp-bit.c ...@@ -23,8 +23,8 @@ dp-bit.c: $(srcdir)/config/fp-bit.c
echo '#endif' >> dp-bit.c echo '#endif' >> dp-bit.c
cat $(srcdir)/config/fp-bit.c >> dp-bit.c cat $(srcdir)/config/fp-bit.c >> dp-bit.c
MULTILIB_OPTIONS = mlittle-endian/mbig-endian mhard-float/msoft-float mapcs-32/mapcs-26 MULTILIB_OPTIONS = mlittle-endian/mbig-endian mhard-float/msoft-float mapcs-32/mapcs-26 fno-leading-underscore/fleading-underscore
MULTILIB_DIRNAMES = le be fpu soft 32bit 26bit MULTILIB_DIRNAMES = le be fpu soft 32bit 26bit elf under
MULTILIB_MATCHES = MULTILIB_MATCHES =
LIBGCC = stmp-multilib LIBGCC = stmp-multilib
......
...@@ -161,7 +161,7 @@ extern int target_flags; ...@@ -161,7 +161,7 @@ extern int target_flags;
/* Output a reference to a label. */ /* Output a reference to a label. */
#define ASM_OUTPUT_LABELREF(STREAM,NAME) \ #define ASM_OUTPUT_LABELREF(STREAM,NAME) \
fprintf ((STREAM), "%s%s", USER_LABEL_PREFIX, (NAME)) fprintf ((STREAM), "%s%s", user_label_prefix, (NAME))
/* This is how to output an assembler line for a numeric constant byte. */ /* This is how to output an assembler line for a numeric constant byte. */
#define ASM_OUTPUT_BYTE(STREAM,VALUE) \ #define ASM_OUTPUT_BYTE(STREAM,VALUE) \
...@@ -977,7 +977,7 @@ int thumb_shiftable_const (); ...@@ -977,7 +977,7 @@ int thumb_shiftable_const ();
rtx orig_X = X; \ rtx orig_X = X; \
X = copy_rtx (X); \ X = copy_rtx (X); \
push_reload (orig_X, NULL_RTX, &X, NULL_PTR, \ push_reload (orig_X, NULL_RTX, &X, NULL_PTR, \
reload_address_base_reg_class, \ BASE_REG_CLASS, \
Pmode, VOIDmode, 0, 0, OPNUM, TYPE); \ Pmode, VOIDmode, 0, 0, OPNUM, TYPE); \
goto WIN; \ goto WIN; \
} \ } \
......
...@@ -40,7 +40,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -40,7 +40,7 @@ Boston, MA 02111-1307, USA. */
#define ENDFILE_SPEC "crtend%O%s" #define ENDFILE_SPEC "crtend%O%s"
#define USER_LABEL_PREFIX "_" /* FIXME: This ought to be "" */ #define USER_LABEL_PREFIX ""
#define LOCAL_LABEL_PREFIX "." #define LOCAL_LABEL_PREFIX "."
#define TEXT_SECTION " .text" #define TEXT_SECTION " .text"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment