Commit 4d04fa05 by Geoffrey Keating Committed by Geoffrey Keating

darwin.h (PREFERRED_DEBUGGING_TYPE): Remove.

	* 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.

From-SVN: r118359
parent 7eb0a43c
2006-10-31 Geoffrey Keating <geoffk@apple.com> 2006-10-31 Geoffrey Keating <geoffk@apple.com>
* 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.
2006-10-31 Geoffrey Keating <geoffk@apple.com>
PR 15834 PR 15834
* config/darwin.h (NO_IMPLICIT_EXTERN_C): Define. * config/darwin.h (NO_IMPLICIT_EXTERN_C): Define.
......
...@@ -228,16 +228,19 @@ extern GTY(()) int darwin_ms_struct; ...@@ -228,16 +228,19 @@ extern GTY(()) int darwin_ms_struct;
specifying the handling of options understood by generic Unix specifying the handling of options understood by generic Unix
linkers, and for positional arguments like libraries. */ linkers, and for positional arguments like libraries. */
#define LINK_COMMAND_SPEC "\ #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} \ %{!Zdynamiclib:%(linker)}%{Zdynamiclib:/usr/bin/libtool} \
%l %X %{d} %{s} %{t} %{Z} \ %l %X %{d} %{s} %{t} %{Z} \
%{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{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}}} \ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \
%{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \
%(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ %{!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 #ifdef TARGET_SYSTEM_ROOT
#define LINK_SYSROOT_SPEC \ #define LINK_SYSROOT_SPEC \
...@@ -387,13 +390,13 @@ extern GTY(()) int darwin_ms_struct; ...@@ -387,13 +390,13 @@ extern GTY(()) int darwin_ms_struct;
#define ASM_SPEC "-arch %(darwin_arch) \ #define ASM_SPEC "-arch %(darwin_arch) \
%{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL}" %{Zforce_cpusubtype_ALL:-force_cpusubtype_ALL}"
/* We use Dbx symbol format. */ /* We still allow output of STABS. */
#define DBX_DEBUGGING_INFO 1 #define DBX_DEBUGGING_INFO 1
/* Also enable Dwarf 2 as an option. */ /* Prefer DWARF2. */
#define DWARF2_DEBUGGING_INFO #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_FRAME_SECTION "__DWARF,__debug_frame,regular,debug"
#define DEBUG_INFO_SECTION "__DWARF,__debug_info,regular,debug" #define DEBUG_INFO_SECTION "__DWARF,__debug_info,regular,debug"
......
...@@ -187,10 +187,6 @@ extern void darwin_x86_file_end (void); ...@@ -187,10 +187,6 @@ extern void darwin_x86_file_end (void);
SUBTARGET_C_COMMON_OVERRIDE_OPTIONS; \ SUBTARGET_C_COMMON_OVERRIDE_OPTIONS; \
} while (0) } while (0)
/* Darwin on x86_64 uses dwarf-2 by default. */
#undef PREFERRED_DEBUGGING_TYPE
#define PREFERRED_DEBUGGING_TYPE (TARGET_64BIT ? DWARF2_DEBUG : DBX_DEBUG)
/* Darwin uses the standard DWARF register numbers but the default /* Darwin uses the standard DWARF register numbers but the default
register numbers for STABS. Fortunately for 64-bit code the register numbers for STABS. Fortunately for 64-bit code the
default and the standard are the same. */ default and the standard are the same. */
......
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