aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-03-08 12:47:45 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-03-08 12:47:45 +0000
commit9ed6fc5562648715df2df0411075f544ed0a62ba (patch)
tree8db326b05c91009db20b9ac9921556834b6c554b
parente36ad1526183ba0ee40cdb1a2af1cde2e2693dea (diff)
downloadsrc-9ed6fc5562648715df2df0411075f544ed0a62ba.tar.gz
src-9ed6fc5562648715df2df0411075f544ed0a62ba.zip
Cosmetic cleanup for a.out asm generation.. Don't put the end-of-file
markers that the stabs-in-elf system uses.
Notes
Notes: svn path=/head/; revision=34284
-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 398d1b8b52e4..3145c6b21ba0 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 398d1b8b52e4..3145c6b21ba0 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) \