From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: dalej@apple.com Cc: gcc@gcc.gnu.org Subject: Re: how to fix anti-optimization? Date: Wed, 12 Sep 2001 15:14:00 -0000 Message-id: <20010912151445.A13526@redhat.com> References: <200109121834.LAA21595@scv1.apple.com> X-SW-Source: 2001-09/msg00489.html On Wed, Sep 12, 2001 at 11:35:00AM -0700, dalej@apple.com wrote: > The substitution is done in the ARRAY_REF case of expr.c:expand_expr(). > It looks like I could hack this by setting TREE_SIDE_EFFECTS on FP > constants, but surely that's not the right way to do it. Any better ideas? If the constant is not LEGITIMATE_CONSTANT_P, make the ARRAY_REF expand as normal, then tag the resulting memory reference with a REG_EQUAL note containing the known constant. r~