re PR target/59207 (uninitialized local variable in sparc_fold_builtin)
PR target/59207 * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>: Make sure neg2_ovf is set before being used. From-SVN: r205127
This commit is contained in:
parent
c34144fa60
commit
a9a130f5b7
@ -1,3 +1,9 @@
|
||||
2013-11-20 Eric Botcazou <ebotcazou@adacore.com>
|
||||
|
||||
PR target/59207
|
||||
* config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
|
||||
Make sure neg2_ovf is set before being used.
|
||||
|
||||
2013-11-20 Basile Starynkevitch <basile@starynkevitch.net>
|
||||
|
||||
* plugin.def: Add comment about register_callback and
|
||||
|
@ -10658,7 +10658,8 @@ sparc_fold_builtin (tree fndecl, int n_args ATTRIBUTE_UNUSED,
|
||||
tmp = e0.add_with_sign (tmp, false, &add1_ovf);
|
||||
if (tmp.is_negative ())
|
||||
tmp = tmp.neg_with_overflow (&neg2_ovf);
|
||||
|
||||
else
|
||||
neg2_ovf = false;
|
||||
result = result.add_with_sign (tmp, false, &add2_ovf);
|
||||
overflow |= neg1_ovf | neg2_ovf | add1_ovf | add2_ovf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user