[PATCH] fix prototype in DFP libgcc support

Janis Johnson janis187@us.ibm.com
Thu Nov 16 01:14:00 GMT 2006


Fix the function prototype in a typedef to get rid of warnings building
libgcc for decimal float support.

Tested on powerpc64-linux with --enable-decimal-float.  OK for mainline?

2006-11-15  Janis Johnson  <janis187@us.ibm.com>

	* config/dfp-bit.c (dfp_binary_func): Fix typedef.

Index: gcc/config/dfp-bit.c
===================================================================
--- gcc/config/dfp-bit.c	(revision 118865)
+++ gcc/config/dfp-bit.c	(working copy)
@@ -64,7 +64,7 @@
 
 /* A pointer to a binary decNumber operation.  */
 typedef decNumber* (*dfp_binary_func)
-     (decNumber *, decNumber *, decNumber *, decContext *);
+     (decNumber *, const decNumber *, const decNumber *, decContext *);
 
 extern unsigned long __dec_byte_swap (unsigned long);
 



More information about the Gcc-patches mailing list