------- Comment #3 from edwintorok at gmail dot com 2008-08-21 17:52 ------- (In reply to comment #2) > This sounds like a glibc bug really. glibc's headers has invalid C in it :). > > >why does --combine > Because GCC checks that the prototypes are compatible across translational > units with --combine and errors out if they are not since that is invalid C > :). >
Agreed, but I thought --combine is smarter than to just concatenate the sources. Compiling the sources separately works, and they are valid C separately. IMHO LTO should deal with situations like this, or make an exception for system headers. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37192