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/25690] New: error: unrecognizable insn - failed to assign &a[1] if a is a struct


Source (test.c):

struct type {
    char dummy;
} a[2];

void test( void ) {
    struct type* b = &a[1];
}

compiler call:
mcore-gcc test.c -c

output:

test.c: In function 'test':
test.c:7: error: unrecognizable insn:
(insn 8 6 9 3 (set (reg:SI 25)
        (const:SI (plus:SI (symbol_ref:SI ("a") <var_decl 0x4016f0b0 a>)
                (const_int 1 [0x1])))) -1 (nil)
    (nil))
test.c:7: internal compiler error: in extract_insn, at recog.c:2084


-- 
           Summary: error: unrecognizable insn - failed to assign &a[1] if a
                    is a struct
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olaf at bonorden dot de
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mcore-be-elf


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



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