+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
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
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] "