This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: stick addressable constants into the constant pool
- From: Jason Merrill <jason at redhat dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, fortran at gcc dot gnu dot org
- Date: Mon, 02 Aug 2004 14:06:05 -0400
- Subject: Re: stick addressable constants into the constant pool
- References: <20040730230653.GA27003@redhat.com>
On Fri, 30 Jul 2004 16:06:53 -0700, Richard Henderson <rth@redhat.com> wrote:
> case CONST_DECL:
> - *expr_p = DECL_INITIAL (*expr_p);
> + /* If we require an lvalue, such as for ADDR_EXPR, retain the
> + CONST_DECL node. Otherwise the decl is replacable by its
> + value. */
> + /* ??? Should be == fb_lvalue, but ADDR_EXPR passes fb_either. */
IIRC it uses fb_either because we can take the address of struct rvalues.
Jason