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:
Eric Botcazou 2013-11-20 17:02:36 +00:00
parent c34144fa60
commit a9a130f5b7
2 changed files with 12 additions and 5 deletions

View File

@ -1,10 +1,16 @@
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
invoke_plugin_callbacks_full.
* plugin.def: Add comment about register_callback and
invoke_plugin_callbacks_full.
* plugin.c (register_callback, invoke_plugin_callbacks_full):
Handle PLUGIN_INCLUDE_FILE event.
* plugin.c (register_callback, invoke_plugin_callbacks_full):
Handle PLUGIN_INCLUDE_FILE event.
2013-11-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>

View File

@ -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;
}