[Bug tree-optimization/109327] New: ICE on valid code at -O1 and above with "-fno-tree-ccp": Segmentation fault

2023-03-28 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109327 Bug ID: 109327 Summary: ICE on valid code at -O1 and above with "-fno-tree-ccp": Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #4 from Andrew Pinski --- (In reply to Steve Thompson from comment #3) > However I don't understand why olock_reset_op() is so large. It's > a trivial initializer for a descriptor with an array of olock_op_element > structures

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread susurrus.of.qualia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #3 from Steve Thompson --- (In reply to Andrew Pinski from comment #1) > init_olock_op_element_struct asm output looks fine to me: > > movzwl .LC0(%rip), %eax > movq$0, (%rdi) > movq$0, 8(%rdi) >

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Jason Merrill changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:91293ffb6af18705ab7857dc47656bdd74a9ce31 commit r13-6922-g91293ffb6af18705ab7857dc47656bdd74a9ce31 Author: Jason Merrill Date:

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 --- Comment #2 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:91293ffb6af18705ab7857dc47656bdd74a9ce31 commit r13-6922-g91293ffb6af18705ab7857dc47656bdd74a9ce31 Author: Jason Merrill Date:

[Bug tree-optimization/109274] [13 Regression] ice in in_chain_p, at gimple-range-gori.cc:119 starting with r13-6787-g0963cb5fde158cce986

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274 Sam James changed: What|Removed |Added CC||sam at gentoo dot org --- Comment #15 from

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Sam James changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 --- Comment #2 from Andrew Pinski --- Note if you are disassemblying the object file with objdump -d, you might want to add the -r option to enable dumping of the relocations that are produced too. In the init_olock_op_struct case you miss the

[Bug middle-end/109326] Bad assembler code generation for valid C on 886-64

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c/109326] New: Bad assembler code generation for valid C on 886-64

2023-03-28 Thread susurrus.of.qualia at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109326 Bug ID: 109326 Summary: Bad assembler code generation for valid C on 886-64 Product: gcc Version: og10 (devel/omp/gcc-10) Status: UNCONFIRMED Severity: normal Priority:

[Bug target/109256] Error: failed to link 'linked_maps2.bpf.o': Cannot allocate memory (12)

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109256 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |MOVED --- Comment #4 from Andrew

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/109325] ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 --- Comment #1 from Sam James --- Created attachment 54781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54781=edit warpers.cpp.ii.xz Originally reported by Adrien Dessemond at https://bugs.gentoo.org/903505. ```

[Bug tree-optimization/109325] New: ICE in range_def_chain::in_chain_ when building opencv

2023-03-28 Thread sam at gentoo dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109325 Bug ID: 109325 Summary: ICE in range_def_chain::in_chain_ when building opencv Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/109324] New: Genrecog reports "source missing a mode?" for H8

2023-03-28 Thread jdx at o2 dot pl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109324 Bug ID: 109324 Summary: Genrecog reports "source missing a mode?" for H8 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: build Severity: normal

[Bug libstdc++/108118] std::weak_ptr lacks a self-usurp check on move

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108118 --- Comment #7 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:629ed996f32cb03dd712789eede1f7f2036e497b commit r12-9351-g629ed996f32cb03dd712789eede1f7f2036e497b Author: Jonathan

[Bug libstdc++/108554] [12 Regression] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108554 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/108554] [12 Regression] Warning "null pointer dereferece" raised when extracting a unique_ptr from a map and any "-O" flag

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108554 --- Comment #8 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:2fdfa3768b25c85df39eaf9b850e130e42a4dd6f commit r12-9345-g2fdfa3768b25c85df39eaf9b850e130e42a4dd6f Author: Jonathan

