https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #12 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Marc Glisse from comment #11)
> while(!a.isZero());
>
> that doesn't look like something you would find i
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #10 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
I hope you do realize that the code I posted previously is equivalent, or very
close to being equivalent, to the following code:
struct Pre
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #9 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Martin Liška from comment #8)
> Or you can use -fno-finite-loops option.
I am sorry, but I cannot trust this compiler not to force
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #7 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Martin Liška from comment #6)
> All right, so it's caused by cdde1:
>
> Assume loop 1 to be finite: it has an exit and
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail dot com> changed:
What|Removed |Added
Attachment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #3 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Created attachment 48806
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48806&action=edit
Makefile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #1 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Created attachment 48804
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48804&action=edit
a.cc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95971
--- Comment #2 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Created attachment 48805
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48805&action=edit
b.cc
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: 0xe2.0x9a.0x9b at gmail dot com
Target Milestone: ---
Hello. I have found an optimization issue that is triggered by the -O2
optimization option in GCC 10.1.0.
The
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #11 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Eric Gallager from comment #10)
>
> /usr/bin/time ./a0-7.4 |& egrep -o [0-9]+.*user
> 1.48 real 1.26 user
>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #9 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Richard Biener from comment #5)
> Please provide a compilable testcase.
Done some time ago. Please change the status of this
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #8 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Testcase (a.cc) benchmark results. See attached Makefile for further
information about compiler options.
Machine 1: Ryzen 5 1600 Six-Core Pro
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #7 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Created attachment 45898
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45898&action=edit
Makefile
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #6 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Created attachment 45897
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45897&action=edit
a.cc: compilable testcase
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #4 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
Without the aligned(16) attribute the alignment of the struct in my code is 8
bytes, struct size remains to be 16 bytes:
GCC 8.2.0 generates (-
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
--- Comment #3 from Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail
dot com> ---
(In reply to Jakub Jelinek from comment #2)
> -Og is not meant to generate code with good performance, but code which is
> easy to debug, so
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89557
Jan Ziak (http://atom-symbol.net) <0xe2.0x9a.0x9b at gmail dot com> changed:
What|Removed |Added
Summary|[7/8 regr
: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: 0xe2.0x9a.0x9b at gmail dot com
Target Milestone: ---
Approximate C++ source code:
struct __attribute__((aligned(16))) A {
union {
struct {
uint64_t a
18 matches
Mail list logo