This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix -Wreturn-type fallout in c-c++-common/torture/aarch64-vect-lane-2.c
- From: Andreas Schwab <schwab at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 08 Nov 2017 14:56:17 +0100
- Subject: Fix -Wreturn-type fallout in c-c++-common/torture/aarch64-vect-lane-2.c
- Authentication-results: sourceware.org; auth=none
Installed as obvious.
Andreas.
* c-c++-common/torture/aarch64-vect-lane-2.c (search_line_fast):
Change type to void.
---
gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c b/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
index 745c434b06..a2d9e45c21 100644
--- a/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
+++ b/gcc/testsuite/c-c++-common/torture/aarch64-vect-lane-2.c
@@ -1,6 +1,6 @@
// { dg-do compile { target "aarch64*-*-*" } }
// { dg-xfail-if "" { *-*-* } { "-flto -fuse-linker-plugin" } { "" } }
-int
+void
search_line_fast (void)
{
__builtin_aarch64_im_lane_boundsi (4, 0, 0); /* { dg-error "" } */
--
2.15.0
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."