[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2024-11-21 Thread richard-gccbugzilla at metafoo dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 Richard Smith changed: What|Removed |Added CC||richard-gccbugzilla@metafoo

[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2022-06-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 --- Comment #6 from Andrew Pinski --- (In reply to Ivan Sorokin from comment #5) > I would suggest (In reply to Andrew Pinski from comment #4) > > nullptr_t t, t1 = nullptr; > > __builtin_memcpy(&a[0], &t, sizeof(t)); > > > So I suspect thi

[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2022-06-21 Thread vanyacpp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 --- Comment #5 from Ivan Sorokin --- I would suggest (In reply to Andrew Pinski from comment #4) > nullptr_t t, t1 = nullptr; > __builtin_memcpy(&a[0], &t, sizeof(t)); > So I suspect this should be marked as invalid. The questions is how G

[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2022-06-20 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 --- Comment #4 from Andrew Pinski --- A testcase where not doing the storing would might give wrong code: using nullptr_t = decltype(nullptr); [[gnu::noipa]] void test(nullptr_t* p) { *p = nullptr; } int main(void) { nullptr_t t, t1 = n

[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2022-06-13 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/105864] storing nullptr_t to memory should not generate any instructions

2022-06-13 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105864 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Component