diff mbox

arc: Fix warning about redefinition of TARGET_LRA_P

Message ID 20140501130246.GN20482@lug-owl.de
State New
Headers show

Commit Message

Jan-Benedict Glaw May 1, 2014, 1:02 p.m. UTC
Hi!

The attached patch (committed as obvious) fixes this warning (see eg.
build http://toolchain.lug-owl.de/buildbot/show_build_details.php?id=214621):

g++ -c   -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -I. -I. -I/home/vaxbuild/repos/gcc/gcc -I/home/vaxbuild/repos/gcc/gcc/. -I/home/vaxbuild/repos/gcc/gcc/../include -I/home/vaxbuild/repos/gcc/gcc/../libcpp/include  -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libdecnumber/dpd -I../libdecnumber -I/home/vaxbuild/repos/gcc/gcc/../libbacktrace    -o arc.o -MT arc.o -MMD -MP -MF ./.deps/arc.TPo /home/vaxbuild/repos/gcc/gcc/config/arc/arc.c
/home/vaxbuild/repos/gcc/gcc/config/arc/arc.c:553:0: warning: "TARGET_LRA_P" redefined [enabled by default]
 #define TARGET_LRA_P arc_lra_p
 ^
In file included from ./tm.h:14:0,
                 from /home/vaxbuild/repos/gcc/gcc/config/arc/arc.c:34:
./options.h:4220:0: note: this is the location of the previous definition
 #define TARGET_LRA_P(target_flags) ((target_flags & MASK_LRA) != 0)
 ^




2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

	* config/arc/arc.c (TARGET_LRA_P): Undef before redefine.

 
 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
diff mbox

Patch

Index: config/arc/arc.c
===================================================================
--- config/arc/arc.c	(revision 209978)
+++ config/arc/arc.c	(working copy)
@@ -550,6 +550,7 @@ 
 
 #define TARGET_INSN_LENGTH_PARAMETERS arc_insn_length_parameters
 
+#undef TARGET_LRA_P
 #define TARGET_LRA_P arc_lra_p
 #define TARGET_REGISTER_PRIORITY arc_register_priority
 /* Stores with scaled offsets have different displacement ranges.  */