This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Uninitialized error with GCC mainline
On Fri, 10 Mar 2017, Markus Trippelsdorf wrote:
> > I don't know if it's a remaining case of the same issue, or something
> > else, but there are still -Wuninitialized errors building the testsuite
> > for x86_64 with GCC mainline.
> >
> > ../sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c: In function 'sincos_vlen4':
> > ../sysdeps/x86_64/fpu/test-double-vlen4-wrappers.c:34:46: error: 'mr1' is used uninitialized in this function [-Werror=uninitialized]
> > VECTOR_WRAPPER_fFF_3 (WRAPPER_NAME (sincos), _ZGVcN4vvv_sincos)
>
> This one looks legitimate. In sysdeps/x86/fpu/test-math-vector-sincos.h
> it seems that r_loc[], r1_loc[] and mr, mr1 should be initialized.
They're supposed to be initialized by INIT_VEC_PTRS_LOOP / by the results
being stored by the wrapped vector sincos function (unless there's
something wrong with that logic).
--
Joseph S. Myers
joseph@codesourcery.com