target/7434: ICE in change_address_1, at emit-rtl.c:1934
Mon Jul 29 08:20:00 GMT 2002

>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
>Originator:     Gwenole Beauchesne
>Release:        GNU C version 3.2 20020729 (prerelease)
[gb@gauss gcc]$ ./cc1 ice.c
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:> for instructions.
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.
Syntactic workaround: remove the "volatile" keyword from long double val declaration.

More information about the Gcc-bugs mailing list