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

Kai Tietz ktietz70@googlemail.com
Thu Feb 23 18:21:00 GMT 2012


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

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
 {



More information about the Gcc-patches mailing list