This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/30380] bug in cppdefault.c
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jan 2007 04:25:36 -0000
- Subject: [Bug c/30380] bug in cppdefault.c
- References: <bug-30380-10443@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-01-05 04:25 -------
"include" is 7 characters which is what the -8 is for as I understand it.
I think you mishacked the cppdefault.c.
What is passed to cppdefault always includes "include":
-DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
So I think you are incorrect in setting it not to include "include".
So we always compare against - the include too:
if (!strncmp (p->fname, cpp_GCC_INCLUDE_DIR, len))
Also we need to have the include part for cpp_include_default:
#ifdef GCC_INCLUDE_DIR
/* This is the dir for fixincludes and for gcc's private headers. */
{ GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 },
#endif
so you mishacked the compiler.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30380