aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2010-10-25 17:26:04 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2010-10-25 17:26:04 +0000
commit8c211c83bba629be6318b5b3fba7137cf633ef9a (patch)
tree579321e1bafe5b6bd421b4622738b3e8515093cd /gcc/ada
parent570f4691719a51481deae0109e358a605dd35604 (diff)
downloadgcc-8c211c83bba629be6318b5b3fba7137cf633ef9a.zip
gcc-8c211c83bba629be6318b5b3fba7137cf633ef9a.tar.gz
gcc-8c211c83bba629be6318b5b3fba7137cf633ef9a.tar.bz2
decl.c (gnat_to_gnu_entity): Do not set TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template. From-SVN: r165925
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/gcc-interface/decl.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index cf21c37..4ae15c6 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
+
+ * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
+ TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
+
2010-10-25 Jose Ruiz <ruiz@adacore.com>
* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
diff --git a/gcc/ada/gcc-interface/decl.c b/gcc/ada/gcc-interface/decl.c
index 8a284ea..b7fe778 100644
--- a/gcc/ada/gcc-interface/decl.c
+++ b/gcc/ada/gcc-interface/decl.c
@@ -1942,7 +1942,6 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
gnu_template_reference
= build_unary_op (INDIRECT_REF, gnu_template_type, tem);
TREE_READONLY (gnu_template_reference) = 1;
- TREE_THIS_NOTRAP (gnu_template_reference) = 1;
/* Now create the GCC type for each index and add the fields for that
index to the template. */