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]

patch to prevent compile time warnings in fp-bit.c


Hi Guys,

  The patch below removes a compile time warning about some fields in
  the definition of the NAN constants in fp-bit.c not being defined.

  Is it OK to apply this patch ?

Cheers
	Nick


1999-12-01  Nick Clifton  <nickc@cygnus.com>

	* config/fp-bit.c: Initialise all fields of the NAN
	constants. 

Index: config/fp-bit.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/fp-bit.c,v
retrieving revision 1.12
diff -p -r1.12 fp-bit.c
*** fp-bit.c	1999/09/13 09:14:21	1.12
--- fp-bit.c	1999/12/01 18:07:22
*************** FLO_union_type;
*** 395,403 ****
  #else
  
  #if   defined L_thenan_sf
! const fp_number_type __thenan_sf = { CLASS_SNAN };
  #elif defined L_thenan_df
! const fp_number_type __thenan_df = { CLASS_SNAN };
  #elif defined FLOAT
  extern const fp_number_type __thenan_sf;
  #else
--- 395,403 ----
  #else
  
  #if   defined L_thenan_sf
! const fp_number_type __thenan_sf = { CLASS_SNAN, 0, 0, (fractype) 0 };
  #elif defined L_thenan_df
! const fp_number_type __thenan_df = { CLASS_SNAN, 0, 0, (fractype) 0 };
  #elif defined FLOAT
  extern const fp_number_type __thenan_sf;
  #else


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