]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lib/wrapper.exp (${tool}_maybe_build_wrapper): Allow the caller
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2007 04:39:35 +0000 (04:39 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Feb 2007 04:39:35 +0000 (04:39 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/lib/g++.exp
gcc/testsuite/lib/obj-c++.exp
gcc/testsuite/lib/wrapper.exp
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/libstdc++.exp

index acf266dd8d34d9a8f57509e64df385a4522fa716..282d205d54d22c27d79dedbff833b167ec4cea58 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 700cc5819e998c3a8dd075714a2b5e3364e028e0..5e3a09838f6e34d191cecd1e5a79fc6a15dcac30 100644 (file)
@@ -221,7 +221,7 @@ proc g++_init { args } {
        unset gluefile
     }
 
-    g++_maybe_build_wrapper "${tmpdir}/g++-testglue.o"
+    g++_maybe_build_wrapper "${tmpdir}/g++-testglue.o" "-fexceptions"
 
     if {![info exists CXXFLAGS]} {
        set CXXFLAGS ""
index 8913b3192830223711a8d4bda214913936d503ac..3927e76c0f8ee62300cf8d33929f8150c016fc08 100644 (file)
@@ -239,7 +239,7 @@ proc obj-c++_init { args } {
        unset gluefile
     }
 
-    obj-c++_maybe_build_wrapper "${tmpdir}/obj-c++-testglue.o"
+    obj-c++_maybe_build_wrapper "${tmpdir}/obj-c++-testglue.o" "-fexceptions"
 
     set ALWAYS_OBJCXXFLAGS ""
 
index 48c31e68ebe10a7fef76b75fd978817cfe468093..c61a21d70214f4393b2c65eb2ecb185d8b5d83f2 100644 (file)
 
 # 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]
+       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.
-       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 != "" } {
index ba0a40b31f1e92df784ba1c5ebfd625d595233cb..04ed3a8de03f4e6f6c2031a32a9c8fadb11dbeee 100644 (file)
@@ -1,3 +1,8 @@
+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)
index 9308fa562c37404b442fa676d94f387fa5b65ea2..3557d13637fb97d260d8267a30fa8060187abec7 100644 (file)
@@ -225,7 +225,7 @@ proc libstdc++_init { testfile } {
        v3track PCH_CXXFLAGS 2
     }
 
-    libstdc++_maybe_build_wrapper "${objdir}/testglue.o"
+    libstdc++_maybe_build_wrapper "${objdir}/testglue.o" "-fexceptions"
 }
 
 # Callback for cleanup routines.