diff options
author | Alexandre Oliva <oliva@lsd.ic.unicamp.br> | 1999-09-22 10:44:21 +0000 |
---|---|---|
committer | Alexandre Oliva <oliva@gcc.gnu.org> | 1999-09-22 10:44:21 +0000 |
commit | ce7e82539408e9e8b775fe02f5745d93fb83b7e8 (patch) | |
tree | b81f916b076ac4165279ed57a2ae80176526f71f | |
parent | c15164cc43dba95968aa86bf6956aaed652a3451 (diff) | |
download | gcc-ce7e82539408e9e8b775fe02f5745d93fb83b7e8.zip gcc-ce7e82539408e9e8b775fe02f5745d93fb83b7e8.tar.gz gcc-ce7e82539408e9e8b775fe02f5745d93fb83b7e8.tar.bz2 |
sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
* config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs.
(ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas.
* config/i386/sol2dbg.h: Removed.
* config/i386/sol2gas.h: New file, to enable gas work-around.
* configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas.
Don't use sol2dbg.h.
* configure: Rebuilt.
From-SVN: r29585
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/config/i386/sol2.h | 27 | ||||
-rw-r--r-- | gcc/config/i386/sol2dbg.h | 27 | ||||
-rw-r--r-- | gcc/config/i386/sol2gas.h | 6 | ||||
-rwxr-xr-x | gcc/configure | 8 | ||||
-rw-r--r-- | gcc/configure.in | 6 |
6 files changed, 47 insertions, 37 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3a56c48..5102300 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +Wed Sep 22 07:07:44 1999 Alexandre Oliva <oliva@lsd.ic.unicamp.br> + + * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Use stabs. + (ASM_SPEC): Moved from sol2dbg.h. Added work-around for gas. + * config/i386/sol2dbg.h: Removed. + * config/i386/sol2gas.h: New file, to enable gas work-around. + * configure.in: Use i386/sol2gas.h on Solaris/x86 --with-gas. + Don't use sol2dbg.h. + * configure: Rebuilt. + Wed Sep 15 21:20:38 1999 Mark Mitchell <mark@codesourcery.com> * c-typeck.c (qualify_type): Merge qualifiers from both types. diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index cc5a089..b254a10 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -21,6 +21,33 @@ Boston, MA 02111-1307, USA. */ #include "i386/sysv4.h" +/* We use stabs-in-elf for debugging, because that is what the native + toolchain uses. */ +#undef PREFERRED_DEBUGGING_TYPE +#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG + +#if ! GAS_REJECTS_MINUS_S + +/* + Changed from config/svr4.h in the following ways: + + - Removed -Yd (neither the sun bundled assembler nor gas accept it). + - Added "-s" so that stabs are not discarded. +*/ + +#undef ASM_SPEC +#define ASM_SPEC \ + "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*} -s" + +#else /* GAS_REJECTS_MINUS_S */ + +/* Same as above, except for -s, unsupported by GNU as. */ +#undef ASM_SPEC +#define ASM_SPEC \ + "%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Wa,*:%*}" + +#endif /* GAS_REJECTS_MINUS_S */ + /* The Solaris 2.0 x86 linker botches alignment of code sections. It tries to align to a 16 byte boundary by padding with 0x00000090 ints, rather than 0x90 bytes (nop). This generates trash in the diff --git a/gcc/config/i386/sol2dbg.h b/gcc/config/i386/sol2dbg.h deleted file mode 100644 index 9f95333..0000000 --- a/gcc/config/i386/sol2dbg.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Target definitions for GNU compiler for Intel 80386 running Solaris - with gas and gdb. - This file is added into the directory .../gcc-2.../config/i386 - Workability without "#undef DWARF_DEBUGGING_INFO" is not tested. */ - -/* Use stabs instead of DWARF debug format. */ -#ifdef PREFERRED_DEBUGGING_TYPE -#undef PREFERRED_DEBUGGING_TYPE -#endif -#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG - -#include "i386/sol2.h" - -#ifdef DWARF_DEBUGGING_INFO -#undef DWARF_DEBUGGING_INFO -#endif - -/* - Changed from config/svr4.h in the following ways: - - - Added "%{V}". - - Modified "{%v:-V}" to take into account "%{V}". - - Added "-s" so that stabs are saved in the final executable. */ - -#undef ASM_SPEC -#define ASM_SPEC \ - "%{V} %{v:%{!V:-V}} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} -s" diff --git a/gcc/config/i386/sol2gas.h b/gcc/config/i386/sol2gas.h index f8ca103..7f2c962 100644 --- a/gcc/config/i386/sol2gas.h +++ b/gcc/config/i386/sol2gas.h @@ -4,8 +4,8 @@ Copyright (C) 1999 Free Software Foundation, Inc. */ -#ifndef GAS_REJECTS_MINUS_S -#define GAS_REJECTS_MINUS_S 1 +#ifndef GAS_DOES_NOT_SUPPORT_MINUS_S +#define GAS_DOES_NOT_SUPPORT_MINUS_S 1 #endif -/* Assume sol2.h will be included afterwards. */ +#include "i386/sol2.h" diff --git a/gcc/configure b/gcc/configure index 5eeba77..23de637 100755 --- a/gcc/configure +++ b/gcc/configure @@ -1310,7 +1310,7 @@ else fi # Find some useful tools -for ac_prog in gawk mawk nawk awk +for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 @@ -3750,9 +3750,9 @@ for machine in $build $host $target; do i[34567]86-*-solaris2*) xm_file="xm-siglist.h xm-alloca.h ${xm_file}" xm_defines="USG POSIX SMALL_ARG_MAX" - if test x$stabs = xyes - then - tm_file=i386/sol2dbg.h + if test x$gas = xyes; then + # Only needed if gas does not support -s + tm_file=i386/sol2gas.h else tm_file=i386/sol2.h fi diff --git a/gcc/configure.in b/gcc/configure.in index 448e0f8..eec2795 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1399,9 +1399,9 @@ changequote(,)dnl changequote([,])dnl xm_file="xm-siglist.h xm-alloca.h ${xm_file}" xm_defines="USG POSIX SMALL_ARG_MAX" - if test x$stabs = xyes - then - tm_file=i386/sol2dbg.h + if test x$gas = xyes; then + # Only needed if gas does not support -s + tm_file=i386/sol2gas.h else tm_file=i386/sol2.h fi |