public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102922] New: [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011
@ 2021-10-25 8:40 marxin at gcc dot gnu.org
2021-10-25 8:40 ` [Bug tree-optimization/102922] " marxin at gcc dot gnu.org
2021-10-25 8:44 ` marxin at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-25 8:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102922
Bug ID: 102922
Summary: [12 Regression] Wrong code at -O3 caused by
r12-4625-gfe8475c500939011
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: rguenth at gcc dot gnu.org
Target Milestone: ---
The following is miscompiled:
$ cat driver.cpp
long long int var1, var2;
void
__attribute__((noipa))
test(bool cond, bool cond2, signed char val) {
for (unsigned i = 0; i < 1; i++)
for (signed j = 0; j < 1; j++)
if (cond) {
for (int i_44 = 0; i_44 < 100; i_44++)
if (cond2)
var1 = (bool)val;
else
var2 = (bool)val;
}
}
int main() {
test(true, true, 1);
if (var1 != 1)
__builtin_abort ();
return 0;
}
$ g++ driver.cpp -O3 && ./a.out
Aborted (core dumped)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/102922] [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011
2021-10-25 8:40 [Bug tree-optimization/102922] New: [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011 marxin at gcc dot gnu.org
@ 2021-10-25 8:40 ` marxin at gcc dot gnu.org
2021-10-25 8:44 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-25 8:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102922
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-10-25
Status|UNCONFIRMED |NEW
Target Milestone|--- |12.0
Priority|P3 |P1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/102922] [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011
2021-10-25 8:40 [Bug tree-optimization/102922] New: [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011 marxin at gcc dot gnu.org
2021-10-25 8:40 ` [Bug tree-optimization/102922] " marxin at gcc dot gnu.org
@ 2021-10-25 8:44 ` marxin at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-10-25 8:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102922
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 102902 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-10-25 8:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-25 8:40 [Bug tree-optimization/102922] New: [12 Regression] Wrong code at -O3 caused by r12-4625-gfe8475c500939011 marxin at gcc dot gnu.org
2021-10-25 8:40 ` [Bug tree-optimization/102922] " marxin at gcc dot gnu.org
2021-10-25 8:44 ` marxin 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).