From: Eric Botcazou Date: Mon, 9 Jan 2012 19:30:58 +0000 (+0000) Subject: * gcc-interface/trans.c (addressable_p) : Fix thinko. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c157c27baefcea754fcb95b1f3c6160493faaa4;p=gcc.git * gcc-interface/trans.c (addressable_p) : Fix thinko. From-SVN: r183025 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index f97fcc40a85..83019eb9eb2 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,7 @@ +2012-01-09 Eric Botcazou + + * gcc-interface/trans.c (addressable_p) : Fix thinko. + 2012-01-06 Robert Dewar * a-wichha.ads, a-wichun.ads, a-zchhan.ads, a-zchuni.ads, diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index 3640782dbc0..580b492fb70 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: