public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/104975] New: ICE in execute, at gimple-harden-conditionals.cc:577
@ 2022-03-18  5:11 asolokha at gmx dot com
  2022-03-21  1:23 ` [Bug middle-end/104975] ICE in execute, at gimple-harden-conditionals.cc:577 and returns_twice and pure attributes on the same function pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: asolokha at gmx dot com @ 2022-03-18  5:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104975
           Summary: ICE in execute, at gimple-harden-conditionals.cc:577
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc 12.0.1 20220313 snapshot (g:7e28750395889d16a9cba49cd5935ced7dc00ce8) ICEs
when compiling the following testcase w/ -O1 -fharden-compares -fno-inline
-fno-ipa-pure-const:

__attribute__ ((pure, returns_twice)) int
bar (int);

int
quux (void)
{
  return 0;
}

int
foo (short int x)
{
  x = !x;
  bar (quux ());

  return x;
}

% gcc-12.0.1 -O1 -fharden-compares -fno-inline -fno-ipa-pure-const -c
pjkdqdif.c
during GIMPLE pass: hardcmp
pjkdqdif.c: In function 'foo':
pjkdqdif.c:11:1: internal compiler error: in execute, at
gimple-harden-conditionals.cc:577
   11 | foo (short int x)
      | ^~~
0x81cbba execute
       
/var/tmp/portage/sys-devel/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/gimple-harden-conditionals.cc:577

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

end of thread, other threads:[~2022-12-07  2:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18  5:11 [Bug tree-optimization/104975] New: ICE in execute, at gimple-harden-conditionals.cc:577 asolokha at gmx dot com
2022-03-21  1:23 ` [Bug middle-end/104975] ICE in execute, at gimple-harden-conditionals.cc:577 and returns_twice and pure attributes on the same function pinskia at gcc dot gnu.org
2022-03-21  8:49 ` rguenth at gcc dot gnu.org
2022-03-21  8:58 ` marxin at gcc dot gnu.org
2022-03-23 23:18 ` aoliva at gcc dot gnu.org
2022-03-24 13:10 ` cvs-commit at gcc dot gnu.org
2022-03-24 13:19 ` aoliva at gcc dot gnu.org
2022-12-07  2:28 ` pinskia 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).