[PATCH] C undefined behavior fix

dewar@gnat.com dewar@gnat.com
Wed Jan 9 02:57:00 GMT 2002


<<This is especially true as it is a nuisance for some uses of "volatile" that
were intended by the standard (as is clear in notes refering to the use of
volatile for memory mapped IO) and are broken by this optimization.
>>

Right, of course this optimization should only be done if the compiler can
prove that no other volatile objects are accessed (that would also violate
the corresponding rule in the Ada standard).



More information about the Gcc mailing list