From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28462 invoked by alias); 29 Oct 2012 15:24:42 -0000 Received: (qmail 27912 invoked by uid 48); 29 Oct 2012 15:24:05 -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 15:24: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/msg02709.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55115 --- Comment #10 from Pierre Poissinger 2012-10-29 15:24:04 UTC --- No issues - made me smile :-) I know there are way around, just first tried the "upstream" path to see if there are any "quick" ways to ensure that we won't run into issues when we will finally use a more recent gcc. This was mostly due to thing in gcc doc that seems to indicate such problems are not "new", aka, deps gen have 'support' for "generated" header files. (except that it's pretty useless for -E type of usage since it suppress preproc out): From http://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#Preprocessor-Options -MG In conjunction with an option such as -M requesting dependency generation, -MG assumes missing header files are generated files and adds them to the dependency list without raising an error. The dependency filename is taken directly from the #include directive without prepending any path. -MG also suppresses preprocessed output, as a missing header file renders this useless. This feature is used in automatic updating of makefiles.