public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-109] Remove dead code.
@ 2022-05-04 12:50 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-05-04 12:50 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0aa9aa76bbf53213fb60ad36bd999726dc75aa98
commit r13-109-g0aa9aa76bbf53213fb60ad36bd999726dc75aa98
Author: Martin Liska <mliska@suse.cz>
Date: Wed May 4 14:48:53 2022 +0200
Remove dead code.
gcc/ChangeLog:
* gengtype-state.cc (read_a_state_token): Remove dead code.
* ipa-profile.cc (ipa_profile_read_summary_section): Likewise.
Diff:
---
gcc/gengtype-state.cc | 22 +++++++++++-----------
gcc/ipa-profile.cc | 1 -
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/gcc/gengtype-state.cc b/gcc/gengtype-state.cc
index ea566af3249..dfd9ea52785 100644
--- a/gcc/gengtype-state.cc
+++ b/gcc/gengtype-state.cc
@@ -473,43 +473,43 @@ read_a_state_token (void)
{
case 'a':
obstack_1grow (&bstring_obstack, '\a');
- c = getc (state_file);
+ getc (state_file);
break;
case 'b':
obstack_1grow (&bstring_obstack, '\b');
- c = getc (state_file);
+ getc (state_file);
break;
case 't':
obstack_1grow (&bstring_obstack, '\t');
- c = getc (state_file);
+ getc (state_file);
break;
case 'n':
obstack_1grow (&bstring_obstack, '\n');
- c = getc (state_file);
+ getc (state_file);
break;
case 'v':
obstack_1grow (&bstring_obstack, '\v');
- c = getc (state_file);
+ getc (state_file);
break;
case 'f':
obstack_1grow (&bstring_obstack, '\f');
- c = getc (state_file);
+ getc (state_file);
break;
case 'r':
obstack_1grow (&bstring_obstack, '\r');
- c = getc (state_file);
+ getc (state_file);
break;
case '"':
obstack_1grow (&bstring_obstack, '\"');
- c = getc (state_file);
+ getc (state_file);
break;
case '\\':
obstack_1grow (&bstring_obstack, '\\');
- c = getc (state_file);
+ getc (state_file);
break;
case ' ':
obstack_1grow (&bstring_obstack, ' ');
- c = getc (state_file);
+ getc (state_file);
break;
case 'x':
{
@@ -520,7 +520,7 @@ read_a_state_token (void)
fatal_reading_state
(NULL_STATE_TOKEN,
"Lexical error in string hex escape");
- c = getc (state_file);
+ getc (state_file);
break;
}
default:
diff --git a/gcc/ipa-profile.cc b/gcc/ipa-profile.cc
index ffdcb4476e8..b74d77f2c95 100644
--- a/gcc/ipa-profile.cc
+++ b/gcc/ipa-profile.cc
@@ -481,7 +481,6 @@ ipa_profile_read_summary_section (struct lto_file_decl_data *file_data,
for (i = 0; i < count; i++)
{
index = streamer_read_uhwi (ib);
- encoder = file_data->symtab_node_encoder;
node
= dyn_cast<cgraph_node *> (lto_symtab_encoder_deref (encoder, index));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-04 12:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-04 12:50 [gcc r13-109] Remove dead code Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).