re PR middle-end/67222 (ICE in gimple_call_arg with bogus posix_memalign)
authorMarek Polacek <polacek@redhat.com>
Tue, 18 Aug 2015 13:41:27 +0000 (13:41 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 18 Aug 2015 13:41:27 +0000 (13:41 +0000)
commit41dd7cf7479cd0051e4a7baa7e680d7bb02af331
tree0e5342264c77f1513865bd33dd1eb5a9dcb91b25
parentec8a2131b6a1384c71a69eb0ca24b234621437b6
re PR middle-end/67222 (ICE in gimple_call_arg with bogus posix_memalign)

PR middle-end/67222
* gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
if the call isn't valid.
* tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
gimple_call_builtin_p.
(call_may_clobber_ref_p_1): Likewise.
(stmt_kills_ref_p): Likewise.

* gcc.dg/torture/pr67222.c: New test.

From-SVN: r226969
gcc/ChangeLog
gcc/gimple-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr67222.c [new file with mode: 0644]
gcc/tree-ssa-alias.c