This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/61443] New: [avr] ICE when varargs argument is indirect addr-space access
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Jun 2014 16:51:43 +0000
- Subject: [Bug target/61443] New: [avr] ICE when varargs argument is indirect addr-space access
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61443
Bug ID: 61443
Summary: [avr] ICE when varargs argument is indirect addr-space
access
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: addr-space, ice-on-valid-code
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target: avr
Created attachment 32907
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32907&action=edit
C Test Case
== C Source ==
extern void vfun (char, ...);
void boo (const __flash int *p)
{
vfun (0, *p);
}
== Command Line ==
$ avr-gcc foo.c -S -Os
Occurs also with optimization turned on.
== Diagnose ==
foo.c: In function 'boo':
foo.c:6:1: error: unrecognizable insn:
}
^
(insn 6 3 7 2 (set (reg:QI 44)
(subreg:QI (mem:HI (reg/v/f:HI 43 [ p ]) [2 *p_2(D)+0 S2 A8 AS1]) 1))
foo.c:5 -1
(nil))
foo.c:6:1: internal compiler error: in extract_insn, at recog.c:2150
foo.c:6:1: internal compiler error: Segmentation fault