From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 480 invoked by alias); 5 Jan 2007 04:25:47 -0000 Received: (qmail 407 invoked by uid 48); 5 Jan 2007 04:25:36 -0000 Date: Fri, 05 Jan 2007 04:25:00 -0000 Message-ID: <20070105042536.406.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/30380] bug in cppdefault.c In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-01/txt/msg00240.txt.bz2 ------- 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