[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #31 from Richard Biener --- (In reply to Kewen Lin from comment #29) > (In reply to Hongtao.liu from comment #28) > > > Probably you can try to tweak it in ix86_add_stmt_cost? when the statement > > > > Yes, it's the place. > > > >

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #30 from Richard Biener --- (In reply to Hongtao.liu from comment #23) > > _813 = {_437, _448, _459, _470, _490, _501, _512, _523, _543, _554, _565, > > _576, _125, _143, _161, _179}; > > The cost of vec_construct in i386 backend i

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #29 from Kewen Lin --- (In reply to Hongtao.liu from comment #28) > > Probably you can try to tweak it in ix86_add_stmt_cost? when the statement > > Yes, it's the place. > > > is UB to UH conversion statement, further check if the d

[Bug fortran/95614] ICE in build_field, at fortran/trans-common.c:301

2020-09-27 Thread markeggleston at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95614 markeggleston at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #28 from Hongtao.liu --- > Probably you can try to tweak it in ix86_add_stmt_cost? when the statement Yes, it's the place. > is UB to UH conversion statement, further check if the def of the input UB > is MEM. Only if there's no m

[Bug c++/97195] construct_at on a union member is not a constant expression

2020-09-27 Thread david at doublewise dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97195 David Stone changed: What|Removed |Added CC||david at doublewise dot net --- Comment #1

[Bug c++/97222] GCC discards attributes aligned and may_alias for typedefs passed as template arguments

2020-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97222 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug c++/91212] [8/9/10/11 Regression] const ignored for ctor arguments within return since r8-2493-g4ce8c5dea53d8073

2020-09-27 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91212 Alfred Agrell changed: What|Removed |Added CC||blubban at gmail dot com --- Comment #10

[Bug c++/97221] Returning an array unexpectedly favors const overload in return value's constructor

2020-09-27 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97221 Alfred Agrell changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRMED

[Bug middle-end/96750] 10-12% performance decrease in benchmark going from GCC8 to GCC9/GCC10

2020-09-27 Thread mattreecebentley at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96750 --- Comment #6 from Matt Bentley --- Created attachment 49278 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49278&action=edit Demonstration of code which doesn't trigger the performance anomaly. plf_colony_fast.h does not trigger the prob

[Bug middle-end/96750] 10-12% performance decrease in benchmark going from GCC8 to GCC9/GCC10

2020-09-27 Thread mattreecebentley at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96750 --- Comment #5 from Matt Bentley --- If anyone out there is interested in working on this, I found the smallest change possible to create the same performance as GCC8- it is literally eliminating one branch possibility in one function (move-ins

[Bug c++/97221] Returning an array unexpectedly favors const overload in return value's constructor

2020-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97221 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/97222] New: GCC discards attributes aligned and may_alias for typedefs passed as template arguments

2020-09-27 Thread mte.zych at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97222 Bug ID: 97222 Summary: GCC discards attributes aligned and may_alias for typedefs passed as template arguments Product: gcc Version: 10.2.0 Status: UNCONFIRMED

[Bug c++/97221] New: Returning an array unexpectedly favors const overload in return value's constructor

2020-09-27 Thread blubban at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97221 Bug ID: 97221 Summary: Returning an array unexpectedly favors const overload in return value's constructor Product: gcc Version: unknown Status: UNCONFIRMED Sev

[Bug middle-end/97073] [8/9/10/11 Regression] Miscompilation with -m32 -O1 -march=i686

2020-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97073 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/97220] Overload resolution works wrong when implicit conversion not exists

2020-09-27 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97220 Marek Polacek changed: What|Removed |Added Keywords||rejects-valid Ever confirmed|0

[Bug c++/97220] New: Overload resolution works wrong when implicit conversion not exists

