[Patch, Fortran] PR50718 Fix -fcheck=pointer 4.6/4.7 regression

Tobias Burnus burnus@net-b.de
Fri Oct 14 15:18:00 GMT 2011


On 10/14/2011 12:19 PM, Tobias Burnus wrote:
> while testing my constructor draft patch with FGSL, I found two bugs 
> (4.6/4.7 regressions): PR target/50721 (segfault on x86-64 after 
> execution - one of the rare -O0 only bugs)

That bug turned out to be a out-of-bounds problem between Fortran and C, 
which is very difficult to diagnose, and that the stack was destroyed, 
didn't help. As Bernd pointed out, the bug is in the Fortran programm 
(FGSL's poly.f90) and not in the compiler.

Regarding the true GCC bug: The patch for -fcheck=pointer was approved 
off list by Janus. I have committed the trunk version as Rev. 179988. I 
will soon backport it for 4.6 - in time for the 4.6.2 release, which is 
to be expected next week.

If you think any other 4.6 regression should be fixed in 4.6.2: Well, 
you have the whole weekend to work on a patch :-)

Tobias



More information about the Fortran mailing list