Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: peeterjoot at protonmail dot com
Target Milestone: ---
Created attachment 42336
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42336&action=edit
code using scalar_storage_order at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82509
--- Comment #3 from Peeter Joot ---
Created attachment 42350
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42350&action=edit
test case used to verify Eric's patch in a gdb session.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82509
--- Comment #4 from Peeter Joot ---
Here's the debug session that shows the compiler+debugger stack playing nicely
together:
(gdb) n
40 int cb = memcmp( &b, &n, sizeof( b ) );
(gdb) p bt
$1 = {v = 3, a = {1, 2, 3, 4}}
(gdb) p b
$2 = {v