+2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * testsuite/lib/libstdc++.exp: Include target-utils.exp.
+ (v3_target_compile): Check if test is unsupported.
+ (v3_target_compile_as_c): Likewise.
+
2014-12-11 Jason Merrill <jason@redhat.com>
* libsupc++/new (bad_array_length): Move...
load_gcc_lib timeout.exp
load_gcc_lib timeout-dg.exp
load_gcc_lib wrapper.exp
+load_gcc_lib target-utils.exp
# Useful for debugging. Pass the name of a variable and the verbosity
# threshold (number of -v's on the command line).
global cxxldflags
global includes
global STATIC_LIBCXXFLAGS
+ global tool
if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } {
lappend options "libs=${gluefile}"
lappend options "compiler=$cxx_final"
lappend options "timeout=[timeout_value]"
- return [target_compile $source $dest $type $options]
+ set comp_output [target_compile $source $dest $type $options]
+ set unsupported_message [${tool}_check_unsupported_p $comp_output]
+
+ if { $unsupported_message != "" } {
+ unsupported "$dest: $unsupported_message"
+ return ""
+ }
+ return $comp_output
}
global cc
global cxxflags
global STATIC_LIBCXXFLAGS
+ global tool
if { [target_info needs_status_wrapper] != "" && [info exists gluefile] } {
lappend options "libs=${gluefile}"
lappend options "compiler=$cc_final"
lappend options "timeout=[timeout_value]"
- return [target_compile $source $dest $type $options]
+ set comp_output [target_compile $source $dest $type $options]
+ set unsupported_message [${tool}_check_unsupported_p $comp_output]
+
+ if { $unsupported_message != "" } {
+ unsupported "$dest: $unsupported_message"
+ return ""
+ }
+ return $comp_output
}
# Build the support objects linked in with the libstdc++ tests. In