(g77) internal compiler error: Segmentation fault
Jerry DeLisle
jvdelisle@verizon.net
Sat May 26 01:28:00 GMT 2007
Jerry DeLisle wrote:
> Roland Winkler wrote:
>> The (shortened) fortran-77 subroutine attached below causes a
>> segmentation fault of g77 when I execute
>>
>> $ g77 -O3 -c -funroll-loops foo.f
>>
>> No problems occur without optimization.
>>
>> $ g77 --version
>> GNU Fortran (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)
>> Copyright (C) 2002 Free Software Foundation, Inc.
>>
>> (I have SUSE Linux 10.2)
>>
>> Let me know if you need to know anything else.
>>
> G77 is no longer maintained. The new fortran compiler is gfortran and
> it supports f77 code. I will test to see if gfortran handles your test
> case.
>
> Also, please correspond with the gfortran list on this so we fortraners
> can help you here. There are gfortran binaries available. Let me know
> if you need help with this. Also helps to know what hardware platform
> you are on and what OS you are using.
>
> Regards,
>
> Jerry
>
Roland,
I tried your test case with g77, gfortran 4.1, 4.2, and 4.3 and it compiles fine
with the options you specified. I wonder if you have an installation problem?
Perhaps try reinstalling g77.
Regards,
Jerry
More information about the Fortran
mailing list