This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
-g on darwin
- From: mrs at apple dot com (Mike Stump)
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 21 May 2007 13:58:15 -0700 (PDT)
- Subject: -g on darwin
This patch fixes -g on darwin9 and -gdwarf-2 on previous systems when
files with a .cxx extension are used...
2007-05-21 Mike Stump <mrs@apple.com>
* config/darwin.h (LINK_COMMAND_SPEC): Add .cxx for dsymutil
handling as well.
* config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
Index: config/darwin.h
===================================================================
--- config/darwin.h (revision 124905)
+++ config/darwin.h (working copy)
@@ -241,7 +241,7 @@
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\
%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
- %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \
+ %{.c|.cc|.C|.cpp|.c++|.cxx|.CPP|.m|.mm: \
%{gdwarf-2:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}"
#ifdef TARGET_SYSTEM_ROOT
Index: config/darwin9.h
===================================================================
--- config/darwin9.h (revision 124905)
+++ config/darwin9.h (working copy)
@@ -15,7 +15,7 @@
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\
%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\
- %{.c|.cc|.C|.cpp|.c++|.CPP|.m|.mm: \
+ %{.c|.cc|.C|.cpp|.c++|.cxx|.CPP|.m|.mm: \
%{g*:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}"
/* The linker can generate branch islands. */