aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-03-08 13:26:15 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-03-08 13:26:15 +0000
commita2034fc036957d64aa4110d1fb4ee3faa29edf5d (patch)
tree1d0109324ba99a23370d0bb98935c8d26ca63762
parent9ed6fc5562648715df2df0411075f544ed0a62ba (diff)
downloadsrc-a2034fc036957d64aa4110d1fb4ee3faa29edf5d.tar.gz
src-a2034fc036957d64aa4110d1fb4ee3faa29edf5d.zip
svr4.h defines ASM_IDENTIFY_GCC, but neglects to define
ASM_IDENTIFY_LANGUAGE. Use the osfrose.h method, because gdb assumes 'C' by default, so there's no need to further clutter the symbol table.
Notes
Notes: svn path=/head/; revision=34285
-rw-r--r--contrib/gcc/config/i386/freebsd.h10
-rw-r--r--contrib/gcc/config/i386/freebsd.h.fixed10
2 files changed, 20 insertions, 0 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 3145c6b21ba0..34b1718ab863 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -119,6 +119,16 @@ Boston, MA 02111-1307, USA. */
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
} while (0)
+/* Identify the front-end which produced this file. To keep symbol
+ space down, and not confuse kdb, only do this if the language is
+ not C. (svr4.h defines ASM_IDENTIFY_GCC but neglects this) */
+#undef ASM_IDENTIFY_LANGUAGE
+#define ASM_IDENTIFY_LANGUAGE(STREAM) \
+{ \
+ if (strcmp (lang_identify (), "c") != 0) \
+ output_lang_identify (STREAM); \
+}
+
/* 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.
diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed
index 3145c6b21ba0..34b1718ab863 100644
--- a/contrib/gcc/config/i386/freebsd.h.fixed
+++ b/contrib/gcc/config/i386/freebsd.h.fixed
@@ -119,6 +119,16 @@ Boston, MA 02111-1307, USA. */
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
} while (0)
+/* Identify the front-end which produced this file. To keep symbol
+ space down, and not confuse kdb, only do this if the language is
+ not C. (svr4.h defines ASM_IDENTIFY_GCC but neglects this) */
+#undef ASM_IDENTIFY_LANGUAGE
+#define ASM_IDENTIFY_LANGUAGE(STREAM) \
+{ \
+ if (strcmp (lang_identify (), "c") != 0) \
+ output_lang_identify (STREAM); \
+}
+
/* 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.