Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: Weird Compaq CCC / GCC interaction ?
Date: Tue, 26 Sep 2000 12:01:45 -0600 (MDT)	[thread overview]
Message-ID: <200009261801.MAA12087@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <CMM.0.90.4.969989147.larry@scrugs.lkg.dec.com> from "Larry Sendlosky" at Sep 26, 2000 01:25:47 PM

Larry Sendlosky wrote:
> 
> 
> I haven't seen any of this thread, but the quoted spec is correct and
> makes sense. Given the example below
> 
> MAGIC is an unsigned int (32bits) with value 0xc00fc00f. The compiler
> should generate 0x00000000c00fc00f for the register value. This is
> "sign extending" an unsigned int (there is no sign bit or it's
> "inferred" to be zero).

That was really the question.  The standard which we are talking about
seems to imply that a return value from an unsigned int function should
be 0xffffffffc00fc00f and not 0x00000000c00fc00f although you will
notice that only after a cast to long.  gcc, save the latest stuff,
does what you describe above and this is non-conforming, if I understand
correctly what was said here.  I was curious about further implications.

  Michal




  reply	other threads:[~2000-09-26 18:01 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-09-26 17:25 Weird Compaq CCC / GCC interaction ? Larry Sendlosky
2000-09-26 18:01 ` Michal Jaegermann [this message]
2000-09-27  3:17 ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2000-09-26 18:52 Larry Sendlosky
2000-09-26 17:47 David Addison
2000-09-26 13:59 David Addison
2000-09-26 15:36 ` Ivan Kokshaysky
2000-09-26  8:55 David Addison
2000-09-26  9:41 ` Andrei A. Dergatchev
2000-09-26 10:12 ` Nikita Schmidt
2000-09-26 16:02   ` Michal Jaegermann
2000-09-26 12:23 ` Ivan Kokshaysky
2000-09-26 13:57 ` Ivan Kokshaysky
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox