[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2023-05-01 Thread pskocik at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 --- Comment #3 from Petr Skocik --- Here's another example (which may be summarizing it more nicely) struct a{ char _[4]; }; #include int cmp(struct a A, struct a B){ return !!memcmp(,,4); } Expected x86-64 codegen (✓ for gcc -O2/-O3 and for

[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2020-01-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org See

[Bug tree-optimization/93265] memcmp comparisons of structs wrapping a primitive type not as compact/efficient as direct comparisons of the underlying primitive type under -Os

2020-01-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93265 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|