[Bug c++/92617] Invalid loop optimization: no exit condition

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92617 --- Comment #7 from Andrew Pinski --- Not you can get a runtime error if you use -fsanitizer=undefined.

[Bug c++/92617] Invalid loop optimization: no exit condition

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92617 --- Comment #6 from Andrew Pinski --- In c++ (unlike C) return from a non void function is undefined even if the return value is not used. In c, only of the return value is used it would be undefined.

[Bug rtl-optimization/71785] Computed gotos are mostly optimized away

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71785 --- Comment #17 from Andrew Pinski --- First off internal documentation is not user documentation. Second internal documentation is not always in sync with the code. In this case it seems like it is not fully. Basically BB reordering does the

[Bug tree-optimization/92596] [10 Regression] ICE in exact_div, at poly-int.h:2162 since r278406

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92596 rsandifo at gcc dot gnu.org changed: What|Removed |Added Assignee|rguenth at gcc dot gnu.org |rsandifo at gcc dot

[Bug tree-optimization/92618] [10 Regression] error: type mismatch in binary expression in reassoc since r273490

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92618 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/92618] [10 Regression] error: type mismatch in binary expression in reassoc since r273490

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92618 --- Comment #3 from Jakub Jelinek --- That optimization seems to ignore completely the involved types. Consider following testcase instead, where in foo the addition is performed originally in unsigned long long type and in baz in double type, t

[Bug tree-optimization/92618] [10 Regression] error: type mismatch in binary expression in reassoc since r273490

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92618 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c/91401] schedule + dist_schedule clauses rejected on distribute parallel for

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91401 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:08:49 2019 New Revision: 278573 URL: https://gcc.gnu.org/viewcvs?rev=278573&root=gcc&view=rev Log: Backported from mainline 2019-08-09 Jakub Jelinek

[Bug middle-end/91623] [8 Regression] -msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/smmintrin.h:270:10

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91623 --- Comment #11 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:09:57 2019 New Revision: 278574 URL: https://gcc.gnu.org/viewcvs?rev=278574&root=gcc&view=rev Log: Backported from mainline 2019-09-01 Jakub Jelinek

[Bug target/91106] internal compiler error: output_operand: invalid use of register 'frame'

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91106 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:11:19 2019 New Revision: 278575 URL: https://gcc.gnu.org/viewcvs?rev=278575&root=gcc&view=rev Log: Backported from mainline 2019-09-06 Jakub Jelinek

[Bug middle-end/91105] internal compiler error: maximum number of generated reload insns per insn achieved (90)

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91105 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:11:19 2019 New Revision: 278575 URL: https://gcc.gnu.org/viewcvs?rev=278575&root=gcc&view=rev Log: Backported from mainline 2019-09-06 Jakub Jelinek

[Bug middle-end/91001] internal compiler error: in extract_insn, at recog.c:2310

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91001 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:11:19 2019 New Revision: 278575 URL: https://gcc.gnu.org/viewcvs?rev=278575&root=gcc&view=rev Log: Backported from mainline 2019-09-06 Jakub Jelinek

[Bug tree-optimization/91665] [8 Regression] ICE in build_vector_from_val, at tree.c:1904

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91665 --- Comment #13 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:12:06 2019 New Revision: 278576 URL: https://gcc.gnu.org/viewcvs?rev=278576&root=gcc&view=rev Log: Backported from mainline 2019-09-07 Jakub Jelinek

[Bug c++/91974] function not sequenced before function argument

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91974 --- Comment #11 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:12:57 2019 New Revision: 278577 URL: https://gcc.gnu.org/viewcvs?rev=278577&root=gcc&view=rev Log: Backported from mainline 2019-10-04 Jakub Jelinek

[Bug tree-optimization/92056] [10 Regression] ice in expr_object_size, at tree-object-si ze.c:675 with -O3

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92056 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:13:41 2019 New Revision: 278578 URL: https://gcc.gnu.org/viewcvs?rev=278578&root=gcc&view=rev Log: Backported from mainline 2019-10-17 Jakub Jelinek

[Bug c++/92201] [9/10 Regression] ICE: ‘verify_gimple’ failed with -std=c++2a

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92201 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:14:25 2019 New Revision: 278579 URL: https://gcc.gnu.org/viewcvs?rev=278579&root=gcc&view=rev Log: Backported from mainline 2019-10-29 Jakub Jelinek

