summaryrefslogtreecommitdiffstats
path: root/gcc/ada/utils2.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-25 16:58:26 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-25 16:58:26 +0000
commit3971388f778d04d70c29c14cc0b13b6195c4c8da (patch)
treeb5e617dbc41beab543899b216efc6fdc63f80bc5 /gcc/ada/utils2.c
parentbbdcab132657970d857fefbea2b88bd1d3140e73 (diff)
downloadppe42-gcc-3971388f778d04d70c29c14cc0b13b6195c4c8da.tar.gz
ppe42-gcc-3971388f778d04d70c29c14cc0b13b6195c4c8da.zip
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/utils2.c')
-rw-r--r--gcc/ada/utils2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/utils2.c b/gcc/ada/utils2.c
index ffca59798ca..04e968ec8ad 100644
--- a/gcc/ada/utils2.c
+++ b/gcc/ada/utils2.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- *
@@ -1649,7 +1649,7 @@ build_simple_component_ref (tree record_variable, tree component,
Note that we don't need to warn since this will be done on trying
to declare the object. */
if (TREE_CODE (DECL_FIELD_OFFSET (field)) == INTEGER_CST
- && TREE_CONSTANT_OVERFLOW (DECL_FIELD_OFFSET (field)))
+ && TREE_OVERFLOW (DECL_FIELD_OFFSET (field)))
return NULL_TREE;
/* It would be nice to call "fold" here, but that can lose a type
OpenPOWER on IntegriCloud