From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14135 invoked by alias); 31 Oct 2012 22:46:33 -0000 Received: (qmail 14032 invoked by uid 48); 31 Oct 2012 22:46:10 -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: Wed, 31 Oct 2012 22:46: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: 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/msg03011.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55115 --- Comment #11 from Pierre Poissinger 2012-10-31 22:46:07 UTC --- Created attachment 28588 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28588 Don't treat missing headers as fatal error if only preproc Following patch allows preproc only (-E) to not treat missing headers as a fatal error - a non-fatal error will be raised, as pre-4.5, for that specific case. In addition: * Updated 2 cpp testcases (include2.c/include2a.c) to use "compile" instead of preproc, so 'terminated' test can be checked * Added a new cpp testcase (include2b.c) to check preproc will return 'missing header' error, but does not stop preproc Notes: - Patch is done on gcc-4_7-branch - Did not spot any difference with check-gcc before/after patch [expect additional testcase] - Seems to fix my cproto issues