[Bug tree-optimization/85887] [8 Regression] Missing DW_TAG_lexical_block PC range

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85887 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:15:01 2019 New Revision: 278580 URL: https://gcc.gnu.org/viewcvs?rev=278580&root=gcc&view=rev Log: Backported from mainline 2019-10-22 Jakub Jelinek

[Bug preprocessor/92296] [8 Regression] internal compiler error: Segmentation fault #pragma push_macro("__LINE__")

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92296 --- Comment #18 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:15:56 2019 New Revision: 278581 URL: https://gcc.gnu.org/viewcvs?rev=278581&root=gcc&view=rev Log: Backported from mainline 2019-10-31 Jakub Jelinek

[Bug middle-end/92384] [8 Regression] Empty class instances have different equal testing result among GCC versions

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92384 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:17:20 2019 New Revision: 278582 URL: https://gcc.gnu.org/viewcvs?rev=278582&root=gcc&view=rev Log: Backported from mainline 2019-11-08 Jakub Jelinek

[Bug rtl-optimization/71785] Computed gotos are mostly optimized away

2019-11-21 Thread rndfax at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71785 --- Comment #18 from Aleksey --- (In reply to Andrew Pinski from comment #17) > First off internal documentation is not user documentation. > Second internal documentation is not always in sync with the code. In this > case it seems like it is

[Bug middle-end/91450] __builtin_mul_overflow(A,B,R) wrong code if product <

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91450 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:18:17 2019 New Revision: 278583 URL: https://gcc.gnu.org/viewcvs?rev=278583&root=gcc&view=rev Log: Backported from mainline 2019-11-19 Jakub Jelinek

[Bug c/90898] [8 Regression] ICE in insert_clobber_before_stack_restore, at tree-ssa-ccp.c:2112

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90898 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:18:55 2019 New Revision: 278584 URL: https://gcc.gnu.org/viewcvs?rev=278584&root=gcc&view=rev Log: Backported from mainline 2019-11-20 Jakub Jelinek

[Bug target/90867] [8 Regression] Multiplication or typecast of integer and double always zero when...

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90867 --- Comment #10 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:20:04 2019 New Revision: 278585 URL: https://gcc.gnu.org/viewcvs?rev=278585&root=gcc&view=rev Log: Backported from mainline 2019-11-20 Jakub Jelinek

[Bug middle-end/90840] [8 Regression] ICE in simplify_subreg, at simplify-rtx.c:6441

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90840 --- Comment #8 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:20:47 2019 New Revision: 278586 URL: https://gcc.gnu.org/viewcvs?rev=278586&root=gcc&view=rev Log: Backported from mainline 2019-11-20 Jakub Jelinek

[Bug tree-optimization/91355] [8/9/10 Regression] optimized code does not call destructor while unwinding after exception

2019-11-21 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91355 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Thu Nov 21 17:21:46 2019 New Revision: 278587 URL: https://gcc.gnu.org/viewcvs?rev=278587&root=gcc&view=rev Log: PR tree-optimization/91355 * tree-ssa-sink.c (select_best_

[Bug rtl-optimization/71785] Computed gotos are mostly optimized away

2019-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71785 --- Comment #19 from Segher Boessenkool --- (In reply to Aleksey from comment #16) > > > It would be helpful if you give the explanation how these options affect > > > "un-factoring". > > > > What options? -fno-reorder-blocks? Those doo the sa

[Bug tree-optimization/92595] [10 Regression] ICE in related_vector_mode, at stor-layout.c:534 since r278229

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92595 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolutio

[Bug tree-optimization/92595] [10 Regression] ICE in related_vector_mode, at stor-layout.c:534 since r278229

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92595 --- Comment #1 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Nov 21 17:41:16 2019 New Revision: 278590 URL: https://gcc.gnu.org/viewcvs?rev=278590&root=gcc&view=rev Log: Add missing VECTOR_MODE_P checks (PR 92595) This patch

[Bug tree-optimization/92543] [10 regression] gcc.dg/vect/vect-alias-check-1.c etc. FAIL

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92543 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolutio

[Bug tree-optimization/92543] [10 regression] gcc.dg/vect/vect-alias-check-1.c etc. FAIL

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92543 --- Comment #3 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Nov 21 17:43:24 2019 New Revision: 278591 URL: https://gcc.gnu.org/viewcvs?rev=278591&root=gcc&view=rev Log: Add more markup to vect-alias-check-{1,18}.c (PR 92543)

