Patchwork Commit: MEP: Use C++ to compile mep-pragma.

login
register
mail settings
Submitter Nick Clifton
Date Aug. 17, 2012, 9:10 a.m.
Message ID <87txw1sx3p.fsf@redhat.com>
Download mbox | patch
Permalink /patch/178171/
State New
Headers show

Comments

Nick Clifton - Aug. 17, 2012, 9:10 a.m.
Hi DJ,

  I am applying the following patch as an obvious patch fix for building
  the MEP targeted port of gcc.  It fixes the build rule for
  mep-pragma.o so that is uses the C++ compiler instead of the C
  compiler.

Cheers
  Nick

gcc/ChangeLog
2012-08-17  Nick Clifton  <nickc@redhat.com>

	* config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
	mep-pragma.c.

Patch

Index: gcc/config/mep/t-mep
===================================================================
--- gcc/config/mep/t-mep	(revision 190466)
+++ gcc/config/mep/t-mep	(working copy)
@@ -30,7 +30,7 @@ 
 	coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(C_PRAGMA_H) \
 	$(CPPLIB_H) hard-reg-set.h output.h $(srcdir)/config/mep/mep-protos.h \
 	function.h insn-config.h reload.h $(TARGET_H)
-	$(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
+	$(COMPILER) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
 MULTILIB_OPTIONS = mel mall-opts mfar
 MULTILIB_DIRNAMES = el allopt far