diff mbox

[testsuite] : Fix wrong prototype of malloc/memcpy

Message ID 4F1021A0.9020408@gjlay.de
State New
Headers show

Commit Message

Georg-Johann Lay Jan. 13, 2012, 12:20 p.m. UTC
Following test case has wrong prototypes of malloc/memset and this is the fix.

	* gcc.dg/lto/20090218-2_1.c: Fix prototype of malloc, memcpy.

Comments

Mike Stump Jan. 13, 2012, 5:16 p.m. UTC | #1
On Jan 13, 2012, at 4:20 AM, Georg-Johann Lay wrote:
> Following test case has wrong prototypes of malloc/memset and this is the fix.
> 
> 	* gcc.dg/lto/20090218-2_1.c: Fix prototype of malloc, memcpy.

[ be sure to add Ok? to patches you didn't check in, it is easy for me to think you applied them as obvious if you don't ]

Ok.
Georg-Johann Lay Jan. 13, 2012, 6:50 p.m. UTC | #2
Mike Stump wrote:
> On Jan 13, 2012, at 4:20 AM, Georg-Johann Lay wrote:
>> Following test case has wrong prototypes of malloc/memset and this is the fix.
>>
>> 	* gcc.dg/lto/20090218-2_1.c: Fix prototype of malloc, memcpy.
> 
> [ be sure to add Ok? to patches you didn't check in, it is easy for me to think you applied them as obvious if you don't ]

The subject line would then look like

[Patch,testsuite,committed]: Text

and together with a link to the actual commit(s) like here

http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00667.html

or here

http://gcc.gnu.org/ml/gcc-patches/2012-01/msg00626.html

Anyways, thanks for your patience with that flood of patches...

Johann
diff mbox

Patch

Index: gcc.dg/lto/20090218-2_1.c
===================================================================
--- gcc.dg/lto/20090218-2_1.c   (revision 183150)
+++ gcc.dg/lto/20090218-2_1.c   (working copy)
@@ -4,8 +4,8 @@  int main(void)
 {
   return 0;
 }
-void *malloc(unsigned long size);
-void *memcpy(void *dest, const void *src, unsigned long n);
+void *malloc(__SIZE_TYPE__ size);
+void *memcpy(void *dest, const void *src, __SIZE_TYPE__ n);
 static mem_attrs * get_mem_attrs () {
   void **slot;
   *slot = malloc (3);