[Bug c/96019] Optimization forgets non-default scalar_storage_order

2020-07-01 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96019 --- Comment #4 from Eric Botcazou --- > So AFAIU > > int main(int argc, char *argv[]) { > uint8_t raw[] = { 0xaa, 0xbb, 0xcc, 0xdd, 0x11, 0x22 }; > SS instance; > memcpy (&instance, raw, sizeof (SS)); > printf("%x, %x\n", instanc

[Bug c/96019] Optimization forgets non-default scalar_storage_order

2020-07-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96019 --- Comment #3 from Richard Biener --- So AFAIU int main(int argc, char *argv[]) { uint8_t raw[] = { 0xaa, 0xbb, 0xcc, 0xdd, 0x11, 0x22 }; SS instance; memcpy (&instance, raw, sizeof (SS)); printf("%x, %x\n", instance.a, instance

[Bug c/96019] Optimization forgets non-default scalar_storage_order

2020-07-01 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96019 Eric Botcazou changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c/96019] Optimization forgets non-default scalar_storage_order

2020-07-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96019 Richard Biener changed: What|Removed |Added Keywords||wrong-code CC|