This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite,committed] Fix prototype of memset in a test case.


One test case used unsigned long for the 3rd parameter of memset, which should be size_t. This made the test crash for targets where correct parameter passing depends on correct prototypes.

Fixed and committed as obvious.

Johann


gcc/testsuite/
	* gcc.c-torture/execute/pr30778.c (memset): Use size_t for 3rd
	parameter in declaration.

Index: gcc.c-torture/execute/pr30778.c
===================================================================
--- gcc.c-torture/execute/pr30778.c     (revision 242541)
+++ gcc.c-torture/execute/pr30778.c     (working copy)
@@ -1,4 +1,4 @@
-extern void *memset (void *, int, unsigned long);
+extern void *memset (void *, int, __SIZE_TYPE__);
 extern void abort (void);

 struct reg_stat {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]