This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

Re: Whetstone.c crashes gcc: Internal compiler


> Hello,
>
> I just tried to compile
>
>   http://www.netlib.no/netlib/benchmark/whetstone.c
>
> on GNU-Win32 19.1. GCC reported
>
>   gcc: Internal error: program cc1 got fatal signal 6
>
> and stopped compilation. LCC-Win32 had no problems and
> the .exe works. Notice this version of Whetstone has date
> 22 March 1998.
>
>
I get the sampe problem, but only with certain levels of optimisation
switched on.

> gcc -O2 whetstone.c -o whetstone
> ./whetstone.exe

Loops: 1000, Iterations: 1, Duration: 2 sec.
C Converted Double Precision Whetstones: 50.0 MIPS
> gcc -O whetstone.c -o whetstone
gcc: Internal compiler error: program cc1 got fatal signal 6
> gcc -O1 whetstone.c -o whetstone
gcc: Internal compiler error: program cc1 got fatal signal 6


Hence, both -O and -O1 are causing the compiler to fall over, all other
levels including no optimisation and -O3 work fine.

I hope this helps.

Regards,

Charles Razzell.


begin:          vcard
fn:             Charles Razzell
n:              Razzell;Charles
org:            PCC
email;internet: crazzell@fnc.pcc.philips.com
tel;work:       +1 510 445 5630
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


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