---
** [bugs:#137] dropping type declaration attributes**
**Status:** open
**Created:** Thu Jun 06, 2013 02:02 PM UTC by TheBeaNerd
**Last Updated:** Thu Jun 06, 2013 02:02 PM UTC
**Owner:** nobody
CIL seems to be dropping attributes on type declarations. See attached files.
(.cil output generated using cil-1.6.0 with options -c and --keepunused)
For what it is worth:
http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html
says:
"You may specify type attributes in an enum, struct or union type declaration
or definition, or for other types in a typedef declaration. "
-- test.c --
__attribute__((x)) struct foo __attribute__((y));
__attribute__((a)) struct foo {
int a;
} __attribute__((b));
-- test.cil --
/* Generated by CIL v. 1.6.0 */
/* print_CIL_Input is true */
#line 2 "test.c"
struct foo;
#line 2
struct foo;
#line 4 "test.c"
struct foo {
int a ;
} __attribute__((__b__, __a__)) ;
---
Sent from sourceforge.net because you indicated interest in
<https://sourceforge.net/p/cil/bugs/137/>
To unsubscribe from further messages, please visit
<https://sourceforge.net/auth/subscriptions/>
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
CIL-users mailing list
CIL-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cil-users