2020-09-27 Thread konstantin.vladimirov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97220 Bug ID: 97220 Summary: Overload resolution works wrong when implicit conversion not exists Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug middle-end/97073] [8/9/10/11 Regression] Miscompilation with -m32 -O1 -march=i686

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97073 --- Comment #12 from CVS Commits --- The releases/gcc-8 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:0ed1ce77f876cb05cd3e403c6c28e86fe0692f93 commit r8-10540-g0ed1ce77f876cb05cd3e403c6c28e86fe0692f93 Author: Jakub Jelinek D

[Bug libstdc++/93602] Missing reference to libiconv in 9.x libstdc++

2020-09-27 Thread zvr+gcc at zvr dot gr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93602 Alexios Zavras (zvr) changed: What|Removed |Added CC||zvr+gcc at zvr dot gr --- Comment

[Bug middle-end/97073] [8/9/10/11 Regression] Miscompilation with -m32 -O1 -march=i686

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97073 --- Comment #11 from CVS Commits --- The releases/gcc-9 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:aa42c1ac24a0427a27aec19c483780662cd150b8 commit r9-8943-gaa42c1ac24a0427a27aec19c483780662cd150b8 Author: Jakub Jelinek Da

[Bug middle-end/97073] [8/9/10/11 Regression] Miscompilation with -m32 -O1 -march=i686

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97073 --- Comment #10 from CVS Commits --- The releases/gcc-10 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:9389e3abc1fc4881f22c7376aae2dd650af2b792 commit r10-8804-g9389e3abc1fc4881f22c7376aae2dd650af2b792 Author: Jakub Jelinek

[Bug middle-end/97073] [8/9/10/11 Regression] Miscompilation with -m32 -O1 -march=i686

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97073 --- Comment #9 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:a4b31d5807f2bc67c8999b3d53369cf2a5c6e1ec commit r11-3489-ga4b31d5807f2bc67c8999b3d53369cf2a5c6e1ec Author: Jakub Jelinek Date: Su

[Bug c++/97219] Generic lambda does not find function declaration from enclosing block scope

2020-09-27 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97219 Nathan Sidwell changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org

[Bug middle-end/94195] missing warning reading a smaller object via an lvalue of a larger type

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 Martin Sebor changed: What|Removed |Added Resolution|--- |FIXED Target Milestone|---

[Bug middle-end/94195] missing warning reading a smaller object via an lvalue of a larger type

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 --- Comment #4 from Martin Sebor --- (In reply to Dmitry G. Dyachenko from comment #3) The warning is expected. The access to pS->s1.x implies that there must be an object at pS that's at least sizeof *pS large, even though only the leading 4 b

[Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds

2020-09-27 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 94195, which changed state. Bug 94195 Summary: missing warning reading a smaller object via an lvalue of a larger type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94195 What|Removed |A

[Bug c++/97217] C++ program compiled with GCC crashes

2020-09-27 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97217 Jonathan Wakely changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug c++/97214] ICE in lookup_template_class_1, at cp/pt.c:9896

2020-09-27 Thread sfranzen85 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97214 --- Comment #1 from Steven Franzen --- Bug 97219 looks similar. Unqualified name lookup should consider the scope containing the lambda, which here is a member function and also includes the full scope of its class. Similar example at http://en.c

[Bug libstdc++/94890] std::tuple({0}) fails to compile with -std=c++2a

2020-09-27 Thread ville.voutilainen at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94890 Ville Voutilainen changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/95614] ICE in build_field, at fortran/trans-common.c:301

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95614 --- Comment #8 from CVS Commits --- The releases/gcc-8 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:e28cc38ac34cb4de31b983f817c6e5f7dde55e2c commit r8-10539-ge28cc38ac34cb4de31b983f817c6e5f7dde55e2c Author: Mark Eggleston

[Bug c++/97219] New: Generic lambda does not find function declaration from enclosing block scope

2020-09-27 Thread hstong at ca dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97219 Bug ID: 97219 Summary: Generic lambda does not find function declaration from enclosing block scope Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: acc

