[COMMITTED] Fix pr libffi/64581

Richard Henderson rth@redhat.com
Tue Jan 20 21:47:00 GMT 2015


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.

--- 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]
 }



More information about the Gcc-patches mailing list