[LLVMbugs] [Bug 158] NEW: [llvm-gcc] CFE produces non-type-safe code, gccas rejects it

bugzilla-daemon at zion.cs.uiuc.edu bugzilla-daemon at zion.cs.uiuc.edu
Wed Nov 26 13:45:13 PST 2003


           Summary: [llvm-gcc] CFE produces non-type-safe code, gccas
                    rejects it
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: sabre at nondot.org
        ReportedBy: brukman+bugs at uiuc.edu

Reduced from an adapted version of linux-2.4.22/arch/i386/kernel/init_task.c,
because I'm trying to work around bug 156 by manually initializing struct members:

% cat it.i

struct i387_soft_struct {
 long cwd;
 long twd;
 long fip;
union i387_union {
 struct i387_soft_struct soft;
struct thread_struct {
 union i387_union i387;
void _init_task_union(void) {
  struct thread_struct thread = (struct thread_struct) { {{0}} };

% llvm-gcc -c it.c

gccas: /tmp/ccjEOL1s.s:219: Can't store 'int' into space of type 'uint'!

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list