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 COMMITTED: Let -frepo look for symbol name in single quotes


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


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