[Bug libstdc++/109299] [12 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299 --- Comment #11 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:00ac6fa3f2a54fb9cc17b7b7f51eae3c6bf7a1bd commit r12-9330-g00ac6fa3f2a54fb9cc17b7b7f51eae3c6bf7a1bd Author: Jonathan

[Bug libstdc++/109299] [12 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug other/108413] copyrights for gcc 2023

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108413 --- Comment #10 from CVS Commits --- The releases/gcc-12 branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:83487e1f0c380859ed2dab2892afa8651d267fb3 commit r12-9327-g83487e1f0c380859ed2dab2892afa8651d267fb3 Author: Jonathan

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Priority|P3 |P1

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #11 from Jonathan Wakely --- Fixed on trunk now.

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #10 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:ec12639c82e944d37200a744156e183ea19add00 commit r13-6918-gec12639c82e944d37200a744156e183ea19add00 Author: Jonathan Wakely

[Bug debug/109161] Bad CTF generated for stub in function scope

2023-03-28 Thread nix at esperi dot org.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109161 Nix changed: What|Removed |Added CC||nix at esperi dot org.uk --- Comment #2 from Nix

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 David Binderman changed: What|Removed |Added Keywords||needs-bisection, |

[Bug c++/109323] No error when neither of return_value or return_void is defined

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109323 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2023-03-28 Ever confirmed|0

[Bug tree-optimization/104970] [12 Regression] ICE in execute_todo, at passes.cc:2133 since r12-6480-gea19c8f33a3a8d2b

2023-03-28 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104970 Martin Uecker changed: What|Removed |Added CC||muecker at gwdg dot de --- Comment #13

[Bug c++/109323] New: No error when neither of return_value or return_void is defined

2023-03-28 Thread enricomaria.dean6elis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109323 Bug ID: 109323 Summary: No error when neither of return_value or return_void is defined Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug fortran/109322] New: -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes

2023-03-28 Thread emr-gnu at hev dot psu.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109322 Bug ID: 109322 Summary: -fc-prototypes does not correctly translate INTEGER(KIND=C_SIZE_T), and other sizes Product: gcc Version: 12.2.0 Status: UNCONFIRMED

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #37 from Andrew Macleod --- Created attachment 54780 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54780=edit in progress patch Well call me a liar. It took me a while to understand why, but if we leave it to single

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread jason at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug libstdc++/109288] std/time/time_zone/get_info_local.cc failure with tzdata2023a

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109288 Jonathan Wakely changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libstdc++/109299] [12/13 Regression] wrong warning on std::wstring with -O2 -std=c++20 -D_FORTIFY_SOURCE=2

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109299 --- Comment #10 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:bf78b43873b0b7e8f9a430df38749b8b61f9c9b8 commit r13-6915-gbf78b43873b0b7e8f9a430df38749b8b61f9c9b8 Author: Jonathan Wakely

[Bug libstdc++/109288] std/time/time_zone/get_info_local.cc failure with tzdata2023a

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109288 --- Comment #2 from CVS Commits --- The master branch has been updated by Jonathan Wakely : https://gcc.gnu.org/g:cf19ef9eca82b01dd0a3a0a8e4c8bcec236eb2d9 commit r13-6914-gcf19ef9eca82b01dd0a3a0a8e4c8bcec236eb2d9 Author: Jonathan Wakely

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

2023-03-28 Thread alisdairm at me dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 Alisdair Meredith changed: What|Removed |Added CC||alisdairm at me dot com --- Comment

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #3 from David Binderman --- Seems broken with gcc-12-20211003. Git hashes seem to be g:c3d3bb0f03dbd025 and g:d91056851c5c60f2

