OSDN Git Service

* Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Mar 2010 22:52:02 +0000 (22:52 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 5 Mar 2010 22:52:02 +0000 (22:52 +0000)
(site.exp): Export them when plugins are enabled.
testsuite/
* lib/plugin-support.exp (plugin-test-execute): Use PLUGINCC in lieu
of HOSTCC and PLUGINCFLAGS in lieu of HOSTCFLAGS.

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

gcc/ChangeLog
gcc/Makefile.in
gcc/testsuite/ChangeLog
gcc/testsuite/lib/plugin-support.exp

index 4cbe879..9bc8167 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
+       (site.exp): Export them when plugins are enabled.
+
 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR middle-end/42326
index 125a80b..bea6cf2 100644 (file)
@@ -325,7 +325,13 @@ LIBELFINC = @LIBELFINC@
 # Set to 'yes' if the LTO front end is enabled.
 enable_lto = @enable_lto@
 
-# Libs and linker option needed for plugin support
+# Compiler needed for plugin support
+PLUGINCC = @CC@
+
+# Flags needed for plugin support
+PLUGINCFLAGS = @CFLAGS@
+
+# Libs and linker options needed for plugin support
 PLUGINLIBS = @pluginlibs@
 
 enable_plugin = @enable_plugin@
@@ -4598,6 +4604,8 @@ site.exp: ./config.status Makefile
        @echo "set HAVE_LIBSTDCXX_V3 1" >> ./tmp0
        @if test "@enable_plugin@" = "yes" ; then \
          echo "set ENABLE_PLUGIN 1" >> ./tmp0; \
+         echo "set PLUGINCC \"$(PLUGINCC)\"" >> ./tmp0; \
+         echo "set PLUGINCFLAGS \"$(PLUGINCFLAGS)\"" >> ./tmp0; \
          echo "set GMPINC \"$(GMPINC)\"" >> ./tmp0; \
        fi
        @if test "@enable_lto@" = "yes" ; then \
index dd95858..8f81bb0 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * lib/plugin-support.exp (plugin-test-execute): Use PLUGINCC in lieu
+       of HOSTCC and PLUGINCFLAGS in lieu of HOSTCFLAGS.
+
 2010-03-05  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/abi/mangle40.C: Require weak and alias.
index 79ccc93..3a7b78a 100644 (file)
@@ -63,8 +63,8 @@ proc plugin-test-execute { plugin_src plugin_tests } {
     global srcdir objdir
     global verbose
     global GMPINC
-    global HOSTCC
-    global HOSTCFLAGS
+    global PLUGINCC
+    global PLUGINCFLAGS
 
     set basename [file tail $plugin_src]
     set base [file rootname $basename]
@@ -88,9 +88,9 @@ proc plugin-test-execute { plugin_src plugin_tests } {
 
     set optstr "$includes $extra_flags -DIN_GCC -fPIC -shared"
 
-    # Temporarily switch to the environment for the host compiler.
+    # Temporarily switch to the environment for the plugin compiler.
     restore_ld_library_path_env_vars
-    set status [remote_exec build "$HOSTCC $HOSTCFLAGS $plugin_src $optstr -o $plugin_lib"]
+    set status [remote_exec build "$PLUGINCC $PLUGINCFLAGS $plugin_src $optstr -o $plugin_lib"]
     set status [lindex $status 0]
     set_ld_library_path_env_vars