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 a20554e..d841063 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 4026d49..768ee2b 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)
     {