re PR libffi/64581 (libffi/testsuite/libffi.special/special.exp doesn't use newly...
authorRichard Henderson <rth@redhat.com>
Tue, 20 Jan 2015 21:26:04 +0000 (13:26 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 20 Jan 2015 21:26:04 +0000 (13:26 -0800)
PR libffi/64581

 * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
 to C++ mode when compiling C++ source code.

From-SVN: r219915

libffi/ChangeLog
libffi/testsuite/lib/libffi.exp

index dd8d516a42ce3f18077fddc27ea50a7f14e38abe..c02ee2265742d48e776ba8540740156da14af9e6 100644 (file)
@@ -1,3 +1,9 @@
+2015-01-19  Richard Henderson  <rth@redhat.com>
+
+       PR libffi/64581
+       * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
+       to C++ mode when compiling C++ source code.
+
 2015-01-19  Richard Henderson  <rth@redhat.com>
 
        * Merge to upstream commit 3ac1610aa33c887ea9b14935208943925714a33e.
index 86ee76639b31facec9409a1d700dcc49e8eb65d1..6f865fd628666d3f7f7a7b57b3eb4eb7dc9c89e7 100644 (file)
@@ -219,10 +219,6 @@ proc libffi_target_compile { source dest type options } {
        lappend options "libs= -lpthread"
     }
 
-    if { [string match "*.cc" $source] } {
-       lappend options "c++"
-    }
-
     verbose "options: $options"
     return [target_compile $source $dest $type $options]
 }