* [PATCH] gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement
@ 2023-10-22 7:46 Florian Weimer
2023-10-22 13:44 ` Jeff Law
0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2023-10-22 7:46 UTC (permalink / raw)
To: gcc-patches; +Cc: Jakub Jelinek
The main_test function returns void, so return with an expression
is a constraint violation. The test case still fails with this
change applied before the fix for PR 93262 in r14-4813.
gcc/testsuite/
* gcc.c-torture/execute/builtins/pr93262-chk.c (main_test):
Remove unnecessary return statement.
---
gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
index 66d86b44b58..e55868623e9 100644
--- a/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
+++ b/gcc/testsuite/gcc.c-torture/execute/builtins/pr93262-chk.c
@@ -51,5 +51,4 @@ main_test (void)
}
if (chk_calls != 2)
abort ();
- return 0;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement
2023-10-22 7:46 [PATCH] gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement Florian Weimer
@ 2023-10-22 13:44 ` Jeff Law
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2023-10-22 13:44 UTC (permalink / raw)
To: Florian Weimer, gcc-patches; +Cc: Jakub Jelinek
On 10/22/23 01:46, Florian Weimer wrote:
> The main_test function returns void, so return with an expression
> is a constraint violation. The test case still fails with this
> change applied before the fix for PR 93262 in r14-4813.
>
> gcc/testsuite/
>
> * gcc.c-torture/execute/builtins/pr93262-chk.c (main_test):
> Remove unnecessary return statement.
OK
jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-10-22 13:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-22 7:46 [PATCH] gcc.c-torture/execute/builtins/pr93262-chk.c: Remove return statement Florian Weimer
2023-10-22 13:44 ` Jeff Law
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).