[Bug preprocessor/65387] [4.8/4.9/5 Regression] cpp -C emits extraneous comment header on every file

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 11 10:00:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65387

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-03-11
                 CC|                            |jsm28 at gcc dot gnu.org
   Target Milestone|---                         |4.8.5
            Summary|cpp -C emits extraneous     |[4.8/4.9/5 Regression] cpp
                   |comment header on every     |-C emits extraneous comment
                   |file                        |header on every file
     Ever confirmed|0                           |1

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Heh.  Does this since 4.8.  This is from stdc-predef.h we forcefully include in
each translation unit.  You can use -nostdinc to restore original behavior.

Note that this bug will likely be closed as invalid/wontfix.  OTOH the included
comment says the file is LGPL which may have issues if it gets included in
sth statically linked?  I think we should change its license to BSD/MIT.



More information about the Gcc-bugs mailing list