Add -O3 to TORTURE_OPTIONS list.
authorNick Clifton <nickc@cygnus.com>
Wed, 24 Feb 1999 14:12:44 +0000 (14:12 +0000)
committerNick Clifton <nickc@gcc.gnu.org>
Wed, 24 Feb 1999 14:12:44 +0000 (14:12 +0000)
From-SVN: r25406

gcc/testsuite/ChangeLog
gcc/testsuite/lib/c-torture.exp

index 88552dd8e2fd78730ba763ad57dde452dcddd67b..7d94fe2d7cca53f2295e1328e10e8e4aad4af289 100644 (file)
@@ -1,3 +1,7 @@
+1999-02-24  Nick Clifton  <nickc@cygnus.com>
+
+       * lib/c-torture.exp: Add -O3 to TORTURE_OPTIONS list.
+
 Mon Feb 22 01:15:08 1999  Jeffrey A Law  (law@cygnus.com)
 
        * gcc.c-torture/execute/990222-1.c: New test.
index 2078a61b506a1fb97986ed1b539af2412b5270e2..e2031d87bcdab29701eee0e06b702afb84745850 100644 (file)
 # TORTURE_OPTIONS="{ { list1 } ... { listN } }"
 
 if ![info exists TORTURE_OPTIONS] {
-    # It is theoretically beneficial to group all of the O2 options together,
+    # It is theoretically beneficial to group all of the O2/O3 options together,
     # as in many cases the compiler will generate identical executables for
     # all of them--and the c-torture testsuite will skip testing identical
     # executables multiple times.
+    # Also note that -finline-functions is explicitly included in one of the
+    # items below, even though -O3 is also specified, because some ports may
+    # choose to disable inlining functions by default, even when optimizing.
     set TORTURE_OPTIONS [list \
-       { -O0 } { -O1 } { -O2 } \
-       { -O2 -fomit-frame-pointer -finline-functions } \
-       { -O2 -fomit-frame-pointer -finline-functions -funroll-loops } \
-       { -O2 -fomit-frame-pointer -finline-functions -funroll-all-loops } \
-       { -O2 -g } { -Os } ]
+       { -O0 } \
+       { -O1 } \
+       { -O2 } \
+       { -O3 -fomit-frame-pointer } \
+       { -O3 -fomit-frame-pointer -funroll-loops } \
+       { -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions } \
+       { -O3 -g } \
+       { -Os } ]
 }