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 c/28712] New: Compile failure with --combine and packed structures.


$ 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


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