Andrea Pinski <[email protected]> writes: > Hmm, I am trying to figure out why is this needed. > target.def is only included once in target.h. > Are you changing that? > Or is it because you include target.h after c-target.h ?
Indeed, that's precisely why:
g++ -std=c++14 -fno-PIE -c -DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -fno-PIE -I.
-Ic-family -I../../gcc/gcc -I../../gcc/gcc/c-family -I../../gcc/gcc/../include
-I../../gcc/gcc/../libcpp/include -I../../gcc/gcc/../libcody
-I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid
-I../libdecnumber -I../../gcc/gcc/../libbacktrace -o c-family/c-format.o -MT
c-family/c-format.o -MMD -MP -MF c-family/.deps/c-format.TPo
../../gcc/gcc/c-family/c-format.cc
In file included from ../../gcc/gcc/target.h:336,
from ../../gcc/gcc/c-family/c-common.h:47,
from ../../gcc/gcc/c-family/c-format.cc:25:
../../gcc/gcc/target.def:32:9: warning: ‘HOOK_PREFIX’ redefined
32 | #define HOOK_PREFIX "TARGET_ASM_"
| ^~~~~~~~~~~
In file included from ../../gcc/gcc/c-family/c-target.h:30,
from ../../gcc/gcc/c-family/c-format.cc:24:
../../gcc/gcc/c-family/c-target.def:28:9: note: this is the location of the
previous definition
28 | #define HOOK_PREFIX "TARGET_"
| ^~~~~~~~~~~
--
Arsen Arsenović
signature.asc
Description: PGP signature
