From 89334d4b19f3b2c9b2265d0d89d62aba4bfff252 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 8 Nov 2017 09:39:33 +0000 Subject: [PATCH] Fix -Wreturn-type fallout in g++.old-deja/g++.brendan/asm-extn1.C * g++.old-deja/g++.brendan/asm-extn1.C: Accept all sparc* targets. (main): Add return type. From-SVN: r254522 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b10bf322934..02a532718e6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-11-08 Rainer Orth + + * g++.old-deja/g++.brendan/asm-extn1.C: Accept all sparc* targets. + (main): Add return type. + 2017-11-08 Martin Liska PR sanitizer/82792 diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C b/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C index 3c39972ba40..75fa5f84d51 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C @@ -1,4 +1,4 @@ -// { dg-do assemble { target sparc-sun-* } } +// { dg-do assemble { target sparc*-*-* } } // { dg-options "-S" } // GROUPS passed asm-extension // This used to crash because c_expand_asm_keyword didn't know what to @@ -7,7 +7,7 @@ extern void traptable(void); -main() +int main() { asm("wr %0,%%tbr" : : "r" (traptable)); } -- 2.30.2