This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] real.c: Remove hexfloat middle-end support
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Andreas Krebbel <Andreas dot Krebbel at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 22 May 2007 03:59:41 -0300
- Subject: Re: [PING] real.c: Remove hexfloat middle-end support
- References: <20070521123427.GA2881@blc4eb430604175.ibm.com>
On May 21, 2007, Andreas Krebbel <Andreas.Krebbel@de.ibm.com> wrote:
> http://gcc.gnu.org/ml/gcc-patches/2007-05/msg00963.html
This breaks Ada. The following patch fixes it. I'm going ahead and
checking it in as obvious.
Index: gcc/ada/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* misc.c (enumerate_modes): Consider log2_b to always be one.
Index: gcc/ada/misc.c
===================================================================
--- gcc/ada/misc.c.orig 2007-05-14 17:56:24.000000000 -0300
+++ gcc/ada/misc.c 2007-05-22 03:55:06.000000000 -0300
@@ -896,7 +896,7 @@ enumerate_modes (void (*f) (int, int, in
{
const struct real_format *fmt = REAL_MODE_FORMAT (inner_mode);
- mantissa = fmt->p * fmt->log2_b;
+ mantissa = fmt->p;
}
if (!skip_p && j != VOIDmode)
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}