Re: stage2 build failure

Sam James via Gcc <[email protected]>
Newsgroups gmane.comp.gcc.devel
Organization Gentoo
Message-ID <[email protected]>
Ulrich Drepper via Gcc <[email protected]> writes:

> For two weeks bootstrapping gcc does not work anymore for me since -Werror
> is used.  The problem appears in stage 2, the previous stage works.  This
> is on Fedora 44 with gcc 16.1.1:
>
> /home/drepper/gnu/gcc/gcc/tree-vect-stmts.cc: In function ‘bool
> vectorizable_load(vec_info*, stmt_vec_info, gimple_stmt_iterator*,
> slp_tree, stmt_vector_for_cost*)’:
> /home/drepper/gnu/gcc/gcc/tree-vect-stmts.cc:10408:47: error: ‘stride_step’
> may be used uninitialized [-Werror=maybe-uninitialized]
> 10408 |                         = gimple_build_assign (newoff,
> POINTER_PLUS_EXPR,
>       |
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
> 10409 |                                                running_off,
> stride_step);
>       |
>  ~~~~~~~~~~~~~~~~~~~~~~~~~
> /home/drepper/gnu/gcc/gcc/tree-vect-stmts.cc:10156:25: note: ‘stride_step’
> was declared here
> 10156 |       tree stride_base, stride_step, alias_off;
>       |                         ^~~~~~~~~~~
>
>
> This seems legit.  Since this is the trunk version I have filed a bug.
> Should I?

It's https://gcc.gnu.org/PR125318. --disable-werror is a workaround or
using --enable-checking=yes (or not passing --enable-checking=release,
as the default on trunk is yes,extra).
signature.asc (application/pgp-signature, 418 B)
-----BEGIN PGP SIGNATURE-----

iQEBBAEWCgCpFiEEJaa7iN2bdkxrVUHCc4QJ9SDfkZAFAmoVUcobFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyNUE2QkI4OEREOUI3NjRDNkI1NTQx
QzI3Mzg0MDlGNTIwREY5MTkwDxxzYW1AZ2VudG9vLm9yZwAKCRBzhAn1IN+RkKD8
APwM1rPkg2Ih+PoA5NiN9Va8hbPHWz1f8gjGy3JuWoHw+wD/Vi0jek7MmgqK7tfh
1bItiPE8QFQ0vBGhUHL1DDpB/Qk=
=eeOo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.