* arc: Fix warning about redefinition of TARGET_LRA_P
@ 2014-05-01 13:02 Jan-Benedict Glaw
0 siblings, 0 replies; only message in thread
From: Jan-Benedict Glaw @ 2014-05-01 13:02 UTC (permalink / raw)
To: gcc-patches; +Cc: Joern Rennecke
[-- Attachment #1: Type: text/plain, Size: 2480 bytes --]
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>
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. */
--
Jan-Benedict Glaw jbglaw@lug-owl.de +49-172-7608481
Signature of: 17:45 <@Eimann> Hrm, das E90 hat keinen Lebenszeit Call-Time Counter mehr
the second : 17:46 <@jbglaw> Eimann: Wofür braucht man das?
17:46 <@jbglaw> Eimann: Für mich ist an 'nem Handy wichtig, daß ich mein
Gegeüber hören kann. Und daß mein Gegenüber mich versteht...
17:47 <@KrisK> jbglaw: was du meinst ist wodka.
17:47 <@KrisK> jbglaw: es klingelt und man hört stimmen
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-01 13:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-01 13:02 arc: Fix warning about redefinition of TARGET_LRA_P Jan-Benedict Glaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).