This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/7434: ICE in change_address_1, at emit-rtl.c:1934
- From: gbeauchesne at mandrakesoft dot com
- To: gcc-gnats at gcc dot gnu dot org
- Cc: jh at suse dot cz
- Date: 29 Jul 2002 14:19:57 -0000
- Subject: target/7434: ICE in change_address_1, at emit-rtl.c:1934
- Reply-to: gbeauchesne at mandrakesoft dot com
>Number: 7434
>Category: target
>Synopsis: ICE in change_address_1, at emit-rtl.c:1934
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 29 07:26:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Gwenole Beauchesne
>Release: GNU C version 3.2 20020729 (prerelease)
>Organization:
>Environment:
x86_64-mandrake-linux-gnu
>Description:
[gb@gauss gcc]$ ./cc1 ice.c
main
ice.c: In function `main':
ice.c:9: Internal compiler error in change_address_1, at emit-rtl.c:1934
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Try to compile the following testcase, extracted from HDF 5 soures:
[gb@gauss gcc]$ cat ice.c
int main(void)
{
static const int align_g[] = { 1, 2, 4, 8, 16 };
char * buf;
int i = 0;
volatile long double val = 0;
val = *((long double *)(buf + align_g[i]));
return 0;
}
This ICEs whatever optimization level you choose.
>Fix:
Syntactic workaround: remove the "volatile" keyword from long double val declaration.
>Release-Note:
>Audit-Trail:
>Unformatted: