OSDN Git Service

fortran/
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 2014 18:49:18 +0000 (18:49 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 2 Mar 2014 18:49:18 +0000 (18:49 +0000)
commit75dfcf1c8caa3180aef81026a73d2ce4f5246ced
treeb03fec686932554889c2055190ed23af310ebc49
parent24b402f3ff7ee8d05c0fb87118e97e279631df25
fortran/
        PR fortran/60341
        * frontend-passes.c (optimize_comparison): Guard two union
        accesses with the corresponding tag checks.

testsuite/
        PR fortran/60341
        * gfortran.dg/str_comp_optimize_1.f90: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@208259 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/frontend-passes.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/str_comp_optimize_1.f90 [new file with mode: 0644]