summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-03-08 12:47:45 +0000
committerpeter <peter@FreeBSD.org>1998-03-08 12:47:45 +0000
commitd616a733c341dfde9616a32467c26badae33aef6 (patch)
tree057a25d4cec8ad5f8b7e712023078a7fbbf51026 /contrib
parent28359c5db0929d3a9cc0009beb2cce3c924a3882 (diff)
downloadFreeBSD-src-d616a733c341dfde9616a32467c26badae33aef6.zip
FreeBSD-src-d616a733c341dfde9616a32467c26badae33aef6.tar.gz
Cosmetic cleanup for a.out asm generation.. Don't put the end-of-file
markers that the stabs-in-elf system uses.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/gcc/config/i386/freebsd.h13
-rw-r--r--contrib/gcc/config/i386/freebsd.h.fixed13
2 files changed, 20 insertions, 6 deletions
diff --git a/contrib/gcc/config/i386/freebsd.h b/contrib/gcc/config/i386/freebsd.h
index 398d1b8..3145c6b 100644
--- a/contrib/gcc/config/i386/freebsd.h
+++ b/contrib/gcc/config/i386/freebsd.h
@@ -119,9 +119,6 @@ Boston, MA 02111-1307, USA. */
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
} while (0)
-/* don't override the defauts, in case gdb gets upset */
-#undef ASM_IDENTIFY_GCC
-
/* 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.
@@ -280,9 +277,19 @@ do { \
} \
} while (0)
+/* in elf, the function stabs come first, before the relative offsets */
#undef DBX_FUNCTION_FIRST
#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
+/* tag end of file in elf mode */
+#undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
+#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
+do { \
+ if (TARGET_ELF) { \
+ fprintf (FILE, "\t.text\n\t.stabs \"\",%d,0,0,.Letext\n.Letext:\n", N_SO); \
+ } \
+} while (0)
+
/* stabs-in-elf has offsets relative to function beginning */
#undef DBX_OUTPUT_LBRAC
#define DBX_OUTPUT_LBRAC(file,name) \
diff --git a/contrib/gcc/config/i386/freebsd.h.fixed b/contrib/gcc/config/i386/freebsd.h.fixed
index 398d1b8..3145c6b 100644
--- a/contrib/gcc/config/i386/freebsd.h.fixed
+++ b/contrib/gcc/config/i386/freebsd.h.fixed
@@ -119,9 +119,6 @@ Boston, MA 02111-1307, USA. */
fprintf (FILE, "\t.version\t\"01.01\"\n"); \
} while (0)
-/* don't override the defauts, in case gdb gets upset */
-#undef ASM_IDENTIFY_GCC
-
/* 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.
@@ -280,9 +277,19 @@ do { \
} \
} while (0)
+/* in elf, the function stabs come first, before the relative offsets */
#undef DBX_FUNCTION_FIRST
#define DBX_CHECK_FUNCTION_FIRST TARGET_ELF
+/* tag end of file in elf mode */
+#undef DBX_OUTPUT_MAIN_SOURCE_FILE_END
+#define DBX_OUTPUT_MAIN_SOURCE_FILE_END(FILE, FILENAME) \
+do { \
+ if (TARGET_ELF) { \
+ fprintf (FILE, "\t.text\n\t.stabs \"\",%d,0,0,.Letext\n.Letext:\n", N_SO); \
+ } \
+} while (0)
+
/* stabs-in-elf has offsets relative to function beginning */
#undef DBX_OUTPUT_LBRAC
#define DBX_OUTPUT_LBRAC(file,name) \
OpenPOWER on IntegriCloud