diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2000-01-17 12:16:41 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-01-17 12:16:41 +0000 |
commit | 8107fa79b5a07b188ea370ae2b31c29855b05e26 (patch) | |
tree | b728656c7de3e9901f2822bc6c24dedc6eed23cb | |
parent | 0cef048f94919d16f772c95b58e0f25f54a9409a (diff) | |
download | src-test2-8107fa79b5a07b188ea370ae2b31c29855b05e26.tar.gz src-test2-8107fa79b5a07b188ea370ae2b31c29855b05e26.zip |
Notes
-rw-r--r-- | contrib/gcc/defaults.h | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/contrib/gcc/defaults.h b/contrib/gcc/defaults.h index 434d761afed7..a0e3bfca57ac 100644 --- a/contrib/gcc/defaults.h +++ b/contrib/gcc/defaults.h @@ -1,7 +1,7 @@ /* Definitions of various defaults for how to do assembler output (most of which are designed to be appropriate for GAS or for some BSD assembler). - Copyright (C) 1992, 1996 Free Software Foundation, Inc. + Copyright (C) 1992, 1996, 1997, 1998 Free Software Foundation, Inc. Contributed by Ron Guilmette (rfg@monkeys.com) This file is part of GNU CC. @@ -121,8 +121,7 @@ do { fprintf (FILE, "\t%s\t", ASM_LONG); \ /* This is how to output a reference to a user-level label named NAME. */ #ifndef ASM_OUTPUT_LABELREF -#define ASM_OUTPUT_LABELREF(FILE,NAME) \ - do { fputs (USER_LABEL_PREFIX, FILE); fputs (NAME, FILE); } while (0) +#define ASM_OUTPUT_LABELREF(FILE,NAME) asm_fprintf ((FILE), "%U%s", (NAME)) #endif /* This determines whether or not we support weak symbols. */ @@ -134,6 +133,22 @@ do { fprintf (FILE, "\t%s\t", ASM_LONG); \ #endif #endif +/* If the target supports weak symbols, define TARGET_ATTRIBUTE_WEAK to + provide a weak attribute. Else define it to nothing. + + This would normally belong in gansidecl.h, but SUPPORTS_WEAK is + not available at that time. + + Note, this is only for use by target files which we know are to be + compiled by GCC. */ +#ifndef TARGET_ATTRIBUTE_WEAK +# if SUPPORTS_WEAK +# define TARGET_ATTRIBUTE_WEAK __attribute__ ((weak)) +# else +# define TARGET_ATTRIBUTE_WEAK +# endif +#endif + /* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that the rest of the DWARF 2 frame unwind support is also provided. */ #if !defined (DWARF2_UNWIND_INFO) && defined (INCOMING_RETURN_ADDR_RTX) |