public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/103083] New: Wrong code due to ipa-cp's value range propagation
@ 2021-11-04 15:19 hubicka at gcc dot gnu.org
  2021-11-04 15:25 ` [Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's value range propagation since r10-5538-gc7ac9a0c7e3916f1 marxin at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2021-11-04 15:19 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103083

            Bug ID: 103083
           Summary: Wrong code due to ipa-cp's value range propagation
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hubicka at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org
  Target Milestone: ---

struct b {int b;};
struct a {int a; struct b b;};

long i;

__attribute__ ((noinline))
static void test2 (struct b *b)
{
        if (((int)b)&4)
                __builtin_abort ();
}

__attribute__ ((noinline))
static void
test (struct a *a)
{
         test2(a? &a->b : 0);
}
void
main()
{
        test(0);
}

aborts when built with -O2.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-04-15 20:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-04 15:19 [Bug ipa/103083] New: Wrong code due to ipa-cp's value range propagation hubicka at gcc dot gnu.org
2021-11-04 15:25 ` [Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's value range propagation since r10-5538-gc7ac9a0c7e3916f1 marxin at gcc dot gnu.org
2021-11-04 15:32 ` jamborm at gcc dot gnu.org
2021-11-05  7:23 ` rguenth at gcc dot gnu.org
2021-11-05 17:25 ` hubicka at gcc dot gnu.org
2022-01-30 12:09 ` [Bug ipa/103083] [10/11/12 Regression] Wrong code due to ipa-cp's bits value " jamborm at gcc dot gnu.org
2022-02-14 18:21 ` jamborm at gcc dot gnu.org
2022-03-31 15:24 ` cvs-commit at gcc dot gnu.org
2022-04-04 17:32 ` cvs-commit at gcc dot gnu.org
2022-04-05  9:20 ` cvs-commit at gcc dot gnu.org
2022-04-15 10:22 ` mikpelinux at gmail dot com
2022-04-15 20:11 ` hubicka at gcc dot gnu.org

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).