From: Eric Botcazou Date: Fri, 18 May 2018 18:49:20 +0000 (+0000) Subject: re PR bootstrap/85838 (-Wmaybe-uninitialized warning in sparc.c (sparc_expand_builtin... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9706972b6ff7476bce0ed6e3b34fa9eacd82873a;p=gcc.git re PR bootstrap/85838 (-Wmaybe-uninitialized warning in sparc.c (sparc_expand_builtin) breaks SPARC bootstrap) PR bootstrap/85838 * config/sparc/sparc.c (sparc_expand_builtin): Always initialize op[0]. From-SVN: r260374 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a20554eff62..d84106361c3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-05-18 Eric Botcazou + + PR bootstrap/85838 + * config/sparc/sparc.c (sparc_expand_builtin): Always initialize op[0]. + 2018-05-18 Kyrylo Tkachov * config/arm/arm-cpus.in (armv3m, mode32): Delete features. diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 4026d4933d8..768ee2b829c 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -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) {