[Bug fortran/40873] -fwhole-file -fwhole-program: Wrong decls cause too much to be optimized away

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jul 25 10:14:00 GMT 2010



------- Comment #22 from burnus at gcc dot gnu dot org  2010-07-25 10:14 -------
The patch in comment 18 causes a segfault (in gfc_generate_function_code for
"cfun->function_end_locus = input_location" [Invalid write of size 4]) for the
test case in PR 40011 comment 0 (the one after "Your patch fixes some
Segmentation faults (a couple)") - the test case works otherwise. No
-fwhole-program is needed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40873



More information about the Gcc-bugs mailing list