gcc.dg/pr71558.c has the following lines: __SIZE_TYPE__ strlen (const char *); void *malloc (__SIZE_TYPE__); __SIZE_TYPE__ b = strlen (a); These are good in that they support LLP64 through size_t, however they fail because this test case is compiled with -ansi. When using -ansi, the following warnings appear: gcc.dg/pr71558.c:6:1: error: ISO C90 does not support 'long long' [-Wlong-long] gcc.dg/pr71558.c:7:1: error: ISO C90 does not support 'long long' [-Wlong-long] gcc.dg/pr71558.c:14:1: error: ISO C90 does not support 'long long' [-Wlong-long] And of course, on LLP64 systems, __SIZE_TYPE__ is in fact a long long. Hopefully, -ansi can just be removed from the compile options, although I don't know how to do that.
{ dg-options "" }
(In reply to Andrew Pinski from comment #1) > { dg-options "" } That would remove every option, no? Do others matter, like -pedantic, or whatever else is there?
(In reply to Andrew Pinski from comment #1) > { dg-options "" } So just to be pedantic (pun intended!), the options currently in use are: -fdiagnostics-plain-output -ansi -pedantic-errors If we use dg-options "", both -ansi and -pedantic-errors are removed. -fdiagnostics-plain-output stays. Is this ok?