tree.c (free_lang_data_in_one_sizepos): New inline function.
commit7ef5e86ccb012a8ffb048e24d77df6d1726c1e20
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 4 May 2010 17:47:52 +0000 (4 17:47 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 4 May 2010 17:47:52 +0000 (4 17:47 +0000)
tree9c07bd40cf2fbaf22796139526d1ed47478b6791
parent6cbd3b6a699912ff879d13c0fb5ab3f4b244943f
tree.c (free_lang_data_in_one_sizepos): New inline function.

* tree.c (free_lang_data_in_one_sizepos): New inline function.
(free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
(free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
all decls.  Call it on DECL_FIELD_OFFSET of fields.
(find_decls_types_r): Follow DECL_VALUE_EXPR.
(iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.

From-SVN: r159039
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/lto1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto1_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/lto1_pkg.ads [new file with mode: 0644]
gcc/tree.c