]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
authorJanis Johnson <janis187@us.ibm.com>
Thu, 6 Nov 2008 00:05:09 +0000 (00:05 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Thu, 6 Nov 2008 00:05:09 +0000 (00:05 +0000)
gcc/
* doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
gcc/testsuite/
* lib/c-torture.exp: Use ADDITIONAL_TORTURE_OPTIONS if defined.
* lib/gcc-dg.exp: Ditto.
* lib/fortran-torture.exp: Ditto.
* lib/objc-torture.exp: Ditto.

From-SVN: r141630

gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/lib/c-torture.exp
gcc/testsuite/lib/fortran-torture.exp
gcc/testsuite/lib/gcc-dg.exp
gcc/testsuite/lib/objc-torture.exp

index 80a53a718bde9c053cf6cf05b102cc91ec44f018..a3d262965dd93a0e8ef62302da9966bd57101c08 100644 (file)
@@ -1,3 +1,7 @@
+2008-11-05  Janis Johnson  <janis187@us.ibm.com>
+
+       * doc/sourcebuild.texi (Torture Tests): Add ADDITIONAL_TORTURE_OPTIONS.
+
 2008-11-06  Ben Elliston  <bje@au.ibm.com>     
 
        * config/rs6000/rs6000.c (rs6000_override_options): Comment fix.
index 85febd2003825c6c06ed4d9e246d6b13683a6f69..e0ed42f19d55835b251f43bf72c4daa42b8432f5 100644 (file)
@@ -1573,4 +1573,12 @@ to call the torture procedures if the tests should use the list in
 @var{DG_TORTURE_OPTIONS} defined in @file{gcc-dg.exp}.
 
 Most uses of torture options can override the default lists by defining
-@var{TORTURE_OPTIONS} in a @file{.dejagnurc} file.
+@var{TORTURE_OPTIONS} or add to the default list by defining
+@var{ADDITIONAL_TORTURE_OPTIONS}.  Define these in a @file{.dejagnurc}
+file or add them to the @file{site.exp} file; for example
+
+@smallexample
+set ADDITIONAL_TORTURE_OPTIONS  [list @\
+  @{ -O2 -ftree-loop-linear @} @\
+  @{ -O2 -fpeel-loops @} ]
+@end smallexample
index 198a00f2ca74f2cc58965b9f0b1f6bc4c7271b5a..76de5b93aefb67ae4d77f6dd184bda5e4a444da6 100644 (file)
@@ -1,3 +1,10 @@
+2008-11-05  Janis Johnson  <janis187@us.ibm.com>
+
+       * lib/c-torture.exp: Use ADDITIONAL_TORTURE_OPTIONS if defined.
+       * lib/gcc-dg.exp: Ditto.
+       * lib/fortran-torture.exp: Ditto.
+       * lib/objc-torture.exp: Ditto.
+
 2008-11-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        PR target/38025
index 6413b2d85ba99417f11171b1c20c81af3a051c79..bfc6a566567cfb7bd1b2ad1a650c3f4c178c7c89 100644 (file)
@@ -43,6 +43,11 @@ if [info exists TORTURE_OPTIONS] {
        { -Os } ]
 }
 
+if [info exists ADDITIONAL_TORTURE_OPTIONS] {
+    set C_TORTURE_OPTIONS \
+       [concat $C_TORTURE_OPTIONS $ADDITIONAL_TORTURE_OPTIONS]
+}
+
 global GCC_UNDER_TEST
 if ![info exists GCC_UNDER_TEST] {
     set GCC_UNDER_TEST "[find_gcc]"
index 7527a0af9c6da0f472647e8c1fd40f91bc882dda..1e92d1019117b4331d67397428249c9a65858e9a 100644 (file)
@@ -82,6 +82,10 @@ proc get-fortran-torture-options { } {
        lappend options $vectorizer_options
     }
 
+    if [info exists ADDITIONAL_TORTURE_OPTIONS] {
+       set options [concat $options $ADDITIONAL_TORTURE_OPTIONS]
+    }
+
     return $options
 }
 
index 1497ce38ed97547fc1e653cfe9d025ea02cd1bfe..5d1efbb1763f69bb6030c1e9ed6e05c47d1c6cd7 100644 (file)
@@ -53,6 +53,11 @@ if [info exists TORTURE_OPTIONS] {
        { -Os } ]
 }
 
+if [info exists ADDITIONAL_TORTURE_OPTIONS] {
+    set DG_TORTURE_OPTIONS \
+       [concat $DG_TORTURE_OPTIONS $ADDITIONAL_TORTURE_OPTIONS]
+}
+
 global GCC_UNDER_TEST
 if ![info exists GCC_UNDER_TEST] {
     set GCC_UNDER_TEST "[find_gcc]"
index 31967f4eabcea5d664bc43c27daab25387ed3c1a..0d031590cfc27601f01a6ab25ca188d9c313dcc4 100644 (file)
@@ -60,6 +60,11 @@ if [info exists TORTURE_OPTIONS] {
        " -Os " ]
 }
 
+if [info exists ADDITIONAL_TORTURE_OPTIONS] {
+  set OBJC_TORTURE_OPTIONS \
+       [concat $OBJC_TORTURE_OPTIONS $ADDITIONAL_TORTURE_OPTIONS]
+}
+
 #
 # objc-torture-compile -- runs the Tege OBJC-torture test
 #