diff options
author | Martin Liska <mliska@suse.cz> | 2018-06-21 15:53:30 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-06-21 13:53:30 +0000 |
commit | 67b3b8feb3e6a4d2bb94a66498864eef5d5b5963 (patch) | |
tree | 77f5528ae0bfc881160b2af7a9aa35ad5eeaf385 /gcc | |
parent | f5fe239ec90095b885aef70a8058fdfc03a74340 (diff) | |
download | gcc-67b3b8feb3e6a4d2bb94a66498864eef5d5b5963.zip gcc-67b3b8feb3e6a4d2bb94a66498864eef5d5b5963.tar.gz gcc-67b3b8feb3e6a4d2bb94a66498864eef5d5b5963.tar.bz2 |
IPA summaries use ::get in ipa-pure-const.c.
2018-06-21 Martin Liska <mliska@suse.cz>
* ipa-pure-const.c (propagate_nothrow): Use
funct_state_summaries->get.
(dump_malloc_lattice): Likewise.
(propagate_malloc): Likewise.
From-SVN: r261848
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/ipa-pure-const.c | 13 |
2 files changed, 14 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 829fe95..16ae0e7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-06-21 Martin Liska <mliska@suse.cz> + + * ipa-pure-const.c (propagate_nothrow): Use + funct_state_summaries->get. + (dump_malloc_lattice): Likewise. + (propagate_malloc): Likewise. + 2018-06-21 Richard Biener <rguenther@suse.de> * lto-streamer-out.c (DFS::DFS_write_tree_body): Update outdated diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index 4de609e..714239f 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -1803,7 +1803,7 @@ propagate_nothrow (void) w = node; while (w) { - funct_state w_l = funct_state_summaries->get_create (w); + funct_state w_l = funct_state_summaries->get (w); if (!can_throw && !TREE_NOTHROW (w->decl)) { /* Inline clones share declaration with their offline copies; @@ -1841,9 +1841,10 @@ dump_malloc_lattice (FILE *dump_file, const char *s) cgraph_node *node; FOR_EACH_FUNCTION (node) { - funct_state fs = funct_state_summaries->get_create (node); - malloc_state_e state = fs->malloc_state; - fprintf (dump_file, "%s: %s\n", node->name (), malloc_state_names[state]); + funct_state fs = funct_state_summaries->get (node); + if (fs) + fprintf (dump_file, "%s: %s\n", node->name (), + malloc_state_names[fs->malloc_state]); } } @@ -1881,7 +1882,7 @@ propagate_malloc (void) || !funct_state_summaries->exists (node)) continue; - funct_state l = funct_state_summaries->get_create (node); + funct_state l = funct_state_summaries->get (node); /* FIXME: add support for indirect-calls. */ if (node->indirect_calls) @@ -1932,7 +1933,7 @@ propagate_malloc (void) FOR_EACH_DEFINED_FUNCTION (node) if (funct_state_summaries->exists (node)) { - funct_state l = funct_state_summaries->get_create (node); + funct_state l = funct_state_summaries->get (node); if (!node->alias && l->malloc_state == STATE_MALLOC && !node->global.inlined_to) |