Commit 0c723ada by Alexandre Oliva Committed by Alexandre Oliva

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: r29534
parent 447cfcb9
Mon Sep 20 21:43:25 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.
Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com> Mon Sep 20 13:29:41 1999 Mark Mitchell <mark@codesourcery.com>
* invoke.texi (-fthis-is-variable): Remove documentation. * invoke.texi (-fthis-is-variable): Remove documentation.
......
...@@ -21,6 +21,33 @@ Boston, MA 02111-1307, USA. */ ...@@ -21,6 +21,33 @@ Boston, MA 02111-1307, USA. */
#include "i386/sysv4.h" #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. /* The Solaris 2.0 x86 linker botches alignment of code sections.
It tries to align to a 16 byte boundary by padding with 0x00000090 It tries to align to a 16 byte boundary by padding with 0x00000090
ints, rather than 0x90 bytes (nop). This generates trash in the ints, rather than 0x90 bytes (nop). This generates trash in the
......
/* 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"
/* Definitions of target machine for GNU compiler, for SPARC running
Solaris 2 with GNU as up to 2.9.5.0.12.
Copyright (C) 1999 Free Software Foundation, Inc.
*/
#ifndef GAS_REJECTS_MINUS_S
#define GAS_REJECTS_MINUS_S 1
#endif
/* Assume sol2.h will be included afterwards. */
...@@ -1543,11 +1543,10 @@ changequote(,)dnl ...@@ -1543,11 +1543,10 @@ changequote(,)dnl
changequote([,])dnl changequote([,])dnl
xm_file="xm-siglist.h xm-alloca.h ${xm_file}" xm_file="xm-siglist.h xm-alloca.h ${xm_file}"
xm_defines="USG POSIX SMALL_ARG_MAX" xm_defines="USG POSIX SMALL_ARG_MAX"
if test x$stabs = xyes
then
tm_file=i386/sol2dbg.h
else
tm_file=i386/sol2.h tm_file=i386/sol2.h
if test x$gas = xyes; then
# Only needed if gas does not support -s
tm_file="i386/sol2gas.h ${tm_file}"
fi fi
tmake_file=i386/t-sol2 tmake_file=i386/t-sol2
extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o" extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment