[Bug c/82509] New: DW_AT_endianity issues with attribute scalar_storage_order

2017-10-10 Thread peeterjoot at protonmail dot com
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

[Bug debug/82509] DW_AT_endianity issues with attribute scalar_storage_order

2017-10-13 Thread peeterjoot at protonmail dot com
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.

[Bug debug/82509] DW_AT_endianity issues with attribute scalar_storage_order

2017-10-13 Thread peeterjoot at protonmail dot com
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