[Bug bootstrap/88721] [9 regression] -Wmaybe-uninitialized warnings in sparc.c

ro at CeBiTec dot Uni-Bielefeld.DE gcc-bugzilla@gcc.gnu.org
Mon Jan 7 13:13:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88721

--- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
>> This patch allowed the bootstrap to finish.
>
> There are 3 callers of function_arg_slotno so we would potentially need to add
> 6 initializations already.  So I'd rather initialize pregno and ppadding at the
> beginning of the function if this works:
>
>   enum mode_class mclass = GET_MODE_CLASS (mode);
>
>   /* Silence warnings in the callers.  */
>   *pregno = -1;
>   *ppadding = -1;
>
>   if (type && TREE_ADDRESSABLE (type))
>     return -1;

I've just successfully finished a sparc-sun-solaris2.11 with it: worked fine.

Thanks.
        Rainer


More information about the Gcc-bugs mailing list