diff mbox

[COMMITTED] Fix pr libffi/64581

Message ID 54BEC8D0.6030101@redhat.com
State New
Headers show

Commit Message

Richard Henderson Jan. 20, 2015, 9:29 p.m. UTC
One of the few changes to libffi.exp that we picked up
that looked quite logical.  But I guess it turns out that
we haven't properly configured the c++ compiler in dejagnu
for libffi.

Easiest thing to do is just revert this hunk.


r~


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

Patch

--- a/libffi/testsuite/lib/libffi.exp
+++ b/libffi/testsuite/lib/libffi.exp
@@ -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]
 }