aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAndrew Pinski <andrew_pinski@playstation.sony.com>2007-08-09 21:36:27 +0000
committerAndrew Pinski <andrew_pinski@playstation.sony.com>2007-08-09 21:36:27 +0000
commitc3aaf6c95462c8b1f126e3e2dfb4d65db0508e15 (patch)
treef030259702f6f708be9e2015d13e0c09eda84183 /gcc/testsuite
parent06f37f3503499171f2930513dd8847b3c2e77d39 (diff)
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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@127322 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f9010
-rw-r--r--gcc/testsuite/lib/fortran-torture.exp3
3 files changed, 19 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5dd66c3f72c..06b2fff2e7d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2007-08-08 Richard Sandiford <richard@codesourcery.com>
* gcc.target/mips/code-readable-1.c: New test.
diff --git a/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90 b/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90
new file mode 100644
index 00000000000..bdce67db9ea
--- /dev/null
+++ b/gcc/testsuite/gfortran.fortran-torture/compile/emptyif-1.f90
@@ -0,0 +1,10 @@
+program emptyif
+
+ implicit none
+ integer i,K(4)
+
+ if (K(i)==0) then
+ ! do absolutely nothing
+ end if
+
+end program
diff --git a/gcc/testsuite/lib/fortran-torture.exp b/gcc/testsuite/lib/fortran-torture.exp
index 8bc5978d89b..d97c2cefc61 100644
--- a/gcc/testsuite/lib/fortran-torture.exp
+++ b/gcc/testsuite/lib/fortran-torture.exp
@@ -347,6 +347,7 @@ proc search_for_re { file pattern } {
proc fortran-torture { args } {
global srcdir subdir
global compiler_conditional_xfail_data
+ global TORTURE_OPTIONS
set src [lindex $args 0]
if { [llength $args] > 1 } {
@@ -371,7 +372,7 @@ proc fortran-torture { args } {
}
# loop through all the options
- set option_list [list { "-O" } ]
+ set option_list $TORTURE_OPTIONS
foreach option $option_list {
# torture_compile_xfail is set by the .x script (if present)