[Bug target/94482] Inserting into vector with optimization enabled on x86 generates incorrect result
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Apr 6 06:35:44 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94482
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |6.4.0
CC| |jakub at gcc dot gnu.org
--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Evan Nemerson from comment #8)
> Created attachment 48204 [details]
> Reduced test case, ASan/UBSan clean
>
> Here is the reduced test case which works with -fsanitize=address,undefined
> -Wno-psabi -Wall -Werror.
>
> This one is self-contained, and instead of using assert the return value is
> 0 on success and 1 on failure.
Thank you.
The git bisection revisions remain the same for the reduced test-case.
Isn't the problem right now the violation of -Wpsabi?
pr94482-v2.c: In function ‘s’:
pr94482-v2.c:8:1: warning: SSE vector return without SSE enabled changes the
ABI [-Wpsabi]
8 | l s(__INT64_TYPE__ a) {
| ^
pr94482-v2.c: In function ‘p’:
pr94482-v2.c:16:3: note: the ABI for passing parameters with 16-byte alignment
has changed in GCC 4.6
16 | l p(l a, __INT64_TYPE__ i, int q) {
| ^
pr94482-v2.c:16:3: warning: SSE vector argument without SSE enabled changes the
ABI [-Wpsabi]
More information about the Gcc-bugs
mailing list