This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch to prevent compile time warnings in fp-bit.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: patch to prevent compile time warnings in fp-bit.c
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Wed, 1 Dec 1999 18:09:06 GMT
- Reply-to: nickc at cygnus dot co dot uk
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