https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99373
Bug ID: 99373
Summary: [missed optimization] dead code not eliminated from
short circuiting
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99373
--- Comment #2 from Zhendong Su ---
The following might be the same/related. The dead call is eliminated if b is
changed to:
static int b(int *c) {
foo();
d++;
}
[623] % gcctk -O3 -S small.c
[624] %
[624] % cat small.c
extern void foo(v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99419
Bug ID: 99419
Summary: possible missed optimization for dead code elimination
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99428
Bug ID: 99428
Summary: possible missed optimization for dead code elimination
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99751
Bug ID: 99751
Summary: wrong code at -O1
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99776
Bug ID: 99776
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99776
--- Comment #3 from Zhendong Su ---
Awesome! Thanks for looking into this so quickly, Richard!
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99788
Bug ID: 99788
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99793
Bug ID: 99793
Summary: missed optimization for dead code elimination at -Os,
-O2 and -O3 (vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: n
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834
Bug ID: 99834
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99835
Bug ID: 99835
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99834
--- Comment #2 from Zhendong Su ---
Hi Richard and all, thanks for analyzing these reports!
I have some more cases, and wonder whether you folks would prefer that I open a
meta issue report and append these (and others that we find) to that rep
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862
Bug ID: 99862
Summary: [meta-issue] various missed optimizations for dead
code elimination
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862
--- Comment #1 from Zhendong Su ---
[578] % gcctk -O1 -S -o O1.s small.c
[579] % gcctk -O3 -S -o O3.s small.c
[580] %
[580] % wc O1.s O3.s
22 43 410 O1.s
37 77 682 O3.s
59 120 1092 total
[581] %
[581] % grep foo O1.s
[582] % grep f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862
--- Comment #2 from Zhendong Su ---
[659] % gcctk -O1 -S -o O1.s small.c
[660] % gcctk -O3 -S -o O3.s small.c
[661] %
[661] % wc O1.s O3.s
40 86 599 O1.s
68 138 1047 O3.s
108 224 1646 total
[662] %
[662] % grep foo O1.s
[663] % grep f
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862
--- Comment #4 from Zhendong Su ---
(In reply to Eric Gallager from comment #3)
> generally meta-bugs are created to collect other issues under their "Depends
> On" field; do you have any other bug numbers to add here?
Hi Eric, no, I don't, but
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99943
Bug ID: 99943
Summary: wrong code at -Os
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
A
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99986
Bug ID: 99986
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99987
Bug ID: 99987
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99986
--- Comment #2 from Zhendong Su ---
(In reply to Richard Biener from comment #1)
> I think this is a duplicate of PR99776 since I can't reproduce with this fix
> in.
Thanks for looking into it, Richard!
Would you mind also checking the few tes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99862
--- Comment #9 from Zhendong Su ---
> For the future please open separate bugs for separate testcases.
Thanks, Richard; will do.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100033
Bug ID: 100033
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100034
Bug ID: 100034
Summary: missed optimization for dead code elimination at -O3
(vs. -O1, -Os, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100036
Bug ID: 100036
Summary: missed optimization for dead code elimination at -Os,
-O2 and -O3 (vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100050
Bug ID: 100050
Summary: missed optimization for dead code elimination at -O3
(vs. -O1, -Os, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100051
Bug ID: 100051
Summary: missed optimization for dead code elimination at -Os,
-O2 and -O3 (vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100080
Bug ID: 100080
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100082
Bug ID: 100082
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100095
Bug ID: 100095
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100100
Bug ID: 100100
Summary: missed optimization for dead code elimination at -O3
(vs. -O1, -Os, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100112
Bug ID: 100112
Summary: missed optimization for dead code elimination at -O3,
-Os (vs. -O1, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100113
Bug ID: 100113
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100145
Bug ID: 100145
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100162
Bug ID: 100162
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100188
Bug ID: 100188
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100191
Bug ID: 100191
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100220
Bug ID: 100220
Summary: missed optimization for dead code elimination at -O3
(vs. -O1, -Os, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100221
Bug ID: 100221
Summary: missed optimization for dead code elimination at -O3
(vs. -O1, -Os, -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695
Bug ID: 97695
Summary: wrong code at -O3 on x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-opti
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97695
--- Comment #6 from Zhendong Su ---
Another repro for the same issue (as -fno-ipa-cp also avoids it):
[579] % gcctk -O2 small.c; ./a.out
[580] % gcctk -O3 small.c; ./a.out
Aborted
[581] % gcctk -O3 -fno-ipa-cp small.c; ./a.out
[582] %
[582] %
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97559
Zhendong Su changed:
What|Removed |Added
CC||zhendong.su at inf dot ethz.ch
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97725
Bug ID: 97725
Summary: ICE at -Os and above: tree check: expected class
‘type’, have ‘exceptional’ (error_mark) in
useless_type_conversion_p, at gimple-expr.c:87
Product: gc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97737
Bug ID: 97737
Summary: ICE at -Os and above: tree check: expected class
‘type’, have ‘exceptional’ (error_mark) in
useless_type_conversion_p, at gimple-expr.c:88
Product: gc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97737
--- Comment #4 from Zhendong Su ---
I would guess that it makes more sense to mark PR 97741 as a dup of this bug.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97746
Zhendong Su changed:
What|Removed |Added
CC||zhendong.su at inf dot ethz.ch
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97764
Bug ID: 97764
Summary: wrong code at -O1 and above on x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97765
Bug ID: 97765
Summary: ICE at -Os: in clear_slot, at hash-table.h:891
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tre
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97808
Bug ID: 97808
Summary: ICE at -Os and above: in clean, at tree-ssa-pre.c:2053
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compon
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97821
Bug ID: 97821
Summary: wrong code with -ftree-vectorize at -O1 on
x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97836
Bug ID: 97836
Summary: wrong code at -O1 on x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optim
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97836
--- Comment #1 from Zhendong Su ---
Another related test that triggers the miscompilation at -Os, but not -O1:
[621] % gcctk -O1 small.c; ./a.out
[622] %
[622] % gcctk -Os small.c; ./a.out
Aborted
[623] %
[623] % cat small.c
int a;
int b(int
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97838
Bug ID: 97838
Summary: ICE at -O3 on x86_64-pc-linux-gnu: Segmentation fault
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compone
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97888
Bug ID: 97888
Summary: wrong code at -Os and above on x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
Bug ID: 97901
Summary: ICE at -Os: verify_gimple failed
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98222
Bug ID: 98222
Summary: ICE at -O3 on x86_64-pc-linux-gnu: verify_cgraph_node
failed
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Pr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98229
Bug ID: 98229
Summary: ICE at -O1 in 32-bit mode on x86_64-pc-linux-gnu in
decompose, at rtl.h:2282
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: nor
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255
Bug ID: 98255
Summary: wrong code at -Os and above with -fPIC on
x86_64-pc-linux-gnu
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
P
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98256
Bug ID: 98256
Summary: ICE at -Os and above: verify_ssa failed
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optim
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100314
Bug ID: 100314
Summary: missed optimization for dead code elimination at -O3
(vs. -O1)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100315
Bug ID: 100315
Summary: missed optimization for dead code elimination at -O3,
-O2 (vs. -O1, -Os)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100359
Bug ID: 100359
Summary: missed optimization for dead code elimination at -O3
(vs. -O2)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100453
Bug ID: 100453
Summary: wrong code at -O1 and above
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100492
Bug ID: 100492
Summary: wrong code at -O3 (generated code hangs)
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100539
Bug ID: 100539
Summary: wrong code at -Os and above with "-fno-dce
-fno-inline-small-functions -fno-tree-dce"
Product: gcc
Version: unknown
Status: UNCONFIRMED
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-op
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100601
--- Comment #2 from Zhendong Su ---
(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.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100636
Bug ID: 100636
Summary: ICE at -Os and above: tree check: expected class
‘type’, have ‘exceptional’ (error_mark) in
useless_type_conversion_p, at gimple-expr.c:88
Product:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100740
Bug ID: 100740
Summary: wrong code at -O1 and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100810
Bug ID: 100810
Summary: wrong code at -O1 and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100923
Bug ID: 100923
Summary: wrong code at -Os and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100923
--- Comment #1 from Zhendong Su ---
It seems to affect all versions since 9.*, but not 8.*.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100934
Bug ID: 100934
Summary: wrong code at -O3 on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-op
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101086
Bug ID: 101086
Summary: ICE at -O2 and -O3 on x86_64-linux-gnu with "-ftracer
-fvar-tracking-assignments -fsel-sched-pipelining
-fselective-scheduling -fschedule-insns": in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101151
Bug ID: 101151
Summary: ICE at -O1 and above on x86_64-linux-gnu: verify_ssa
failed
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101189
Bug ID: 101189
Summary: ICE at -Os and above on x86_64-linux-gnu: in
fold_cond, at vr-values.c:3471
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101202
Bug ID: 101202
Summary: ICE at -O3 on x86_64-linux-gnu: Segmentation fault
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Compo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101223
Bug ID: 101223
Summary: wrong code at -Os and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574
Bug ID: 108574
Summary: wrong code at -Os and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574
--- Comment #1 from Zhendong Su ---
Here is another reproducer likely for the same bug.
Compiler Explorer: https://godbolt.org/z/Efvczc6f8
[556] % gcctk -O3 small.c
[557] % ./a.out
Floating point exception
[558] %
[558] % cat small.c
int a,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108574
--- Comment #2 from Zhendong Su ---
Another likely related test case.
Compiler Explorer: https://godbolt.org/z/G514hnMeY
[537] % gcctk -O3 small.c
[538] % timeout -s 9 5 ./a.out
Killed
[539] % gcctk -O1 small.c
[540] % ./a.out
[541] %
[541]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108582
Bug ID: 108582
Summary: ICE on valid code at -Os and above with "-fno-tree-ccp
-fno-tree-dce": tree check: expected class ‘type’,
have ‘exceptional’ (error_mark) in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108584
Bug ID: 108584
Summary: wrong code at -O2 and -O3 with "-fno-tree-ccp" on
x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108639
Bug ID: 108639
Summary: ICE on valid code at -O1 and above: in decompose, at
wide-int.h:984
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108819
Bug ID: 108819
Summary: ICE on valid code at -O1 with "-fno-tree-ccp
-fno-tree-forwprop" on x86_64-linux-gnu: tree check:
expected ssa_name, have integer_cst in
nu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109115
Bug ID: 109115
Summary: ICE on valid code at -O2 and -O3 on x86_64-linux-gnu:
in upper_bound, at value-range.h:950
Product: gcc
Version: unknown
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109138
Bug ID: 109138
Summary: wrong code at -O1 and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109138
--- Comment #6 from Zhendong Su ---
Oh, good catch, Jakub! And sorry for the noise.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700
Bug ID: 104700
Summary: ICE on valid code at -O2 and -O3 with -fno-tree-ccp
-fno-tree-dce -fno-tree-vrp on x86_64-linux-gnu: in
find_or_generate_expression, at tree-ssa-pre.cc:2795
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700
--- Comment #1 from Zhendong Su ---
>From Compiler Explorer: https://godbolt.org/z/PKfrMK489
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104700
--- Comment #3 from Zhendong Su ---
Another test without using "-fno-tree-ccp -fno-tree-dce -fno-tree-vrp":
[700] % gcctk -v
Using built-in specs.
COLLECT_GCC=gcctk
COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_6
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104813
Bug ID: 104813
Summary: ICE on valid code at -O3 on x86_64-linux-gnu: in
adjust_references_in_caller, at ipa-cp.cc:4963
Product: gcc
Version: unknown
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104813
--- Comment #1 from Zhendong Su ---
Compiler Explorer: https://godbolt.org/z/6cfcq4Wed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105337
Bug ID: 105337
Summary: wrong code at -Os and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105337
--- Comment #1 from Zhendong Su ---
Compiler Explorer: https://godbolt.org/z/1bds4P7c7
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106414
Bug ID: 106414
Summary: wrong code at -O1 and above on x86_64-linux-gnu
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Componen
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106414
--- Comment #2 from Zhendong Su ---
A couple of related tests that fail at -O0:
[587] % gcctk -O0 small.c
[588] % ./a.out
Aborted
[589] % cat small.c
int a, b, c, d;
unsigned e;
int main() {
c = e = -((a && 1) ^ ~(b || 0));
if (e < -1)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106521
Bug ID: 106521
Summary: ICE at -O1 with "-floop-unroll-and-jam --param
unroll-jam-min-percent=0": verify_ssa failed
Product: gcc
Version: unknown
Status: UNCONFIRMED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107109
Bug ID: 107109
Summary: ICE on valid code at -O1 on x86_64-linux-gnu: in type,
at value-range.h:621
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107110
Bug ID: 107110
Summary: failure (length) with -fcompare-debug at -O1 and above
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
C
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107109
--- Comment #1 from Zhendong Su ---
Another test that only reproduces at -O2 and -O3.
[508] % 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/13.0.0/
1 - 100 of 385 matches
Mail list logo