[Bug middle-end/43866] [4.3/4.4/4.5/4.6 Regression] wrong code with -fbounds-check -funswitch-loops

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 25 09:15:00 GMT 2010



------- Comment #18 from jakub at gcc dot gnu dot org  2010-06-25 09:14 -------
That part comes from the questionable testcase, which does
a_sp => matrix%local_data_sp
before the loop unconditionally, eventhough matrix%local_data_sp is
uninitialized unless use_sp is .true.
Without the unswitching the values from the uninitialized struct
matrix%local_data_sp are read, but not tested when use_sp is .false.


-- 


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



More information about the Gcc-bugs mailing list