This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] handle CONST_DECL in the gimplifier
On Sun, May 11, 2003 at 12:03:15PM -0400, Jason Merrill wrote:
> A CONST_DECL should be replaced with its DECL_INITIAL.
Do you mean that this transformation has to be performed by the gimplifier,
or should it go before that?
The following solves the bug, however it is not yet bootstrapped.
* gimplify.c (simplify_expr): Replace CONST_DECL with its DECL_INITIAL.
RCS file: /cvsroot/gcc/gcc/gcc/Attic/gimplify.c,v
retrieving revision 184.108.40.206
diff -d -u -p -r220.127.116.11 gimplify.c
--- gimplify.c 7 May 2003 13:28:06 -0000 18.104.22.168
+++ gimplify.c 11 May 2003 19:31:52 -0000
@@ -468,6 +468,10 @@ simplify_expr (expr_p, pre_p, post_p, si
+ case CONST_DECL:
+ *expr_p = DECL_INITIAL (*expr_p);
/* FIXME make this a decl. */