This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25690] New: error: unrecognizable insn - failed to assign &a[1] if a is a struct
- From: "olaf at bonorden dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2006 09:54:13 -0000
- Subject: [Bug c/25690] New: error: unrecognizable insn - failed to assign &a[1] if a is a struct
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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