]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 9 Jan 2012 19:31:14 +0000 (19:31 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Mon, 9 Jan 2012 19:31:14 +0000 (19:31 +0000)
From-SVN: r183026

gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c

index 6b52cbfab08a907a59ae1392c90cbe2846c44b7d..fa04c33ac473cc93b6b860ffb8d2c26d267ad08e 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (addressable_p) <COMPONENT_REF>: Fix thinko.
+
 2012-01-02  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnatvsn.ads (Current_Year): Bump to 2011.
index 29253958d37396a4caa3f96abfe28ae6e50f1577..e84ff3652cc45561e322483f98e3dc4eb072d998 100644 (file)
@@ -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- *
@@ -7409,7 +7409,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: