public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bug in x86-64 psABI or in gcc?
@ 2009-12-07 18:33 H.J. Lu
  2009-12-07 18:38 ` H. Peter Anvin
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: H.J. Lu @ 2009-12-07 18:33 UTC (permalink / raw)
  To: discuss, GCC Development, Girkar, Milind, Kreitzer, David L,
	H. Peter Anvin

Hi,


x86-64 psABI says _Bool has 1 byte and aligned at 1 byte. It also says:

---
When a value of type _Bool is passed in a register or on the stack,
the upper 63 bits of the eightbyte shall be zero.
---

However, gcc treats _Bool as char:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42324

Given that gcc never zeros the upper 63 bits in register nor
on stack, should we update x86-64 psABI to reflect what gcc
really does?

Thanks.


-- 
H.J.

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2010-01-13 12:10 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-07 18:33 Bug in x86-64 psABI or in gcc? H.J. Lu
2009-12-07 18:38 ` H. Peter Anvin
2009-12-07 18:39 ` H. Peter Anvin
2009-12-08 16:50 ` Michael Matz
2009-12-08 18:25   ` H.J. Lu
2009-12-08 18:58     ` H. Peter Anvin
2009-12-09 10:04     ` Michael Matz
2009-12-09 14:44       ` H.J. Lu
2009-12-09 14:48         ` H. Peter Anvin
2009-12-09 14:57         ` Michael Matz
2009-12-09 15:04           ` H.J. Lu
2009-12-09 15:08             ` Michael Matz
2009-12-09 15:04           ` H. Peter Anvin
2009-12-09 15:10             ` Andrew Haley
2009-12-09 15:18               ` H.J. Lu
2009-12-09 15:51                 ` Andrew Haley
2009-12-09 16:30                   ` H.J. Lu
2009-12-09 16:47                     ` Andrew Haley
2009-12-09 15:24               ` Dave Korn
2009-12-09 15:32               ` Michael Matz
2009-12-09 15:58                 ` Andrew Haley
2009-12-09 15:10             ` Michael Matz
2009-12-09 15:15               ` H.J. Lu
2009-12-09 15:25                 ` H.J. Lu
2009-12-09 15:49                   ` Michael Matz
2009-12-09 17:49                     ` H.J. Lu
2010-01-13 12:10                       ` [discuss] " Michael Matz

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).