aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sachs <msachs@apple.com>2006-06-13 01:12:51 +0000
committerMatthew Sachs <matthewg@gcc.gnu.org>2006-06-13 01:12:51 +0000
commit2094534c2bba984c3623a0084e1e7698f35d0180 (patch)
treebd197ce0a60549ba25cccc7928608e29a6bcfdeb
parentcd431bfe129dde4c8637bd1099e36c7d57310908 (diff)
downloadgcc-2094534c2bba984c3623a0084e1e7698f35d0180.zip
gcc-2094534c2bba984c3623a0084e1e7698f35d0180.tar.gz
gcc-2094534c2bba984c3623a0084e1e7698f35d0180.tar.bz2
target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in the list of compiler flags...
* lib/target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in the list of compiler flags; this causes those flags to be checked for things like dg-skip-if. From-SVN: r114597
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/target-supports-dg.exp3
2 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bb887b3..55d6788 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-13 Matthew Sachs <msachs@apple.com>
+
+ * lib/target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in
+ the list of compiler flags; this causes those flags to be checked
+ for things like dg-skip-if.
+
2006-06-12 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/27601
diff --git a/gcc/testsuite/lib/target-supports-dg.exp b/gcc/testsuite/lib/target-supports-dg.exp
index 128ed8f..e8eac30 100644
--- a/gcc/testsuite/lib/target-supports-dg.exp
+++ b/gcc/testsuite/lib/target-supports-dg.exp
@@ -186,6 +186,7 @@ proc check_test_flags { args } {
proc check-flags { args } {
global compiler_flags
+ global TOOL_OPTIONS
# These variables are from DejaGnu's dg-test.
upvar dg-extra-tool-flags extra_tool_flags
upvar tool_flags tool_flags
@@ -198,6 +199,8 @@ proc check-flags { args } {
set compiler_flags " toolname "
append compiler_flags $extra_tool_flags
append compiler_flags $tool_flags
+ # If running a subset of the test suite, $TOOL_OPTIONS may not exist.
+ catch {append compiler_flags " $TOOL_OPTIONS "}
set dest [target_info name]
if [board_info $dest exists multilib_flags] {
append compiler_flags "[board_info $dest multilib_flags] "