This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/55115] [>=4.5.0 regression] missing headers as fatal breaks cproto logic
- From: "pierre.poissinger at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 29 Oct 2012 14:59:51 +0000
- Subject: [Bug preprocessor/55115] [>=4.5.0 regression] missing headers as fatal breaks cproto logic
- Auto-submitted: auto-generated
- References: <bug-55115-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55115
--- Comment #7 from Pierre Poissinger <pierre.poissinger at gmail dot com> 2012-10-29 14:59:51 UTC ---
(In reply to comment #4)
> That seems an odd way to generate missing declarations. Missing headers may
> lead to different code being compiled because of undefined macros, feature test
> macros, pragmas, etc.
We don't compile...
Prototyping only use the preproc result to retrieve function signatures.
When compilation do occurs - headers have been generated and all is fine...
> If the header is missing, then ignoring the error will produce exactly the same
> result as commenting out the #include.
Yes - but that mean to hack around to bypass a "good" idea..
> Anyway, not a bug.
That's why I say "regression" (it is) and "enhancement" :-)