This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PING] real.c: Remove hexfloat middle-end support


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}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]