From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7190 invoked by alias); 29 Oct 2012 14:55:13 -0000 Received: (qmail 6220 invoked by uid 48); 29 Oct 2012 14:54:43 -0000 From: "pierre.poissinger at gmail dot com" 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:55: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: pierre.poissinger at gmail dot com X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Resolution 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" 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/msg02703.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55115 Pierre Poissinger changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |WAITING Resolution|INVALID | --- Comment #6 from Pierre Poissinger 2012-10-29 14:54:40 UTC --- (In reply to comment #2) > Adding an option just for cproto is definitely not a good idea, just fix cproto > instead. cproto use gcc via 'gcc -E' and is actually limit itself at grabbing func signature. > The right answer seems to be to create a directory of empty files > with the names of the missing headers and point GCC to it with -I then cproto > can proceed as normal, and generate replacements for the empty files. Yes - but that smells like a complex task to overcome a change of 'functionality' that was there for decades in nearly every compiler :-) > Refusing to compile when a header is missing is a huge improvement on the old > behaviour. Refuse to compile: Yes - I agree Refuse to preproc: Seems a little bit harsh... and breaks stuffs actually