[Bug target/80777] gdb sizeof(long int)=4 but gcc sizeof(long int)=8 on x86_64-pc-cygwin

2017-05-18 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 --- Comment #10 from Julian Rose --- (In reply to Julian Rose from comment #9) > (In reply to Jonathan Wakely from comment #8) > > It uses the ms-abi for calling conventions but LP64, no LLP64: > >

[Bug target/80777] gdb sizeof(long int)=4 but gcc sizeof(long int)=8 on x86_64-pc-cygwin

2017-05-18 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 --- Comment #9 from Julian Rose --- (In reply to Jonathan Wakely from comment #8) > It uses the ms-abi for calling conventions but LP64, no LLP64: > https://cygwin.com/cygwin-ug-net/programming.html > > That's by design, and so GCC's behaviour

[Bug target/80777] gdb sizeof(long int)=4 but gcc sizeof(long int)=8 on x86_64-pc-cygwin

2017-05-17 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 --- Comment #5 from Julian Rose --- https://bugzilla.redhat.com/show_bug.cgi?id=518712 describes the same issue under Linux. But repeating the same test described in comment-1 there when run under x86_64-pc-cygwin gets the wrong answer: $ gdb

[Bug target/80777] gdb sizeof(long int)=4 but gcc sizeof(long int)=8 on x86_64-pc-cygwin

2017-05-16 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 Julian Rose changed: What|Removed |Added Summary|gdb reports incorrect |gdb sizeof(long int)=4 but

[Bug target/80777] gdb reports incorrect sizeof(long int) on x86_64-pc-cygwin

2017-05-16 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 Julian Rose changed: What|Removed |Added Summary|long int structure members |gdb reports incorrect

[Bug c/80777] long int structure members allocated incorrect 8 bytes

2017-05-16 Thread jrose.manila at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80777 Julian Rose changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/80777] New: long int structure members allocated incorrect 8 bytes

2017-05-16 Thread jrose.manila at gmail dot com
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: jrose.manila at gmail dot com Target Milestone: --- Created attachment 41363 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41363=edit source file describing bug Problem: long int structure members are alloca