help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CPP bug in GCC-3.0.3


From: Robert F. Baptista
Subject: CPP bug in GCC-3.0.3
Date: Fri, 11 Jan 2002 18:28:51 -0500

My problem is with GC-3.0.3 on Solaris 8
 
If you have a non-blank first line (that is not a directive), followed by
a directive (such as #include), the CRs are left off.
 
file1: 
line1
#include "file2"
line5
 
file2:
line2
line3
line4
 
when running cpp -P file1, I get this result:
line1line2
line3
line4line5
 
If I put a blank line or a directive on line1 of file1 then the behavior is correct:
 
file1:
#define test 1
line1
#include "file2"
line5
 
the output is:
 
line1
line2
line3
line4
line5
 
It takes 1.5 hours to do a full build/install on Solaris 8 so it's hard to make changes
and debug.  If I had a PC version, it would probably compile in less than a minute and
I could debug it, find the problem and update the Solaris install.
 
If someone has an answer on where to hack cppmain.c please send
it to me at robert.baptista@dsg-inc.com
 
thanks,
Robert
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]