[Bug c++/109321] [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Marek Polacek changed: What|Removed |Added Target Milestone|--- |13.0 Status|UNCONFIRMED

[Bug c++/109320] [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Marek Polacek changed: What|Removed |Added Last reconfirmed||2023-03-28 CC|

[Bug c++/109319] [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793

2023-03-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109319 Marek Polacek changed: What|Removed |Added Target Milestone|--- |13.0 Status|UNCONFIRMED

[Bug c++/109321] New: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109321 Bug ID: 109321 Summary: [13 Regression] ICE in iterative_hash_template_arg, at cp/pt.cc:1727 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal

[Bug c++/109320] New: [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109320 Bug ID: 109320 Summary: [13 Regression] ICE in coerce_template_parameter_pack, at cp/pt.cc:8795 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c++/109319] New: [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793

2023-03-28 Thread gscfq--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109319 Bug ID: 109319 Summary: [13 Regression] ICE in build_min_non_dep_op_overload, at cp/tree.cc:3793 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity:

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 David Malcolm changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #2 from David Binderman --- Program seems fine with gcc-11-20210404, but goes wrong with gcc-12-20220403. $ ~/gcc/results.20210404/bin/gcc -w -O1 -fipa-cp bug903.c $ ./a.out checksum = FC4F321 $ ~/gcc/results.20220403/bin/gcc -w

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 --- Comment #5 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:22c3a6c3c118283dfef1b9928dd21110098679b7 commit r13-6912-g22c3a6c3c118283dfef1b9928dd21110098679b7 Author: David Malcolm Date:

[Bug sanitizer/109313] Incorrect line number in Use-After-Scope report

2023-03-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109313 --- Comment #1 from Andrew Pinski --- When ccp3 changes (correctly): [local count: 958878296]: .ASAN_MARK (POISON, , 4); [/app/example.cpp:6:24] b.1_2 = b; [/app/example.cpp:6:24] _3 = b.1_2 + 1; [/app/example.cpp:6:24] b = _3;

[Bug tree-optimization/109318] csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 --- Comment #1 from David Binderman --- In gdb: gdb) r 1 Starting program: /home/dcb36/csmith/a.out 1 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Program received signal SIGSEGV,

[Bug tree-optimization/108357] [13 Regression] Dead Code Elimination Regression at -O2 since r13-4607-g2dc5d6b1e7ec88

2023-03-28 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108357 Xi Ruoyao changed: What|Removed |Added CC||chenglulu at loongson dot cn,

[Bug c/109318] New: csmith: -fipa-cp seems to cause trouble

2023-03-28 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109318 Bug ID: 109318 Summary: csmith: -fipa-cp seems to cause trouble Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #9 from Jonathan Wakely --- This fixes the testcase, but I'll check for other problems using the cached facets: --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -69,7 +69,12 @@

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #36 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #35) > (In reply to Andrew Macleod from comment #34) > > I will poke at whether its possible to cheaply handle a second (or third) > > level for single dependency

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #9 from Jonathan Wakely --- (In reply to Charles-Henri Gros from comment #7) > For context, we're trying to detect cases where using "auto" unintentionally > creates a copy (it's regrettably common). > Here the copy is necessary to

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #8 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #5) > Removing it would make the code less efficient and more complex. In fact, I don't even see how it would be possible, except by making *another* copy, e.g.

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 --- Comment #4 from David Malcolm --- Created attachment 54778 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54778=edit Untested patch (In reply to Jakub Jelinek from comment #3) > David, any progress here? I've currently testing the

[Bug target/109317] New: -Os generates bigger code than -O2 on 32-bit ARM

2023-03-28 Thread pali at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109317 Bug ID: 109317 Summary: -Os generates bigger code than -O2 on 32-bit ARM Product: gcc Version: 12.2.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread chgros at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #7 from Charles-Henri Gros --- For context, we're trying to detect cases where using "auto" unintentionally creates a copy (it's regrettably common). Here the copy is necessary to get a non-const value; that's definitely something

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #6 from Jonathan Wakely --- For your reproducer, the allocator is std::allocator which is an empty class and copying is a no-op. There is no efficiency concern whatsoever.

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 Jonathan Wakely changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug libstdc++/109305] Allocator copy in basic_string::operator=

2023-03-28 Thread marc-andre.laverdiere at synopsys dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109305 --- Comment #4 from Marc-André Laverdière --- The comment is "If this allocation throws there are no effects:" and I didn't understand the implications. Thanks for you spelled it out the logic behind it. May I encourage you to update the

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #35 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #34) > I will poke at whether its possible to cheaply handle a second (or third) > level for single dependency defs. Will those include also binary ops which have

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #34 from Andrew Macleod --- (In reply to Jakub Jelinek from comment #33) > (In reply to Andrew Macleod from comment #32) > > We could in theory expand it to look at 2 levels if its a single operand... > > Yeah, that would help here

[Bug c++/109309] Untranslated text in diagnostic

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109309 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org

[Bug c++/109309] Untranslated text in diagnostic

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109309 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:af45b17d0a8fe3e7ae08662008a1f41e48a4a3eb commit r13-6911-gaf45b17d0a8fe3e7ae08662008a1f41e48a4a3eb Author: Jakub Jelinek Date:

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #33 from Jakub Jelinek --- (In reply to Andrew Macleod from comment #32) > We could in theory expand it to look at 2 levels if its a single operand... Yeah, that would help here and could be worth it. > which will help with some

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #32 from Andrew Macleod --- The issues is here is pruning to avoid significant time growth. _1 = (float) l_11(D); _2 = _1 < 0.0; zone1_12 = (int) _2; if (_1 < 0.0) goto ; [INV] _1 is an export from the block. In

[Bug c++/107163] [10/11/12/13 Regression] huge Compile time increase when using templated base classes, virtual method, and Wall since r10-2823-g6a07489267e55084

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107163 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:0e8fc610fb7112deb8c33c673a52983368dde9b7 commit r13-6910-g0e8fc610fb7112deb8c33c673a52983368dde9b7 Author: Jason Merrill Date:

[Bug target/109312] Missing __riscv_v_intrinsic

2023-03-28 Thread kito at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109312 Kito Cheng changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug modula2/109315] typo: inconsistant

2023-03-28 Thread gaius at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109315 Gaius Mulley changed: What|Removed |Added Last reconfirmed||2023-03-28 Ever confirmed|0

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #8 from Jonathan Wakely --- And that's because we're using the ostream's cached _M_num_put but that is the wrong one: (gdb) step std::basic_ostream >::_M_insert<__ieee128> (this=0x101c0900 ,

[Bug target/109312] Missing __riscv_v_intrinsic

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109312 --- Comment #3 from CVS Commits --- The master branch has been updated by Kito Cheng : https://gcc.gnu.org/g:5a923516ae61ddc6dd863891db13189cbf392411 commit r13-6909-g5a923516ae61ddc6dd863891db13189cbf392411 Author: Kito Cheng Date: Tue

[Bug ipa/106124] [11/12/13 Regression] ICE in dwarf2out_abstract_function, at dwarf2out.cc:23254

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106124 --- Comment #4 from Jakub Jelinek --- (In reply to Richard Biener from comment #3) > I suppose that's the OMP reduction function and that's always(?) inlined? The reduction "function" is something artificial which holds some expressions for

[Bug libstdc++/103387] powerpc64le: segmentation fault on std::cout with ieee128 long double variable

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103387 --- Comment #7 from Jonathan Wakely --- OK, I see what's happening now: Breakpoint 3.3, std::__gnu_cxx_ldbl128::num_put > >::num_put ( this=0x101c1f98 <(anonymous namespace)::num_put_c>, __refs=1) at

[Bug c/107002] [13 Regression] ICE in column_range, at diagnostic-show-locus.cc:2236 since r13-2386-gbedfca647a9e9c1a

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107002 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #31 from Jakub Jelinek --- On the #c28 testcase, my #c23 patch seems to improve something only visible in the details of the evrp dump: zone1_12 : [irange] int [0, 1] NONZERO 0x1 -2->3 (T) _1 : [frange] float [-Inf, -0.0

[Bug rtl-optimization/109187] [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2 since r13-5154-g733a1b777f16cd

2023-03-28 Thread amonakov at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109187 Alexander Monakov changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug rtl-optimization/109187] [13 Regression] ICE: qsort checking failed: qsort comparator non-negative on sorted output: 1736258160 at -O2 since r13-5154-g733a1b777f16cd

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109187 --- Comment #5 from CVS Commits --- The master branch has been updated by Alexander Monakov : https://gcc.gnu.org/g:fb046e69f0ed2d637ea715ae71ad50131f30cb2d commit r13-6907-gfb046e69f0ed2d637ea715ae71ad50131f30cb2d Author: Alexander Monakov

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #30 from Jakub Jelinek --- But at least the zone1_100 stuff is unused in #c26, so improving #c28 there wouldn't help. distbb_99 = distij_98 - radij_82; _27 = distbb_99 < 0.0; # RANGE [irange] const int [0, 1] NONZERO 0x1

[Bug tree-optimization/109274] [13 Regression] ice in in_chain_p, at gimple-range-gori.cc:119 starting with r13-6787-g0963cb5fde158cce986

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/109265] [13 Regression] ICE for 527.cam4_r after r13-6787-g0963cb5fde158c

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109265 --- Comment #11 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:dd63bba0c8dc3a6ae06cfdc084bca7c68b8bbd39 commit r13-6906-gdd63bba0c8dc3a6ae06cfdc084bca7c68b8bbd39 Author: Andrew MacLeod Date:

[Bug tree-optimization/109274] [13 Regression] ice in in_chain_p, at gimple-range-gori.cc:119 starting with r13-6787-g0963cb5fde158cce986

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109274 --- Comment #13 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:dd63bba0c8dc3a6ae06cfdc084bca7c68b8bbd39 commit r13-6906-gdd63bba0c8dc3a6ae06cfdc084bca7c68b8bbd39 Author: Andrew MacLeod Date:

[Bug c/109316] New: incorrect "warning: declaration does not declare anything" for anonymous enums in structs, for -std=(gnu|c)-17

2023-03-28 Thread jason.vas.dias at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109316 Bug ID: 109316 Summary: incorrect "warning: declaration does not declare anything" for anonymous enums in structs, for -std=(gnu|c)-17 Product: gcc Version:

[Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048 Bug 97048 depends on bug 107087, which changed state. Bug 107087 Summary: [13 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of size

[Bug tree-optimization/107087] [13 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of siz

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/107087] [13 Regression] bits/stl_algobase.h:431: warning: 'void* __builtin_memcpy(void*, const void*, unsigned int)' reading between 8 and 2147483644 bytes from a region of siz

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107087 --- Comment #5 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:2b9d76c1af189b918a9970f471e6d2e2c08f7e7d commit r13-6905-g2b9d76c1af189b918a9970f471e6d2e2c08f7e7d Author: Richard Biener Date:

[Bug tree-optimization/109192] [13 Regression] timeout with -O3 since r13-5579

2023-03-28 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109192 --- Comment #14 from Andrew Macleod --- The upcoming patch for 109274 should resolve this.

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #29 from Richard Biener --- For the testcase in comment#26 we see that if-conversion from if (distbb_170 >= 0.0) goto ; [59.00%] else goto ; [41.00%] [local count: 311875831]: ... if (distbb_170 < iftmp.0_97)

[Bug c++/109309] Untranslated text in diagnostic

2023-03-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109309 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Target Milestone|---

[Bug target/109072] [12 Regression] SLP costs for vec duplicate too high since g:4963079769c99c4073adfd799885410ad484cbbe

2023-03-28 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109072 rsandifo at gcc dot gnu.org changed: What|Removed |Added Summary|[12/13 Regression] SLP |[12 Regression] SLP costs

[Bug sanitizer/109308] False positive store to address 0x62600000016c with insufficient space for an object of type 'int' since r12-6030-g422f9eb7011b76c1

2023-03-28 Thread siddhesh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109308 --- Comment #5 from Siddhesh Poyarekar --- This kinda has happened before: https://github.com/Perl/perl5/issues/20678 Should we keep this bug open for the message, which is obviously wrong?

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #28 from Richard Biener --- So as for what ranger should get, the testcase in comment#2 after EVRP still sees : _1 = (float) l_10; _2 = _1 < 0.0; zone1_17 = (int) _2; if (_1 < 0.0) goto ; [INV] else goto ;

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #27 from Richard Biener --- I've added heuristics to threading to PR109048 but I think it's too strong to reject them. For the testcase in this PR ranger could fix up if it managed to properly propagate the singleton range early.

[Bug tree-optimization/109048] [13 regression] redundant mask compare generated by vectorizer.

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109048 Richard Biener changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/109154] [13 regression] jump threading de-optimizes nested floating point comparisons

2023-03-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109154 --- Comment #26 from Jakub Jelinek --- The above slightly simplified (dead var removal, preprocessing etc.): typedef struct __attribute__((__packed__)) _Atom { float x, y, z; int type; } Atom; typedef struct __attribute__((__packed__))

[Bug tree-optimization/109290] warning: array subscript -50 is outside array bounds of ‘struct kobject[36028797018963967]’

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109290 Richard Biener changed: What|Removed |Added Last reconfirmed||2023-03-28 Ever confirmed|0

[Bug target/109072] [12/13 Regression] SLP costs for vec duplicate too high since g:4963079769c99c4073adfd799885410ad484cbbe

2023-03-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109072 --- Comment #9 from CVS Commits --- The trunk branch has been updated by Richard Sandiford : https://gcc.gnu.org/g:fcb411564a655a01f759eea3bb16bfd1bc879bfd commit r13-6903-gfcb411564a655a01f759eea3bb16bfd1bc879bfd Author: Richard Sandiford

[Bug tree-optimization/108129] nop_atomic_bit_test_and_p is too bloated

2023-03-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108129 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

  1   2   >