public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/100601] New: wrong code at -O1 on x86_64-linux-gnu
@ 2021-05-14 14:37 zhendong.su at inf dot ethz.ch
2021-05-16 21:06 ` [Bug tree-optimization/100601] " ebotcazou at gcc dot gnu.org
2021-05-17 9:18 ` zhendong.su at inf dot ethz.ch
0 siblings, 2 replies; 3+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2021-05-14 14:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601
Bug ID: 100601
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 seems to be a recent regression.
[563] % 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 20210514 (experimental) [master revision
df18a1343dd:515cc33a922:40a2f88838e5119799649a74692cbf38d774b706] (GCC)
[564] %
[564] % gcctk -O0 small.c; ./a.out
[565] % gcc110 -O1 small.c; ./a.out
[566] %
[566] % gcctk -O1 small.c
[567] % ./a.out
Segmentation fault
[568] %
[568] % cat small.c
struct a {
unsigned b : 10;
} const c;
int d;
static void i(const struct a f) {
unsigned j = f.b;
for (; d < 1; d++)
if (f.b) {
int g = f.b;
}
}
int main() {
i(c);
return 0;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/100601] wrong code at -O1 on x86_64-linux-gnu
2021-05-14 14:37 [Bug tree-optimization/100601] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
@ 2021-05-16 21:06 ` ebotcazou at gcc dot gnu.org
2021-05-17 9:18 ` zhendong.su at inf dot ethz.ch
1 sibling, 0 replies; 3+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-16 21:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
CC| |ebotcazou at gcc dot gnu.org
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Please avoid creating trivial duplicates.
*** This bug has been marked as a duplicate of bug 100453 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/100601] wrong code at -O1 on x86_64-linux-gnu
2021-05-14 14:37 [Bug tree-optimization/100601] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-05-16 21:06 ` [Bug tree-optimization/100601] " ebotcazou at gcc dot gnu.org
@ 2021-05-17 9:18 ` zhendong.su at inf dot ethz.ch
1 sibling, 0 replies; 3+ messages in thread
From: zhendong.su at inf dot ethz.ch @ 2021-05-17 9:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601
--- Comment #2 from Zhendong Su <zhendong.su at inf dot ethz.ch> ---
(In reply to Eric Botcazou from comment #1)
> Please avoid creating trivial duplicates.
>
> *** This bug has been marked as a duplicate of bug 100453 ***
Okay Eric; I had overlooked this one.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-17 9:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 14:37 [Bug tree-optimization/100601] New: wrong code at -O1 on x86_64-linux-gnu zhendong.su at inf dot ethz.ch
2021-05-16 21:06 ` [Bug tree-optimization/100601] " ebotcazou at gcc dot gnu.org
2021-05-17 9:18 ` zhendong.su at inf dot ethz.ch
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).