diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-01-09 19:30:58 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-01-09 19:30:58 +0000 |
commit | 3c157c27baefcea754fcb95b1f3c6160493faaa4 (patch) | |
tree | 64d24f9fee447d5488134c38aa61fff0470aa7cc /gcc/ada/gcc-interface/trans.c | |
parent | 80508c4992478622752098e1ac43cef6a30b07b1 (diff) | |
download | gcc-3c157c27baefcea754fcb95b1f3c6160493faaa4.zip gcc-3c157c27baefcea754fcb95b1f3c6160493faaa4.tar.gz gcc-3c157c27baefcea754fcb95b1f3c6160493faaa4.tar.bz2 |
* gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
From-SVN: r183025
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r-- | gcc/ada/gcc-interface/trans.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 3640782..580b492 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -6,7 +6,7 @@ * * * C Implementation File * * * - * Copyright (C) 1992-2011, Free Software Foundation, Inc. * + * Copyright (C) 1992-2012, 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- * @@ -8403,7 +8403,7 @@ addressable_p (tree gnu_expr, tree gnu_type) || DECL_ALIGN (TREE_OPERAND (gnu_expr, 1)) >= TYPE_ALIGN (TREE_TYPE (gnu_expr)))) /* The field of a padding record is always addressable. */ - || TYPE_PADDING_P (TREE_TYPE (TREE_OPERAND (gnu_expr, 0)))) + || TYPE_IS_PADDING_P (TREE_TYPE (TREE_OPERAND (gnu_expr, 0)))) && addressable_p (TREE_OPERAND (gnu_expr, 0), NULL_TREE)); case ARRAY_REF: case ARRAY_RANGE_REF: |