[Bug middle-end/67222] [4.9/5 Regression] ICE in gimple_call_arg with bogus posix_memalign
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 17 12:51:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67222
--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu Sep 17 12:50:54 2015
New Revision: 227862
URL: https://gcc.gnu.org/viewcvs?rev=227862&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-5-branch/gcc/testsuite/gcc.dg/torture/pr67222.c
Modified:
branches/gcc-5-branch/gcc/ChangeLog
branches/gcc-5-branch/gcc/gimple-low.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/tree-ssa-alias.c
More information about the Gcc-bugs
mailing list