This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

optimization/1836: ICE with long double && -O2 && -funroll-all-loops



>Number:         1836
>Category:       optimization
>Synopsis:       ICE with long double && -O2 && -funroll-all-loops
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 02 02:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        unknown-1.0
>Organization:
>Environment:
sparc-sun-solaris2.7, gcc CVS 2001/01/29
>Description:
deal.II/lac> cat t.cc
void residual ()
{
  long double s;
  int *rowstart;
  for (int j=rowstart[0]; j<rowstart[1]; j++)
    s -= 3;
}


deal.II/lac> gcc -O2 -funroll-all-loops -c t.cc -o /dev/null
t.cc: In function `void residual()':
t.cc:7: 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.


Note that if I change the "long double" into a "double", or
if I change -O2 to -O1, then the error disappears.

Regards
  Wolfgang
>How-To-Repeat:

>Fix:

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]