[Bug tree-optimization/92526] [10 Regression] ICE in vect_enhance_data_refs_alignment, at tree-vect-data-refs.c:2274 since r278244

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92526 --- Comment #2 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Nov 21 17:45:36 2019 New Revision: 278592 URL: https://gcc.gnu.org/viewcvs?rev=278592&root=gcc&view=rev Log: Reject versioning for alignment with different masks (PR

[Bug tree-optimization/92526] [10 Regression] ICE in vect_enhance_data_refs_alignment, at tree-vect-data-refs.c:2274 since r278244

2019-11-21 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92526 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolutio

[Bug testsuite/92619] New: [10 regression] gcc.dg/gnu2x-attrs-1.c fails starting with r278547

2019-11-21 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92619 Bug ID: 92619 Summary: [10 regression] gcc.dg/gnu2x-attrs-1.c fails starting with r278547 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/92569] [8/9/10 Regression] gfortran read with end directive does not trigger with -ffrontend-optimize

2019-11-21 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92569 anlauf at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 Status|WAITING

[Bug testsuite/92619] [10 regression] gcc.dg/gnu2x-attrs-1.c fails starting with r278547

2019-11-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92619 --- Comment #1 from Iain Sandoe --- duh, it looks like I missed a "" in the dg-error .. will sort it out.

[Bug c/92620] New: Ignored -fno-builtin -fno-builtin-memcpy

2019-11-21 Thread pj at hugeone dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92620 Bug ID: 92620 Summary: Ignored -fno-builtin -fno-builtin-memcpy Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread anthony.ajw at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #5 from Anthony Williams --- Where can I file a bug in the vDSO?

[Bug c/92620] Ignored -fno-builtin -fno-builtin-memcpy

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92620 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug tree-optimization/90836] Missing popcount pattern matching

2019-11-21 Thread tnfchris at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90836 Tamar Christina changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2019-11-21 Thread tnfchris at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 90836, which changed state. Bug 90836 Summary: Missing popcount pattern matching https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90836 What|Removed |Added --

[Bug c/92620] Ignored -fno-builtin -fno-builtin-memcpy

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92620 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > Why do you think this is a bug? > > From https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Standards.html#Standards: > Most of the compiler support routines used by G

[Bug fortran/92621] New: Segmentation fault with assumed rank allocatable intent(out) with bind(c)

2019-11-21 Thread jrfsousa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 Bug ID: 92621 Summary: Segmentation fault with assumed rank allocatable intent(out) with bind(c) Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug fortran/92621] Segmentation fault with assumed rank allocatable intent(out) with bind(c)

2019-11-21 Thread jrfsousa at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92621 --- Comment #1 from José Rui Faustino de Sousa --- Created attachment 47327 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47327&action=edit C code

[Bug testsuite/92622] New: FAIL: gcc.dg/Warray-bounds-22.c on ILP32: missing warnings for VLA on lines 67 and 69

2019-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92622 Bug ID: 92622 Summary: FAIL: gcc.dg/Warray-bounds-22.c on ILP32: missing warnings for VLA on lines 67 and 69 Product: gcc Version: 10.0 Status: UNCONFIRMED Seve

[Bug testsuite/92622] FAIL: gcc.dg/Warray-bounds-22.c on ILP32: missing warnings for VLA on lines 67 and 69

2019-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92622 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug testsuite/92623] FAIL: gcc.dg/Wstringop-overflow-17.c on ILP32: missing warning on line 8

2019-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92623 Martin Sebor changed: What|Removed |Added Keywords||diagnostic Status|UNCONFIRMED

[Bug testsuite/92623] New: FAIL: gcc.dg/Wstringop-overflow-17.c on ILP32: missing warning on line 8

2019-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92623 Bug ID: 92623 Summary: FAIL: gcc.dg/Wstringop-overflow-17.c on ILP32: missing warning on line 8 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug ada/92575] couple of suspicious assignments in expect.c

2019-11-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92575 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug ada/92575] couple of suspicious assignments in expect.c

2019-11-21 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92575 Eric Botcazou changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug libfortran/92569] [8/9/10 Regression] gfortran read with end directive does not trigger with -ffrontend-optimize

