re PR middle-end/32813 (ICE for array expression in empty if statement, compiled...
authorAndrew Pinski <andrew_pinski@playstation.sony.com>
Thu, 9 Aug 2007 21:36:27 +0000 (21:36 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 9 Aug 2007 21:36:27 +0000 (14:36 -0700)
commite057e0cd1d9141a4251756d1830cc0939494208c
treef030259702f6f708be9e2015d13e0c09eda84183
parentb49957dd09afec707bfa70a68eb32c6e976befc1
re PR middle-end/32813 (ICE for array expression in empty if statement, compiled with -fbounds-check)

2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/32813
        * fold-const.c (omit_one_operand): Return only the ommitted expression
        if the result is an empty statement.
        (pedantic_omit_one_operand): Likewise.

2007-08-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>

        PR middle-end/32813
        * gfortran.fortran-torture/compile/emptyif-1.f90: New test.
        * lib/fortran-torture.exp (fortran-torture): Use TORTURE_OPTIONS instead
        of just -O.

From-SVN: r127322
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 [new file with mode: 0644]
gcc/testsuite/lib/fortran-torture.exp