Problem report: Struct aliasing problem causes Thread_Ready_Chain corruption in

Till Straumann strauman at
Fri Dec 8 01:33:53 UTC 2006

Aaron J. Grier wrote:
> On Thu, Dec 07, 2006 at 05:13:42PM -0800, Till Straumann wrote:
>> Unless you can 'prove' that RTEMS is in compliance with the standard
>> (by carefully revising the source) we should build it with
>> -fno-strict-aliasing.
> I'll ask the obvious question: "does RTEMS wish to be C99 compliant?"
> -std=c89
> -std=gnu89
> -std=iso9899:199409
> take your pick.  (gnu89 is the default for 3.x)
As far as the alias rule goes the standard doesn't seem to matter.
A few simple examples I just tested indicate that gcc uses the
strict alias rule no matter what standard you select.

-- T.

More information about the users mailing list