to set options for compiling testglue.
* lib/g++.exp (g++_init): Compile testglue with -fexceptions.
* lib/obj-c++.exp (obj-c++_init): Likewise.
* testsuite/lib/libstdc++.exp (libstdc++_init): Compile testglue
with -fexceptions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122217
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-02-21 Mark Mitchell <mark@codesourcery.com>
+
+ * lib/wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller
+ to set options for compiling testglue.
+ * lib/g++.exp (g++_init): Compile testglue with -fexceptions.
+ * lib/obj-c++.exp (obj-c++_init): Likewise.
+
2007-02-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/derived_aggregate.adb: New test.
2007-02-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/derived_aggregate.adb: New test.
- g++_maybe_build_wrapper "${tmpdir}/g++-testglue.o"
+ g++_maybe_build_wrapper "${tmpdir}/g++-testglue.o" "-fexceptions"
if {![info exists CXXFLAGS]} {
set CXXFLAGS ""
if {![info exists CXXFLAGS]} {
set CXXFLAGS ""
- obj-c++_maybe_build_wrapper "${tmpdir}/obj-c++-testglue.o"
+ obj-c++_maybe_build_wrapper "${tmpdir}/obj-c++-testglue.o" "-fexceptions"
set ALWAYS_OBJCXXFLAGS ""
set ALWAYS_OBJCXXFLAGS ""
# This file contains GCC-specifics for status wrappers for test programs.
# This file contains GCC-specifics for status wrappers for test programs.
-# ${tool}_maybe_build_wrapper -- Build wrapper object if the target needs it.
+# ${tool}_maybe_build_wrapper -- Build wrapper object if the target
+# needs it. FILENAME is the path to the wrapper file. If there are
+# additional arguments, they are command-line options to provide to
+# the compiler when compiling FILENAME.
-proc ${tool}_maybe_build_wrapper { filename } {
+proc ${tool}_maybe_build_wrapper { filename args } {
global gluefile wrap_flags
if { [target_info needs_status_wrapper] != "" \
&& [target_info needs_status_wrapper] != "0" \
&& ![info exists gluefile] } {
set saved_wrap_compile_flags [target_info wrap_compile_flags]
global gluefile wrap_flags
if { [target_info needs_status_wrapper] != "" \
&& [target_info needs_status_wrapper] != "0" \
&& ![info exists gluefile] } {
set saved_wrap_compile_flags [target_info wrap_compile_flags]
+ set flags [join $args " "]
# The wrapper code may contain code that gcc objects on. This
# became true for dejagnu-1.4.4. The set of warnings and code
# that gcc objects on may change, so just make sure -w is always
# passed to turn off all warnings.
# The wrapper code may contain code that gcc objects on. This
# became true for dejagnu-1.4.4. The set of warnings and code
# that gcc objects on may change, so just make sure -w is always
# passed to turn off all warnings.
- set_currtarget_info wrap_compile_flags "$saved_wrap_compile_flags -w"
+ set_currtarget_info wrap_compile_flags \
+ "$saved_wrap_compile_flags -w $flags"
set result [build_wrapper $filename]
set_currtarget_info wrap_compile_flags "$saved_wrap_compile_flags"
if { $result != "" } {
set result [build_wrapper $filename]
set_currtarget_info wrap_compile_flags "$saved_wrap_compile_flags"
if { $result != "" } {
+2007-02-20 Mark Mitchell <mark@codesourcery.com>
+
+ * testsuite/lib/libstdc++.exp (libstdc++_init): Compile testglue
+ with -fexceptions.
+
2007-02-20 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (partial)
2007-02-20 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/28080 (partial)
- libstdc++_maybe_build_wrapper "${objdir}/testglue.o"
+ libstdc++_maybe_build_wrapper "${objdir}/testglue.o" "-fexceptions"
}
# Callback for cleanup routines.
}
# Callback for cleanup routines.