Patchwork [testsuite] : Adjust some tests of gcc.dg and gcc.c-torture for mingw targets

login
register
mail settings
Submitter Kai Tietz
Date Feb. 23, 2012, 5:31 p.m.
Message ID <CAEwic4aSQs0H8aO75tv_NkVR3Hv16GWvKV1eBJWdMZBHGn_b6g@mail.gmail.com>
Download mbox | patch
Permalink /patch/142679/
State New
Headers show

Comments

Kai Tietz - Feb. 23, 2012, 5:31 p.m.
2012/2/23 Jakub Jelinek <jakub@redhat.com>:
> On Thu, Feb 23, 2012 at 06:23:39PM +0100, Kai Tietz wrote:
>> And the underlying issue is that __extension__ can't be use before
>> __SIZE_TYPE__ here. gcc lacks to parse that proper.  You would get
>
> Then please use
> __extension__ typedef __SIZE_TYPE__ size_t;
> and use size_t in the prototype.  __extension__ before the prototype
> is simply too confusing.
> Anyway, will defer the rest to the testsuite maintainers.
>
>        Jakub

Ok hunk for gcc.dg/tls/opt-11.c modified as

Patch

Index: gcc.dg/tls/opt-11.c
===================================================================
--- gcc.dg/tls/opt-11.c	(revision 184486)
+++ gcc.dg/tls/opt-11.c	(working copy)
@@ -2,8 +2,10 @@ 
 /* { dg-require-effective-target tls_runtime } */
 /* { dg-add-options tls } */

+__extension__ typedef __SIZE_TYPE__ size_t;
+
 extern void abort (void);
-extern void *memset (void *, int, __SIZE_TYPE__);
+extern void *memset (void *, int, size_t);

 struct A
 {