2019-11-21 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92569 anlauf at gcc dot gnu.org changed: What|Removed |Added Component|fortran |libfortran --- Comment #5 fro

[Bug rtl-optimization/71785] Computed gotos are mostly optimized away

2019-11-21 Thread rndfax at yandex dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71785 --- Comment #20 from Aleksey --- (In reply to Segher Boessenkool from comment #19) > '-freorder-blocks' > Reorder basic blocks in the compiled function in order to reduce > number of taken branches and improve code locality. > > E

[Bug testsuite/92619] [10 regression] gcc.dg/gnu2x-attrs-1.c fails starting with r278547

2019-11-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92619 --- Comment #2 from Iain Sandoe --- Author: iains Date: Thu Nov 21 19:56:34 2019 New Revision: 278594 URL: https://gcc.gnu.org/viewcvs?rev=278594&root=gcc&view=rev Log: [testsuite] Fix bad dg-error syntax in gnu2x-attrs-1.c. 2019-11-21 Iain Sa

[Bug testsuite/92619] [10 regression] gcc.dg/gnu2x-attrs-1.c fails starting with r278547

2019-11-21 Thread iains at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92619 Iain Sandoe changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/92566] rs6000_preferred_simd_mode isn't very good

2019-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92566 --- Comment #8 from Segher Boessenkool --- I don't think you need lines 4909..4911. How can we test this? Is there good test coverage for it already?

[Bug libfortran/92569] [8/9/10 Regression] gfortran read with end directive does not trigger with -ffrontend-optimize

2019-11-21 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92569 --- Comment #6 from anlauf at gcc dot gnu.org --- Something like the following fixes the testcase, but leads to regressions elsewhere in the testsuite (e.g. direct_io_{9,10}.f): Index: libgfortran/io/transfer.c ===

[Bug libfortran/92569] [8/9/10 Regression] gfortran read with end directive does not trigger with -ffrontend-optimize

2019-11-21 Thread anlauf at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92569 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |10.0 Known to fail|

[Bug tree-optimization/92608] [9/10 Regression] ICE: Segmentation fault (in find_loop_guard)

2019-11-21 Thread prathamesh3492 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92608 --- Comment #2 from prathamesh3492 at gcc dot gnu.org --- Author: prathamesh3492 Date: Thu Nov 21 20:20:36 2019 New Revision: 278598 URL: https://gcc.gnu.org/viewcvs?rev=278598&root=gcc&view=rev Log: Use safe_dyn_cast instead of dyn_cast in find_

[Bug rtl-optimization/92602] Failure in gcc.target/powerpc/bswap64-2.c

2019-11-21 Thread seurer at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92602 --- Comment #4 from seurer at gcc dot gnu.org --- FYI, this also causes an issue when building spec2017 in case anyone else runs into that. I'll have to change this part to use -fcommon. /home/seurer/gcc/install/gcc-test/bin/gcc -m64 -O3 -m

[Bug rtl-optimization/92602] Failure in gcc.target/powerpc/bswap64-2.c

2019-11-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92602 --- Comment #5 from Andrew Pinski --- (In reply to seurer from comment #4) > FYI, this also causes an issue when building spec2017 in case anyone else > runs into that. I'll have to change this part to use -fcommon. That was/is PR 92612.

[Bug libstdc++/92616] Inconsistency in time between system_clock::now() and time(nullptr)

2019-11-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92616 --- Comment #6 from Jonathan Wakely --- https://bugzilla.kernel.org/ but I think they prefer bugs to be reported to distros unless you're actually using the upstream kernel. So report it to Ubuntu (but mention it's also seen in Fedora).

[Bug c++/92402] parsing error in lambda trail return type with decltype, statement expressions and structured bindings

2019-11-21 Thread wjwray at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92402 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #1 from

[Bug libstdc++/92267] [9 Regression] crash with a cppunit test case (built by GCC 9) and cpptest (built with GCC 8)

2019-11-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92267 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug middle-end/92624] New: inconsistent folding of strcmp calls with unterminated arrays

2019-11-21 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92624 Bug ID: 92624 Summary: inconsistent folding of strcmp calls with unterminated arrays Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal P

[Bug c/66773] sign-compare warning for == and != are pretty useless

