Bug 20836 - cpp does not output '#' lines for some files
Summary: cpp does not output '#' lines for some files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: cpp
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-11-14 17:09 UTC by chris
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-11-17 10:15:27 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2000:132 0 normal SHIPPED_LIVE Bug fixing update of GCC 2.96 2000-12-19 05:00:00 UTC

Description chris 2000-11-14 17:09:19 UTC
The version of cpp included with RH7.0 doesn't output lines of the form:

# nnn "/usr/include/blahdeblah.h" n n

for any included files which don't generate output (i.e. which only contain
#defines).  Specifically, it doesn't generate such a line for
/usr/include/bits/signum.h, which breaks compilation of the latest
development version of zsh.

Comment 1 Jakub Jelinek 2000-11-15 14:00:22 UTC
What does zsh need it for? I don't think C99 mandates the preprocessor to output
them for headers not generating any output.

Comment 2 chris 2000-11-15 14:13:13 UTC
You're probably right - I couldn't say whether it's actually mandatory or not.
The issue with zsh is described at:

  http://www.zsh.org/mla/workers/2000/msg03745.html
  http://www.zsh.org/mla/workers/2000/msg03748.html

Thanks.

Comment 3 Jakub Jelinek 2000-11-17 10:15:24 UTC
Should be fixed in gcc-2.96-64.


Note You need to log in before you can comment on or make changes to this bug.