Bug 20836

Summary: cpp does not output '#' lines for some files
Product: [Retired] Red Hat Linux Reporter: chris
Component: cppAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: chris
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-11-17 10:15:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.