diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 04:55:19 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-01 04:55:19 +0000 |
commit | 079363c6fb28821dbc644b074e220c0d75a979dc (patch) | |
tree | 84aa8a85dbb84695ea9f74c563adaf9de61ca015 /gcc/config/darwin.h | |
parent | b67620c6f15f0bfc0b29b45ba8774379562217b9 (diff) | |
download | gcc-079363c6fb28821dbc644b074e220c0d75a979dc.tar.gz |
* config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Remove.
* config/darwin.h (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
* config/darwin.h (LINK_COMMAND_SPEC): Don't do weird things with -@.
Call dsymutil when compiling and linking one or more source files
in one step.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118359 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 05b34726ff7..35ff8c00ef0 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -228,16 +228,19 @@ extern GTY(()) int darwin_ms_struct; specifying the handling of options understood by generic Unix linkers, and for positional arguments like libraries. */ #define LINK_COMMAND_SPEC "\ -%{!fdump=*:%{!fsyntax-only:%{!precomp:%{!c:%{!M:%{!MM:%{!E:%{!S:\ +%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{!Zdynamiclib:%(linker)}%{Zdynamiclib:/usr/bin/libtool} \ %l %X %{d} %{s} %{t} %{Z} \ %{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{z}} \ - %{@:-o %f%u.out}%{!@:%{o*}%{!o:-o a.out}} \ + %{o*}%{!o:-o a.out} \ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ - %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}" + %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ +%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ + %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \ + %{g*:%{!gstabs*:%{!gnone: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" #ifdef TARGET_SYSTEM_ROOT #define LINK_SYSROOT_SPEC \ @@ -387,13 +390,13 @@ extern GTY(()) int darwin_ms_struct; #define ASM_SPEC "-arch %(darwin_arch) \ %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL}" -/* We use Dbx symbol format. */ +/* We still allow output of STABS. */ #define DBX_DEBUGGING_INFO 1 -/* Also enable Dwarf 2 as an option. */ +/* Prefer DWARF2. */ #define DWARF2_DEBUGGING_INFO -#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG +#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG #define DEBUG_FRAME_SECTION "__DWARF,__debug_frame,regular,debug" #define DEBUG_INFO_SECTION "__DWARF,__debug_info,regular,debug" |