[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 --- Comment #15 from Andrew Pinski --- (In reply to Jakub Jelinek from comment #14) > It isn't really a dup, that other PR is about strlen pattern in some > function with a different name. PR 103858 was also marked as a dup much earlier. I

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 --- Comment #14 from Jakub Jelinek --- It isn't really a dup, that other PR is about strlen pattern in some function with a different name.

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 --- Comment #12 from Jakub Jelinek --- While the strlen pattern recognition has been added later than memcpy/memset, it is really the same thing. With -ffreestanding which you are supposed to use when you are providing C library yourself (or

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread daniel at eyoman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 --- Comment #11 from Daniel Zaoui --- I checked on GCC 5.2.0 and 10.2 (RISC-V toolchain) and it doesn't happen. I didn't understand what is the conclusion for the duplicate tickets. In 107415, it seems to be an expected behavior. Although I

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread daniel at eyoman dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 --- Comment #9 from Daniel Zaoui --- (In reply to Andrew Pinski from comment #8) > There is a dup of this bug already filed. And a related bug when defining > "memcpy" too. > > C is special. Do you have any bug ID? I searched before opening

[Bug middle-end/108715] Infinite loop in the generated assembly with -Os when strlen is defined in the code

2023-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108715 Andrew Pinski changed: What|Removed |Added Component|c |middle-end --- Comment #8 from Andrew