Problem with FS
leonp at plris.com
Tue Jan 16 15:05:34 UTC 2007
The RTEMS source code has many constants declared as enumerations.
Recently I had the following problem:
I add to the application compilation call flag for the gcc: - fshort-enums.
This flag makes all enums to be 8bits instead of 32bits as default. this leads
to the configuration tables in init task creation with 1 byte, while
libraries still thought about 4 bytes.
I need this because gcc-3.x does not allow to declare enums with
__attribute__((packed)), only version 4. And I (and rtems, even 4.7, yes?)
still use 3.1.
I think that this situation (which took me 2 days) may be rather common. May
be something can be done to protect rtems code from such things? Or user?
More information about the users