public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-1086] Tweak Wstringop-overflow-55.c test. Date: Thu, 27 May 2021 08:34:36 +0000 (GMT) [thread overview] Message-ID: <20210527083436.23E9638460A3@sourceware.org> (raw) https://gcc.gnu.org/g:95bef94c6c6c6cb7bf640068aea77c209bca7c65 commit r12-1086-g95bef94c6c6c6cb7bf640068aea77c209bca7c65 Author: Aldy Hernandez <aldyh@redhat.com> Date: Thu May 27 09:32:42 2021 +0200 Tweak Wstringop-overflow-55.c test. On x86-32 warn_ptrdiff_anti_range_add() and warn_int_anti_range() degrade to the same function so ICF is folding the latter into a call into the former. This is causing no warnings to be emitted for warn_int_anti_range. Fixed by passing -fno-ipa-icf. gcc/testsuite/ChangeLog: * gcc.dg/Wstringop-overflow-55.c: Pass -fno-ipa-icf. Diff: --- gcc/testsuite/gcc.dg/Wstringop-overflow-55.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-55.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-55.c index 8df5cb629ae..c3c2dbe06dd 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-55.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-55.c @@ -1,6 +1,6 @@ /* Verify that offsets in "anti-ranges" are handled correctly. { dg-do compile } - { dg-options "-O2 -Wall -ftrack-macro-expansion=0" } */ + { dg-options "-O2 -Wall -ftrack-macro-expansion=0 -fno-ipa-icf" } */ typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __SIZE_TYPE__ size_t;
reply other threads:[~2021-05-27 8:34 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=20210527083436.23E9638460A3@sourceware.org \ --to=aldyh@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).