aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-gimple.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-07-30 15:55:30 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-07-30 15:55:30 -0700
commit0534fa565255cf56d5771ea92522403947d4bbd4 (patch)
treeb8e5fa782f1cf0143b461a419b9a4855d6b9c559 /gcc/tree-gimple.c
parent782700d4f2d37e2ee883594032d6748aef983165 (diff)
downloadgcc-0534fa565255cf56d5771ea92522403947d4bbd4.zip
gcc-0534fa565255cf56d5771ea92522403947d4bbd4.tar.gz
gcc-0534fa565255cf56d5771ea92522403947d4bbd4.tar.bz2
gimplify.c (gimplify_expr): Don't replace with DECL_INITIAL if fb_lvalue.
* gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace with DECL_INITIAL if fb_lvalue. * tree-gimple.c (is_gimple_id): Add CONST_DECL. * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL with <Cxxx>. * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL. fortran/ * trans-expr.c (gfc_conv_expr_reference): Create a CONST_DECL for TREE_CONSTANTs. testsuite/ * gfortran.fortran-torture/execute/intrinsic_rrspacing.f90: Fix write to constant argument. * gfortran.fortran-torture/execute/intrinsic_scale.f90: Likewise. From-SVN: r85365
Diffstat (limited to 'gcc/tree-gimple.c')
-rw-r--r--gcc/tree-gimple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-gimple.c b/gcc/tree-gimple.c
index 4f26a08..413395a 100644
--- a/gcc/tree-gimple.c
+++ b/gcc/tree-gimple.c
@@ -413,6 +413,7 @@ is_gimple_id (tree t)
return (is_gimple_variable (t)
|| TREE_CODE (t) == FUNCTION_DECL
|| TREE_CODE (t) == LABEL_DECL
+ || TREE_CODE (t) == CONST_DECL
/* Allow string constants, since they are addressable. */
|| TREE_CODE (t) == STRING_CST);
}