diff options
author | peter <peter@FreeBSD.org> | 1996-09-18 05:45:16 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-18 05:45:16 +0000 |
commit | acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc (patch) | |
tree | 63294164689f80893cbbe6bd77927b5abe4339e9 /contrib/gcc/config/svr4.h | |
parent | d4691e641ba47cb86eef80f5c879e13f9d961724 (diff) | |
download | FreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.zip FreeBSD-src-acb2bcd1679fc89c82b1ebd30a92fe0538b7f4dc.tar.gz |
Import of 2.7.2.1 into vendor branch
Diffstat (limited to 'contrib/gcc/config/svr4.h')
-rw-r--r-- | contrib/gcc/config/svr4.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/gcc/config/svr4.h b/contrib/gcc/config/svr4.h index bc80297..41c6ffa 100644 --- a/contrib/gcc/config/svr4.h +++ b/contrib/gcc/config/svr4.h @@ -273,15 +273,23 @@ do { \ #define DBX_BLOCKS_FUNCTION_RELATIVE 1 /* When using stabs, gcc2_compiled must be a stabs entry, not an - ordinary symbol, or gdb won't see it. The stabs entry must be - before the N_SO in order for gdb to find it. */ + ordinary symbol, or gdb won't see it. Furthermore, since gdb reads + the input piecemeal, starting with each N_SO, it's a lot easier if + the gcc2 flag symbol is *after* the N_SO rather than before it. So + we emit an N_OPT stab there. */ #define ASM_IDENTIFY_GCC(FILE) \ do \ { \ if (write_symbols != DBX_DEBUG) \ fputs ("gcc2_compiled.:\n", FILE); \ - else \ + } \ +while (0) + +#define ASM_IDENTIFY_GCC_AFTER_SOURCE(FILE) \ +do \ + { \ + if (write_symbols == DBX_DEBUG) \ fputs ("\t.stabs\t\"gcc2_compiled.\", 0x3c, 0, 0, 0\n", FILE); \ } \ while (0) |