[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #14 from Uroš Bizjak --- (In reply to Jan Kratochvil from comment #13) > The question is whether gcc can rely on the undocumented Intel behavior as > described in Comment 7. glibc already relies on it anyway. I don't think this is

[Bug tree-optimization/108939] -Wstringop-truncation warning when -fsanitize=address, -O2 and -std=c++11 are used

2023-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108939 --- Comment #1 from Andrew Pinski --- Removing -std=c++11 still warns for me with GCC 10 and GCC 11. The biggest difference I saw between GCC 11 and GCC 12 was: GCC 12+ produces: strncpy (, , 32); While GCC 10/11 produces: strncpy (, ,

[Bug tree-optimization/108939] New: -Wstringop-truncation warning when -fsanitize=address, -O2 and -std=c++11 are used

2023-02-26 Thread bezkrovatki at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108939 Bug ID: 108939 Summary: -Wstringop-truncation warning when -fsanitize=address, -O2 and -std=c++11 are used Product: gcc Version: 10.1.0 Status: UNCONFIRMED

[Bug target/108874] [10/11/12/13 Regression] Missing bswap detection

2023-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108874 --- Comment #8 from Andrew Pinski --- (In reply to Hongtao.liu from comment #7) > Can we recognize it as bswap32 + roatate 16 in match.pd when backend > supports boths, and then it should be easy for aarch64/arm to tranform bswap > + ratate

[Bug rtl-optimization/108461] '-fcompare-debug' failure (length) w/ -mcpu=e500mc -O2 -ftrapv -fno-expensive-optimizations -fno-guess-branch-probability -fno-tree-dce -fno-tree-dse

2023-02-26 Thread asolokha at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108461 --- Comment #2 from Arseny Solokha --- Created attachment 54540 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54540=edit gkd diff #2 I believe this simpler testcase demonstrates the same issue. long long int m, n; void foo (void) {

[Bug target/108874] [10/11/12/13 Regression] Missing bswap detection

2023-02-26 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108874 Hongtao.liu changed: What|Removed |Added CC||crazylht at gmail dot com --- Comment #7

[Bug libfortran/108937] Intrinsic IBITS(I,POS,LEN) fails when LEN equals to BIT_SIZE(I).

2023-02-26 Thread saitofuyuki at jamstec dot go.jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937 --- Comment #3 from saitofuyuki at jamstec dot go.jp --- Thanks a lot. > Not sure it's a bug. I see. I do agree it's not a bug and the answer of the particular case is undefined. But (for 32-bit integer case), since implemented ISHFT(I,32)

[Bug target/96373] SVE miscompilation on vectorized division loop, leading to FP exception

2023-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96373 --- Comment #18 from CVS Commits --- The releases/gcc-11 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:cf3d95cce379f3260ad27264de0398e2ed1db2ea commit r11-10549-gcf3d95cce379f3260ad27264de0398e2ed1db2ea Author: Kewen Lin Date:

[Bug target/108938] New: Missing bswap detection

2023-02-26 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108938 Bug ID: 108938 Summary: Missing bswap detection Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target

[Bug target/96373] SVE miscompilation on vectorized division loop, leading to FP exception

2023-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96373 --- Comment #17 from CVS Commits --- The releases/gcc-12 branch has been updated by Kewen Lin : https://gcc.gnu.org/g:cea4b90f8305df681d322315a9c30e3924e1e79d commit r12-9206-gcea4b90f8305df681d322315a9c30e3924e1e79d Author: Kewen Lin Date:

[Bug libfortran/108937] Intrinsic IBITS(I,POS,LEN) fails when LEN equals to BIT_SIZE(I).

2023-02-26 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug libfortran/108937] Intrinsic IBITS(I,POS,LEN) fails when LEN equals to BIT_SIZE(I).

2023-02-26 Thread saitofuyuki at jamstec dot go.jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937 --- Comment #1 from saitofuyuki at jamstec dot go.jp --- Sorry, I missed to attach the test program. program test_bits implicit none integer,parameter :: KT = 4 integer,parameter :: lbits = bit_size(0_KT) integer(kind=KT) x, y0, y1

[Bug libfortran/108937] New: Intrinsic IBITS(I,POS,LEN) fails when LEN equals to BIT_SIZE(I).

2023-02-26 Thread saitofuyuki at jamstec dot go.jp via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108937 Bug ID: 108937 Summary: Intrinsic IBITS(I,POS,LEN) fails when LEN equals to BIT_SIZE(I). Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug target/108779] AARCH64 should add an option to change TLS register location to support EL1/EL2/EL3 system registers

2023-02-26 Thread zach-gcc at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108779 --- Comment #8 from zach-gcc at cs dot stanford.edu --- Alright sounds good, thanks.

[Bug target/108779] AARCH64 should add an option to change TLS register location to support EL1/EL2/EL3 system registers

2023-02-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108779 --- Comment #7 from Andrew Pinski --- (In reply to zach-gcc from comment #6) > Is there any update on when this will be merged? Is this waiting on GCC 13 > to be released first? Correct, it won't be merged until the trunk goes to stage 1 which

[Bug target/108779] AARCH64 should add an option to change TLS register location to support EL1/EL2/EL3 system registers

