|
From: | Vladimir Vissoultchev |
Subject: | [Tinycc-devel] Attributes position on structs/unions |
Date: | Wed, 6 Apr 2016 21:03:17 +0300 |
https://github.com/wqweto/tinycc/commit/0691b7630b89bf3de5f7691802cb923bd7c1fd99 A small fix for compat w/ gcc which allows `attributes` both to prefix and postfix type declaration like this: typedef union Unaligned16a { uint16_t u; uint8_t b[2]; } __attribute__((packed)) Unaligned16a; typedef union __attribute__((packed)) Unaligned16b { uint16_t u; uint8_t b[2]; } Unaligned16b; This failing sample included in tests. cheers, </wqw> |
[Prev in Thread] | Current Thread | [Next in Thread] |