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: stick addressable constants into the constant pool


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


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