[driver/11810] object file deletion

Mark Mitchell mark@codesourcery.com
Sat Jun 26 09:35:00 GMT 2010


Joseph S. Myers wrote:

> Now, I see no actual use for this code which is apparently trying to make 
> collect2 emulate system ld in not accepting "-ofoo".  Since the driver 
> will always separate "-o" and "foo" on such systems, the code in question 
> could only be triggered if someone ran collect2 directly.

Yes.

> My inclination is to say that the existence of SWITCHES_NEED_SPACES as a 
> target macro (and a corresponding spec to change it at runtime) serves no 
> current purpose.  The macro should be removed, the behavior of inserting 
> the space hardcoded (or later moved to a flag in .opt files to say the 
> separate-argument form is canonical), and collect2 support for "-ofoo" 
> made explicitly unconditional.  This should not change driver or collect2 
> behavior on any system from what it was after Mark's patch.  Comments?

I think your plan is exactly correct.

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list