aboutsummaryrefslogtreecommitdiff
path: root/gcc/alias.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2014-04-15 09:23:21 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2014-04-15 09:23:21 +0000
commite297e2eaa6e39126dd216a09dc47458824eb5d52 (patch)
tree017986e6c0b887f1af51a9d79ce4f4dce42907d4 /gcc/alias.c
parente63b36bda5085924a07cb2c57788e0e7e72c6272 (diff)
downloadgcc-e297e2eaa6e39126dd216a09dc47458824eb5d52.zip
gcc-e297e2eaa6e39126dd216a09dc47458824eb5d52.tar.gz
gcc-e297e2eaa6e39126dd216a09dc47458824eb5d52.tar.bz2
decl.c (gnat_to_gnu_entity): Create a mere scalar constant instead of a reference for renaming of scalar literal.
* gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Create a mere scalar constant instead of a reference for renaming of scalar literal. Do not create a new object for constant renaming except for a function call. Make sure a VAR_DECL is created for the renaming pointer. * gcc-interface/trans.c (constant_decl_with_initializer_p): New. (fold_constant_decl_in_expr): New function. (Identifier_to_gnu): Use constant_decl_with_initializer_p. For a constant renaming, try to fold a constant DECL in the result. (lvalue_required_p) <N_Object_Renaming_Declaration>: Always return 1. (Identifier_to_gnu): Reference the renamed object of constant renaming pointers directly. (Case_Statement_to_gnu): Do not re-fold the bounds of integer types. Assert that the case values are constant. * gcc-interface/utils.c (invalidate_global_renaming_pointers): Do not invalidate constant renaming pointers. Co-Authored-By: Pierre-Marie de Rodat <derodat@adacore.com> From-SVN: r209411
Diffstat (limited to 'gcc/alias.c')
0 files changed, 0 insertions, 0 deletions