]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix __sprintfkf prototype in libgcc.
authorMichael Meissner <meissner@linux.ibm.com>
Tue, 2 Mar 2021 03:13:33 +0000 (22:13 -0500)
committerMichael Meissner <meissner@linux.ibm.com>
Tue, 2 Mar 2021 03:13:33 +0000 (22:13 -0500)
The prototype of __sprintfkf in _sprintfkf.h did not match the function in
_sprintfkf.c.  This patch fixes the prototype.  I also included the
_sprintfkf.h file in _sprintfkf.c to make sure the prototype is correct and to
eliminate a warning about declaring the function without a previous
declaration.

libgcc/
2021-03-01  Michael Meissner  <meissner@linux.ibm.com>

* config/rs6000/_sprintfkf.h (__sprintfkf): Fix prototype to match
the function.
* config/rs6000/_sprintfkf.c: Include _sprintfkf.h.

libgcc/config/rs6000/_sprintfkf.c
libgcc/config/rs6000/_sprintfkf.h

index a7fdfb483c9a111c3254cfa1535f43b90357ddbf..2d624f14e2593cc478310abeb0dd9c649b4fd214 100644 (file)
@@ -28,6 +28,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include <soft-fp.h>
 #include <quad-float128.h>
 #include <stdio.h>
+#include <_sprintfkf.h>
 
 /* This function must be built with IBM 128-bit as long double, so that we can
    access the strfroml function if do not have an IEEE 128-bit version, and if
index 637d104c8828341a7de087faa2c32fab32cc4415..de9d7137f69a3405b1032b50e145300241149a2d 100644 (file)
@@ -24,5 +24,4 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 /* Declaration of the conversion function to IEEE 128-bit floating point from
    string using snprintf.  */
 
-extern int __sprintfkf (char *restrict, const char *restrict, ...);
-
+extern int __sprintfkf (char *restrict, const char *restrict, _Float128);