From f8be51697f4b0d8116d4f4264b5891f64324f10e Mon Sep 17 00:00:00 2001
From: Joern Rennecke <joern.rennecke@embecosm.com>
Date: Tue, 26 Feb 2013 14:55:31 +0000
Subject: [PATCH] re PR target/54662 (Wrong warning flags for building
 mep-pragma.o, fails to build)

        PR target/54662
        * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
        ALL_CFLAGS.

From-SVN: r196291
---
 gcc/ChangeLog        | 4 ++++
 gcc/config/mep/t-mep | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c245470e447b..7ea63ecce82f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -28,6 +28,10 @@
 	(arm_block_move_unaligned_straight): Likewise.
 	(arm_adjust_block_mem): Likewise.
 
+	PR target/54662
+	* config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
+	ALL_CFLAGS.
+
 2013-02-26  Marek Polacek  <polacek@redhat.com>
 
 	PR tree-optimization/56426
diff --git a/gcc/config/mep/t-mep b/gcc/config/mep/t-mep
index 7e0321c98c78..b877b950dea3 100644
--- a/gcc/config/mep/t-mep
+++ b/gcc/config/mep/t-mep
@@ -29,7 +29,7 @@ mep-pragma.o: $(srcdir)/config/mep/mep-pragma.c $(CONFIG_H) $(SYSTEM_H) \
 	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)
-	$(COMPILER) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
+	$(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $<
 
 MULTILIB_OPTIONS = mel mall-opts mfar
 MULTILIB_DIRNAMES = el allopt far
-- 
GitLab