(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
+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
# 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@
@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 \
+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.
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]
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