------- Comment #3 from davek at gcc dot gnu dot org 2010-01-21 04:00 ------- Created an attachment (id=19670) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19670&action=view) Simple stage-3-safe fix
This is the simple fix that is safe for stage 3. By trivially tweaking the specs, we remove the don't-redirect-via-wrappers-if-statically-linking optimisation. This is a minor performance hit, but correctness combines with the need for low-risk changes in stage 3 to win out here. I'll talk about the more optimal fix (and the complications that mean it has to wait for next stage 1) next. As I've already run all the tests, and as I've just been appointed a maintainer, I'll check this in shortly :-) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42818