This is the mail archive of the 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]

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

2012/2/23 Jakub Jelinek <>:
> 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

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