$ cat foo.i struct tss_struct; extern struct tss_struct *doublefault_tss;
struct tss_struct { } __attribute__((packed)); $ gcc -c --combine foo.i foo.i $ gcc -c --combine foo.i foo.i foo.i foo.i:3: error: conflicting types for doublefault_tss foo.i:3: error: previous declaration of doublefault_tss was here Removing the packed attribute, or compiling only _two_ of them together, makes it work. Seen with ppc->i686 GCC 4.1.0 and also Fedora PowerPC gcc version 4.1.1 20060525 (Red Hat 4.1.1-1.pr27898) (Both with Alex's patch for pr27898). -- Summary: Compile failure with --combine and packed structures. Product: gcc Version: 4.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dwmw2 at infradead dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28712