2023-02-26 Thread zach-gcc at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108779 --- Comment #6 from zach-gcc at cs dot stanford.edu --- Is there any update on when this will be merged? Is this waiting on GCC 13 to be released first?

[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread jkratochvil at azul dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #13 from Jan Kratochvil --- (In reply to Uroš Bizjak from comment #12) > (In reply to Jan Kratochvil from comment #8) > > > The revert makes it 13x faster. But the produced code still falls back to > > calling glibc fmod() as shown

[Bug c++/108936] New: internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.cc:4525

2023-02-26 Thread movaki1751 at vootin dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108936 Bug ID: 108936 Summary: internal compiler error: in type_has_nontrivial_copy_init, at cp/tree.cc:4525 Product: gcc Version: 12.2.1 Status: UNCONFIRMED

[Bug libstdc++/108886] Add basic_string throw logic_error when assigned a nullptr

2023-02-26 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108886 --- Comment #2 from Jonny Grant --- (In reply to Jonathan Wakely from comment #1) > Why are you suggesting adding a check in two places when the first one just > calls the second one? Feels clearer in the callstack if operator= throws when

[Bug analyzer/108879] -Wanalyzer-malloc-leak false positive stl string in try catch block

2023-02-26 Thread jg at jguk dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108879 --- Comment #2 from Jonny Grant --- (In reply to David Malcolm from comment #1) > Yeah, I haven't implemented exceptions yet, so even the simplest cases are > likely to fail :-/ > > I plan to spent a chunk of my GCC *14* cycles working on C++

[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #12 from Uroš Bizjak --- (In reply to Jan Kratochvil from comment #8) > The revert makes it 13x faster. But the produced code still falls back to > calling glibc fmod() as shown in the disassembly in Comment 0. > If I use the

[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #11 from Uroš Bizjak --- (In reply to Jan Kratochvil from comment #8) > It is true replacing fmod() with fmodl() makes it 5x faster (but only 5x). > There is still some infinity check and I haven't found any real > justification in

[Bug analyzer/108935] New: Incorrect warning for infinite recursion

2023-02-26 Thread zach-gcc at cs dot stanford.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108935 Bug ID: 108935 Summary: Incorrect warning for infinite recursion Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug ada/108909] Build process does not honor discovered path to "gnatmake" and "gnatlink"

2023-02-26 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108909 Eric Botcazou changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug ada/108909] Build process does not honor discovered path to "gnatmake" and "gnatlink"

2023-02-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108909 --- Comment #4 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:e6d39f68d03c46637ca6e1bede3d28eae6278df3 commit r13-6351-ge6d39f68d03c46637ca6e1bede3d28eae6278df3 Author: Peter Foley Date:

[Bug ada/108909] Build process does not honor discovered path to "gnatmake" and "gnatlink"

2023-02-26 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108909 Eric Botcazou changed: What|Removed |Added Status|WAITING |NEW --- Comment #3 from Eric Botcazou

[Bug ada/108909] Build process does not honor discovered path to "gnatmake" and "gnatlink"

2023-02-26 Thread ebotcazou at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108909 Eric Botcazou changed: What|Removed |Added Last reconfirmed||2023-02-26 Ever confirmed|0

[Bug d/103944] [12/13 Regression] Testsuite hang due to libphobos/testsuite/libphobos.gc/forkgc2.d

2023-02-26 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103944 Iain Sandoe changed: What|Removed |Added Last reconfirmed||2023-02-26 Ever confirmed|0

[Bug demangler/107884] H8/300: cp-demangle.c fix warning related demangle.h

2023-02-26 Thread mike at mnmoran dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107884 --- Comment #10 from Michael N. Moran --- (In reply to SASANO Takayoshi from comment #9) > (In reply to Michael N. Moran from comment #8) > > I created a corresponding cp-demangle.s file and attached it > >

[Bug demangler/107884] H8/300: cp-demangle.c fix warning related demangle.h

2023-02-26 Thread uaa at mx5 dot nisiq.net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107884 --- Comment #9 from SASANO Takayoshi --- (In reply to Michael N. Moran from comment #8) > I created a corresponding cp-demangle.s file and attached it > https://gcc.gnu.org/bugzilla/attachment.cgi?id=54530 Please read this thread carefully,

[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread jkratochvil at azul dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #10 from Jan Kratochvil --- (In reply to Alexander Monakov from comment #9) > You just need to pass -fno-math-errno (the call is for setting errno, > similar to how gcc emits the sqrt() sequence). True, thanks. So I think the

[Bug target/98470] ICE: "error: insn does not satisfy its constraints" with hard FP on xtensa

2023-02-26 Thread jcmvbkbc at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98470 --- Comment #4 from jcmvbkbc at gcc dot gnu.org --- I've noticed that this forward-propagation of the literal load followed by not calling the secondary reload function happens when the first literal load instruction has the following in its

[Bug target/108922] fmod() 13x slowdown in gcc4.9 dropping "fprem" and calling fmod()

2023-02-26 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108922 --- Comment #9 from Alexander Monakov --- (In reply to Jan Kratochvil from comment #8) > The revert makes it 13x faster. But the produced code still falls back to > calling glibc fmod() as shown in the disassembly in Comment 0. > If I use the