[Bug target/123766] LoongArch: __lsx_vst and _lasx_xvst may trigger maybe-uninitialized warning for its second argument

chenglulu at loongson dot cn gcc-bugzilla@gcc.gnu.org
Fri Jan 23 02:10:30 GMT 2026


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

chenglulu <chenglulu at loongson dot cn> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chenglulu at loongson dot cn

--- Comment #1 from chenglulu <chenglulu at loongson dot cn> ---
Hi:
This has nothing to do with the architecture implementation. The variable r in
your code were indeed not defined, and then `-Werror -Wextra` was added during 
compilation. `-Wextra` enables `-Wuninitialized`, which is described as
follows:

`Warn if an object with automatic or allocated storage duration is used without
having been initialized. `


More information about the Gcc-bugs mailing list