PR libffi/64581
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2015 21:26:04 +0000 (21:26 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Jan 2015 21:26:04 +0000 (21:26 +0000)
 * testsuite/lib/libffi.exp (libffi_target_compile): Don't switch
 to C++ mode when compiling C++ source code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219915 138bc75d-0d04-0410-961f-82ee72b054a4

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

index dd8d516..c02ee22 100644 (file)
@@ -1,5 +1,11 @@
 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.
 
 2015-01-19  Richard Henderson  <rth@redhat.com>
index 86ee766..6f865fd 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]
 }