This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/36939] Build Failure Ada SH2e
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jul 2008 19:52:42 -0000
- Subject: [Bug ada/36939] Build Failure Ada SH2e
- References: <bug-36939-296@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from laurent at guerby dot net 2008-07-25 19:52 -------
AFloat : constant Boolean :=
Long_Float'Size = 48 and Long_Long_Float'Size = 48;
-- Set True if we are on an AAMP with 48-bit extended floating point
type ByteLF is array (0 .. 7 - 2 * Boolean'Pos (AFloat)) of Byte1;
IV_Ilf : aliased ByteLF; -- Initialize long float
for IV_Ilf'Address use IS_Ilf'Address;
IS_Ilf : aliased Long_Float := 0.0; -- Initialize long float
This tells us s-scaval.adb assumes long_float is at least 64 bits, but it seems
to be 32 bits for sh target.
Only long_long_float seems to be 64 bits on sh and this also breaks another
assumption made a few lines below, that is that we are on ... x86 :)
EFloat : constant Boolean := Long_Long_Float'Size > Long_Float'Size;
-- Set True if we are on an x86 with 96-bit floats for extended
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36939