diff options
author | Roland McGrath <roland@gnu.org> | 2003-03-10 09:11:13 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2003-03-10 09:11:13 +0000 |
commit | e48f96382f237c0edad5c446eca867092406a51d (patch) | |
tree | 0cc492aa8b714292edaed64529ac9ae0bf523b2e /sysdeps/i386 | |
parent | 073e82bfaeeb5624b2c85012a5582a1308ddae05 (diff) | |
download | glibc-e48f96382f237c0edad5c446eca867092406a51d.tar glibc-e48f96382f237c0edad5c446eca867092406a51d.tar.gz glibc-e48f96382f237c0edad5c446eca867092406a51d.tar.bz2 glibc-e48f96382f237c0edad5c446eca867092406a51d.zip |
* sysdeps/unix/make-syscalls.sh: Generate $(compile-syscall) for
assembler command.
* sysdeps/unix/Makefile (compile-syscall): New variable.
Pass -g0 to compiler for assembling syscall stubs from stdin.
* sysdeps/i386/sysdep.h [HAVE_CPP_ASM_DEBUGINFO]
(STABS_CURRENT_FILE, STABS_CURRENT_FILE1, STABS_FUN, STABS_FUN_END):
Define these to do nothing.
* configure.in: New check for -g on .S files.
* configure: Regenerated.
* config.make.in (have-cpp-asm-debuginfo): New variable.
* config.h.in (HAVE_CPP_ASM_DEBUGINFO): New #undef.
* Makeconfig (ASFLAGS): New variable, if undefined and
$(have-cpp-asm-debuginfo), take options matching -g% from $(CFLAGS).
* Makerules (compile.S, COMPILE.S): Use $(ASFLAGS).
Diffstat (limited to 'sysdeps/i386')
-rw-r--r-- | sysdeps/i386/sysdep.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/i386/sysdep.h b/sysdeps/i386/sysdep.h index 9fa7f8de68..e955b43f95 100644 --- a/sysdeps/i386/sysdep.h +++ b/sysdeps/i386/sysdep.h @@ -64,6 +64,14 @@ ASM_SIZE_DIRECTIVE(name) \ STABS_FUN_END(name) +#ifdef HAVE_CPP_ASM_DEBUGINFO +/* Disable that goop, because we just pass -g through to the assembler + and it generates proper line number information directly. */ +# define STABS_CURRENT_FILE1(name) +# define STABS_CURRENT_FILE(name) +# define STABS_FUN(name) +# define STABS_FUN_END(name) +#else /* Remove the following two lines once the gdb bug is fixed. */ #define STABS_CURRENT_FILE(name) \ STABS_CURRENT_FILE1 (#name) @@ -77,6 +85,7 @@ .stabs #namestr,36,0,0,name; #define STABS_FUN_END(name) \ 1: .stabs "",36,0,0,1b-name; +#endif /* If compiled for profiling, call `mcount' at the start of each function. */ #ifdef PROF |