]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Tweak testcase for PR tree-optimization/101403.
authorRoger Sayle <roger@nextmovesoftware.com>
Mon, 12 Jul 2021 09:59:08 +0000 (10:59 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Mon, 12 Jul 2021 09:59:08 +0000 (10:59 +0100)
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.

gcc/testsuite/gcc.dg/pr101403.c

index ac5fa7944dc290e1b6ebb16bfecc2153b93d2e58..88df112e919c6473494dc15ffa66b6391d9960cc 100644 (file)
@@ -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);
 }