diff mbox

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

Message ID CAEwic4aSQs0H8aO75tv_NkVR3Hv16GWvKV1eBJWdMZBHGn_b6g@mail.gmail.com
State New
Headers show

Commit Message

Kai Tietz Feb. 23, 2012, 5:31 p.m. UTC
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
diff mbox

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
 {