From: Matthew Sachs Date: Tue, 13 Jun 2006 01:12:51 +0000 (+0000) Subject: target-supports-dg.exp (check-flags): Include TOOL_OPTIONS in the list of compiler... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2094534c2bba984c3623a0084e1e7698f35d0180;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bb887b3cd89..55d6788198f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2006-06-13 Matthew Sachs + + * 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 PR c++/27601 diff --git a/gcc/testsuite/lib/target-supports-dg.exp b/gcc/testsuite/lib/target-supports-dg.exp index 128ed8fd93b..e8eac300e69 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] "