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: Patch to add more floating point target macros


Zack Weinberg <zack@codesourcery.com> writes:
> On Fri, Mar 08, 2002 at 04:21:47PM +0000, Richard Sandiford wrote:
> > This patch adds two macros to control the floating point format:
> > 
> >     ROUND_TOWARDS_ZERO
> >     LARGEST_EXPONENT_IS_NORMAL
> 
> This patch breaks vax-* targets:
> [..]
> eiisneg is only defined #ifdef NANS.  Your patch adds references to
> that routine outside an #ifdef NANS block, in (one variant of) both
> toe24 and toe53.

Sorry about that.  The patch below allows vax to build again.
Bootstrapped on i686-pc-linux-gnu and checked in as obvious.

Richard

	* real.c (eiisneg): Move outside #ifdef NANS.

Index: real.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/real.c,v
retrieving revision 1.63
diff -c -p -d -r1.63 real.c
*** real.c	2002/03/11 11:13:42	1.63
--- real.c	2002/03/22 14:51:38
*************** static void einfin	PARAMS ((UEMUSHORT *)
*** 333,341 ****
  static void enan	PARAMS ((UEMUSHORT *, int));
  static void einan	PARAMS ((UEMUSHORT *));
  static int eiisnan	PARAMS ((const UEMUSHORT *));
- static int eiisneg	PARAMS ((const UEMUSHORT *));
  static void make_nan	PARAMS ((UEMUSHORT *, int, enum machine_mode));
  #endif
  static void saturate	PARAMS ((UEMUSHORT *, int, int, int));
  static void emovi	PARAMS ((const UEMUSHORT *, UEMUSHORT *));
  static void emovo	PARAMS ((const UEMUSHORT *, UEMUSHORT *));
--- 333,341 ----
  static void enan	PARAMS ((UEMUSHORT *, int));
  static void einan	PARAMS ((UEMUSHORT *));
  static int eiisnan	PARAMS ((const UEMUSHORT *));
  static void make_nan	PARAMS ((UEMUSHORT *, int, enum machine_mode));
  #endif
+ static int eiisneg	PARAMS ((const UEMUSHORT *));
  static void saturate	PARAMS ((UEMUSHORT *, int, int, int));
  static void emovi	PARAMS ((const UEMUSHORT *, UEMUSHORT *));
  static void emovo	PARAMS ((const UEMUSHORT *, UEMUSHORT *));
*************** eiisnan (x)
*** 1883,1889 ****
  
  /* Return nonzero if sign of exploded e-type X is nonzero.  */
  
- #ifdef NANS
  static int
  eiisneg (x)
       const UEMUSHORT x[];
--- 1883,1888 ----
*************** eiisneg (x)
*** 1891,1897 ****
  
    return x[0] != 0;
  }
- #endif /* NANS */
  
  #if 0
  /* Fill exploded e-type X with infinity pattern.
--- 1890,1895 ----


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