public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Roger Sayle <sayle@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-2242] Tweak testcase for PR tree-optimization/101403. Date: Mon, 12 Jul 2021 09:59:58 +0000 (GMT) [thread overview] Message-ID: <20210712095958.786C73835810@sourceware.org> (raw) 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); }
reply other threads:[~2021-07-12 9:59 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210712095958.786C73835810@sourceware.org \ --to=sayle@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).