[Ada] Fix bugs with volatile and components of aggregate types

Duncan Sands baldrick@free.fr
Sun Jun 19 18:01:00 GMT 2011


Hi Eric,

> This is the usual problem of volatile accesses not preserved under (heavy)
> optimization.  In Ada, we can put pragma Volatile on components of composite
> types without putting it on the enclosing type itself,

if T is a non-volatile composite type with volatile components, and O is an
object of type T, are the optimizers allowed to remove the assignment "O := O"?

Ciao, Duncan.



More information about the Gcc-patches mailing list