rs6000: Fix pr18096-1.c test

For the big stack frame in the test GCC used to say

pr18096-1.c:7:6: error: total size of local objects too large

but now it says

pr18096-1.c:7:6: error: total size of local objects 2147483647 exceeds maximum 2147483392

Let's just allow both in the test.


gcc/testsuite/
	* gcc.target/powerpc/pr18096-1.c: Allow an error message that says
	"exceeds" instead of just one that talks about "too large".

From-SVN: r269770
This commit is contained in:
Segher Boessenkool 2019-03-18 18:43:34 +01:00 committed by Segher Boessenkool
parent 3051b25e66
commit b2ebe97358
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2019-03-18 Segher Boessenkool <segher@kernel.crashing.org>
* gcc.target/powerpc/pr18096-1.c: Allow an error message that says
"exceeds" instead of just one that talks about "too large".
2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
* gcc.target/aarch64/sve/cost_model_1.c: New test.

View File

@ -4,7 +4,7 @@
void f(char*);
void mkcatdefs(char *fname) /* { dg-error "too large" "stack frame too large" } */
void mkcatdefs(char *fname) /* { dg-error "too large|exceeds" "stack frame too large" } */
{
char line [2147483647];
f(line);