Issue Details (XML | Word | Printable)

Key: PCC-229
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Iain Hibbert
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

pcc -C leaving ^A in output

Created: 01/Feb/11 06:30 PM   Updated: 04/Feb/11 08:27 AM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
The following code snippet

#define FOO BALLOON /* comment */
#define BAR FOO
BAR

when compiled with "pcc -C -E" produces output with an ^A (\001) character in place of the comment, eg

BALLOON ^A

which causes a lint failure in the end (lint uses -C flag)

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 04/Feb/11 08:27 AM
Fixed now. It was the expansion blocking logic that did not handle comments correctly.