[Bug target/94479] NetBSD: internal compiler error: in recompute_tree_invariant_for_addr_expr
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 16 12:29:56 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94479
--- Comment #12 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:0f1cf13ecee1b4f9d963426b35acb5a0625816c4
commit r9-8503-g0f1cf13ecee1b4f9d963426b35acb5a0625816c4
Author: Richard Biener <rguenther@suse.de>
Date: Tue Apr 7 16:29:37 2020 +0200
middle-end/94479 - fix gimplification of address
When gimplifying an address operand we may expose an indirect
ref via DECL_VALUE_EXPR for example. This is dealt with in the
code already but it fails to consider that INDIRECT_REFs get
gimplified to MEM_REFs.
Fixed which makes the ICE observed on x86_64-netbsd go away.
2020-04-07 Richard Biener <rguenther@suse.de>
PR middle-end/94479
* gimplify.c (gimplify_addr_expr): Also consider generated
MEM_REFs.
* gcc.dg/torture/pr94479.c: New testcase.
More information about the Gcc-bugs
mailing list