public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tkapela at poczta dot fm" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/106921] [11/12/13 Regression] -O1 and -fipa-icf -fpartial-inlining causes wrong code since r11-4987-g602c6cfc79ce4ae6 Date: Thu, 23 Feb 2023 10:15:53 +0000 [thread overview] Message-ID: <bug-106921-4-tIshz9oiJE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106921-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106921 Tomasz Kapela <tkapela at poczta dot fm> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkapela at poczta dot fm --- Comment #6 from Tomasz Kapela <tkapela at poczta dot fm> --- I think I encounter the same issue with my library code. Simplified example is here https://github.com/tomasz-kapela/DMapProblem Incorrect output appears only with -O2 flag on GCC 10, 11, 12. Also turning off partial inlining optimalization solves the problem: -O2 -fno-partial-inlining I have checked that on GCC 8.4 with -O2 the output is correct. Replacing lines 75-78 in include/capd/autodiff/EvalSub.h: if(coeffNo) result[coeffNo] = -right[coeffNo]; else *result = *left - *right; with result[coeffNo] = (coeffNo!=0) ? -right[coeffNo] : *left - *right; produce correct output. Should I post it as a separate bug report?
next prev parent reply other threads:[~2023-02-23 10:15 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-13 6:55 [Bug c++/106921] New: [11/12.1] -O1 and -fipa-icf -fpartial-inlining causes wrong code lutztonineubert at gmail dot com 2022-09-13 9:17 ` [Bug c++/106921] " rguenth at gcc dot gnu.org 2022-09-13 11:31 ` [Bug c++/106921] [11/12/13 Regression] -O1 and -fipa-icf -fpartial-inlining causes wrong code since r11-4987-g602c6cfc79ce4ae6 marxin at gcc dot gnu.org 2022-09-25 7:01 ` lutztonineubert at gmail dot com 2022-09-26 9:33 ` marxin at gcc dot gnu.org 2022-10-18 7:52 ` rguenth at gcc dot gnu.org 2022-12-28 14:43 ` marxin at gcc dot gnu.org 2023-02-23 10:15 ` tkapela at poczta dot fm [this message] 2023-05-29 10:07 ` [Bug ipa/106921] [11/12/13/14 " jakub at gcc dot gnu.org 2023-11-21 8:41 ` lutztonineubert at gmail dot com 2024-03-09 21:11 ` pinskia at gcc dot gnu.org
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=bug-106921-4-tIshz9oiJE@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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).