[Bug c/99224] [9 Regression] ICE in location_wrapper_p, at tree.h:4052
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 12 11:23:44 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99224
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:c7712377876cb7e6c3ca3ce479245c6386dfc9a6
commit r9-9342-gc7712377876cb7e6c3ca3ce479245c6386dfc9a6
Author: Richard Biener <rguenther@suse.de>
Date: Wed Feb 24 09:18:05 2021 +0100
c/99224 - avoid ICEing on invalid __builtin_next_arg
This avoids crashes with __builtin_next_arg on non-parameters. For
the specific testcase we arrive with an anonymous SSA_NAME so that
SSA_NAME_VAR becomes NULL and we crash.
2021-02-24 Richard Biener <rguenther@suse.de>
PR c/99224
* builtins.c (fold_builtin_next_arg): Avoid NULL arg.
* gcc.dg/pr99224.c: New testcase.
(cherry picked from commit 084963dcaca2f0836366fdb001561e29ecbfb483)
More information about the Gcc-bugs
mailing list