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]
Other format: [Raw text]

[Bug c/30380] bug in cppdefault.c



------- 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


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