diff options
| author | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-19 10:25:34 +0000 |
|---|---|---|
| committer | mpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-12-19 10:25:34 +0000 |
| commit | c376ebb3c1ef03e1fed81cea0dd157d42ab2dd03 (patch) | |
| tree | bd3e0ae6a7cbcc9e113312f7e3caecc0c0e4bd35 | |
| parent | c51f5ca52e4fe423bcde3f3231cdcd10099dd5a3 (diff) | |
| download | ppe42-gcc-c376ebb3c1ef03e1fed81cea0dd157d42ab2dd03.tar.gz ppe42-gcc-c376ebb3c1ef03e1fed81cea0dd157d42ab2dd03.zip | |
* config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove
variable alg. Use index variable i directly.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@206108 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/config/i386/i386.c | 12 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4bb6b724ed..13bb35aedca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-12-19 Marek Polacek <polacek@redhat.com> + + * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove + variable alg. Use index variable i directly. + 2013-12-19 Eric Botcazou <ebotcazou@adacore.com> * print-tree.c (print_node) <case tcc_type>: Print no_force_blk_flag diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0be671da390..862231bf80c 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2856,7 +2856,6 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset) do { int maxs; - stringop_alg alg; char alg_name[128]; char align[16]; next_range_str = strchr (curr_range_str, ','); @@ -2879,13 +2878,8 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset) } for (i = 0; i < last_alg; i++) - { - if (!strcmp (alg_name, stringop_alg_names[i])) - { - alg = (stringop_alg) i; - break; - } - } + if (!strcmp (alg_name, stringop_alg_names[i])) + break; if (i == last_alg) { @@ -2896,7 +2890,7 @@ ix86_parse_stringop_strategy_string (char *strategy_str, bool is_memset) } input_ranges[n].max = maxs; - input_ranges[n].alg = alg; + input_ranges[n].alg = (stringop_alg) i; if (!strcmp (align, "align")) input_ranges[n].noalign = false; else if (!strcmp (align, "noalign")) |

