This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/34205] iwmmxt type/size error



------- Comment #8 from raj dot khem at gmail dot com  2007-11-28 00:11 -------
(In reply to comment #7)
> s/int//. The enumerated type is implementation defined but shall be capable to
> represent the values of all members.

Exactly and gcc for arm uses this definition to its advantage so that it can
save some size.

> 
> I'd read this as -fshort-enum violating that ":16"?
> 

GCC can smartly chose type based on enum values for size reasons and it will
choose the smallest type that can represent the enum. In this testcase enum can
be represented by a char.
with
__extension__ enum tree_code code:16 

The testcase is asking for the bit-fields which are not defined for the enum
type that gcc has chosen So I think error is ok here.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34205


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]