From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5353 invoked by alias); 29 Oct 2012 14:54:09 -0000 Received: (qmail 3864 invoked by uid 48); 29 Oct 2012 14:53:29 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/55115] [>=4.5.0 regression] missing headers as fatal breaks cproto logic Date: Mon, 29 Oct 2012 14:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-10/txt/msg02702.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55115 --- Comment #5 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2012-10-29 14:53:24 UTC --- (In reply to comment #3) >=20 > Now - myfuncs.h being auto generated, during first build, prototyping wil= l fail > quickly due to "Missing headers"...=20 > This create some kind of a "Chicken/Egg" problem :-) So do "touch myfuncs.h" before the first file is built. Or invoke gcc -E in= a temp file for which you comment out the #include "myfuncs.h". Or make cprot= o do any of this automatically. Or even better, use libClang to do what you want instead of parsing GCC errors, which are likely to change in unexpected ways.