public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/remove-obvious-dead-code)] Remove dead code.
@ 2022-02-01 10:31 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-02-01 10:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:868ec43eb37fff7d696af2b8daae57708d5ecd87
commit 868ec43eb37fff7d696af2b8daae57708d5ecd87
Author: Martin Liska <mliska@suse.cz>
Date: Tue Feb 1 11:30:43 2022 +0100
Remove dead code.
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-02-01 10:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-01 10:31 [gcc(refs/users/marxin/heads/remove-obvious-dead-code)] 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).