This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why doesn't combine like volatiles? (volatile_ok again, sorry!)


Laurent GUERBY wrote:
On Mon, 2005-11-28 at 14:10 +0100, Paolo Bonzini wrote:

Then, I don't know if it would be legal to optimize

  struct r {
    unsigned int x : 7;
    volatile unsigned int y : 1;
  };

struct r my_reg;

So that my_reg.x is accessed with a non-volatile mem, and my_reg.y is accessed with a volatile one. Would such an optimization be possible within the Ada compile-time rules?

There is no analogous declaration possible in Ada.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]