[Bug tree-optimization/116570] Write without read optimization is not applied to custom malloc/free even when marked as such

2024-09-02 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116570 --- Comment #6 from uis --- I looked into tree-ssa-dse.cc. Does it only work with builtins? I testes with mismatched free(malloc_test and regular free), store was removed.

[Bug tree-optimization/116570] Write without read optimization is not applied to custom malloc/free even when marked as such

2024-09-02 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116570 --- Comment #4 from uis --- I tried even adding restrict keyword and leaf attribute.

[Bug tree-optimization/116570] Write without read optimization is not applied to custom malloc/free even when marked as such

2024-09-02 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116570 --- Comment #3 from uis --- And there is no way to tell compiler that store is dead without at least disabling writes to globals?

[Bug tree-optimization/116570] Write without read optimization is not applied to custom malloc/free even when marked as such

2024-09-02 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116570 --- Comment #1 from uis --- Maybe I need some attribute to mark returned pointer as not potentially being memory-mapped file?

[Bug tree-optimization/116570] New: Write without read optimization is not applied to custom malloc/free even when marked as such

2024-09-02 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116570 Bug ID: 116570 Summary: Write without read optimization is not applied to custom malloc/free even when marked as such Product: gcc Version: 13.3.1 Status: UNCONFIRMED

[Bug middle-end/115882] Don't alwsys promote memory_order_consume to memory_order_acquire

2024-07-12 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115882 --- Comment #7 from uis --- (In reply to Andrew Pinski from comment #1) > http://wg21.link/P0735 > http://wg21.link/P0750 > http://wg21.link/P0190 > http://wg21.link/P0462 > > > There might be more. After re-reading P0750 it seems I misunders

[Bug middle-end/115882] New: Don't alwsys promote memory_order_consume to memory_order_acquire

2024-07-11 Thread uis9936 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115882 Bug ID: 115882 Summary: Don't alwsys promote memory_order_consume to memory_order_acquire Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal