aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/utils2.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-03-09 09:28:02 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-03-09 09:28:02 +0000
commit0d7de0e10b5ca459aecadd115cd818e161c3db3f (patch)
tree118dcac148376d9060365be8e9e9370aa8d37894 /gcc/ada/gcc-interface/utils2.c
parent210ac0b75b991788e1de7989fe7ea6d86bf41ab3 (diff)
downloadgcc-0d7de0e10b5ca459aecadd115cd818e161c3db3f.zip
gcc-0d7de0e10b5ca459aecadd115cd818e161c3db3f.tar.gz
gcc-0d7de0e10b5ca459aecadd115cd818e161c3db3f.tar.bz2
ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around.
* gcc-interface/ada-tree.h (TYPE_VAX_FLOATING_POINT_P): Move around. (TYPE_UNCONSTRAINED_ARRAY): Adjust comment. * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Tidy up. Add comment and use canonical predicate for thin pointers. (gnat_to_gnu) <N_Free_Statement>: Tidy up and reorder. Add comment and use canonical predicate for thin pointers. * gcc-interface/utils.c (convert_to_fat_pointer): Remove superfluous 'else' and use standard name. (convert_to_thin_pointer): Delete. (convert) <POINTER_TYPE>: Do the difference in sizetype directly and change obsolete idioms. Do not call above function. (unchecked_convert): Fix formatting. * gcc-interface/utils2.c (build_unary_op) <INDIRECT_REF>: In the thin pointer case, use byte_position to get the field position. From-SVN: r185132
Diffstat (limited to 'gcc/ada/gcc-interface/utils2.c')
-rw-r--r--gcc/ada/gcc-interface/utils2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c
index 332d730..79c5a1f 100644
--- a/gcc/ada/gcc-interface/utils2.c
+++ b/gcc/ada/gcc-interface/utils2.c
@@ -1398,7 +1398,7 @@ build_unary_op (enum tree_code op_code, tree result_type, tree operand)
if (TREE_CODE (operand) == POINTER_PLUS_EXPR
&& integer_zerop
(size_binop (PLUS_EXPR, TREE_OPERAND (operand, 1),
- DECL_FIELD_OFFSET (TYPE_FIELDS (rec_type))))
+ byte_position (TYPE_FIELDS (rec_type))))
&& TREE_CODE (TREE_OPERAND (operand, 0)) == NOP_EXPR)
{
operand = TREE_OPERAND (TREE_OPERAND (operand, 0), 0);