This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH COMMITTED: Let -frepo look for symbol name in single quotes
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 31 Mar 2008 20:08:40 +0000 (UTC)
- Subject: Re: PATCH COMMITTED: Let -frepo look for symbol name in single quotes
- References: <m3myoepy6w.fsf@google.com>
On Mon, 31 Mar 2008, Ian Lance Taylor wrote:
> gold outputs undefined symbol names in single quotes:
>
> ld: hello.o: in function main:hello.c:5: undefined reference to 'puts'
>
> This differs from GNU ld, which use mismatched quotes:
>
> hello.c:5: undefined reference to `puts'
>
> Currently collect2 when using -frepo looks at linker error messages
> for mismatched quotes, and looks for double quotes, but does not look
> for single quotes. I think single quotes are an appropriate choice,
> especially since that is what gcc itself uses.
Does collect2 make sure the run the linker in the C locale if it's going
to look for these messages? If not, any sort of check for particular
quotation styles is broken.
(I don't know if the same linker run will be producing both messages going
to the user and messages parsed by collect2 like this. If it will, a
better protocol for communication between them is needed, so the user can
see messages with locale-appropriate quotes and collect2 can still get the
information it needs.)
--
Joseph S. Myers
joseph@codesourcery.com