public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu
@ 2021-09-16 11:48 zhendong.su at inf dot ethz.ch
2021-09-16 11:51 ` [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67 marxin at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2021-09-16 11:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
Bug ID: 102364
Summary: wrong code at -O1 and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zhendong.su at inf dot ethz.ch
Target Milestone: ---
[581] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-trunk/configure --disable-bootstrap
--prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++
--disable-werror --enable-multilib --with-system-zlib
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210916 (experimental) [master r12-3577-g275a076f762] (GCC)
[582] %
[582] % gcctk -O0 small.c; a.out
[583] %
[583] % gcctk -O1 small.c
[584] % ./a.out
Aborted
[585] %
[585] % cat small.c
int a, b, *c = &b;
short d;
int main() {
unsigned e = 1;
for (d = 9; d > 8; d += 2) {
int *f = &a, **g = &f;
if (d > ++e)
*g = c;
if (f != &b)
__builtin_abort ();
}
return 0;
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
@ 2021-09-16 11:51 ` marxin at gcc dot gnu.org
2021-09-16 11:51 ` marxin at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-16 11:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |guojiufu at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Summary|wrong code at -O1 and above |[12 Regression] wrong code
|on x86_64-linux-gnu |at -O1 and above on
| |x86_64-linux-gnu since
| |r12-3136-g3673dcf6d6baeb67
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r12-3136-g3673dcf6d6baeb67.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-09-16 11:51 ` [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67 marxin at gcc dot gnu.org
@ 2021-09-16 11:51 ` marxin at gcc dot gnu.org
2021-09-16 11:53 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-16 11:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=102087
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Target Milestone|--- |12.0
Last reconfirmed| |2021-09-16
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-09-16 11:51 ` [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67 marxin at gcc dot gnu.org
2021-09-16 11:51 ` marxin at gcc dot gnu.org
@ 2021-09-16 11:53 ` rguenth at gcc dot gnu.org
2021-09-17 2:54 ` guojiufu at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-09-16 11:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Priority|P3 |P1
Version|unknown |12.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (2 preceding siblings ...)
2021-09-16 11:53 ` rguenth at gcc dot gnu.org
@ 2021-09-17 2:54 ` guojiufu at gcc dot gnu.org
2021-09-17 3:05 ` guojiufu at gcc dot gnu.org
2021-09-17 10:01 ` marxin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2021-09-17 2:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
--- Comment #2 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
This is also the case that two ivs are combined into inaccurate step:
"{3,+,1} < {11,+,2}" was transformed to "{3,+,-1} < {11,+,0}".
The new condition is not same with the original one.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (3 preceding siblings ...)
2021-09-17 2:54 ` guojiufu at gcc dot gnu.org
@ 2021-09-17 3:05 ` guojiufu at gcc dot gnu.org
2021-09-17 10:01 ` marxin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2021-09-17 3:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
--- Comment #3 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
We may be able to mark this as a duplicate of PR100740/PR102131.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (4 preceding siblings ...)
2021-09-17 3:05 ` guojiufu at gcc dot gnu.org
@ 2021-09-17 10:01 ` marxin at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-09-17 10:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102364
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.
*** This bug has been marked as a duplicate of bug 100740 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-09-17 10:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16 11:48 [Bug tree-optimization/102364] New: wrong code at -O1 and above on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-09-16 11:51 ` [Bug tree-optimization/102364] [12 Regression] wrong code at -O1 and above on x86_64-linux-gnu since r12-3136-g3673dcf6d6baeb67 marxin at gcc dot gnu.org
2021-09-16 11:51 ` marxin at gcc dot gnu.org
2021-09-16 11:53 ` rguenth at gcc dot gnu.org
2021-09-17 2:54 ` guojiufu at gcc dot gnu.org
2021-09-17 3:05 ` guojiufu at gcc dot gnu.org
2021-09-17 10:01 ` 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).