aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-10-10 22:01:17 +0200
committerJan Hubicka <jh@suse.cz>2020-10-10 22:01:17 +0200
commit5d2cedaaa39bf1920e698e93d8fc460021aabc6d (patch)
treef56dc11d27d24059d690d0feb00df9adbc6e5f74
parent6a6c85f4e11fe8160dcb3942fc00664da4a98717 (diff)
downloadgcc-5d2cedaaa39bf1920e698e93d8fc460021aabc6d.zip
gcc-5d2cedaaa39bf1920e698e93d8fc460021aabc6d.tar.gz
gcc-5d2cedaaa39bf1920e698e93d8fc460021aabc6d.tar.bz2
Fix modref_transform ICE with more than 32 parameters.
* ipa-modref.c (modref_transform): Use reserve instead of safe_grow.
-rw-r--r--gcc/ipa-modref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index 2b561fe..4330b9e 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -1367,7 +1367,7 @@ modref_transform (struct cgraph_node *node)
auto_vec <int, 32> map;
- map.safe_grow (max + 1);
+ map.reserve (max + 1);
for (i = 0; i <= max; i++)
map.quick_push (-1);
FOR_EACH_VEC_SAFE_ELT (node->clone.param_adjustments->m_adj_params, i, p)