This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.0] Avoid warnings in float.h
- To: "'mark at codesourcery dot com'" <mark at codesourcery dot com>
- Subject: [3.0] Avoid warnings in float.h
- From: "Schirmer, Hartmut" <SchirmerH at Innovative-Systems dot de>
- Date: Wed, 10 Oct 2001 08:29:11 +0200
- Cc: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>
Hi,
GNU C version 3.0.2 20011007 (prerelease) (sh-hitachi-coff) warns
about its own float.h:
In file included from frmrd.c:40:
../gcc-sh-3.0.2/[...]/float.h:133:5: warning: "__STDC_VERSION__" is not
defined
This patch fixes this warning. It also fixes all other float-*.h
with the same problem.
Should also be applied to the mainline.
Hartmut
diff --recursive -c config.orig/float-i128.h config/float-i128.h
*** config.orig/float-i128.h Wed Jan 31 18:49:00 2001
--- config/float-i128.h Wed Oct 10 06:16:35 2001
***************
*** 93,99 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 93,99 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-i32.h config/float-i32.h
*** config.orig/float-i32.h Wed Jan 31 18:49:00 2001
--- config/float-i32.h Wed Oct 10 06:16:43 2001
***************
*** 93,99 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 38
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 93,99 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 38
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-i386.h config/float-i386.h
*** config.orig/float-i386.h Fri Jan 12 04:28:26 2001
--- config/float-i386.h Wed Oct 10 06:16:51 2001
***************
*** 94,100 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 94,100 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-i64.h config/float-i64.h
*** config.orig/float-i64.h Wed Jan 31 18:49:00 2001
--- config/float-i64.h Wed Oct 10 06:16:58 2001
***************
*** 93,99 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 308
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 93,99 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 308
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-m68k.h config/float-m68k.h
*** config.orig/float-m68k.h Thu Sep 13 09:54:46 2001
--- config/float-m68k.h Wed Oct 10 06:17:06 2001
***************
*** 94,100 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 94,100 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 4932
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-sh.h config/float-sh.h
*** config.orig/float-sh.h Fri Feb 2 16:57:58 2001
--- config/float-sh.h Wed Oct 10 06:12:09 2001
***************
*** 130,136 ****
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 308
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 130,136 ----
#undef LDBL_MAX_10_EXP
#define LDBL_MAX_10_EXP 308
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
diff --recursive -c config.orig/float-sparc.h config/float-sparc.h
*** config.orig/float-sparc.h Wed Jan 31 18:49:00 2001
--- config/float-sparc.h Wed Oct 10 06:17:14 2001
***************
*** 119,125 ****
#endif /* sparc32 */
! #if __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and
--- 119,125 ----
#endif /* sparc32 */
! #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* The floating-point expression evaluation method.
-1 indeterminate
0 evaluate all operations and constants just to the range and