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)