Issue Details (XML | Word | Printable)

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

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

cpp: EBLOCK sync error

Created: 16/Sep/11 10:27 AM   Updated: 06/Aug/12 09:34 PM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File mesa.c (0.2 kB)

Environment: NetBSD/i386


 Description  « Hide
The following code, reduced from MesaLib code (src/mesa/drivers/dri/r200/r200_swtcl.c)

#define warning(msg, ...) do { \
    dprint((msg), ## __VA_ARGS__); \
} while(0)

#define WARN(fmt, ...) do { \
    warning((fmt), ## __VA_ARGS__); \
} while(0)

static void foo(int d)
{
    WARN("%d\n",
        d);
}

when passed to pcc -E fails with an "EBLOCK sync error"

(the original code was more complex and runs out of macro
space but that may be a secondary issue)

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 29/Jul/12 07:36 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 29/Jul/12 07:37 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Iain Hibbert made changes - 31/Jul/12 10:04 PM
Attachment mesa.c [ 10225 ]
Iain Hibbert made changes - 31/Jul/12 10:05 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Iain Hibbert made changes - 31/Jul/12 10:05 PM
Comment [ it still occurs, here :) ]
Anders Magnusson made changes - 06/Aug/12 09:34 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]