[gcc-in-cxx] Patch committed: Use $(CXX) in more places

Ian Lance Taylor iant@google.com
Sat Jan 31 18:59:00 GMT 2009


I committed this patch to the gcc-in-cxx branch.  It changes $(CC) to
$(CXX) in more places, for files which have an explicit compilation
command, and for link commands.

This patch also includes some dependency fixes I encountered along the
way.  These turned up as I added extern "C" code and discovered that
the link still failed.  These patches could go into mainline.

Ian


2009-01-31  Ian Lance Taylor  <iant@google.com>

	* Makefile.in (xgcc$(exeext)): Link with $(CXX).
	(cpp$(exeext)): Likewise.
	(cc1-dummy$(exeext), cc1$(exeext)): Likewise.
	(collect2$(exeext)): Likewise.
	(protoize$(exeext), unprotoize$(exeext)): Likewise.
	(gcov$(exeext), gcov-dump$(exeext)): Likewise.
	(collect2.o, c-opts.o, c-cppbuiltin.o): Compile with $(CXX).
	(c-pch.o, gcc.o, gccspec.o, gcc-options.o): Likewise.
	(version.o, prefix.o, toplev.o, intl.o): Likewise.
	($(out_object_file)): Likewise.
	(libbackend.o): Likewise.
	(cppdefault.o): Likewise.
	(protoize.o, unprotoize.o): Likewise.
	* cp/Make-lang.in (g++spec.o): Likewise.
	(g++$(exeext)): Link with $(CXX).
	(cc1plus-dummy$(exeext), cc1plus$(exeext)): Likewise.
	* config/x-linux (host-linux.o): Compile with $(CXX).

	* Makefile.in (omp.low.o): Depend upon gt-omp-low.h.
	(ipa-reference.o): Depend upon gt-ipa-reference.h.
	(ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
	* cp/Make-lang.in (cp/class.o): Depend upon gt-cp-class.h.
	(cp/semantics.o): Depend upon gt-cp-semantics.h.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 14229 bytes
Desc: Use $(CXX) in more places
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090131/949c549e/attachment.bin>


More information about the Gcc-patches mailing list