c/6875: IA64 compiler crash when -O3

vmakarov@redhat.com vmakarov@redhat.com
Thu May 30 16:06:00 GMT 2002


>Number:         6875
>Category:       c
>Synopsis:       IA64 compiler crash when -O3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 30 16:06:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Vladimir Makarov
>Release:        3.1 and the main line
>Organization:
>Environment:
ia64-unknown-linux
>Description:
  Hello, IA64 compiler (the 3.1 branch and the main line) crashes on
the following program with -O3

extern void foo  (int);
extern int something(int);
extern int nothing(int *);
int fi (int i) { return something(i); }
typedef int (*pfi)(int i);
pfi bar(int x) { nothing(&x); return &fi; }

main ()
{
  foo (bar (1)(2));
}

b.i: In function `main':
b.i:11: internal error: Segmentation fault
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:
Compile the test with -O3
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list