summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-01-17 12:16:41 +0000
committerobrien <obrien@FreeBSD.org>2000-01-17 12:16:41 +0000
commit06f3b914490df649b3b51002ca3211b12d1d0426 (patch)
treeb728656c7de3e9901f2822bc6c24dedc6eed23cb /contrib
parent5498842a4108fcbf56351ab99feec36bb15efb93 (diff)
downloadFreeBSD-src-06f3b914490df649b3b51002ca3211b12d1d0426.zip
FreeBSD-src-06f3b914490df649b3b51002ca3211b12d1d0426.tar.gz
Virgin import of the GCC 2.95.2 compilers
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/defaults.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/contrib/gcc/defaults.h b/contrib/gcc/defaults.h
index 434d761..a0e3bfc 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)
OpenPOWER on IntegriCloud