aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/utils.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2007-01-25 16:58:26 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2007-01-25 16:58:26 +0000
commitcd259a9825b53a8eb04b4849dc7b92b293902d57 (patch)
treeb5e617dbc41beab543899b216efc6fdc63f80bc5 /gcc/ada/utils.c
parentd6efbf5a8848a406f10a68fd6cf77c03fb5859ce (diff)
downloadgcc-cd259a9825b53a8eb04b4849dc7b92b293902d57.zip
gcc-cd259a9825b53a8eb04b4849dc7b92b293902d57.tar.gz
gcc-cd259a9825b53a8eb04b4849dc7b92b293902d57.tar.bz2
decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of TREE_CONSTANT_OVERFLOW.
* decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of TREE_CONSTANT_OVERFLOW. (allocatable_size_p, annotate_value): Likewise. * trans.c (gnat_to_gnu): Likewise. * utils.c (unchecked_convert): Likewise. * utils2.c (build_simple_component_ref): Likewise. From-SVN: r121177
Diffstat (limited to 'gcc/ada/utils.c')
-rw-r--r--gcc/ada/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/utils.c b/gcc/ada/utils.c
index b5854fa..52bc663 100644
--- a/gcc/ada/utils.c
+++ b/gcc/ada/utils.c
@@ -6,7 +6,7 @@
* *
* C Implementation File *
* *
- * Copyright (C) 1992-2006, Free Software Foundation, Inc. *
+ * Copyright (C) 1992-2007, Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -3680,7 +3680,7 @@ unchecked_convert (tree type, tree expr, bool notrunc_p)
when it is false, we can rely on the fact that such conversions are
erroneous anyway. */
if (TREE_CODE (expr) == INTEGER_CST)
- TREE_OVERFLOW (expr) = TREE_CONSTANT_OVERFLOW (expr) = 0;
+ TREE_OVERFLOW (expr) = 0;
/* If the sizes of the types differ and this is an VIEW_CONVERT_EXPR,
show no longer constant. */