This is the mail archive of the gcc-bugs@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]

[Bug lto/55592] New: linking with -flto always links in libgcc:s.so


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55592

             Bug #: 55592
           Summary: linking with -flto always links in libgcc:s.so
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: doko@gcc.gnu.org


$ cat foo.c 
int main() { }
$ gcc foo.c && ldd a.out |grep libgcc_s
$ gcc -flto foo.c && ldd a.out |grep libgcc_s
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fb214381000)

gcc.c (pass_through_libs_spec_func) doesn't pass the --as-needed/--no-as-needed
flags to the plugin. if these are passed, how should the plugin handle these?


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