re PR bootstrap/85838 (-Wmaybe-uninitialized warning in sparc.c (sparc_expand_builtin...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 18 May 2018 18:49:20 +0000 (18:49 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 18 May 2018 18:49:20 +0000 (18:49 +0000)
PR bootstrap/85838
* config/sparc/sparc.c (sparc_expand_builtin): Always initialize op[0].

From-SVN: r260374

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

index a20554eff622ae29428f0d1c3c35fe397697ed99..d84106361c3725288500e1ab5e06abd3fd9161b3 100644 (file)
@@ -1,3 +1,8 @@
+2018-05-18  Eric Botcazou  <ebotcazou@adacore.com>
+
+       PR bootstrap/85838
+       * config/sparc/sparc.c (sparc_expand_builtin): Always initialize op[0].
+
 2018-05-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
 
        * config/arm/arm-cpus.in (armv3m, mode32): Delete features.
index 4026d4933d8df3c40c001ff0c39e700ab03dd7a2..768ee2b829c55106bc1ef9e60c22361a1e0bf7ab 100644 (file)
@@ -11592,6 +11592,8 @@ sparc_expand_builtin (tree exp, rtx target,
       else
        op[0] = target;
     }
+  else
+    op[0] = NULL_RTX;
 
   FOR_EACH_CALL_EXPR_ARG (arg, iter, exp)
     {