[Bug 57] Comparing small structs fails
gdc-bugzilla at gdcproject.org
gdc-bugzilla at gdcproject.org
Thu May 30 12:43:08 PDT 2013
http://bugzilla.gdcproject.org/show_bug.cgi?id=57
--- Comment #15 from Johannes Pfau <johannespfau at gmail.com> 2013-05-30 19:43:08 UTC ---
Strange. This same binary fails on two different machines, Fedora 17 & 18. But
it works fine on a third machine with archlinux. Maybe it's caused by some
additional security feature thing.
But doesn't the asm output look bogus to you as well? If I generate the asm
code using gdc -S, then change the two lines I mentioned in my last comment to
use "movq" instead of "movl" it works on all machines. AFAICS the 'padding'
hole of the value returned from funcA is not initialized when it's written to
the stack in the main function.
The only difference seems to be that for some reason on some machines the stack
is initialized to zero but on Fedora it's not.
But if you think this is not a valid bug / concern feel free to close this :-)
--
Configure bugmail: http://bugzilla.gdcproject.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the D.gnu
mailing list