From 144359af8d31d3e29ce0771361d41594f251d1b9 Mon Sep 17 00:00:00 2001 From: ebotcazou Date: Sat, 15 May 2010 19:05:06 +0000 Subject: [PATCH] * gimple.h (compare_field_offset): Rename into... (gimple_compare_field_offset): ...this. * gimple.c (compare_field_offset): Rename into... (gimple_compare_field_offset): ...this. Compare the full access if the offset is self-referential. (gimple_types_compatible_p): Adjust for above renaming. * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the DECL_NONADDRESSABLE_P flag of fields before merging them. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159438 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 11 +++++++++++ gcc/gimple.h | 2 +- gcc/testsuite/ChangeLog | 6 ++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 05a01ab95ef..61d08427dca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,14 @@ +2010-05-15 Eric Botcazou + + * gimple.h (compare_field_offset): Rename into... + (gimple_compare_field_offset): ...this. + * gimple.c (compare_field_offset): Rename into... + (gimple_compare_field_offset): ...this. Compare the full access if + the offset is self-referential. + (gimple_types_compatible_p): Adjust for above renaming. + * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the + DECL_NONADDRESSABLE_P flag of fields before merging them. + 2010-05-15 Nathan Froyd * tree.h (ctor_to_list): Delete. diff --git a/gcc/gimple.h b/gcc/gimple.h index e9d21a99c73..d54550c2694 100644 --- a/gcc/gimple.h +++ b/gcc/gimple.h @@ -954,7 +954,7 @@ extern bool is_gimple_call_addr (tree); extern tree get_call_expr_in (tree t); extern void recalculate_side_effects (tree); -extern bool compare_field_offset (tree, tree); +extern bool gimple_compare_field_offset (tree, tree); extern tree gimple_register_type (tree); extern void print_gimple_types_stats (void); extern void free_gimple_type_tables (void); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 441b2a4f608..1ce44f0c05c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-05-15 Eric Botcazou + + * gnat.dg/lto9.adb: New test. + * gnat.dg/lto9_pkg1.ads: New helper. + * gnat.dg/lto9_pkg2.ad[sb]: Likewise. + 2010-05-15 Jan Hubicka * gcc.dg/lto/ipareference_1.c: Rename to ... -- 2.11.0