[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 don

[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 th

[Bug c/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 #7 from Daniel Zaoui --- With the -fno-builtin option, the assembly is correct and the program behaves as expected.

[Bug c/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 #6 from Daniel Zaoui --- Created attachment 54430 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54430&action=edit Assembly file

[Bug c/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 #5 from Daniel Zaoui --- Created attachment 54429 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54429&action=edit Preprocessed file

[Bug c/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 Daniel Zaoui changed: What|Removed |Added Attachment #54428|0 |1 is obsolete|

[Bug c/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 Daniel Zaoui changed: What|Removed |Added Attachment #54427|0 |1 is obsolete|

[Bug c/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 #2 from Daniel Zaoui --- Created attachment 54428 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54428&action=edit Assembly file

[Bug c/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 #1 from Daniel Zaoui --- Created attachment 54427 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54427&action=edit Preprocessed file

[Bug c/108715] New: 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 Bug ID: 108715 Summary: Infinite loop in the generated assembly with -Os when strlen is defined in the code Product: gcc Version: 12.2.1 Status: UNCONFIRMED Se