[ARM][testsuite] follow-up to PR target/52813 and target/11807 fix.

2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>

	* gcc.target/arm/pr77904.c: Add dg-warning for sp clobber.

From-SVN: r268066
This commit is contained in:
Christophe Lyon 2019-01-18 09:57:41 +00:00 committed by Christophe Lyon
parent 8b0cb6e188
commit 6616a31808
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/pr77904.c: Add dg-warning for sp clobber.
2019-01-18 Jakub Jelinek <jakub@redhat.com>
Reapply:

View File

@ -4,7 +4,8 @@
__attribute__ ((noinline, noclone)) void
clobber_sp (void)
{
__asm volatile ("" : : : "sp");
__asm volatile ("" : : : "sp"); /* { dg-warning "listing the stack pointer register 'sp' in a clobber list is deprecated" } */
}
int