[Bug preprocessor/59566] New: [4.8 regression] g++ preprocessor output includes comments meant for GNU C Library files

2013-12-19 Thread gdlxn at us dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59566

Bug ID: 59566
   Summary: [4.8 regression] g++ preprocessor output includes
comments meant for GNU C Library files
   Product: gcc
   Version: 4.8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: preprocessor
  Assignee: unassigned at gcc dot gnu.org
  Reporter: gdlxn at us dot ibm.com

Created attachment 31484
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31484&action=edit
Example input and output files

I've found that g++ 4.8.x preprocessor output unexpectedly includes comments
meant for GNU C Library files.

To illustrate this problem, I ran the g++ preprocessor on test.hpp using as
follows

g++ -C -E -o test-.hpp -P test.hpp

With g++ 4.7.3, this generated the expected output file.  However, with g++
4.8.0, 4.8.1, and 4.8.2 the generated output file unexpectedly contained a
number of comments meant for GNU C Library files.


[Bug preprocessor/59566] [4.8/4.9 regression] g++ preprocessor output includes comments meant for GNU C Library files

2013-12-20 Thread gdlxn at us dot ibm.com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59566

--- Comment #3 from gdlxn at us dot ibm.com ---
Richard and Jakub - Thanks for the quick response and explanation.  I was able
to use the -nostdinc option to suppress the automatic inclusion of
, which eliminates the unwanted comments.