summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-08 13:26:15 +0000
committerpeter <peter@FreeBSD.org>1998-03-08 13:26:15 +0000
commit5a58d42fe2e2cff6ed8f22038cda9489a19ca424 (patch)
tree8fc53fb74b54cbbf20905c7d2954d17130dcef0e /contrib
parentd616a733c341dfde9616a32467c26badae33aef6 (diff)
downloadFreeBSD-src-5a58d42fe2e2cff6ed8f22038cda9489a19ca424.zip
FreeBSD-src-5a58d42fe2e2cff6ed8f22038cda9489a19ca424.tar.gz
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.
Diffstat (limited to 'contrib')
-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 3145c6b..34b1718 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 3145c6b..34b1718 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.
OpenPOWER on IntegriCloud