]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PR target/59207
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 17:02:36 +0000 (17:02 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 17:02:36 +0000 (17:02 +0000)
* config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
Make sure neg2_ovf is set before being used.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205127 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sparc/sparc.c

index 9e0d643fea9b68a78e36263f14571a16d0585fe3..7a2ea53ef0614cd0cdd3f1a56df18df02ecca1b3 100644 (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>
 
index cabf8f0d244ddf88ae8f7125652357adbb61c969..8bdc9bb6bc6b5ad4d9057d4c069471129c40c197 100644 (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;
            }