2019-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66773 --- Comment #11 from Segher Boessenkool --- Hi Daniel, (In reply to Daniel Marjamäki from comment #9) > Problems; > > * Code that performs comparison properly gets a warning. You get a warning if you compare a signed thing to an unsigned thin

[Bug target/92566] rs6000_preferred_simd_mode isn't very good

2019-11-21 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92566 --- Comment #9 from Segher Boessenkool --- Oh, and I think you can drop the if (!TARGET_ALTIVEC && !TARGET_VSX) thing? The rest of the code should handle that fine?

[Bug target/92611] auto vectorization failed for type promotation

2019-11-21 Thread crazylht at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92611 --- Comment #2 from Hongtao.liu --- (In reply to Richard Biener from comment #1) > I think Richard laid ground for this to work on x86 (it needs AVX512?), AVX512 is not needed. > not sure what is needed in the backend here to make V4QI -> V4SI co

[Bug c++/92625] New: Internal compiler error accessing element in static constexpr char array in template class using alias

2019-11-21 Thread haoranni at terpmail dot umd.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92625 Bug ID: 92625 Summary: Internal compiler error accessing element in static constexpr char array in template class using alias Product: gcc Version: 9.1.0 Status: UNCONFIR

[Bug target/92566] rs6000_preferred_simd_mode isn't very good

2019-11-21 Thread linkw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92566 --- Comment #10 from Kewen Lin --- Yes, you are right, it's fine to drop it. Since the previous code will early return if it's under (!TARGET_ALTIVEC && !TARGET_VSX), I was thinking it may be good to put an early return there. I'm fine to remove

[Bug target/92566] rs6000_preferred_simd_mode isn't very good

2019-11-21 Thread linkw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92566 Kewen Lin changed: What|Removed |Added Attachment #47325|0 |1 is obsolete|

[Bug target/92566] rs6000_preferred_simd_mode isn't very good

2019-11-21 Thread linkw at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92566 --- Comment #12 from Kewen Lin --- FWIW, I did some statistics collection with regression testing on P8 machine, the #hits on early return is 516, while the other # is 1147412. So the conclusion is that early return is useless (at least for those

[Bug c++/55809] g++ doesn't differentiate elaborated type specifier and typename specifier in dependent types

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55809 Eric Gallager changed: What|Removed |Added CC||jason at gcc dot gnu.org,

[Bug c/66773] sign-compare warning for == and != are pretty useless

2019-11-21 Thread daniel.marjamaki at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66773 --- Comment #12 from Daniel Marjamäki --- > Do you have examples of perfectly fine code where you get a warning? So, how would you fix the warning for `f`? Many programmers would "fix" it with a cast. Assuming that `s` and `u` can have arbitrar

[Bug c++/16168] -Weffc++ item 14 improvements

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16168 --- Comment #11 from Eric Gallager --- (In reply to Oren Ben-Kiki from comment #10) > All good points, which you could say about many opened bugs. > > The `-Weffc++` flag is a useful tool to keep large code bases working, even > when written by

[Bug c++/22395] -Weffc++ shouldn't warn about non-virtual dtor of private subclasses

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=22395 --- Comment #6 from Eric Gallager --- (In reply to Jonathan Wakely from comment #5) > private inheritance doesn't mean the destructor can't be called with the > wrong static type > > class Foo { > public: > ~Foo() {} > virtual void f() {

[Bug c++/56879] -Weffc++ warns about non-virtual base class destructor even if it is protected

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56879 Eric Gallager changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/81930] [meta-bug] Issues with -Weffc++

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81930 Bug 81930 depends on bug 56879, which changed state. Bug 56879 Summary: -Weffc++ warns about non-virtual base class destructor even if it is protected https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56879 What|Removed

[Bug c++/48920] typename specifier should not ignore non-type names

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48920 --- Comment #3 from Eric Gallager --- (In reply to Jonathan Wakely from comment #2) > For the first testcase [basic.scope.class] says no diagnostic required, > doesn't it? ok but what about adding an optional one though?

[Bug c/66773] sign-compare warning for == and != are pretty useless

2019-11-21 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66773 --- Comment #13 from Eric Gallager --- (In reply to Segher Boessenkool from comment #11) > Hi Daniel, > > (In reply to Daniel Marjamäki from comment #9) > > Problems; > > > > * Code that performs comparison properly gets a warning. > > You ge

<    1   2