[Bug fortran/97218] gcc/fortran/resolve.c:6807: pointless Assignment

2020-09-27 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97218 Dominique d'Humieres changed: What|Removed |Added CC||pault at gcc dot gnu.org Last r

[Bug fortran/95614] ICE in build_field, at fortran/trans-common.c:301

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95614 --- Comment #7 from CVS Commits --- The releases/gcc-9 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:7a8c40bca889785fc4664e5e11c430e31d297696 commit r9-8942-g7a8c40bca889785fc4664e5e11c430e31d297696 Author: Mark Eggleston D

[Bug fortran/97218] New: gcc/fortran/resolve.c:6807: pointless Assignment

2020-09-27 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97218 Bug ID: 97218 Summary: gcc/fortran/resolve.c:6807: pointless Assignment Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component

[Bug c++/97217] New: C++ program compiled with GCC crashes

2020-09-27 Thread carsten.schmidt-achim at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97217 Bug ID: 97217 Summary: C++ program compiled with GCC crashes Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug middle-end/95189] [9/10 Regression] memcmp being wrongly stripped like strcmp

2020-09-27 Thread public at timruffing dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189 Tim Ruffing changed: What|Removed |Added CC||public at timruffing dot de --- Comment #1

[Bug fortran/95614] ICE in build_field, at fortran/trans-common.c:301

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95614 --- Comment #6 from CVS Commits --- The releases/gcc-10 branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:4a67941a956003dcce8866604ba25f5a0bfd16cf commit r10-8803-g4a67941a956003dcce8866604ba25f5a0bfd16cf Author: Mark Eggleston

[Bug target/97184] Incorrect MOVDIRI and MOVDIR64B patterns

2020-09-27 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97184 H.J. Lu changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug fortran/97070] Discrepancy in results between OpenMP/OpenACC

2020-09-27 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97070 Dominique d'Humieres changed: What|Removed |Added Last reconfirmed||2020-09-27 Status|UNC

[Bug fortran/95614] ICE in build_field, at fortran/trans-common.c:301

2020-09-27 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95614 --- Comment #5 from CVS Commits --- The master branch has been updated by Mark Eggleston : https://gcc.gnu.org/g:e5a76af3a2f3324efc60b4b2778ffb29d5c377bc commit r11-3487-ge5a76af3a2f3324efc60b4b2778ffb29d5c377bc Author: Mark Eggleston Date:

[Bug c++/97216] ICE with (incorrect) spaceship operator declaration

2020-09-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97216 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #27 from Kewen Lin --- (In reply to Hongtao.liu from comment #22) > >One of my workmates found that if we disable vectorization for SPEC2017 > >>525.x264_r function sub4x4_dct in source file x264_src/common/dct.c with > >?>explicit

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #26 from Kewen Lin --- > > By following this idea, to release the restriction on loop_outer > > (loop_father) when setting the father_bbs, I can see FRE works as > > expectedly. But it actually does the rpo_vn from cfun's entry to it

[Bug target/96789] x264: sub4x4_dct() improves when vectorization is disabled

2020-09-27 Thread linkw at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96789 --- Comment #25 from Kewen Lin --- > > > > Got it! For > > > > else if (vect_nop_conversion_p (stmt_info)) > > continue; > > > > Is it a good idea to change it to call record_stmt_cost like the others? > > 1) introduce one ve

[Bug c++/97216] New: ICE with (incorrect) spaceship operator declaration

2020-09-27 Thread GCCBugzilla at DRHouck dot me via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97216 Bug ID: 97216 Summary: ICE with (incorrect) spaceship operator declaration Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug target/97194] optimize vector element set/extract at variable position

2020-09-27 Thread crazylht at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97194 --- Comment #5 from Hongtao.liu --- > > There's ongoing patch iteration on the ml adding variable index vec_set > > expanders for powerpc (and the related middle-end changes). The question > > is whether optabs can try many things or the target