re PR tree-optimization/45623 (GCC 4.5.[01] breaks our ffi on Linux64. ABI break?)
authorRichard Guenther <rguenther@suse.de>
Thu, 16 Sep 2010 11:06:25 +0000 (11:06 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Sep 2010 11:06:25 +0000 (11:06 +0000)
commited6c4831a9aca4764b45734ae31c9f6e8eac4cac
tree0668baf35a808838597ae97ba541f699d53e4a0e
parentff802fa1f343ad103f939306af07337d9562f1f3
re PR tree-optimization/45623 (GCC 4.5.[01] breaks our ffi on Linux64. ABI break?)

2010-09-16  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/45623
* tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
(get_constraint_for_component_ref): If computing a constraint
for the rhs handle type punning through unions.
(get_constraint_for_address_of): Adjust.
(get_constraint_for_1): Likewise.
(get_constraint_for): Likewise.
(get_constraint_for_rhs): New function.
(do_structure_copy): Adjust.
(make_constraint_to): Likewise.
(handle_const_call): Likewise.
(find_func_aliases): Likewise.
(process_ipa_clobber): Likewise.
(create_variable_info_for): Likewise.

* gcc.dg/torture/pr45623.c: New testcase.

From-SVN: r164333
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr45623.c [new file with mode: 0644]
gcc/tree-ssa-structalias.c