This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Small change to fold-const.c installed
- To: gcc-patches at gcc dot gnu dot org
- Subject: Small change to fold-const.c installed
- From: Bernd Schmidt <bernds at pathia dot cygnus dot co dot uk>
- Date: Mon, 29 Nov 1999 14:48:08 +0000 (GMT)
While looking at fold-const.c, I noticed three functions that relied on
an implicit 'int' return type. I've committed the patch below as an obvious
fix.
Bernd
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/ChangeLog,v
retrieving revision 1.5086
diff -c -p -r1.5086 ChangeLog
*** ChangeLog 1999/11/29 12:09:53 1.5086
--- ChangeLog 1999/11/29 14:42:09
***************
*** 1,5 ****
--- 1,9 ----
1999-11-29 Bernd Schmidt <bernds@cygnus.co.uk>
+ * fold-const.c [TARGET_FLOAT_FORMAT != IEEE_FLOAT_FORMAT]
+ (target_isinf, target_isnan, target_negative): Add return types to
+ function definitions.
+
* reload.c (push_reload): When looking for a register to put into
reg_rtx, make sure all hard regs in a multi-reg register are in the
right class and nonfixed.
Index: fold-const.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/fold-const.c,v
retrieving revision 1.85
diff -c -p -r1.85 fold-const.c
*** fold-const.c 1999/11/27 13:50:13 1.85
--- fold-const.c 1999/11/29 14:42:17
*************** target_negative (x)
*** 858,863 ****
--- 858,864 ----
/* Let's assume other float formats don't have infinity.
(This can be overridden by redefining REAL_VALUE_ISINF.) */
+ int
target_isinf (x)
REAL_VALUE_TYPE x;
{
*************** target_isinf (x)
*** 867,872 ****
--- 868,874 ----
/* Let's assume other float formats don't have NaNs.
(This can be overridden by redefining REAL_VALUE_ISNAN.) */
+ int
target_isnan (x)
REAL_VALUE_TYPE x;
{
*************** target_isnan (x)
*** 876,881 ****
--- 878,884 ----
/* Let's assume other float formats don't have minus zero.
(This can be overridden by redefining REAL_VALUE_NEGATIVE.) */
+ int
target_negative (x)
REAL_VALUE_TYPE x;
{