public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* Weird struct behavior on ESA S390
@ 2021-08-26 5:40 Jesus Diaz
2021-08-26 9:03 ` Jonathan Wakely
0 siblings, 1 reply; 2+ messages in thread
From: Jesus Diaz @ 2021-08-26 5:40 UTC (permalink / raw)
To: gcc-bugs
I was using 31-bit (with the -m31 flag) S390 cross-compiling with GCC 11.
When something weird happened:
https://github.com/udos-project/flatboot/blob/60046ae0d6cee23348359b7f94a312332a1357b2/stage2/stivale.c#L383
Here we can see the declaration of a struct, however when i declare the
same struct (but in a function context) - the code below mishandles the
given values (start_cc and start_hh) - if i use the declaration instead
of making a struct in the function stack the start_cc and start_hh
fields are correct (cc should never be above 100 (decimal) normally)
I think this is a bug because the structs have the same attributes and
the same fields, with the same order... so their behaviour should not
change?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Weird struct behavior on ESA S390
2021-08-26 5:40 Weird struct behavior on ESA S390 Jesus Diaz
@ 2021-08-26 9:03 ` Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2021-08-26 9:03 UTC (permalink / raw)
To: jesusantonio30122016; +Cc: gcc-bugs
This mailing list is for automated emails from our bugzilla database,
not for reporting bugs directly.
To report a bug please follow the instructions at
https://gcc.gnu.org/bugs/
Your email doesn't look like a bug report anyway, maybe you meant to
send it to the gcc-help mailing list?
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-26 9:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 5:40 Weird struct behavior on ESA S390 Jesus Diaz
2021-08-26 9:03 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).