diff options
author | Richard Biener <rguenther@suse.de> | 2020-04-07 16:29:37 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-04-07 19:22:14 +0200 |
commit | 3d947f1f27188e3a61ba7f42399b1c348469fe13 (patch) | |
tree | 8281660a504c053f879eb006297334717cb893bc /libgcc/libgcov-util.c | |
parent | 57391ddaf39f7cb85825c32e83feb1435889da51 (diff) | |
download | gcc-3d947f1f27188e3a61ba7f42399b1c348469fe13.zip gcc-3d947f1f27188e3a61ba7f42399b1c348469fe13.tar.gz gcc-3d947f1f27188e3a61ba7f42399b1c348469fe13.tar.bz2 |
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.
Diffstat (limited to 'libgcc/libgcov-util.c')
0 files changed, 0 insertions, 0 deletions