From: Marek Polacek Date: Thu, 19 Dec 2013 10:25:34 +0000 (+0000) Subject: i386.c (ix86_parse_stringop_strategy_string): Remove variable alg. X-Git-Tag: releases/gcc-4.9.0~1991 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8409aed4103bdee7ddd196ec6dedd796055f18a5;p=thirdparty%2Fgcc.git i386.c (ix86_parse_stringop_strategy_string): Remove variable alg. * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove variable alg. Use index variable i directly. From-SVN: r206108 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e4bb6b724ed0..13bb35aedcae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2013-12-19 Marek Polacek + + * config/i386/i386.c (ix86_parse_stringop_strategy_string): Remove + variable alg. Use index variable i directly. + 2013-12-19 Eric Botcazou * print-tree.c (print_node) : Print no_force_blk_flag diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0be671da3902..862231bf80c6 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"))