This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Don't run c++filt on darwin
- From: gkeating at geoffk5 dot apple dot com (Geoffrey Keating)
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 10 Jul 2004 17:23:08 -0700 (PDT)
- Subject: Don't run c++filt on darwin
collect2 now passes the linker output through the demangler, so
there's no need to run c++filt separately, and it can only cause
trouble.
Bootstrapped & tested on powerpc-darwin, and I checked that linker
error messages still get demangled.
--
- Geoffrey Keating <geoffk@apple.com>
===File ~/patches/darwin-killcxxfilt.patch==================
2004-07-10 Geoffrey Keating <geoffk@apple.com>
* config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
Index: config/darwin.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/darwin.h,v
retrieving revision 1.83
diff -u -p -u -p -r1.83 darwin.h
--- config/darwin.h 8 Jul 2004 00:12:27 -0000 1.83
+++ config/darwin.h 11 Jul 2004 00:21:42 -0000
@@ -200,8 +200,7 @@ Boston, MA 02111-1307, USA. */
%{!Zdynamiclib:%{!A:%{!nostdlib:%{!nostartfiles:%S}}}} \
%{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate:-lgcov} \
%{!nostdlib:%{!nodefaultlibs:%G %L}} \
- %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} \
- %{!--help:%{!no-c++filt|c++filt:| c++filt }} }}}}}}}}"
+ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}"
/* Please keep the random linker options in alphabetical order (modulo
'Z' and 'no' prefixes). Options that can only go to one of libtool
============================================================