This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

LIBGCC2_CFLAGS


$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) in the Makefile.in in
gcc will fail whenever the included target header files clash with the
header files found in the gcc directory.  This is because the gcc
directory is included before them (via -I. from INCLUDES) when
building libgcc2.c.  :-( Well, before you say that will never happen,
we have a regs.h header that is so included and there is already a
regs.h in gcc, and when it is included by another random system
include in the include chain, things break.

The solution as near as I can tell, is to not include -I. when
building the target side, but to limit it to a smaller set, or to add
a -I{system_include_directory} before the -I..

:-(  Would be nice if this were fixed.  For now, we are adding bits to
our configuration to achieve the second solution...  Though, I don't
think this type of solution scales well.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]