http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47423
Summary: Many testsuite failures caused by missing gxx_visibility_sj0 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: kti...@gcc.gnu.org By using lto-plugin via ld a lot of testcases failing in g++.dg testsuite as gxx_visibility_sj0 can be resolved by linker in one-pass linking. The g++ frontend doesn't add here for LTO linker-plugin case the pass-through options. For the standard C case this is done in gcc.c in spec. As COFF targets aren't able to use gold as linker, Ian's additions aren't here of much help. So for making things at least consistent, we should either remove from gcc.c the pass-through part from spec, or add them for other libraries (like gomp, etc) and for FE specific libraries, too. Patch for this was sent recent by my to add the pass-through options for C++ FE, which solved that issue.