This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: PR other/16394: Pass --demangle to ld


H. J. Lu wrote:

--demangle was added to ld before 2.10. This patch checks if the
linker supports --demangle and uses it if it is available.

I think you should probably check that "ld" is GNU ld, in addition to checking that it supports --demangle. Some linkers might support --demangle, but use a different mangling scheme.


There's also the issue that cplus_demangle will be more likely to match the compiler's mangling than "ld --demangle" which might be out of date.

--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]