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: PING [Patch, driver] PR41594 recognize -static-libstdc++ as a valid option.



On 17 Dec 2009, at 14:23, Dave Korn wrote:


IainS wrote:

Although your patch resolves the issue of spec substitution - it will
not resolve PR41596.
I believe my patch resolves both (and agreed is more complex because of
that).

Yep, agreed; my patch only addresses the 41594 side of things, but I think
if we used it rather than your one for that issue, you would only then need a
much simpler patch on top to solve 41596, no?

I don't think I can make the solution to PR41596 simpler...


.. in fact, re-emitting the -static-libstdc++ flag without checking that we really need to link will actually make the situation worse for cases where we're compiling PCH.

In order to solve PR41596 - one needs to detect that PCH generation is happening and make sure that no library commands are emitted - since the latter will cause a (redundant) invocation of collect2.

as I said, I'm happy to unwrap the re-emission so that it occurs for all targets (if that's what people want).

cheers,
Iain


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