Problem report: Struct aliasing problem causes Thread_Ready_Chain corruption in 4.6.99.3

Ralf Corsepius ralf.corsepius at rtems.org
Tue Nov 28 15:25:47 UTC 2006


On Tue, 2006-11-28 at 09:12 -0600, Eric Norum wrote:
> In the interests of not delaying 4.7 for another year I suggest that  
> we simply add -fno-strict-aliasing to all gcc invocations.  I don't  
> see anything wrong with this approach in the near term.  As has been  
> pointed out by others, many other kernel development projects have  
> resorted to this technique.
> 
> I know that Ralf is opposed to this, but I have not heard a reason to  
> convince me.

And I have not seen any bug in RTEMS having been fixed by
-fno-strict-aliasing.

However, I've seen a lot of people bogusly accusing strict-aliasing for
code bugs, in general (Outside of RTEMS).

Please folks, please provide cases, so we can go after this. So far this
has not taken place, instead I've seen several "flare gun" approaches
having been proposed.

Ralf





More information about the users mailing list