re PR c/78768 (-Walloca-larger-than and -Wformat-length warnings disabled by -flto)

2018-01-10  Richard Biener  <rguenther@suse.de>

	PR testsuite/78768
	* gcc.dg/pr78768.c: Un-XFAIL.

From-SVN: r256430
This commit is contained in:
Richard Biener 2018-01-10 14:51:07 +00:00 committed by Richard Biener
parent e02a5f63dd
commit 7b975de05c
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-01-10 Richard Biener <rguenther@suse.de>
PR testsuite/78768
* gcc.dg/pr78768.c: Un-XFAIL.
2018-01-10 Richard Biener <rguenther@suse.de>
PR debug/82425

View File

@ -9,7 +9,7 @@ int main (void)
{
char *d = (char *)__builtin_alloca (12); /* { dg-warning "argument to .alloca. is too large" } */
__builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-overflow" { xfail *-*-* } } */
__builtin_sprintf (d, "%32s", "x"); /* { dg-warning "directive writing 32 bytes into a region of size 12" "-Wformat-overflow" } */
return 0;
}