Issue Details (XML | Word | Printable)

Key: PCC-335
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
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

generating #pragma from _Pragma with preprocessor has spurious characters

Created: 26/Apr/11 09:58 AM   Updated: 26/Apr/11 05:32 PM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Environment: NetBSD/i386


 Description  « Hide
The following code

#define PRAGMA(x) _Pragma(#x)
#define PACK(x) PRAGMA(pack(x))
PACK(4)

when processed with pcc -E and passed through vis(1) shows control characters in the output

#pragma \^D\^A\^Apack(4)

and adding -Wunknown-pragmas causes a message saying that it is being ignored..

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 26/Apr/11 05:32 PM
Should be fixed now.