Issue Details (XML | Word | Printable)

Key: PCC-155
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Anders Magnusson
Reporter: Detlef Riekenberg
Votes: 0
Watchers: 0
Operations

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

pcc failed to compile linux/socket.h (__alignof__ not supported)

Created: 15/Jun/10 12:16 PM   Updated: 16/Jun/10 09:51 AM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File socket-E.c (0.4 kB)
2. File socket.c (0.1 kB)
3. File socket_pcc-E.c (0.4 kB)

Environment: ubuntu 10.04 / i386


 Description  « Hide
linux/socket.h use __attribute__ ((aligned((__alignof__ (struct sockaddr *)))));
that works with gcc, but failed to compile with pcc.

related gcc online doc:
http://gcc.gnu.org/onlinedocs/gcc/Alignment.html

example code (socket.c) and preprocessed version (socket-E.c) attached
(The preprocessed version from pcc look ugly with the flood of empty lines)
 
--
By by ... Detlef


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 16/Jun/10 09:51 AM
Added alignof + let that keyword pass through when parsing attributes.