This is the mail archive of the gcc-patches@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: Patch to allow Ada to work with tree-ssa


On Wed, Jul 28, 2004 at 11:35:24PM -0400, Richard Kenner wrote:
>     Given a volatile variable 'x', '&x' is not marked TREE_CONSTANT,
> 
> Why?  That seems wrong.  The address of a volatile variable is still
> constant.

TREE_CONSTANT != TREE_INVARIANT.

Addresses of global variables fall into the former category,
addresses of stack variables fall into the later category.

> I think the bug is that &x should be constant irrespective of the volatility
> of X.

We did.  You screwed up the test.


r~


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