public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu
@ 2021-11-09 9:13 zhendong.su at inf dot ethz.ch
2021-11-09 9:19 ` [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21 marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2021-11-09 9:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
Bug ID: 103152
Summary: wrong code at -O1 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: ---
This appears to be a recent regression.
[577] % 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 20211109 (experimental) [master r12-5011-g2abd924f91e] (GCC)
[578] %
[578] % gcctk -O0 small.c; ./a.out
[579] %
[579] % gcctk -O1 small.c
[580] % ./a.out
Aborted
[581] %
[581] % cat small.c
struct {
int a:1;
} b;
int *c = (int *)&b, d;
int main() {
d = c && (b.a = (d < 0) ^ 3);
if (d != 1)
__builtin_abort();
return 0;
}
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
@ 2021-11-09 9:19 ` marxin at gcc dot gnu.org
2021-11-09 9:22 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-09 9:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.3
CC| |jakub at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-11-09
Summary|wrong code at -O1 on |[11/12 Regression] wrong
|x86_64-linux-gnu |code at -O1 on
| |x86_64-linux-gnu since
| |r11-5890-g7d9767cb8eea0f21
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r11-5890-g7d9767cb8eea0f21.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-11-09 9:19 ` [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21 marxin at gcc dot gnu.org
@ 2021-11-09 9:22 ` pinskia at gcc dot gnu.org
2021-11-09 9:24 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 9:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org
Status|NEW |ASSIGNED
Keywords| |wrong-code
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-11-09 9:19 ` [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21 marxin at gcc dot gnu.org
2021-11-09 9:22 ` pinskia at gcc dot gnu.org
@ 2021-11-09 9:24 ` pinskia at gcc dot gnu.org
2021-11-09 9:44 ` [Bug tree-optimization/103152] [12 " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 9:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is another signed one bit integer issue.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (2 preceding siblings ...)
2021-11-09 9:24 ` pinskia at gcc dot gnu.org
@ 2021-11-09 9:44 ` pinskia at gcc dot gnu.org
2021-11-09 9:53 ` [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0 pinskia at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |12.0
Known to work| |11.1.0, 11.2.0
Target Milestone|11.3 |12.0
Summary|[11/12 Regression] wrong |[12 Regression] wrong code
|code at -O1 on |at -O1 on x86_64-linux-gnu
|x86_64-linux-gnu since |since
|r11-5890-g7d9767cb8eea0f21 |r11-5890-g7d9767cb8eea0f21
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Started with r11-5890-g7d9767cb8eea0f21.
Yes and no.
Tthis was actually fixed for GCC 11 by r11-7587-b610c30453d8 (you can confirm
that if you want).
I messed up r12-4276-882d806c1a8 and added an extra TYPE_PRECISION (type) != 1
which should not have been there. Removing the extra TYPE_PRECISION (type) != 1
check fixes this issue too.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (3 preceding siblings ...)
2021-11-09 9:44 ` [Bug tree-optimization/103152] [12 " pinskia at gcc dot gnu.org
@ 2021-11-09 9:53 ` pinskia at gcc dot gnu.org
2021-11-09 10:07 ` pinskia at gcc dot gnu.org
2021-11-09 19:06 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 9:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Martin Liška from comment #1)
> > Started with r11-5890-g7d9767cb8eea0f21.
>
> Yes and no.
> Tthis was actually fixed for GCC 11 by r11-7587-b610c30453d8 (you can
> confirm that if you want).
Note the latent issue (been since ?-1:0 was added to GCC 9) on GCC 10 and 9
were fixed by r10-10177-g4111b36079fe and r9-9765-g77867cd8185 (and didn't have
the issue which I accidently did for the trunk). So this is trunk only issue
still.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (4 preceding siblings ...)
2021-11-09 9:53 ` [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0 pinskia at gcc dot gnu.org
@ 2021-11-09 10:07 ` pinskia at gcc dot gnu.org
2021-11-09 19:06 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 10:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 51754
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51754&action=edit
Patch which I will commit after bootstrap/test
Here is the patch which I am testing to remove the accidenly committed check.
I did check to make sure it fixed the problem.
Note the problem showed up recently due to threading differences I think; it
has been definitely latent others.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
` (5 preceding siblings ...)
2021-11-09 10:07 ` pinskia at gcc dot gnu.org
@ 2021-11-09 19:06 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-09 19:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103152
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Had a typo in the testcase name and the bug #, forgot the 1 :).
https://gcc.gnu.org/pipermail/gcc-cvs/2021-November/356460.html
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-11-09 19:06 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-09 9:13 [Bug tree-optimization/103152] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-11-09 9:19 ` [Bug tree-optimization/103152] [11/12 Regression] wrong code at -O1 on x86_64-linux-gnu since r11-5890-g7d9767cb8eea0f21 marxin at gcc dot gnu.org
2021-11-09 9:22 ` pinskia at gcc dot gnu.org
2021-11-09 9:24 ` pinskia at gcc dot gnu.org
2021-11-09 9:44 ` [Bug tree-optimization/103152] [12 " pinskia at gcc dot gnu.org
2021-11-09 9:53 ` [Bug tree-optimization/103152] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-1055-gb6bdd7a4cb41ee0 pinskia at gcc dot gnu.org
2021-11-09 10:07 ` pinskia at gcc dot gnu.org
2021-11-09 19:06 ` 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).