public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-2242] Tweak testcase for PR tree-optimization/101403.
@ 2021-07-12 9:59 Roger Sayle
0 siblings, 0 replies; only message in thread
From: Roger Sayle @ 2021-07-12 9:59 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0192c3eedbc7e6fe703abd8b321f400ddb02adf7
commit r12-2242-g0192c3eedbc7e6fe703abd8b321f400ddb02adf7
Author: Roger Sayle <roger@nextmovesoftware.com>
Date: Mon Jul 12 10:59:08 2021 +0100
Tweak testcase for PR tree-optimization/101403.
Initialize unused variable u in compound expression. Committed as obvious.
2021-07-12 Roger Sayle <roger@nextmovesoftware.com>
Jakub Jelinek <jakub@redhat.com>
gcc/testsuite/ChangeLog
PR tree-optimization/101403
* gcc.dg/pr101403.c: Avoid (unimportant) uninitialized variable.
Diff:
---
gcc/testsuite/gcc.dg/pr101403.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/pr101403.c b/gcc/testsuite/gcc.dg/pr101403.c
index ac5fa7944dc..88df112e919 100644
--- a/gcc/testsuite/gcc.dg/pr101403.c
+++ b/gcc/testsuite/gcc.dg/pr101403.c
@@ -2,7 +2,7 @@
/* { dg-options "-O2" } */
unsigned int foo (unsigned int a)
{
- unsigned int u;
+ unsigned int u = 0;
unsigned short b = __builtin_bswap16 (a);
return b >> (u, 12);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-12 9:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 9:59 [gcc r12-2242] Tweak testcase for PR tree-optimization/101403 Roger Sayle
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).