From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52398 invoked by alias); 5 Oct 2018 12:33:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 52108 invoked by uid 48); 5 Oct 2018 12:32:59 -0000 From: "fergus.henderson at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87527] New: uniform_real_distribution can't generate the full range of finite floating point numbers Date: Fri, 05 Oct 2018 12:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fergus.henderson at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00423.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87527 Bug ID: 87527 Summary: uniform_real_distribution can't generate the full range of finite floating point numbers Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: fergus.henderson at gmail dot com Target Milestone: --- Created attachment 44795 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44795&action=3Dedit Example program demonstrating the problem. std::uniform_real_distribution doesn't work if you try to use it to cover t= he whole range of available finite floating point numbers: ... double low =3D std::numeric_limits::lowest(); double high =3D std::numeric_limits::max(); std::uniform_real_distribution<> distribution(low, high); ... distribution(generator) ... In that case, rather than returning a random finite float, it always returns "inf". The code in include/bits/random.h line 1862 =20 https://github.com/gcc-mirror/gcc/blob/140696c847da5f27f6b8b6f321c426c932dd= 1592/libstdc%2B%2B-v3/include/bits/random.h#L1862 computes __p.b() - __p.a() which in this case ends up being std::numeric_limits::max() - std::numeric_limits::lowest= () and that expression overflows to "inf", which then ends up propagating to t= he return value from std::uniform_real_distribution<>::operator(). See the attached example program uniform_real.cc for a test case. g++ -Wall uniform_real.cc ./a.out Expected behaviour: program runs successfully with no output. Observed behaviour:=20 a.out: uniform_real.cc:13: int main(): Assertion `x >=3D low && x < high' f= ailed. Observed with: gcc version 7.3.0 (Debian 7.3.0-5) and libstdc++.so.6.0.25 >>From gcc-bugs-return-617042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 12:49:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81737 invoked by alias); 5 Oct 2018 12:49:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81242 invoked by uid 48); 5 Oct 2018 12:49:03 -0000 From: "terra at gnome dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87502] Poor code generation for std::string("c-style string") Date: Fri, 05 Oct 2018 12:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: terra at gnome dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00424.txt.bz2 Content-length: 2437 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87502 --- Comment #7 from M Welinder --- Actually, it's more like 50+ instructions for destructing the string that never (or almost never) needs destructing. 16 of those appear to need linker fixup. Sample for the C++14 mode: call Z3fooRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE .LEHE5: movq (%rsp), %rbx leaq 16(%rsp), %rax cmpq %rax, %rbx je .L72 movq 16(%rsp), %rsi addq $1, %rsi je .L72 testq %rbx, %rbx je .L72 cmpq $128, %rsi ja .L73 movl _ZN9__gnu_cxx12__pool_allocIcE12_S_force_newE(%rip), %r9d testl %r9d, %r9d jle .L74 .L73: movq %rbx, %rdi call _ZdlPv .L72: [done] ... [out-of-band code] .p2align 4,,10 .p2align 3 .L74: movq %rsp, %rdi movl $_ZL28__gthrw___pthread_key_createPjPFvPvE, %ebp call _ZN9__gnu_cxx17__pool_alloc_base16_M_get_free_listEm movq %rsp, %rdi movq %rax, %r12 call _ZN9__gnu_cxx17__pool_alloc_base12_M_get_mutexEv movq %rax, %r13 testq %rbp, %rbp je .L75 movq %rax, %rdi call _ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t testl %eax, %eax je .L75 movl $8, %edi call __cxa_allocate_exception movl $_ZN9__gnu_cxx24__concurrence_lock_errorD1Ev, %edx movl $_ZTIN9__gnu_cxx24__concurrence_lock_errorE, %esi movq $_ZTVN9__gnu_cxx24__concurrence_lock_errorE+16, (%rax) movq %rax, %rdi .LEHB20: call __cxa_throw .LEHE20: .p2align 4,,10 .p2align 3 .L75: movq (%r12), %rax movq %rax, (%rbx) movq %rbx, (%r12) testq %rbp, %rbp je .L72 movq %r13, %rdi call _ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t testl %eax, %eax je .L72 movl $8, %edi call __cxa_allocate_exception movl $_ZN9__gnu_cxx26__concurrence_unlock_errorD1Ev, %edx movl $_ZTIN9__gnu_cxx26__concurrence_unlock_errorE, %esi movq $_ZTVN9__gnu_cxx26__concurrence_unlock_errorE+16, (%rax) movq %rax, %rdi .LEHB21: call __cxa_throw >>From gcc-bugs-return-617043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 12:55:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105344 invoked by alias); 5 Oct 2018 12:55:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105287 invoked by uid 55); 5 Oct 2018 12:55:26 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Fri, 05 Oct 2018 12:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00425.txt.bz2 Content-length: 1497 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #37 from Richard Biener --- Author: rguenth Date: Fri Oct 5 12:54:51 2018 New Revision: 264869 URL: https://gcc.gnu.org/viewcvs?rev=3D264869&root=3Dgcc&view=3Drev Log: 2018-10-05 Richard Biener PR tree-optimization/63155 * tree-ssa-ccp.c (ccp_propagate::visit_phi): Avoid excess vertical space in dumpfiles. * tree-ssa-propagate.h (ssa_propagation_engine::process_ssa_edge_worklist): Remove. * tree-ssa-propagate.c (cfg_blocks_back): New global. (ssa_edge_worklist_back): Likewise. (curr_order): Likewise. (cfg_blocks_get): Remove abstraction. (cfg_blocks_add): Likewise. (cfg_blocks_empty_p): Likewise. (add_ssa_edge): Add to current or next worklist based on RPO index. (add_control_edge): Likewise. (ssa_propagation_engine::process_ssa_edge_worklist): Fold into ... (ssa_propagation_engine::ssa_propagate): ... here. Unify iteration from CFG and SSA edge worklist so we process everything in RPO order, prioritizing forward progress over iteration. (ssa_prop_init): Allocate new worklists, do not dump immediate uses. (ssa_prop_fini): Free new worklists. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-ccp.c trunk/gcc/tree-ssa-propagate.c trunk/gcc/tree-ssa-propagate.h >>From gcc-bugs-return-617044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:14:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11394 invoked by alias); 5 Oct 2018 13:14:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11261 invoked by uid 48); 5 Oct 2018 13:14:11 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Fri, 05 Oct 2018 13:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00426.txt.bz2 Content-length: 2387 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #38 from Richard Biener --- For the last testcase the compile-time on trunk is now 25s at -O1: tree PTA : 3.37 ( 13%) 0.10 ( 30%) 3.46 ( = 13%) 12445 kB ( 2%) tree CCP : 4.61 ( 18%) 0.00 ( 0%) 4.62 ( = 18%) 646 kB ( 0%) tree FRE : 2.21 ( 9%) 0.01 ( 3%) 2.21 ( = 9%) 116 kB ( 0%) tree backward propagate : 5.03 ( 20%) 0.00 ( 0%) 5.04 ( = 20%) 0 kB ( 0%) out of ssa : 3.05 ( 12%) 0.00 ( 0%) 3.05 ( = 12%) 0 kB ( 0%) TOTAL : 25.39 0.33 25.72=20= =20=20=20=20=20=20 573954 kB and perf: Samples: 9K of event 'instructions', Event count (approx.): 107285199390=20= =20=20=20=20=20=20=20 Overhead Samples Command Shared Object Symbol=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 =E2=97=86 18.06% 1195 cc1 cc1 [.] (anonymous namespace)::backprop::process_var =E2=96=92 5.58% 560 cc1 cc1 [.] visit_phi=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 =E2=96=92 5.21% 476 cc1 cc1 [.] inchash::add_expr=20= =20=20=20=20=20=20 =E2=96=92 5.21% 671 cc1 cc1 [.] VN_INFO=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 =E2=96=92 5.14% 493 cc1 cc1 [.] bitmap_set_bit=20=20= =20=20=20=20=20=20=20=20 =E2=96=92 3.13% 296 cc1 cc1 [.] hash_table::find_with_hash =E2= =96=92 2.99% 287 cc1 cc1 [.] vn_phi_lookup=20=20= =20=20=20=20=20=20=20=20=20 =E2=96=92 2.39% 229 cc1 cc1 [.] bitmap_ior_into=20= =20=20=20=20=20=20=20=20 =E2=96=92 1.77% 165 cc1 cc1 [.] do_rpo_vn >>From gcc-bugs-return-617045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:21:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24431 invoked by alias); 5 Oct 2018 13:21:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24341 invoked by uid 48); 5 Oct 2018 13:21:51 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Fri, 05 Oct 2018 13:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00427.txt.bz2 Content-length: 680 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rsandifo at gcc dot gnu.org --- Comment #39 from Richard Biener --- Oh, and backprop is really intersect_uses () with FOR_EACH_IMM_USE_STMT (stmt, iter, var) { being quadratic due to its stupid implementation (we really have many uses of vars). If the pass can deal with duplicate stmt uses just fine using FOR_EACH_IMM_USE_FAST is going to be faster. >>From gcc-bugs-return-617046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:37:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101130 invoked by alias); 5 Oct 2018 13:37:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97279 invoked by uid 48); 5 Oct 2018 13:37:41 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87509] ICE in extract_insn, at recog.c:2305 Date: Fri, 05 Oct 2018 13:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00428.txt.bz2 Content-length: 435 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87509 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Segher Boessenkool --- Fixed. >>From gcc-bugs-return-617047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:42:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6510 invoked by alias); 5 Oct 2018 13:42:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6461 invoked by uid 48); 5 Oct 2018 13:42:33 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] New: Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Fri, 05 Oct 2018 13:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00429.txt.bz2 Content-length: 948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 Bug ID: 87528 Summary: Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jamborm at gcc dot gnu.org Target Milestone: --- According to my repeated measurements, r262486 and r262864 caused ~14% regression (roughly 7% and 7% each) in run-time of SPEC 2017 531.deepsjeng_r, with generic tuning (only), both at -O2 and -Ofast, on an Intel Skylake machine (Intel Xeon Platinum 8164 CPU). Martin Li=C5=A1ka could not reproduce this on his Kabylake machine, so I'd be very grateful if someone else could attempt to reproduce this. Having said that, I really can reproduce the regression very reliably. >>From gcc-bugs-return-617048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:51:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1191 invoked by alias); 5 Oct 2018 13:51:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1136 invoked by uid 48); 5 Oct 2018 13:51:25 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Fri, 05 Oct 2018 13:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00430.txt.bz2 Content-length: 3449 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 Martin Jambor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kugan at gcc dot gnu.org --- Comment #1 from Martin Jambor --- It seems that the machine does not like the newly generated calls into libgcc for popcount. The profile of r262486 (_slow variant) and the one immediately preceding it (the _fast variant) is: $ perf report -n --percent-limit=3D2 | cat # Overhead Samples Command Shared Object Symbol=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 # ........ ............ ............... ............. ................. # 6.15% 187930 deepsjeng_r_slow deepsjeng_r feval 5.88% 179434 deepsjeng_r_fast deepsjeng_r feval 5.56% 169734 deepsjeng_r_fast deepsjeng_r search 5.42% 165581 deepsjeng_r_slow deepsjeng_r search 5.19% 158575 deepsjeng_r_slow deepsjeng_r ProbeTT 5.16% 157546 deepsjeng_r_fast deepsjeng_r ProbeTT 4.74% 144696 deepsjeng_r_slow deepsjeng_r qsearch 4.72% 144193 deepsjeng_r_fast deepsjeng_r qsearch 2.76% 84389 deepsjeng_r_slow libgcc_s.so __popcountdi2 2.75% 83936 deepsjeng_r_fast deepsjeng_r see 2.73% 83307 deepsjeng_r_slow deepsjeng_r see 2.67% 81614 deepsjeng_r_slow deepsjeng_r order_moves 2.62% 80077 deepsjeng_r_fast deepsjeng_r order_moves 2.49% 76087 deepsjeng_r_slow deepsjeng_r FindFirstRemove 2.47% 75346 deepsjeng_r_fast deepsjeng_r FindFirstRemove 2.03% 61888 deepsjeng_r_fast deepsjeng_r make 2.03% 61861 deepsjeng_r_slow deepsjeng_r make The profile for r262864 (marked again as _slow below) and its immediate predecessor (marked _fast) is: # Overhead Samples Command Shared Object Symbol=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 # ........ ............ ............... ............. ................. #=20=20=20=20 5.87% 192681 deepsjeng_r_slow deepsjeng_r feval 5.74% 188254 deepsjeng_r_fast deepsjeng_r feval 5.48% 179850 deepsjeng_r_slow libgcc_s.so __popcountdi2 5.17% 169671 deepsjeng_r_slow deepsjeng_r search 5.04% 165438 deepsjeng_r_fast deepsjeng_r search 4.83% 158368 deepsjeng_r_fast deepsjeng_r ProbeTT 4.82% 158096 deepsjeng_r_slow deepsjeng_r ProbeTT 4.44% 145659 deepsjeng_r_fast deepsjeng_r qsearch 4.39% 144117 deepsjeng_r_slow deepsjeng_r qsearch 2.56% 84085 deepsjeng_r_fast libgcc_s.so __popcountdi2 2.55% 83853 deepsjeng_r_slow deepsjeng_r see 2.55% 83653 deepsjeng_r_fast deepsjeng_r see 2.54% 83383 deepsjeng_r_fast deepsjeng_r order_moves 2.44% 80246 deepsjeng_r_slow deepsjeng_r order_moves 2.31% 75966 deepsjeng_r_fast deepsjeng_r FindFirstRemove 2.30% 75575 deepsjeng_r_slow deepsjeng_r FindFirstRemove Again, let me emphasize this is all about generic march/mtune, native march/mtune is almost 3% faster than GCC 8. >>From gcc-bugs-return-617049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:52:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22250 invoked by alias); 5 Oct 2018 13:52:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19873 invoked by uid 48); 5 Oct 2018 13:52:18 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/87529] New: libbacktrace API forces users to have memory leaks Date: Fri, 05 Oct 2018 13:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00431.txt.bz2 Content-length: 1287 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87529 Bug ID: 87529 Summary: libbacktrace API forces users to have memory leaks Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libbacktrace Assignee: unassigned at gcc dot gnu.org Reporter: antoshkka at gmail dot com CC: ian at gcc dot gnu.org Target Milestone: --- Function for creating state `backtrace_create_state` returns a pointer to `struct backtrace_state`. There's no function to free the state so the users assume that the pointer returned from `backtrace_create_state` is a pointer to some static variable that should not be freed... Which is not true. `struct backtrace_state` is dynamically allocated. Multiple usages of `backtrace_create_state` consume all the available memory and lead to segfaults. Please add `backtrace_free_state` function that frees the resources allocat= ed by `backtrace_create_state` and document that state returned by `backtrace_create_state` should be freed. Another way to solve the problem is to=20 * always return the same state `backtrace_create_state` and override the `threaded` argument with 1 * free that state on exit >>From gcc-bugs-return-617050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:55:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113452 invoked by alias); 5 Oct 2018 13:55:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111260 invoked by uid 48); 5 Oct 2018 13:55:10 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95) Date: Fri, 05 Oct 2018 13:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.2.0 X-Bugzilla-Keywords: meta-bug, missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: dependson Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00432.txt.bz2 Content-length: 556 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D26163 Martin Jambor changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |87528 --- Comment #3 from Martin Jambor --- (I hope this is also for regressions) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 [Bug 87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake >>From gcc-bugs-return-617051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 13:57:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16017 invoked by alias); 5 Oct 2018 13:57:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15821 invoked by uid 48); 5 Oct 2018 13:57:01 -0000 From: "barry.revzin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87530] New: copy elision in return statement doesn't check for rvalue reference to object type Date: Fri, 05 Oct 2018 13:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: barry.revzin at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00433.txt.bz2 Content-length: 942 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87530 Bug ID: 87530 Summary: copy elision in return statement doesn't check for rvalue reference to object type Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- Example from StackOverflow (https://stackoverflow.com/q/52662407/2069064): struct Base { }; template struct A : Base { A(); A(Base&&); }; A foo() { A v; return v; } gcc accepts this code, invoking the A(Base&&) constructor in the return statement. But the requirement in [class.copy.elision]/3 requires the first type in the selected constructor to be an rvalue reference to the object's type, which it is not. >>From gcc-bugs-return-617052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 14:01:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20601 invoked by alias); 5 Oct 2018 14:01:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20451 invoked by uid 48); 5 Oct 2018 14:01:22 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/87529] libbacktrace API forces users to have memory leaks Date: Fri, 05 Oct 2018 14:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00434.txt.bz2 Content-length: 669 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87529 Ian Lance Taylor changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ian at airs dot com --- Comment #1 from Ian Lance Taylor --- Programs are expected to call backtrace_create_state once. There's no reas= on to call it more than once. Yes, I agree that it would be nice to have backtrace_free_state, but it's h= ard to write correctly. And it's hard to see why any program would want to call it, as it would be less efficient. >>From gcc-bugs-return-617053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 14:09:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85437 invoked by alias); 5 Oct 2018 14:09:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85385 invoked by uid 55); 5 Oct 2018 14:09:39 -0000 From: "ian at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/87529] libbacktrace API forces users to have memory leaks Date: Fri, 05 Oct 2018 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00435.txt.bz2 Content-length: 469 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87529 --- Comment #2 from ian at gcc dot gnu.org --- Author: ian Date: Fri Oct 5 14:09:07 2018 New Revision: 264871 URL: https://gcc.gnu.org/viewcvs?rev=3D264871&root=3Dgcc&view=3Drev Log: PR libbacktrace/87529 * backtrace.h: Document that backtrace_create_state should be called only once. Modified: trunk/libbacktrace/ChangeLog trunk/libbacktrace/backtrace.h >>From gcc-bugs-return-617054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 14:53:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116516 invoked by alias); 5 Oct 2018 14:53:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115408 invoked by uid 48); 5 Oct 2018 14:53:25 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/84342] Location views breaks cross builds of arm including gnueabihf Date: Fri, 05 Oct 2018 14:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: build, wrong-debug X-Bugzilla-Severity: major X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aoliva at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00436.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84342 Tamar Christina changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P1 |P2 Severity|critical |major --- Comment #15 from Tamar Christina --- Bringing down the priority as it's not a release blocker anymore. >>From gcc-bugs-return-617056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 15:02:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74826 invoked by alias); 5 Oct 2018 15:02:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74743 invoked by uid 48); 5 Oct 2018 15:02:28 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/71296] missing warning on strcat appending to a non-string Date: Fri, 05 Oct 2018 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00438.txt.bz2 Content-length: 495 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71296 Bug 71296 depends on bug 71625, which changed state. Bug 71625 Summary: missing strlen optimization on different array initializ= ation style https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 15:02:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74817 invoked by alias); 5 Oct 2018 15:02:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74708 invoked by uid 48); 5 Oct 2018 15:02:27 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Fri, 05 Oct 2018 15:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00437.txt.bz2 Content-length: 498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #23 from Martin Sebor --- The optimization was implemented in r263511 and the fallout has been resolv= ed. >>From gcc-bugs-return-617057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 15:27:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84724 invoked by alias); 5 Oct 2018 15:27:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82879 invoked by uid 55); 5 Oct 2018 15:27:13 -0000 From: "sje at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/71625] missing strlen optimization on different array initialization style Date: Fri, 05 Oct 2018 15:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: sje at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00439.txt.bz2 Content-length: 1238 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71625 --- Comment #24 from Steve Ellcey --- Author: sje Date: Fri Oct 5 15:26:40 2018 New Revision: 264874 URL: https://gcc.gnu.org/viewcvs?rev=3D264874&root=3Dgcc&view=3Drev Log: 2018-10-05 Steve Ellcey PR tree-optimization/71625 * /gcc.target/aarch64/vclz.c (test_vclz_s8): Add noinline attribute. (test_vclz_s16): Ditto. (test_vclz_s32): Ditto. (test_vclzq_s8): Ditto. (test_vclzq_s16): Ditto. (test_vclzq_s32): Ditto. (test_vclz_u8): Ditto. (test_vclz_u16): Ditto. (test_vclz_u32): Ditto. (test_vclzq_u8): Ditto. (test_vclzq_u16): Ditto. (test_vclzq_u32): Ditto. * gcc.target/aarch64/vneg_s.c (test_vneg_s8): Ditto. (test_vneg_s16): Ditto. (test_vneg_s32): Ditto. (test_vneg_s64): Ditto. (test_vnegd_s64): Ditto. (test_vnegq_s8): Ditto. (test_vnegq_s16): Ditto. (test_vnegq_s32): Ditto. (test_vnegq_s64): Ditto. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/aarch64/vclz.c trunk/gcc/testsuite/gcc.target/aarch64/vneg_s.c >>From gcc-bugs-return-617058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 15:37:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9520 invoked by alias); 5 Oct 2018 15:37:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9459 invoked by uid 48); 5 Oct 2018 15:37:40 -0000 From: "nok.raven at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87531] New: [8/9 Regression] assignment operator does nothing if performed as a call via operator= Date: Fri, 05 Oct 2018 15:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nok.raven at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00440.txt.bz2 Content-length: 1330 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87531 Bug ID: 87531 Summary: [8/9 Regression] assignment operator does nothing if performed as a call via operator=3D Product: gcc Version: 8.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nok.raven at gmail dot com Target Milestone: --- The regression appeared after 7.3.0 and not later than 8.1.0. I do not have 8.0.0 to test it. https://godbolt.org/z/jjoZ6t // main.cpp struct dummy {}; template struct foo : dummy { foo() : v() {} foo(T v_) : v(v_) {} void assign(foo const& rhs) { this->operator=3D(rhs); // the assignment does nothing //(*this).operator=3D(rhs); // this one does nothing too //*this =3D rhs; // this one works as expected } T v; }; template struct bar : foo { typedef foo base; bar() : base() {} bar(T v) : base(v) {} bar& operator=3D(bar const& rhs) { this->assign( static_cast(rhs) ) ; return *this ; } }; int main() { bar a, b(123); a.assign(b); if (a.v !=3D 123) throw "problem!"; } >>From gcc-bugs-return-617059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:11:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107190 invoked by alias); 5 Oct 2018 16:11:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107111 invoked by uid 48); 5 Oct 2018 16:11:44 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84143] Intrinsic output of PDT incorrectly includes type parameters Date: Fri, 05 Oct 2018 16:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00441.txt.bz2 Content-length: 374 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84143 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |jvdelisle at gcc dot gnu.o= rg >>From gcc-bugs-return-617061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:12:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108788 invoked by alias); 5 Oct 2018 16:12:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108740 invoked by uid 48); 5 Oct 2018 16:12:22 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Fri, 05 Oct 2018 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00443.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:12:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109548 invoked by alias); 5 Oct 2018 16:12:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109508 invoked by uid 48); 5 Oct 2018 16:12:43 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/82086] namelist read with repeat count fails when item is member of array of structures Date: Fri, 05 Oct 2018 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00444.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82086 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:12:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108012 invoked by alias); 5 Oct 2018 16:12:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107915 invoked by uid 48); 5 Oct 2018 16:12:00 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83829] Implement runtime checks for DT format specifier and allignment with effective items Date: Fri, 05 Oct 2018 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00442.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83829 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:16:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113520 invoked by alias); 5 Oct 2018 16:16:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113360 invoked by uid 48); 5 Oct 2018 16:16:27 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/81499] internal compiler error when compiling gfortran code with user-defined derived type i/o Date: Fri, 05 Oct 2018 16:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00445.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81499 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:17:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114988 invoked by alias); 5 Oct 2018 16:17:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114908 invoked by uid 48); 5 Oct 2018 16:17:42 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80009] Printing/writing a structure with a real edit descriptor. Date: Fri, 05 Oct 2018 16:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00446.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80009 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:18:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116658 invoked by alias); 5 Oct 2018 16:18:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116602 invoked by uid 48); 5 Oct 2018 16:18:43 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66499] Letters with accents change format behavior for X and T descriptors. Date: Fri, 05 Oct 2018 16:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00448.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D66499 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:18:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115858 invoked by alias); 5 Oct 2018 16:18:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 115801 invoked by uid 48); 5 Oct 2018 16:18:10 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/78351] comma not terminating READ of formatted input field - ok in 4.1.7, not 4.4.7- maybe related to 25419? Date: Fri, 05 Oct 2018 16:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.4.7 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00447.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78351 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:19:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117461 invoked by alias); 5 Oct 2018 16:19:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117418 invoked by uid 48); 5 Oct 2018 16:19:04 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/61632] Improve error locus on large format strings Date: Fri, 05 Oct 2018 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00449.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61632 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:19:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119204 invoked by alias); 5 Oct 2018 16:19:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119139 invoked by uid 48); 5 Oct 2018 16:19:38 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/38573] Missing markers for translation Date: Fri, 05 Oct 2018 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.4.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00451.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D38573 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:19:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118226 invoked by alias); 5 Oct 2018 16:19:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118153 invoked by uid 48); 5 Oct 2018 16:19:19 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/52387] I/O output of write after nonadvancing read Date: Fri, 05 Oct 2018 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00450.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52387 Jerry DeLisle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW >>From gcc-bugs-return-617070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:43:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41783 invoked by alias); 5 Oct 2018 16:43:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41717 invoked by uid 55); 5 Oct 2018 16:43:44 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87490] [9 Regression] ICE in expand_builtin_strnlen at gcc/builtins.c:3164 Date: Fri, 05 Oct 2018 16:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00452.txt.bz2 Content-length: 857 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87490 --- Comment #5 from Martin Sebor --- Author: msebor Date: Fri Oct 5 16:43:11 2018 New Revision: 264876 URL: https://gcc.gnu.org/viewcvs?rev=3D264876&root=3Dgcc&view=3Drev Log: PR tree-optimization/87490 - ICE in expand_builtin_strnlen with a constant argument and non-constant bound gcc/ChangeLog: PR tree-optimization/87490 * builtins.c (expand_builtin_strnlen): Handle a null data.decl consistently. gcc/testsuite/ChangeLog: PR tree-optimization/87490 * gcc.dg/pr87490.c: New test. * gcc.dg/warn-strnlen-no-nul-2.c: Same. Added: trunk/gcc/testsuite/gcc.dg/pr87490.c trunk/gcc/testsuite/gcc.dg/warn-strnlen-no-nul-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/builtins.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:44:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42722 invoked by alias); 5 Oct 2018 16:44:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42592 invoked by uid 48); 5 Oct 2018 16:44:12 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87490] [9 Regression] ICE in expand_builtin_strnlen at gcc/builtins.c:3164 Date: Fri, 05 Oct 2018 16:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00453.txt.bz2 Content-length: 434 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87490 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Martin Sebor --- Fixed in r264876. >>From gcc-bugs-return-617072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 16:57:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126235 invoked by alias); 5 Oct 2018 16:57:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126191 invoked by uid 48); 5 Oct 2018 16:57:23 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87532] New: bad results from vec_extract(unsigned char, foo) dependent upon function inline Date: Fri, 05 Oct 2018 16:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00454.txt.bz2 Content-length: 1535 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87532 Bug ID: 87532 Summary: bad results from vec_extract(unsigned char, foo) dependent upon function inline Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: willschm at gcc dot gnu.org Target Milestone: --- Created attachment 44796 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44796&action=3Dedit patch to add powerpc testcase vec-extract-v16qiu-v2a.c and -v2b.c Debugging an issue with an existing testcase that exercises vec_extract(unsigned char, #); and have run into this. Using gcc trunk bui= lt Oct 1, but believe this is not a new issue. Results from a call into get_auto_n(a,i) are correct/incorrect depending on whether the function being called is marked as __noinline__ .=20=20 Attaching a stripped down and slightly modified version of an existing vec-extract-v16qiu testcase. Per the output below, the 'get_auto_n return values are not consistent. > cat gcc/testsuite/gcc/gcc.log | egrep "^get_|PASS" PASS: gcc.target/powerpc/vec-extract-v16qiu-v2a.c (test for excess errors) get_auto_n return: -202182160 PASS: gcc.target/powerpc/vec-extract-v16qiu-v2a.c execution test PASS: gcc.target/powerpc/vec-extract-v16qiu-v2b.c (test for excess errors) get_auto_n return: 4 PASS: gcc.target/powerpc/vec-extract-v16qiu-v2b.c execution test >>From gcc-bugs-return-617073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 17:09:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11514 invoked by alias); 5 Oct 2018 17:09:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11451 invoked by uid 48); 5 Oct 2018 17:09:43 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87533] New: bogus assume_aligned attribute silently accepted Date: Fri, 05 Oct 2018 17:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00455.txt.bz2 Content-length: 1592 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87533 Bug ID: 87533 Summary: bogus assume_aligned attribute silently accepted Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The manual describes the assume_aligned attribute as follows: The assume_aligned attribute is used to tell the compiler that the functi= on return value points to memory, where the returned pointer minimum alignment= is given by the first argument. If the attribute has two arguments, the second argument is misalignment offset.=20 Clearly, the first argument must be a power of two, and second argument sho= uld presumably be greater than (or perhaps equal to) zero and less than the val= ue of the first argument. Finally, the attribute only makes sense on functions that return a pointer. Yet GCC silently accepts the following non-sensical declaration: $ cat c.c && gcc -S -Wall c.c __attribute ((assume_aligned (-1, -2))) void f (void) { } Clang, on the other hand, issues: c.c:1:15: warning: 'assume_aligned' attribute only applies to return values that are pointers or references [-Wignored-attributes] __attribute ((assume_aligned (-1, -2))) void f (void) { } ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~ After the return type is changed to void*, Clang then issues the following: c.c:1:15: error: requested alignment is not a power of 2 >>From gcc-bugs-return-617074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 17:31:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59112 invoked by alias); 5 Oct 2018 17:31:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58376 invoked by uid 48); 5 Oct 2018 17:31:33 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87533] bogus assume_aligned attribute silently accepted Date: Fri, 05 Oct 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00456.txt.bz2 Content-length: 576 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87533 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-05 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- Let me handle this. >>From gcc-bugs-return-617075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 17:39:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107075 invoked by alias); 5 Oct 2018 17:39:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104742 invoked by uid 48); 5 Oct 2018 17:39:06 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Fri, 05 Oct 2018 17:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00457.txt.bz2 Content-length: 931 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #2 from Alexander Monakov --- x86 has native popcount only with -msse4.2, otherwise popcount(int) first zero-extends to 64-bit, then calls __popcountdi2 (64-bit libgcc popcount). If the original code computes popcount on narrow types, or has only a few non-zero bits, it can be expected that libgcc replacement is slower. Even if size-wise popcount detection is an optimization, speed-wise GCC probably should avoid replacing a simple loop with a libgcc call (just like final value replacement avoids replacing a loop with computations involving modulus/division). >>From gcc-bugs-return-617076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 17:45:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122947 invoked by alias); 5 Oct 2018 17:45:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122875 invoked by uid 48); 5 Oct 2018 17:45:52 -0000 From: "wilson at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87391] [RISCV] -march=rv32i -mabi=ilp32e is erroneously accepted Date: Fri, 05 Oct 2018 17:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wilson at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wilson at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00458.txt.bz2 Content-length: 489 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87391 Jim Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Jim Wilson --- GCC patch applied, riscv-elf-psABI-doc updated, and riscv-c-api-doc updated. >>From gcc-bugs-return-617077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:02:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49984 invoked by alias); 5 Oct 2018 18:02:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49953 invoked by uid 48); 5 Oct 2018 18:02:46 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87534] New: Typo in sgxintrin.h Date: Fri, 05 Oct 2018 18:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00459.txt.bz2 Content-length: 1440 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87534 Bug ID: 87534 Summary: Typo in sgxintrin.h Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ubizjak at gmail dot com Target Milestone: --- Target: i386,x86-64 #define __enclv_bc(leaf, b, c, retval) \ __asm__ __volatile__("enclv\n\t" \ : "=3Da" (retval) \ : "a" (leaf), "b" (b), "c" (c) \ : "cc") #define __enclv_cd(leaf, c, d, retval) \ __asm__ __volatile__("enclv\n\t" \ : "=3Da" (retval) \ : "a" (leaf), "c" (c), "d" (d) \ : "cc") #define __enclv_generic(leaf, b, c, d, retval) \ __asm__ __volatile__("enclv\n\t" \ : "=3Da" (retval), "=3Db" (b), "=3Dc" (b), "=3Dd" (d)\ : "a" (leaf), "b" (b), "c" (c), "d" (d) \ : "cc") But SGX spec has ENCLS=E2=80=94Execute an Enclave System Function of Specified Leaf Number ENCLU=E2=80=94Execute an Enclave User Function of Specified Leaf Number There is no ENCLV instruction. >>From gcc-bugs-return-617078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:13:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94050 invoked by alias); 5 Oct 2018 18:13:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93984 invoked by uid 48); 5 Oct 2018 18:13:10 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/87529] libbacktrace API forces users to have memory leaks Date: Fri, 05 Oct 2018 18:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00460.txt.bz2 Content-length: 167 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87529 --- Comment #3 from Antony Polukhin --- Comment is enough to make me happy. Thanks! >>From gcc-bugs-return-617079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:17:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102117 invoked by alias); 5 Oct 2018 18:17:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102048 invoked by uid 48); 5 Oct 2018 18:17:15 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/82995] Segmentation fault passing optional argument to intrinsic sum function Date: Fri, 05 Oct 2018 18:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00461.txt.bz2 Content-length: 497 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82995 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW --- Comment #10 from Thomas Koenig --- Hm, seeems like the scalarizer has some things that I really, really do not understand... unassigning, I'll come back to it, hopefully. >>From gcc-bugs-return-617080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:21:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113268 invoked by alias); 5 Oct 2018 18:21:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113230 invoked by uid 48); 5 Oct 2018 18:21:27 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87535] New: multiple attribute assume_aligned interpreted inconsistently Date: Fri, 05 Oct 2018 18:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00462.txt.bz2 Content-length: 2300 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87535 Bug ID: 87535 Summary: multiple attribute assume_aligned interpreted inconsistently Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The example below shows that attribute assume_aligned is interpreted inconsistently between apparently equivalent declarations of the same funct= ion. When two such attributes are specified on the same declaration the one specified last wins. When the same pair are specified on distinct declarat= ions of the same function, the first one wins. Clang treats both forms consistently, but honors the attribute that was specified last. I think it's debatable whether that's preferable to honori= ng the most restrictive one as specified for _Alignas by C11. I'm leaning tow= ard going with the C11 approach to minimize surprises due to an inconsistency. $ cat c.c && gcc -O2 -S -Wall -fdump-tree-optimized=3D/dev/stdout c.c __attribute ((assume_aligned (8), // ignored assume_aligned (32))) // overrdides prior attribute char* f (void); void f1 (void) { char *p =3D f (); if ((__INTPTR_TYPE__)p & 31) // folded to false __builtin_abort (); } __attribute ((assume_aligned (8))) // overrides subsequent attribute void* g (void); __attribute ((assume_aligned (32))) // attribute ignored void* g (void); void g1 (void) { void *p =3D g (); if ((__INTPTR_TYPE__)p & 31) // not folded __builtin_abort (); } ;; Function f1 (f1, funcdef_no=3D0, decl_uid=3D1908, cgraph_uid=3D1, symbol= _order=3D0) f1 () { [local count: 1073741824]: f (); [tail call] return; } ;; Function g1 (g1, funcdef_no=3D1, decl_uid=3D1916, cgraph_uid=3D2, symbol= _order=3D1) g1 () { void * p; long int p.1_1; long int _2; [local count: 1073741824]: p_5 =3D g (); p.1_1 =3D (long int) p_5; _2 =3D p.1_1 & 31; if (_2 !=3D 0) goto ; [0.00%] else goto ; [99.96%] [count: 0]: __builtin_abort (); [local count: 1073312328]: return; } >>From gcc-bugs-return-617081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:25:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122024 invoked by alias); 5 Oct 2018 18:25:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121954 invoked by uid 48); 5 Oct 2018 18:24:57 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/87529] libbacktrace API forces users to have memory leaks Date: Fri, 05 Oct 2018 18:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00463.txt.bz2 Content-length: 437 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87529 Ian Lance Taylor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Ian Lance Taylor --- Thanks, closing this PR. >>From gcc-bugs-return-617082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:39:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44147 invoked by alias); 5 Oct 2018 18:39:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44094 invoked by uid 48); 5 Oct 2018 18:39:19 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87534] Typo in sgxintrin.h Date: Fri, 05 Oct 2018 18:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00464.txt.bz2 Content-length: 462 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87534 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from H.J. Lu --- It turns out that the assembler support is missing. >>From gcc-bugs-return-617083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 18:46:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99588 invoked by alias); 5 Oct 2018 18:46:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 99455 invoked by uid 48); 5 Oct 2018 18:46:49 -0000 From: "pthaugen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/77698] Unrolled loop not considered hot after profiling Date: Fri, 05 Oct 2018 18:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pthaugen at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00465.txt.bz2 Content-length: 1620 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77698 Pat Haugen changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #5 from Pat Haugen --- It's still not fixed in current trunk. After unrolling maybe_hot_bb_p() ret= urns false (via maybe_hot_count_p()), which prevents aligning the label in final.c:compute_alignments(). Here's the tail section of debug session and partial backtrace to show. maybe_hot_count_p (fun=3D0x7ffff59f0000, count=3D...) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:185 185 return (count.to_gcov_type () >=3D get_hot_bb_threshold ()); (gdb) p count.to_gcov_type () $3 =3D 250000 (gdb) p get_hot_bb_threshold () $4 =3D 1000000 (gdb) bt #0 maybe_hot_count_p (fun=3D0x7ffff59f0000, count=3D...) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:185 #1 0x0000000010d8fdb0 in maybe_hot_bb_p (fun=3D0x7ffff59f0000, bb=3D0x7ffff59801a0) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:195 #2 0x0000000010d9045c in optimize_bb_for_size_p (bb=3D0x7ffff59801a0) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/predict.c:301 #3 0x00000000108c7234 in compute_alignments () at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/final.c:674 #4 0x00000000108c7d3c in (anonymous namespace)::pass_compute_alignments::execute (this=3D0x12886200) at /home/pthaugen/src/gcc/trunk_work/gcc/gcc/final.c:823 >>From gcc-bugs-return-617084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 19:03:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69021 invoked by alias); 5 Oct 2018 19:03:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55649 invoked by uid 55); 5 Oct 2018 19:02:55 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56856] -Wformat warnings don't show location *within* format string in C++ FE Date: Fri, 05 Oct 2018 19:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00466.txt.bz2 Content-length: 4386 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56856 --- Comment #11 from David Malcolm --- Author: dmalcolm Date: Fri Oct 5 19:02:17 2018 New Revision: 264887 URL: https://gcc.gnu.org/viewcvs?rev=3D264887&root=3Dgcc&view=3Drev Log: Support string locations for C++ in -Wformat (PR c++/56856) -Wformat in the C++ FE doesn't work as well as it could: (a) it doesn't report precise locations within the string literal, and (b) it doesn't underline arguments for those arguments !CAN_HAVE_LOCATION_P, despite having location wrapper nodes. For example: Wformat-ranges.C:32:10: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=3D] 32 | printf("hello %s", 42); | ^~~~~~~~~~ (a) is due to not wiring up the langhook for extracting substring locations. This patch uses the one in c-family; it also fixes string literal parsing so that it records string concatenations (needed for extracting substring locations from concatenated strings). (b) is due to the call to maybe_constant_value here: fargs[j] =3D maybe_constant_value (argarray[j]); within build_over_call. The patch fixes this by building a vec of location_t values when calling check_function_arguments. I attempted to eliminate the maybe_constant_value call here, but it's needed by e.g. check_function_sentinel for detecting NULL, and that code is in "c-family", so it can't simply call into maybe_constant_value (which is in "cp"). With this patch, the output for the above example is improved to: Wformat-ranges.C:32:18: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'int' [-Wformat=3D] 32 | printf("hello %s", 42); | ~^ ~~ | | | | | int | char* | %d gcc/cp/ChangeLog: PR c++/56856 * call.c (build_over_call): Build a vec of locations of the arguments before the call to maybe_constant_value, and pass to check_function_arguments. * cp-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Define as c_get_substring_location. * parser.c (cp_parser_string_literal): Capture string concatenation locations. gcc/ChangeLog: PR c++/56856 * input.c (expand_location_to_spelling_point): Add param "aspect" and use rather than hardcoding LOCATION_ASPECT_CARET. (get_substring_ranges_for_loc): Handle the case of a single token within a macro expansion. * input.h (expand_location_to_spelling_point): Add "aspect" param, defaulting to LOCATION_ASPECT_CARET. gcc/testsuite/ChangeLog: PR c++/56856 * g++.dg/ext/builtin4.C: Set expected location for warning to the correct location within the format string. * g++.dg/plugin/plugin.exp (plugin_test_list): Add the plugin and files for testing locations within string literal locations from the C frontend. * g++.dg/warn/Wformat-method.C: New test. * g++.dg/warn/Wformat-pr71863.C: New test. * g++.dg/warn/Wformat-ranges-c++11.C: New test. * g++.dg/warn/Wformat-ranges.C: New test, based on gcc.dg/format/diagnostic-ranges.c. * gcc.dg/plugin/diagnostic-test-string-literals-1.c (test_multitoken_macro): Generalize expected output to work with both C and C++. * gcc.dg/plugin/diagnostic-test-string-literals-2.c (test_stringified_token_1): Likewise. (test_stringified_token_3): Likewise. Added: trunk/gcc/testsuite/g++.dg/warn/Wformat-method.C trunk/gcc/testsuite/g++.dg/warn/Wformat-pr71863.C trunk/gcc/testsuite/g++.dg/warn/Wformat-ranges-c++11.C trunk/gcc/testsuite/g++.dg/warn/Wformat-ranges.C Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/cp/cp-lang.c trunk/gcc/cp/parser.c trunk/gcc/input.c trunk/gcc/input.h trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/ext/builtin4.C trunk/gcc/testsuite/g++.dg/plugin/plugin.exp trunk/gcc/testsuite/gcc.dg/format/diagnostic-ranges.c trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-test-string-literals-1.c trunk/gcc/testsuite/gcc.dg/plugin/diagnostic-test-string-literals-2.c >>From gcc-bugs-return-617085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 19:04:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82533 invoked by alias); 5 Oct 2018 19:04:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74679 invoked by uid 48); 5 Oct 2018 19:04:18 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56856] -Wformat warnings don't show location *within* format string in C++ FE Date: Fri, 05 Oct 2018 19:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00467.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56856 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #12 from David Malcolm --- Should be fixed for gcc 9 by r264887. >>From gcc-bugs-return-617086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 19:04:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83355 invoked by alias); 5 Oct 2018 19:04:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79135 invoked by uid 48); 5 Oct 2018 19:04:20 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52952] Wformat location info is bad (wrong column number) Date: Fri, 05 Oct 2018 19:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00468.txt.bz2 Content-length: 498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52952 Bug 52952 depends on bug 56856, which changed state. Bug 56856 Summary: -Wformat warnings don't show location *within* format st= ring in C++ FE https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56856 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 19:25:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43167 invoked by alias); 5 Oct 2018 19:25:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35656 invoked by uid 48); 5 Oct 2018 19:24:53 -0000 From: "blelbach at cct dot lsu.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87536] New: Illegal recursive concept leads to compiler ICE Date: Fri, 05 Oct 2018 19:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: c++-concepts X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blelbach at cct dot lsu.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00469.txt.bz2 Content-length: 767 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87536 Bug ID: 87536 Summary: Illegal recursive concept leads to compiler ICE Product: gcc Version: c++-concepts Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: blelbach at cct dot lsu.edu Target Milestone: --- GCC concepts seem to allow the use of the name of a concept in the definiti= on of the concept itself. This appears to allow me to trick GCC into infinitely recursing and blowing up with an ICE: https://godbolt.org/z/p8Yuo0 A repro is as follows: template bool concept X =3D X; template struct A{}; A a; >>From gcc-bugs-return-617088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:06:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12924 invoked by alias); 5 Oct 2018 21:06:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12857 invoked by uid 48); 5 Oct 2018 21:06:16 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87537] New: Redundant vmovaps Date: Fri, 05 Oct 2018 21:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00470.txt.bz2 Content-length: 2187 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87537 Bug ID: 87537 Summary: Redundant vmovaps Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i386,x86-64 [hjl@gnu-skx-1 gcc]$ cat /export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/avx2-vbroa= dcastss_ps256-1.c /* { dg-do compile } */ /* { dg-options "-mavx2 -O2" } */ /* { dg-final { scan-assembler "vbroadcastss\[ \\t\]+\[^\n\]*%xmm\[0-9\]" }= } */ #include __m128 x; __m256 y; void extern avx2_test (void) { y =3D _mm256_broadcastss_ps (x); } [hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -S /export/gnu/import/git/sources/gcc/gcc/testsuite/gcc.target/i386/avx2-vbroa= dcastss_ps256-1.c -mavx2 -O2 cat[hjl@gnu-skx-1 gcc]$ cat avx2-vbroadcastss_ps256-1.s=20 .file "avx2-vbroadcastss_ps256-1.c" .text .p2align 4 .globl avx2_test .type avx2_test, @function avx2_test: .LFB5178: .cfi_startproc vmovaps x(%rip), %xmm1 vbroadcastss %xmm1, %ymm0 vmovaps %ymm0, y(%rip) vzeroupper ret .cfi_endproc .LFE5178: .size avx2_test, .-avx2_test .comm y,32,32 .comm x,16,16 .ident "GCC: (GNU) 9.0.0 20180901 (experimental)" .section .note.GNU-stack,"",@progbits [hjl@gnu-skx-1 gcc]$=20 We should generate [hjl@gnu-cfl-1 gcc]$ cat avx2-vbroadcastss_ps256-1.s .file "avx2-vbroadcastss_ps256-1.c" .text .p2align 4 .globl avx2_test .type avx2_test, @function avx2_test: .LFB5178: .cfi_startproc vbroadcastss x(%rip), %ymm0 vmovaps %ymm0, y(%rip) vzeroupper ret .cfi_endproc .LFE5178: .size avx2_test, .-avx2_test .comm y,32,32 .comm x,16,16 .ident "GCC: (GNU) 9.0.0 20181005 (experimental)" .section .note.GNU-stack,"",@progbits [hjl@gnu-cfl-1 gcc]$ >>From gcc-bugs-return-617089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:18:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61815 invoked by alias); 5 Oct 2018 21:18:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61718 invoked by uid 48); 5 Oct 2018 21:18:55 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87532] bad results from vec_extract(unsigned char, foo) dependent upon function inline Date: Fri, 05 Oct 2018 21:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00471.txt.bz2 Content-length: 428 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87532 --- Comment #1 from Will Schmidt --- Created attachment 44797 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44797&action=3Dedit simpler testcase variation Simplified the testcase a bit. comment/uncomment the noinline attribute on the get_auto_n() function to to= ggle=20 pass/fail. Fails with -O2. on Power8. (probably also power9). >>From gcc-bugs-return-617090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:19:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62924 invoked by alias); 5 Oct 2018 21:19:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62868 invoked by uid 48); 5 Oct 2018 21:19:34 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/81871] bogus attribute alloc_align accepted Date: Fri, 05 Oct 2018 21:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00472.txt.bz2 Content-length: 798 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81871 --- Comment #2 from Martin Sebor --- Clang prints: a.c:1:22: warning: 'alloc_align' attribute only applies to return values = that are pointers or references [-Wignored-attributes] After changing the return type to void*, Clang then prints: a.c:1:30: error: 'alloc_align' attribute argument may only refer to a function parameter of integer type GCC accepts both without a warning. In fact, GCC accepts alloc_align even = on function declarations where the argument is not an integer, such as in: struct S { }; __attribute__ ((alloc_align (1))) void* f (struct S); Clang detects this as well: a.c:2:30: error: 'alloc_align' attribute argument may only refer to a function parameter of integer type >>From gcc-bugs-return-617091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:20:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64794 invoked by alias); 5 Oct 2018 21:20:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 64665 invoked by uid 48); 5 Oct 2018 21:19:58 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/81871] bogus attribute alloc_align accepted Date: Fri, 05 Oct 2018 21:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00473.txt.bz2 Content-length: 462 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81871 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org --- Comment #3 from Martin Sebor --- Let me fix this. >>From gcc-bugs-return-617092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:20:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67997 invoked by alias); 5 Oct 2018 21:20:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67345 invoked by uid 48); 5 Oct 2018 21:20:29 -0000 From: "barry.revzin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] New: Incorrect noexcept specifier for not_fn Date: Fri, 05 Oct 2018 21:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: barry.revzin at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00474.txt.bz2 Content-length: 1129 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 Bug ID: 87538 Summary: Incorrect noexcept specifier for not_fn Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: barry.revzin at gmail dot com Target Milestone: --- Found by Edgar Rokj=C4=81n (https://stackoverflow.com/q/52673235/2069064). = The noexcept specifier for _Not_fn currently only checks the noexcept-ness of applying the ! operator on the return type, not of the actual call: noexcept(noexcept(_S_not<__inv_res_t<_Fn _QUALS, _Args...>>())) As a result, this fails: #include struct X {=20 int operator()(int); }; static_assert(!noexcept( std::not_fn(X{})(2))); While not_fn isn't actually specified to have any kind of noexcept-specifie= r, this one seems actively wrong - either it should propagate through the type= 's actual call function (so the above assert shouldn't trigger) or it should n= ever be noexcept (likewise). >>From gcc-bugs-return-617093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 21:57:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124067 invoked by alias); 5 Oct 2018 21:57:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121533 invoked by uid 48); 5 Oct 2018 21:57:39 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/81851] missing -Wduplicated-branches on if and return statements with no else Date: Fri, 05 Oct 2018 21:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00475.txt.bz2 Content-length: 422 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D81851 --- Comment #6 from Martin Sebor --- (In reply to Jonathan Wakely from comment #5) I would think warning in this case should be fine, just as it is on the bel= ow when NDEBUG is defined: int f (int i) { if (i =3D=3D 0) // -Wduplicated-branches (good) return 0; else { #ifndef NDEBUG assert (i > 0); #endif return 0; } } >>From gcc-bugs-return-617094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 22:01:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16802 invoked by alias); 5 Oct 2018 22:01:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16413 invoked by uid 48); 5 Oct 2018 22:00:52 -0000 From: "mark at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87472] Unknown macro opcode with -gsplit-dwarf -g3 Date: Fri, 05 Oct 2018 22:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00476.txt.bz2 Content-length: 568 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87472 --- Comment #2 from Mark Wielaard --- (In reply to Richard Biener from comment #1) > Confirmed with GCC 8 and just -g3 -gsplit-dwarf. readelf isn't very verb= ose > of which macro section it complains about though... >=20 > Mark? With -gsplit-dwarf the .debug_macro section (actually the .debug_macro.dwo section) goes into the .dwo file. readelf is complaining about the second a= nd third such section. But there really should only be one debug_macro section. Need to figure out why. >>From gcc-bugs-return-617096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 22:58:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26829 invoked by alias); 5 Oct 2018 22:58:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26685 invoked by uid 48); 5 Oct 2018 22:58:48 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87533] bogus assume_aligned attribute silently accepted Date: Fri, 05 Oct 2018 22:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00478.txt.bz2 Content-length: 422 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87533 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00360.html >>From gcc-bugs-return-617095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 22:58:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25932 invoked by alias); 5 Oct 2018 22:58:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 25828 invoked by uid 48); 5 Oct 2018 22:58:25 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87535] multiple attribute assume_aligned interpreted inconsistently Date: Fri, 05 Oct 2018 22:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00477.txt.bz2 Content-length: 542 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87535 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D81871 --- Comment #1 from Martin Sebor --- See also pr81871 for other problems with the handling of the assume_aligned attribute. >>From gcc-bugs-return-617097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 22:59:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110040 invoked by alias); 5 Oct 2018 22:59:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103619 invoked by uid 48); 5 Oct 2018 22:59:51 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87535] multiple attribute assume_aligned interpreted inconsistently Date: Fri, 05 Oct 2018 22:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00479.txt.bz2 Content-length: 532 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87535 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- See Also|https://gcc.gnu.org/bugzill |https://gcc.gnu.org/bugzill |a/show_bug.cgi?id=3D81871 |a/show_bug.cgi?id=3D87533 --- Comment #2 from Martin Sebor --- (In reply to Martin Sebor from comment #1) That should have been pr87533. >>From gcc-bugs-return-617098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 23:07:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97721 invoked by alias); 5 Oct 2018 23:07:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97442 invoked by uid 48); 5 Oct 2018 23:07:52 -0000 From: "mark at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/87472] Unknown macro opcode with -gsplit-dwarf -g3 Date: Fri, 05 Oct 2018 23:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00480.txt.bz2 Content-length: 1550 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87472 --- Comment #3 from Mark Wielaard --- (In reply to Mark Wielaard from comment #2) > (In reply to Richard Biener from comment #1) > > Confirmed with GCC 8 and just -g3 -gsplit-dwarf. readelf isn't very ve= rbose > > of which macro section it complains about though... > >=20 > > Mark? >=20 > With -gsplit-dwarf the .debug_macro section (actually the .debug_macro.dwo > section) goes into the .dwo file. readelf is complaining about the second > and third such section. But there really should only be one debug_macro > section. Need to figure out why. It is by design, see output_macinfo (): /* If any DW_MACRO_import were used, on those DW_MACRO_import entries=20= =20=20=20=20=20=20=20=20 terminate the current chain and switch to a new comdat .debug_macinfo= =20=20=20=20=20=20 section and emit the define/undef entries within it. */=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Which makes sense for normal .o files because the linker will resolve the references and comdat sections. But not for .dwo files. It isn't clear to me how DW_MACRO_import would work for split-dwarf. It loo= ks like there is no clear mechanism for it that would work. Which seems to mean that for split-dwarf we should not use it. Which would be somewhat painful since then we cannot easily deduplicate macro definitions anymore. It would have to be done by some post-processor (dwp or dwz?) that finds duplicates = and (re)creates the .debug_macro section. >>From gcc-bugs-return-617099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 23:35:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3567 invoked by alias); 5 Oct 2018 23:35:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 3492 invoked by uid 48); 5 Oct 2018 23:35:44 -0000 From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54005] Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free Date: Fri, 05 Oct 2018 23:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00481.txt.bz2 Content-length: 1162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54005 --- Comment #26 from Hans-Peter Nilsson --- (In reply to Jonathan Wakely from comment #25) > (In reply to Hans-Peter Nilsson from comment #23) > > ...and also, a call might be generated as the result of using > > __atomic_is_lock_free (instead of __atomic_always_lock_free), so the ta= rget > > may change its mind. Not good. >=20 > That should have been fixed by r227878 for Bug 65913 so that for these ca= ses > no call is generated. I went by the documentation, which says at r264855 for __atomic_is_lock_free that "If the built-in function is not known to be lock-free, a call is made= to a runtime routine named @code{__atomic_is_lock_free}." It certainly seems = to be that way too (builtins.c): static tree fold_builtin_atomic_is_lock_free (tree arg0, tree arg1) { if (!flag_inline_atomics) return NULL_TREE; /* If it isn't always lock free, don't generate a result. */ if (fold_builtin_atomic_always_lock_free (arg0, arg1) =3D=3D boolean_true= _node) return boolean_true_node; return NULL_TREE; } ISTM that this will not "inline" a return of "false". >>From gcc-bugs-return-617100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 05 23:47:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97261 invoked by alias); 5 Oct 2018 23:47:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96856 invoked by uid 48); 5 Oct 2018 23:47:16 -0000 From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54005] Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free Date: Fri, 05 Oct 2018 23:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00482.txt.bz2 Content-length: 3007 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54005 --- Comment #27 from Hans-Peter Nilsson --- (In reply to Jonathan Wakely from comment #24) > (In reply to Hans-Peter Nilsson from comment #22) > > Or do I misread that? Are __alignof(x) and the result of alignas(x) > > in the declaration guaranteed to always be the same here? >=20 > Yes. For the combination of alignof and alignas in *this* code it's not obvious to me. I can imagine that (for example) the alignment of a container can affect the __alignof(x) such that it's (for example) higher than the specifically alignas declaration of x, likely by bug, less likely by intent. IOW, to me, this isn't the alignas(type) =3D=3D=3D alignas(alignof(type)) in . Either way, whether the guarantee is by C++ standard wording or by gcc internals documentation carries not more value than the documentation for __atomic_is_lock_free when it comes to maintainer reading, heh... So, what I'd like to see is either: - This change in atomic_base.h, avoiding use of the specific object in is_lock_free and changing to __atomic_always_lock_free: Index: atomic_base.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- atomic_base.h (revision 264855) +++ atomic_base.h (working copy) @@ -355,7 +355,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { // Use a fake, minimally aligned pointer. return __atomic_is_lock_free(sizeof(_M_i), - reinterpret_cast(-__alignof(_M_i))); + reinterpret_cast(-_S_alignment)); } bool @@ -363,7 +363,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { // Use a fake, minimally aligned pointer. return __atomic_always_lock_free(sizeof(_M_i), - reinterpret_cast(-__alignof(_M_i))); + reinterpret_cast(-_S_alignment)); } _GLIBCXX_ALWAYS_INLINE void (Note the change to __atomic_always_lock_free. BTW, why use __alignof and = not alignof? No underscores in the _S_alignment expression!) -or- - at least a test in the C++ test-suite with at least a construct of the exact same form as the one in atomic_base.h but with an overaligned container and an assert that the alignof the inner object equals the alignas expression, as you asserted above. I know that'd cover only the first case of alignment-bleed that comes to mind, but it'd indicate an intent to future hackers. - optionally: wording in the gcc documentation to the effect of the __alignof =3D=3D=3D alignas guarantee. (Still, a test-case is more reliable than gcc documentation.) But, there's probably sufficient wording in the standard. Maybe some of that is already in place; if it isn't, I'll produce patches (and CC you, hoping for speedier review). Do we have common ground here? >>From gcc-bugs-return-617102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 02:13:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120149 invoked by alias); 6 Oct 2018 02:13:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119968 invoked by uid 55); 6 Oct 2018 02:13:03 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87479] [9 Regression] FAIL: gcc.target/i386/pr63527.c Date: Sat, 06 Oct 2018 02:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00484.txt.bz2 Content-length: 1747 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87479 --- Comment #3 from Peter Bergner --- Author: bergner Date: Sat Oct 6 02:12:30 2018 New Revision: 264897 URL: https://gcc.gnu.org/viewcvs?rev=3D264897&root=3Dgcc&view=3Drev Log: gcc/ PR rtl-optimization/86939 PR rtl-optimization/87479 * ira.h (non_conflicting_reg_copy_p): New prototype. * ira-lives.c (ignore_reg_for_conflicts): New static variable. (make_hard_regno_dead): Don't add conflicts for register ignore_reg_for_conflicts. (make_object_dead): Likewise. (non_conflicting_reg_copy_p): New function. (process_bb_node_lives): Set ignore_reg_for_conflicts for copies. Remove special conflict handling of REAL_PIC_OFFSET_TABLE_REGNUM. * lra-lives.c (ignore_reg_for_conflicts): New static variable. (make_hard_regno_dead): Don't add conflicts for register ignore_reg_for_conflicts. Remove special conflict handling of REAL_PIC_OFFSET_TABLE_REGNUM. Remove now unused argument check_pic_pseudo_p and update callers. (mark_pseudo_dead): Don't add conflicts for register ignore_reg_for_conflicts. (process_bb_lives): Set ignore_reg_for_conflicts for copies. gcc/testsuite/ PR rtl-optimization/86939 PR rtl-optimization/87479 * gcc.target/powerpc/pr86939.c: New test. * gcc/testsuite/gcc.target/i386/pr49095.c: Fix expected results. Added: trunk/gcc/testsuite/gcc.target/powerpc/pr86939.c Modified: trunk/gcc/ChangeLog trunk/gcc/ira-lives.c trunk/gcc/ira.h trunk/gcc/lra-lives.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/i386/pr49095.c >>From gcc-bugs-return-617101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 02:13:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120116 invoked by alias); 6 Oct 2018 02:13:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119956 invoked by uid 55); 6 Oct 2018 02:13:02 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86939] IRA incorrectly creates an interference between a pseudo register and a hard register Date: Sat, 06 Oct 2018 02:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00483.txt.bz2 Content-length: 1747 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86939 --- Comment #3 from Peter Bergner --- Author: bergner Date: Sat Oct 6 02:12:30 2018 New Revision: 264897 URL: https://gcc.gnu.org/viewcvs?rev=3D264897&root=3Dgcc&view=3Drev Log: gcc/ PR rtl-optimization/86939 PR rtl-optimization/87479 * ira.h (non_conflicting_reg_copy_p): New prototype. * ira-lives.c (ignore_reg_for_conflicts): New static variable. (make_hard_regno_dead): Don't add conflicts for register ignore_reg_for_conflicts. (make_object_dead): Likewise. (non_conflicting_reg_copy_p): New function. (process_bb_node_lives): Set ignore_reg_for_conflicts for copies. Remove special conflict handling of REAL_PIC_OFFSET_TABLE_REGNUM. * lra-lives.c (ignore_reg_for_conflicts): New static variable. (make_hard_regno_dead): Don't add conflicts for register ignore_reg_for_conflicts. Remove special conflict handling of REAL_PIC_OFFSET_TABLE_REGNUM. Remove now unused argument check_pic_pseudo_p and update callers. (mark_pseudo_dead): Don't add conflicts for register ignore_reg_for_conflicts. (process_bb_lives): Set ignore_reg_for_conflicts for copies. gcc/testsuite/ PR rtl-optimization/86939 PR rtl-optimization/87479 * gcc.target/powerpc/pr86939.c: New test. * gcc/testsuite/gcc.target/i386/pr49095.c: Fix expected results. Added: trunk/gcc/testsuite/gcc.target/powerpc/pr86939.c Modified: trunk/gcc/ChangeLog trunk/gcc/ira-lives.c trunk/gcc/ira.h trunk/gcc/lra-lives.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.target/i386/pr49095.c >>From gcc-bugs-return-617103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 02:14:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127891 invoked by alias); 6 Oct 2018 02:14:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127124 invoked by uid 48); 6 Oct 2018 02:14:17 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87479] [9 Regression] FAIL: gcc.target/i386/pr63527.c Date: Sat, 06 Oct 2018 02:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00485.txt.bz2 Content-length: 427 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87479 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Peter Bergner --- Fixed. >>From gcc-bugs-return-617104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 02:16:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6642 invoked by alias); 6 Oct 2018 02:16:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4453 invoked by uid 48); 6 Oct 2018 02:15:26 -0000 From: "bergner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/86939] IRA incorrectly creates an interference between a pseudo register and a hard register Date: Sat, 06 Oct 2018 02:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ra X-Bugzilla-Severity: normal X-Bugzilla-Who: bergner at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: bergner at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00486.txt.bz2 Content-length: 517 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86939 Peter Bergner changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #4 from Peter Bergner --- Both patches have been committed, so fixed. >>From gcc-bugs-return-617105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 03:32:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104712 invoked by alias); 6 Oct 2018 03:32:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104662 invoked by uid 48); 6 Oct 2018 03:32:25 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60917] sub-optimal diagnostic when instantiating template Date: Sat, 06 Oct 2018 03:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00487.txt.bz2 Content-length: 496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60917 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org --- Comment #2 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-617106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 03:36:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107629 invoked by alias); 6 Oct 2018 03:36:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 107535 invoked by uid 48); 6 Oct 2018 03:36:26 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/44317] ,##__VA_ARGS__ comma not eaten with -std=c++0x Date: Sat, 06 Oct 2018 03:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.4.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: emsr at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00488.txt.bz2 Content-length: 614 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D44317 --- Comment #8 from Eric Gallager --- (In reply to Eric Gallager from comment #7) > (In reply to emsr from comment #6) > > Created attachment 33119 [details] > > Patch to pedwarn. > >=20 > > This doesn't have the right column pointed out. > > Also, the message (and that given by clang) is, in my opinion, obscure. > > At least this starts the ball rolling. >=20 > Please submit the patch to the gcc-patches mailing list for review ...if you're still working on this, that is. (unassigning next time around if there's no reply) >>From gcc-bugs-return-617107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 03:37:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108942 invoked by alias); 6 Oct 2018 03:37:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108870 invoked by uid 48); 6 Oct 2018 03:37:27 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63156] web can't handle AUTOINC correctly Date: Sat, 06 Oct 2018 03:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: steven at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00489.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63156 --- Comment #11 from Eric Gallager --- (In reply to Steven Bosscher from comment #7) > (In reply to Carrot from comment #6) > > Since it is intentionally to remove flag DF_REF_READ_WRITE on use, >=20 > Ah, but I don't think that was the correct fix. The DEF and USE refs shou= ld > both have the flag set. Are you still working on this? >>From gcc-bugs-return-617108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 03:38:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112022 invoked by alias); 6 Oct 2018 03:38:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111124 invoked by uid 48); 6 Oct 2018 03:38:37 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug jit/64201] JIT tutorial does not describe accessing symbols from other DSOs Date: Sat, 06 Oct 2018 03:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: jit X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00490.txt.bz2 Content-length: 530 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64201 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-06 Ever confirmed|0 |1 --- Comment #1 from Eric Gallager --- I'll take your word for it and confirm and assign >>From gcc-bugs-return-617109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 03:39:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120194 invoked by alias); 6 Oct 2018 03:39:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119947 invoked by uid 48); 6 Oct 2018 03:39:18 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54429] [SH] SImode values get ferried through FPUL and FP regs for -O0 Date: Sat, 06 Oct 2018 03:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00491.txt.bz2 Content-length: 237 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54429 --- Comment #9 from Eric Gallager --- (In reply to Oleg Endo from comment #8) > BTW, the problem is also there when using LRA. Is this still the case? >>From gcc-bugs-return-617110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 08:00:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17231 invoked by alias); 6 Oct 2018 08:00:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 17090 invoked by uid 48); 6 Oct 2018 08:00:51 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54429] [SH] SImode values get ferried through FPUL and FP regs for -O0 Date: Sat, 06 Oct 2018 08:00:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00492.txt.bz2 Content-length: 341 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54429 --- Comment #10 from Oleg Endo --- (In reply to Eric Gallager from comment #9) > (In reply to Oleg Endo from comment #8) > > BTW, the problem is also there when using LRA. >=20 > Is this still the case? Just checked it on trunk. Yes, nothing has changed. >>From gcc-bugs-return-617111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 09:55:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123212 invoked by alias); 6 Oct 2018 09:55:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123178 invoked by uid 48); 6 Oct 2018 09:55:50 -0000 From: "r4sas at i2pd dot xyz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87539] New: internal compiler error when compiling project with Os optimization flag Date: Sat, 06 Oct 2018 09:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: r4sas at i2pd dot xyz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00493.txt.bz2 Content-length: 4621 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87539 Bug ID: 87539 Summary: internal compiler error when compiling project with Os optimization flag Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: r4sas at i2pd dot xyz Target Milestone: --- GCC info: Using built-in specs. COLLECT_GCC=3DC:\msys64-rack\mingw64\bin\gcc.exe COLLECT_LTO_WRAPPER=3DC:/msys64-rack/mingw64/bin/../lib/gcc/x86_64-w64-ming= w32/8.2.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-8.2.0/configure --prefix=3D/mingw64 --with-local-prefix=3D/mingw64/local --build=3Dx86_64-w64-mingw32 --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32 --with-native-system-header-dir=3D/mingw64/x86_64-w64-mingw32/include --libexecdir=3D/mingw64/lib --enable-bootstrap --with-arch=3Dx86-64 --with-tune=3Dgeneric --enable-languages=3Dada,c,lto,c++,objc,obj-c++,fortr= an --enable-shared --enable-static --enable-libatomic --enable-threads=3Dposix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=3Dyes --enable-libstdcxx-time=3Dyes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-che= ck --enable-lto --enable-libgomp --disable-multilib --enable-checking=3Drelease --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=3D/mingw64 --with-mpfr=3D/mingw64 --with-mpc=3D/mingw64 --with-isl=3D/mingw64 --with-pkgversion=3D'Rev3, Built by MSYS2 project' --with-bugurl=3Dhttps://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld Thread model: posix gcc version 8.2.0 (Rev3, Built by MSYS2 project) Command line: g++ -Os -D_MT -DWIN32 -D_WINDOWS -DWIN32_LEAN_AND_MEAN -DWIN32_APP -Wall -Wextra -std=3Dc++11 -Ilibi2pd -Ilibi2pd_client -Idaemon -I. -maes -mavx -c= -o obj/libi2pd_client/ClientContext.o libi2pd_client/ClientContext.cpp Compiler output: In file included from C:/msys64-rack/mingw64/include/boost/property_tree/ptree.hpp:516, from libi2pd_client/ClientContext.cpp:3: C:/msys64-rack/mingw64/include/boost/property_tree/detail/ptree_implementat= ion.hpp: In instantiation of 'boost::optional boost::property_tree::basic_ptree::get_value_optional() const [with Type =3D int; Key =3D std::__cxx11::basic_string; Data =3D std::__cxx11::basic_string; KeyCompare =3D std::less >]': C:/msys64-rack/mingw64/include/boost/property_tree/detail/ptree_implementat= ion.hpp:814:66: required from 'boost::optional boost::property_tree::basic_ptree::get_optional(const path_type&) const [with Type =3D int;= Key =3D std::__cxx11::basic_string; Data =3D std::__cxx11::basic_string; KeyCompare =3D std::less >; boost::property_tree::basic_ptree::path_type =3D boost::property_tree::string_path, boost::property_tree::id_translator > >]' C:/msys64-rack/mingw64/include/boost/property_tree/detail/ptree_implementat= ion.hpp:781:34: required from 'typename boost::disable_if, Type>::type boost::property_tree::basic_ptree::get(c= onst path_type&, const Type&) const [with Type =3D int; Key =3D std::__cxx11::basic_string; Data =3D std::__cxx11::basic_string; KeyCompare =3D std::less >; typename boost::disable_if, Type>::type =3D int; boost::property_tree::basic_ptree::path_type =3D boost::property_tree::string_path, boost::property_tree::id_translator > >]' libi2pd_client/ClientContext.cpp:457:85: required from here C:/msys64-rack/mingw64/include/boost/property_tree/detail/ptree_implementat= ion.hpp:735:59: internal compiler error: in tsubst_default_argument, at cp/pt.c:12714 typename translator_between::type()); ^~~~~~ libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source if appropriate. Preprocessed file in attachment. By the way, when used -O2 optimization fla= g, that source file compiles without problems. >>From gcc-bugs-return-617112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 09:58:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124910 invoked by alias); 6 Oct 2018 09:58:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124864 invoked by uid 48); 6 Oct 2018 09:58:18 -0000 From: "r4sas at i2pd dot xyz" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87539] internal compiler error when compiling project with Os optimization flag Date: Sat, 06 Oct 2018 09:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: r4sas at i2pd dot xyz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00494.txt.bz2 Content-length: 237 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87539 --- Comment #1 from r4sas --- Created attachment 44798 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44798&action=3Dedit compressed preprocessed file >>From gcc-bugs-return-617113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:04:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117059 invoked by alias); 6 Oct 2018 11:04:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116942 invoked by uid 48); 6 Oct 2018 11:04:14 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52952] Wformat location info is bad (wrong column number) Date: Sat, 06 Oct 2018 11:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00495.txt.bz2 Content-length: 255 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52952 --- Comment #52 from David Malcolm --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #51) > 1. C++ does not work C++ should be fixed for gcc 9 by r264887. >>From gcc-bugs-return-617114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:16:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7983 invoked by alias); 6 Oct 2018 11:16:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7848 invoked by uid 48); 6 Oct 2018 11:16:11 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/52952] Wformat location info is bad (wrong column number) Date: Sat, 06 Oct 2018 11:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00496.txt.bz2 Content-length: 1353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D52952 --- Comment #53 from David Malcolm --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #51) > 2. Locations within strings expanded from a macro (2) should also be fixed for gcc 9 by r264887: /tmp/foo.c: In function =E2=80=98foo=E2=80=99: /tmp/foo.c:2:25: warning: format =E2=80=98%d=E2=80=99 expects argument of t= ype =E2=80=98int=E2=80=99, but argument 2 has type =E2=80=98double=E2=80=99 [-Wformat=3D] 2 | #define c " %d %d " | ^~~~~~~~~ /tmp/foo.c:3:20: note: in expansion of macro =E2=80=98c=E2=80=99 3 | __builtin_printf(c, 0.5, 0); | ^ /tmp/foo.c:2:28: note: format string is defined here 2 | #define c " %d %d " | ~^ | | | int | %f /tmp/foo.c:6:20: warning: format =E2=80=98%d=E2=80=99 expects argument of t= ype =E2=80=98int=E2=80=99, but argument 2 has type =E2=80=98double=E2=80=99 [-Wformat=3D] 6 | __builtin_printf(a, 0.5); | ^ ~~~ | | | double (same output for both C and C++) > 3. Location within strings from a const char array. (3) isn't yet fixed, as can be seen above. >>From gcc-bugs-return-617115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:46:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49958 invoked by alias); 6 Oct 2018 11:46:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49725 invoked by uid 55); 6 Oct 2018 11:46:18 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84640] gcc/fortran/simplify.c:2587:9: runtime error: pointer index expression with base 0x0000090de160 overflowed to 0xffffffffc0632960 Date: Sat, 06 Oct 2018 11:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00497.txt.bz2 Content-length: 668 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84640 --- Comment #8 from Thomas Koenig --- Author: tkoenig Date: Sat Oct 6 11:45:05 2018 New Revision: 264898 URL: https://gcc.gnu.org/viewcvs?rev=3D264898&root=3Dgcc&view=3Drev Log: 2018-10-06 Thomas Koenig PR fortran/84640 * simplify.c (gfc_simplify_cshift): Extend size of hs_ex and ss_ex by one. Set extents one past the array boundaries to zero to avoid warning with instrumented compiler. (gfc_simplify_eoshift): Likewise, only for ss_ex. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/simplify.c >>From gcc-bugs-return-617116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:48:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60333 invoked by alias); 6 Oct 2018 11:48:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60245 invoked by uid 48); 6 Oct 2018 11:48:50 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84640] gcc/fortran/simplify.c:2587:9: runtime error: pointer index expression with base 0x0000090de160 overflowed to 0xffffffffc0632960 Date: Sat, 06 Oct 2018 11:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00498.txt.bz2 Content-length: 436 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84640 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #9 from Thomas Koenig --- Fixed, closing. >>From gcc-bugs-return-617117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:48:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60342 invoked by alias); 6 Oct 2018 11:48:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 60264 invoked by uid 48); 6 Oct 2018 11:48:51 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined Date: Sat, 06 Oct 2018 11:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00499.txt.bz2 Content-length: 556 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63426 Bug 63426 depends on bug 84640, which changed state. Bug 84640 Summary: gcc/fortran/simplify.c:2587:9: runtime error: pointer in= dex expression with base 0x0000090de160 overflowed to 0xffffffffc0632960 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84640 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:56:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68393 invoked by alias); 6 Oct 2018 11:56:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68279 invoked by uid 48); 6 Oct 2018 11:56:54 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84109] ICE in adjustl on allocatable array of strings Date: Sat, 06 Oct 2018 11:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00500.txt.bz2 Content-length: 464 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84109 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #6 from Thomas Koenig --- I think this one is fixed now. Thanks Paul! >>From gcc-bugs-return-617119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:57:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68584 invoked by alias); 6 Oct 2018 11:57:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68345 invoked by uid 48); 6 Oct 2018 11:56:56 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68241] [meta-bug] [F03] Deferred-length character Date: Sat, 06 Oct 2018 11:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00501.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68241 Bug 68241 depends on bug 84109, which changed state. Bug 84109 Summary: ICE in adjustl on allocatable array of strings https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84109 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:58:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70214 invoked by alias); 6 Oct 2018 11:58:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70131 invoked by uid 48); 6 Oct 2018 11:58:09 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87239] ICE in deferred-length string Date: Sat, 06 Oct 2018 11:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00502.txt.bz2 Content-length: 516 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87239 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |tkoenig at gcc dot gnu.org Resolution|--- |FIXED --- Comment #8 from Thomas Koenig --- Also fixed. Thanks! >>From gcc-bugs-return-617121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 11:58:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70392 invoked by alias); 6 Oct 2018 11:58:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70173 invoked by uid 48); 6 Oct 2018 11:58:10 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68241] [meta-bug] [F03] Deferred-length character Date: Sat, 06 Oct 2018 11:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00503.txt.bz2 Content-length: 455 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68241 Bug 68241 depends on bug 87239, which changed state. Bug 87239 Summary: ICE in deferred-length string https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87239 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:05:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86186 invoked by alias); 6 Oct 2018 12:05:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86099 invoked by uid 48); 6 Oct 2018 12:05:36 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65677] Incomplete assignment on deferred-length character variable Date: Sat, 06 Oct 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00504.txt.bz2 Content-length: 507 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65677 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Thomas Koenig --- Also fixed. At this rate, you'll be running out of deferred character bugs to fix :-) >>From gcc-bugs-return-617123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:05:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86429 invoked by alias); 6 Oct 2018 12:05:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86147 invoked by uid 48); 6 Oct 2018 12:05:37 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68241] [meta-bug] [F03] Deferred-length character Date: Sat, 06 Oct 2018 12:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00505.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68241 Bug 68241 depends on bug 65677, which changed state. Bug 65677 Summary: Incomplete assignment on deferred-length character varia= ble https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65677 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:09:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102429 invoked by alias); 6 Oct 2018 12:09:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102021 invoked by uid 48); 6 Oct 2018 12:09:17 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/72709] Incorrect assignment of allocatable character array used as component of derived type Date: Sat, 06 Oct 2018 12:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.1.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00506.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D72709 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Thomas Koenig --- Also fixed. >>From gcc-bugs-return-617125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:09:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102736 invoked by alias); 6 Oct 2018 12:09:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102234 invoked by uid 48); 6 Oct 2018 12:09:18 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68241] [meta-bug] [F03] Deferred-length character Date: Sat, 06 Oct 2018 12:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00507.txt.bz2 Content-length: 513 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68241 Bug 68241 depends on bug 72709, which changed state. Bug 72709 Summary: Incorrect assignment of allocatable character array used= as component of derived type https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D72709 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:28:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123921 invoked by alias); 6 Oct 2018 12:28:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 123782 invoked by uid 48); 6 Oct 2018 12:27:58 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83999] [8/9 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233 Date: Sat, 06 Oct 2018 12:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00508.txt.bz2 Content-length: 342 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83999 --- Comment #8 from Thomas Koenig --- For some reason, the array spec is not set for the symbol for z1.f90: (gdb) p sym->as=20=20=20=20 $11 =3D (gfc_array_spec *) 0x0 (gdb) p sym->name $12 =3D 0x7ffff734d0b8 "f" (with a breakpoint in resolve_fl_procedure). >>From gcc-bugs-return-617127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 12:57:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104601 invoked by alias); 6 Oct 2018 12:57:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104503 invoked by uid 48); 6 Oct 2018 12:57:50 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83999] [8/9 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233 Date: Sat, 06 Oct 2018 12:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00509.txt.bz2 Content-length: 735 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83999 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org --- Comment #9 from Paul Thomas --- Created attachment 44799 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44799&action=3Dedit Patch for the PR For some reason, I do not see the problem on the current 8-branch. In fact,= it comes up with the correct error, even though this patch has not been applie= d! I will apply to both branches as a belt-and-braces fix :-) Cheers Paul >>From gcc-bugs-return-617128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 13:03:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110530 invoked by alias); 6 Oct 2018 13:03:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110457 invoked by uid 55); 6 Oct 2018 13:03:44 -0000 From: "paul.richard.thomas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65677] Incomplete assignment on deferred-length character variable Date: Sat, 06 Oct 2018 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paul.richard.thomas at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00510.txt.bz2 Content-length: 1943 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65677 --- Comment #8 from paul.richard.thomas at gmail dot com --- I am trying to run out. I was stung by some of the comments in the standards survey about quality of implementation in all brands. This came out as one of the worst for gfortran so I decided to set about fixing it :-) This version of PR87151 is turning out to be the hardest. module bvec type, public :: bvec_t private character(:), dimension(:), allocatable :: vc contains PROCEDURE, PASS :: create PROCEDURE, PASS :: delete end type bvec_t contains subroutine create(this) class(bvec_t), intent(inout) :: this allocate(character(2)::this%vc(3)) if (len (this%vc) .ne. 2) stop 1 if (size (this%vc) .ne. 3) stop 2 end subroutine create subroutine delete(this) class(bvec_t), intent(inout) :: this if (allocated (this%vc)) then print *, "> ", this%vc(2) if (size (this%vc) .ne. 3) stop 4 deallocate (this%vc) endif end subroutine delete end module bvec program test use bvec type(bvec_t) :: a call a%create() call a%delete() end program test Paul On Sat, 6 Oct 2018 at 13:05, tkoenig at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65677 > > Thomas Koenig changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > Status|NEW |RESOLVED > Resolution|--- |FIXED > > --- Comment #7 from Thomas Koenig --- > Also fixed. > > At this rate, you'll be running out of deferred character bugs > to fix :-) > > -- > You are receiving this mail because: > You are on the CC list for the bug. > You are the assignee for the bug. >>From gcc-bugs-return-617129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 13:05:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112363 invoked by alias); 6 Oct 2018 13:05:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111894 invoked by uid 55); 6 Oct 2018 13:05:27 -0000 From: "paul.richard.thomas at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84109] ICE in adjustl on allocatable array of strings Date: Sat, 06 Oct 2018 13:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paul.richard.thomas at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00511.txt.bz2 Content-length: 997 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84109 --- Comment #7 from paul.richard.thomas at gmail dot com --- Hi Thomas, I am going to apply a cumulative deferred character patch to 8-branch just as soon as the dust has settled on trunk. Cheers Paul On Sat, 6 Oct 2018 at 12:56, tkoenig at gcc dot gnu.org wrote: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84109 > > Thomas Koenig changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > Status|NEW |RESOLVED > Resolution|--- |FIXED > > --- Comment #6 from Thomas Koenig --- > I think this one is fixed now. Thanks Paul! > > -- > You are receiving this mail because: > You are on the CC list for the bug. > You are the assignee for the bug. >>From gcc-bugs-return-617130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 15:15:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48884 invoked by alias); 6 Oct 2018 15:15:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48523 invoked by uid 55); 6 Oct 2018 15:15:01 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83999] [8/9 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233 Date: Sat, 06 Oct 2018 15:15:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00512.txt.bz2 Content-length: 769 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83999 --- Comment #10 from Paul Thomas --- Author: pault Date: Sat Oct 6 15:14:29 2018 New Revision: 264899 URL: https://gcc.gnu.org/viewcvs?rev=3D264899&root=3Dgcc&view=3Drev Log: 2018-10-06 Paul Thomas PR fortran/83999 * resolve.c (resolve_fl_procedure): Include class functions in the test that elemental function results be scalar. 2018-10-06 Paul Thomas PR fortran/83999 * gfortran.dg/elemental_function_4.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/elemental_function_4.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 15:46:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43616 invoked by alias); 6 Oct 2018 15:46:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43257 invoked by uid 48); 6 Oct 2018 15:45:53 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/54429] [SH] SImode values get ferried through FPUL and FP regs for -O0 Date: Sat, 06 Oct 2018 15:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00513.txt.bz2 Content-length: 798 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54429 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-06 Ever confirmed|0 |1 --- Comment #11 from Eric Gallager --- (In reply to Oleg Endo from comment #10) > (In reply to Eric Gallager from comment #9) > > (In reply to Oleg Endo from comment #8) > > > BTW, the problem is also there when using LRA. > >=20 > > Is this still the case? >=20 > Just checked it on trunk. Yes, nothing has changed. OK, changing status to ASSIGNED then >>From gcc-bugs-return-617132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:12:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36628 invoked by alias); 6 Oct 2018 16:12:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36582 invoked by uid 48); 6 Oct 2018 16:12:17 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/62269] m32c-elf libgcc fails to configure- setjmp/longjmp exception check Date: Sat, 06 Oct 2018 16:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00514.txt.bz2 Content-length: 1025 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D62269 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dj at redhat dot com Assignee|dj at redhat dot com |unassigned at gcc d= ot gnu.org --- Comment #3 from Eric Gallager --- (In reply to Eric Gallager from comment #1) > Should DJ Delorie still remain the assignee for this? (In reply to DJ Delorie from comment #2) > Sorry for not being as responsive as I should be, but I've tried > occasionally to fix the m32c-gcc issues and they just keep getting worse.= I > suspect m32c should be deprecated at this point, it's not one of of the > mcu's Renesas is promoting these days, and there are some unsolveable ICEs > building libgcc and newlib. >=20 > OTOH C++ *is* supported. OK, so that sounds like a "no" to my question then. >>From gcc-bugs-return-617133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:14:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52744 invoked by alias); 6 Oct 2018 16:14:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52695 invoked by uid 48); 6 Oct 2018 16:14:15 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/38667] gcc 4.3.2 build fails to create/link libgcc in SLES9 32-bit platform Date: Sat, 06 Oct 2018 16:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.3.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00515.txt.bz2 Content-length: 530 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D38667 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #8 from Eric Gallager --- (In reply to Eric Gallager from comment #7) > Is this still an issue with newer GCC? No reply; closing >>From gcc-bugs-return-617134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:16:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55119 invoked by alias); 6 Oct 2018 16:16:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55029 invoked by uid 48); 6 Oct 2018 16:16:23 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/39849] segfault for '__divtf3' during bootstrap and non-bootstrap install Date: Sat, 06 Oct 2018 16:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.4.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00516.txt.bz2 Content-length: 757 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D39849 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #22 from Eric Gallager --- (In reply to Eric Gallager from comment #21) > (In reply to Dennis Wassel from comment #20) > > Created attachment 18382 [details] > > Preprocessed source (of trunk revision 150835) >=20 > I can't reproduce this with gcc 7 on my machine, but then again I'm on a > different target. Can you still reproduce it? No reply; closing. >>From gcc-bugs-return-617135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:19:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67807 invoked by alias); 6 Oct 2018 16:19:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67540 invoked by uid 48); 6 Oct 2018 16:19:48 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86418] warn about mismatch in type between argument and parameter type for declaration without prototype Date: Sat, 06 Oct 2018 16:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00517.txt.bz2 Content-length: 651 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86418 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D82922, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D83656 --- Comment #2 from Eric Gallager --- Related to bug 82922 and bug 83656 >>From gcc-bugs-return-617136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:21:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69580 invoked by alias); 6 Oct 2018 16:21:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69419 invoked by uid 48); 6 Oct 2018 16:21:32 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/82922] Request: add -Wstrict-prototypes to -Wextra as K&R style is obsolescent Date: Sat, 06 Oct 2018 16:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00518.txt.bz2 Content-length: 377 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82922 --- Comment #6 from Eric Gallager --- (In reply to Martin Sebor from comment #3) > Incremental patch for the testsuite: > https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00962.html >=20 > Unfortunately it sounds like it might be too late to enable the option in > GCC 8. What about for GCC 9? >>From gcc-bugs-return-617137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:27:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75048 invoked by alias); 6 Oct 2018 16:27:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74955 invoked by uid 48); 6 Oct 2018 16:27:02 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/44317] ,##__VA_ARGS__ comma not eaten with -std=c++0x Date: Sat, 06 Oct 2018 16:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 4.4.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: emsr at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00519.txt.bz2 Content-length: 1893 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D44317 Harald van Dijk changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |harald at gigawatt dot nl --- Comment #9 from Harald van Dijk --- The comma should not be eaten, as the invocation of FAIL() is valid in stan= dard C++. The rules of concatenation of empty pp-token sequences are well-define= d: the empty sequences are replaced by placemarker preprocessor tokens, and concatenating any non-placeholder token with a placemarker preprocessor tok= en produces the former, see [cpp.concat]. There is no exception for commas. Because of that, in that one special case where ,##__VA_ARGS__ is valid in = both standard C++ and GNU C++ with different meanings, the standard C++ meaning = is used in standard C++ modes, and the GNU C++ meaning is used in GNU C++ mode= s. If clang provides no option to let expand to standard C++'s rather than GNU C++'s , that is a clang bug, no= t a GCC bug. (clang does behave correctly in C99/C11 modes.) That's different from the ASSERT( false ) invocation: since that invocation= is invalid in standard C++ regardless of whether the definition uses __VA_ARGS= __, the invocation is diagnosed. Once the diagnostic is emitted, if GCC continu= es to accept the code as an extension, the standard places no requirements on = its behaviour. GCC is free to change the meaning of ,##__VA_ARGS__ in that case, and no standard requires any further diagnostics for it. Extending GCC with an additional warning for diagnosing ,##__VA_ARGS__ as a= GNU extension may make sense even despite that, but please do not change what ,##__VA_ARGS__ expands to. GCC is already correct there. >>From gcc-bugs-return-617138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 16:55:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14819 invoked by alias); 6 Oct 2018 16:55:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13805 invoked by uid 48); 6 Oct 2018 16:55:50 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87510] ICE in gen_reg_rtx, at emit-rtl.c:1155 Date: Sat, 06 Oct 2018 16:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00520.txt.bz2 Content-length: 901 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87510 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-06 Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Confirmed. define_insn_and_split "*floatuns2_inter= nal" splits if reload_completed, so no more pseudos can be created, but it calls gen_floatdi2 (floatdisf2 here), which creates a pseudo if you use -mno-popcntd. So we have enabled power9 but disabled the power7 insns. This will not fly. (This is just one instance of a more generic problem, for which we have more PRs already). >>From gcc-bugs-return-617139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 17:31:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86109 invoked by alias); 6 Oct 2018 17:31:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85249 invoked by uid 48); 6 Oct 2018 17:31:35 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/82922] Request: add -Wstrict-prototypes to -Wextra as K&R style is obsolescent Date: Sat, 06 Oct 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: diagnostic, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00521.txt.bz2 Content-length: 522 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82922 --- Comment #7 from Martin Sebor --- I posted a GCC 9 patch here: https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00675.html It adds -Wstrict-prototypes to -Wall. Unfortunately, it got derailed by (I= MO unsubstantiated) concerns about the impact on some poorly written configure tests. I'll see if I can find the time to adjust the patch to enable the option only with -Wextra and convince the powers that be to accept it into = GCC 9. >>From gcc-bugs-return-617140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 18:14:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41427 invoked by alias); 6 Oct 2018 18:14:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41356 invoked by uid 48); 6 Oct 2018 18:14:33 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86418] warn about mismatch in type between argument and parameter type for declaration without prototype Date: Sat, 06 Oct 2018 18:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00522.txt.bz2 Content-length: 511 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86418 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #3 from Eric Gallager --- (In reply to Eric Gallager from comment #2) > Related to bug 82922 and bug 83656 Adding Martin Sebor on cc to this one, too >>From gcc-bugs-return-617142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 18:20:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46951 invoked by alias); 6 Oct 2018 18:20:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46721 invoked by uid 55); 6 Oct 2018 18:20:46 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86111] ICE in gfc_arith_concat, at fortran/arith.c:985 Date: Sat, 06 Oct 2018 18:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00524.txt.bz2 Content-length: 961 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86111 --- Comment #2 from Thomas Koenig --- Author: tkoenig Date: Sat Oct 6 18:20:14 2018 New Revision: 264900 URL: https://gcc.gnu.org/viewcvs?rev=3D264900&root=3Dgcc&view=3Drev Log: 2018-10-06 Thomas Koenig PR fortran/86111 * gfortran.h (enum arith): Add ARITH_WRONGCONCAT. * arith.h (gfc_arith_error): Issue error for ARITH_WRONGCONCAT. (gfc_arith_concat): If the types of op1 and op2 are not character of if their kinds do not match, issue ARITH_WRONGCONCAT. 2018-10-06 Thomas Koenig PR fortran/86111 * gfortran.dg/array_constructor_type_23.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_constructor_type_23.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/arith.c trunk/gcc/fortran/gfortran.h trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 18:20:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46779 invoked by alias); 6 Oct 2018 18:20:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46614 invoked by uid 48); 6 Oct 2018 18:20:44 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/86418] warn about mismatch in type between argument and parameter type for declaration without prototype Date: Sat, 06 Oct 2018 18:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00523.txt.bz2 Content-length: 799 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86418 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-06 Ever confirmed|0 |1 --- Comment #4 from Martin Sebor --- Confirmed. My preference would be to resolve pr82922 and diagnose all call= s to functions without a prototype. Short of that, this could be handled by sav= ing the type of the first call to a function without a prototype in a translati= on unit, comparing it to the type of each subsequent call, and warning if they don't match. >>From gcc-bugs-return-617143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 19:13:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10892 invoked by alias); 6 Oct 2018 19:13:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10786 invoked by uid 48); 6 Oct 2018 19:13:44 -0000 From: "ibuclaw at gdcproject dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87156] [9 Regression] ICE building libstdc++ for mips64 Date: Sat, 06 Oct 2018 19:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ibuclaw at gdcproject dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00525.txt.bz2 Content-length: 1319 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87156 Iain Buclaw changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw at gdcproject dot = org --- Comment #6 from Iain Buclaw --- (In reply to Jan Hubicka from comment #3) > Does the attached patch fix the bootstrap? > Index: cgraphclones.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- cgraphclones.c (revision 264180) > +++ cgraphclones.c (working copy) > @@ -967,6 +967,8 @@ cgraph_node::create_version_clone_with_b > SET_DECL_ASSEMBLER_NAME (new_decl, DECL_NAME (new_decl)); > SET_DECL_RTL (new_decl, NULL); >=20=20 > + DECL_VIRTUAL_P (new_decl) =3D 0; > + > /* When the old decl was a con-/destructor make sure the clone isn't. = */ > DECL_STATIC_CONSTRUCTOR (new_decl) =3D 0; > DECL_STATIC_DESTRUCTOR (new_decl) =3D 0; I just got round to checking this, and reached the same conclusion without realising you already made a patch. Has this been posted yet? >>From gcc-bugs-return-617144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:31:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97044 invoked by alias); 6 Oct 2018 21:31:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96993 invoked by uid 48); 6 Oct 2018 21:31:54 -0000 From: "david.bolvansky at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87540] New: Missed inner loop hoist if the loop does not depend on outer loop Date: Sat, 06 Oct 2018 21:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.bolvansky at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00526.txt.bz2 Content-length: 1184 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87540 Bug ID: 87540 Summary: Missed inner loop hoist if the loop does not depend on outer loop Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: david.bolvansky at gmail dot com Target Milestone: --- Not sure how often this happens in the real world apps but anyway idea is.. int foo(void) { double *array =3D calloc(ARRAY_SIZE, sizeof(double)); double sum =3D 0; int i; for (i =3D 0; i < N_TIMES; i++) { // lot of code // well, this loop does not even depend on "i", hoist it? for (int j =3D 0; j < ARRAY_SIZE; j +=3D 8) { sum +=3D array[j] + array[j+1] + array[j+2] + array[j+3] + arra= y[j+4] + array[j+5] + array[j+6] + array[j+7]; } } return sum; } Let's say we have the big outer loop with many inner loops. GCC should dete= ct if these loops really depend on the outer loop and if not, hoist them out of this loop. >>From gcc-bugs-return-617145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:34:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113748 invoked by alias); 6 Oct 2018 21:34:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 111786 invoked by uid 48); 6 Oct 2018 21:34:40 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87541] New: ICE using a constant decl as an attribute alloc_size argument Date: Sat, 06 Oct 2018 21:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00527.txt.bz2 Content-length: 2498 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87541 Bug ID: 87541 Summary: ICE using a constant decl as an attribute alloc_size argument Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- Similar to bug 79984, using a named constant in an alloc_size argument caus= es an ICE in C++. $ cat x.c && gcc -S -Wall x.c const int r =3D 1; __attribute__ ((alloc_size (r))) void* f (int); void* g (void) { void *p =3D f (1); __builtin___memset_chk (p, 0, 1, __builtin_object_size (p, 1)); return p; } during RTL pass: expand x.c: In function =E2=80=98void* g()=E2=80=99: x.c:7:15: internal compiler error: tree check: expected integer_cst, have var_decl in initialize_argument_information, at calls.c:2059 void *p =3D f (1); ~~^~~ 0x15f600e tree_check_failed(tree_node const*, char const*, int, char const*, ...) /src/gcc/8-branch/gcc/tree.c:9333 0x81ca71 tree_int_cst_elt_check(tree_node*, int, char const*, int, char con= st*) /src/gcc/8-branch/gcc/tree.h:3335 0xc03e68 initialize_argument_information /src/gcc/8-branch/gcc/calls.c:2059 0xc0a4f4 expand_call(tree_node*, rtx_def*, int) /src/gcc/8-branch/gcc/calls.c:3723 0xdc9f69 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /src/gcc/8-branch/gcc/expr.c:11008 0xdbca98 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifi= er, rtx_def**, bool) /src/gcc/8-branch/gcc/expr.c:8233 0xdb1e8a store_expr_with_bounds(tree_node*, rtx_def*, int, bool, bool, tree_node*) /src/gcc/8-branch/gcc/expr.c:5635 0xdb03d4 expand_assignment(tree_node*, tree_node*, bool) /src/gcc/8-branch/gcc/expr.c:5403 0xc274b7 expand_call_stmt /src/gcc/8-branch/gcc/cfgexpand.c:2688 0xc2a7a8 expand_gimple_stmt_1 /src/gcc/8-branch/gcc/cfgexpand.c:3624 0xc2ae82 expand_gimple_stmt /src/gcc/8-branch/gcc/cfgexpand.c:3790 0xc32f95 expand_gimple_basic_block /src/gcc/8-branch/gcc/cfgexpand.c:5819 0xc348ee execute /src/gcc/8-branch/gcc/cfgexpand.c:6425 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-617146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:39:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88344 invoked by alias); 6 Oct 2018 21:39:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88279 invoked by uid 48); 6 Oct 2018 21:39:11 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87541] ]7/8 Regression] ICE using a constant decl as an attribute alloc_size argument Date: Sat, 06 Oct 2018 21:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00528.txt.bz2 Content-length: 1229 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87541 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-06 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Summary|ICE using a constant decl |]7/8 Regression] ICE using |as an attribute alloc_size |a constant decl as an |argument |attribute alloc_size | |argument Ever confirmed|0 |1 --- Comment #1 from Martin Sebor --- The ICE first appeared with r243470 (in GCC 7.0.0), though the problem was = most likely latent before then. r243470 | msebor | 2016-12-08 18:50:40 -0500 (Thu, 08 Dec 2016) | 44 lines PR c/77531 - __attribute__((alloc_size(1,2))) could also warn on multiplica= tion overflow PR c/78284 - warn on malloc with very large arguments >>From gcc-bugs-return-617147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:41:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116209 invoked by alias); 6 Oct 2018 21:41:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116173 invoked by uid 48); 6 Oct 2018 21:41:47 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87542] New: bogus error on attribute format with a named constant argument Date: Sat, 06 Oct 2018 21:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00529.txt.bz2 Content-length: 1180 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87542 Bug ID: 87542 Summary: bogus error on attribute format with a named constant argument Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The following program is accepted by GCC and triggers the expected diagnost= ic: $ cat x.c && gcc -O2 -S -Wall x.c enum { n =3D 1 }; __attribute__ ((format (printf, n, 2))) void f (const char*, ...); void g (void) { f ("%i", ""); } x.c: In function =E2=80=98g=E2=80=99: x.c:6:8: warning: format =E2=80=98%i=E2=80=99 expects argument of type =E2= =80=98int=E2=80=99, but argument 2 has type =E2=80=98char *=E2=80=99 [-Wformat=3D] f ("%i", ""); ~^ ~~ %s However, the same program in rejected in C++ with: x.c:2:65: error: format string has invalid operand number __attribute__ ((format (printf, n, 2))) void f (const char*, ...); ^ >>From gcc-bugs-return-617148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:43:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129197 invoked by alias); 6 Oct 2018 21:43:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129149 invoked by uid 48); 6 Oct 2018 21:43:39 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87542] [7/8/9 Regression] bogus error on attribute format with a named constant argument Date: Sat, 06 Oct 2018 21:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00530.txt.bz2 Content-length: 1948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87542 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Summary|bogus error on attribute |[7/8/9 Regression] bogus |format with a named |error on attribute format |constant argument |with a named constant | |argument --- Comment #1 from Martin Sebor --- The error first appeared with r189174 (in GCC 4.8.0): r189174 | jason | 2012-07-02 15:14:23 -0400 (Mon, 02 Jul 2012) | 20 lines PR c++/53524 gcc/cp/ * call.c (build_conditional_expr_1): Don't warn about comparison of two enumerators before their enumeration is complete. (build_new_op_1): Call decay_conversion before warn_logical_operato= r. * decl.c (build_enumerator): Set DECL_CONTEXT of an enumerator to its enumeration. * decl2.c (mark_used): Call used_types_insert for enums. * semantics.c (finish_id_expression): Don't decay CONST_DECL. (finish_member_declaration): Don't change DECL_CONTEXT of enumerato= rs. * class.c (check_field_decls): Don't change DECL_CONTEXT of enums. * typeck.c (convert_for_assignment): Don't decay CONST_DECL. (build_class_member_access_expr): Look through unscoped enums. * search.c (context_for_name_lookup): Look through unscoped enums. * pt.c (tsubst_copy_and_build): Don't decay CONST_DECL. (tsubst_copy): Use DECL_CONTEXT to find the enumeration. * tree.c (decl_linkage): Likewise. * cvt.c (ocp_convert): Check decayed expr for enum range warning. gcc/c-family/ * c-common.c (get_priority): Call default_conversion. >>From gcc-bugs-return-617149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 21:55:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16997 invoked by alias); 6 Oct 2018 21:55:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16931 invoked by uid 48); 6 Oct 2018 21:55:37 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87540] Missed inner loop hoist if the loop does not depend on outer loop Date: Sat, 06 Oct 2018 21:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed bug_severity Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00531.txt.bz2 Content-length: 780 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87540 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-06 Ever confirmed|0 |1 Severity|normal |enhancement --- Comment #1 from Andrew Pinski --- you need high level loop optimizations to do this. Something like graphite= .=20 But you need to also prove it is profitable too. This is not a simple loop optimization either. >>From gcc-bugs-return-617150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 22:02:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23857 invoked by alias); 6 Oct 2018 22:02:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23795 invoked by uid 48); 6 Oct 2018 22:02:38 -0000 From: "eyalroz at technion dot ac.il" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87543] New: Missed opportunity to compute constant return value at compile time Date: Sat, 06 Oct 2018 22:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eyalroz at technion dot ac.il X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00532.txt.bz2 Content-length: 2708 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87543 Bug ID: 87543 Summary: Missed opportunity to compute constant return value at compile time Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eyalroz at technion dot ac.il Target Milestone: --- Brief illustration on GodBolt: https://godbolt.org/z/sQyNGA A related question on StackOverflow: https://stackoverflow.com/q/52677512/1593077 Consider the following two functions: #include =20 int f1() { int arr[] =3D {1, 2, 3, 4, 5}; auto n =3D sizeof(arr)/sizeof(arr[0]); return std::accumulate(arr, arr + n, 0); } int f2() { int arr[] =3D {1, 2, 3, 4, 5}; auto n =3D sizeof(arr)/sizeof(arr[0]); int sum =3D 0; for(int i =3D 0; i < n; i++) { sum +=3D arr[i]; } return sum; } Both functions return 15, always; and while they're not marked constexpr, t= his can clearly be realized by the compiler. In fact, it is, if we compiler with -O3 (with GCC 8.2). However, with -O2, we get the following result: f1(): movabs rax, 8589934593 lea rdx, [rsp-40] mov ecx, 1 mov DWORD PTR [rsp-24], 5 mov QWORD PTR [rsp-40], rax lea rsi, [rdx+20] movabs rax, 17179869187 mov QWORD PTR [rsp-32], rax xor eax, eax jmp .L3 .L5: mov ecx, DWORD PTR [rdx] .L3: add rdx, 4 add eax, ecx cmp rdx, rsi jne .L5 ret f2(): mov eax, 15 ret I don't think `std::accumulate` should have any code which should make -O2 = fail to notice the optimization opportunity in `f1()`. But if that assertion mig= ht be debatable, surely adding -march=3Dskylake to the -O3 can only result in stronger optimization, right? However, it results in _both_ functions, rath= er than just `f1()`, failing to fully optimize. I asked about part of this issue at StackOverflow and a reply (by Florian Weimer) suggested this might be a regression relative to GCC 6.3 . And, ind= eed, if we switch the GCC version to 6.3 - both functions are not-fully-optimize= d in -O2, and fully-optimized with -O3: https://godbolt.org/z/JOqCoC if I try GCC 7.3, things get weird in yet a different way: -O2 optimizes bo= th functions fully, and -O3 optimizes just the _first_ one. >>From gcc-bugs-return-617151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 22:41:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44361 invoked by alias); 6 Oct 2018 22:41:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44286 invoked by uid 55); 6 Oct 2018 22:41:38 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86111] ICE in gfc_arith_concat, at fortran/arith.c:985 Date: Sat, 06 Oct 2018 22:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00533.txt.bz2 Content-length: 1105 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86111 --- Comment #3 from Thomas Koenig --- Author: tkoenig Date: Sat Oct 6 22:41:06 2018 New Revision: 264902 URL: https://gcc.gnu.org/viewcvs?rev=3D264902&root=3Dgcc&view=3Drev Log: 2018-10-06 Thomas Koenig PR fortran/86111 Backport from trunk * gfortran.h (enum arith): Add ARITH_WRONGCONCAT. * arith.h (gfc_arith_error): Issue error for ARITH_WRONGCONCAT. (gfc_arith_concat): If the types of op1 and op2 are not character of if their kinds do not match, issue ARITH_WRONGCONCAT. 2018-10-06 Thomas Koenig PR fortran/86111 Backport from trunk * gfortran.dg/array_constructor_type_23.f90: New test. Added: =20=20=20 branches/gcc-8-branch/gcc/testsuite/gfortran.dg/array_constructor_type_23.f= 90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/arith.c branches/gcc-8-branch/gcc/fortran/gfortran.h branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Oct 06 22:42:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45747 invoked by alias); 6 Oct 2018 22:42:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45648 invoked by uid 48); 6 Oct 2018 22:42:12 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86111] ICE in gfc_arith_concat, at fortran/arith.c:985 Date: Sat, 06 Oct 2018 22:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00534.txt.bz2 Content-length: 503 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86111 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |tkoenig at gcc dot gnu.org Resolution|--- |FIXED --- Comment #4 from Thomas Koenig --- Fixed. >>From gcc-bugs-return-617153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 02:21:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26681 invoked by alias); 7 Oct 2018 02:21:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10018 invoked by uid 48); 7 Oct 2018 02:21:03 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc/80912] enhancement: -Wundeclared-selector improvements Date: Sun, 07 Oct 2018 02:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00535.txt.bz2 Content-length: 816 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80912 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org, | |iains at gcc dot gnu.org, | |mikestump at comcast dot n= et --- Comment #2 from Eric Gallager --- Could someone confirm this for me? I mean, I could technically confirm it myself, but I feel like confirming your own bugs is not exactly kosher...=20 cc-ing objc FE and diagnostics maintainers >>From gcc-bugs-return-617154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 02:22:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80292 invoked by alias); 7 Oct 2018 02:22:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79473 invoked by uid 48); 7 Oct 2018 02:22:17 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++ Date: Sun, 07 Oct 2018 02:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00536.txt.bz2 Content-length: 486 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71003 --- Comment #2 from Eric Gallager --- (In reply to Martin Sebor from comment #1) > Confirmed. The manual says clearly that it should work so this is a G++ = bug. >=20 > '-Wpedantic' does not cause warning messages for use of the alternate > keywords > whose names begin and end with '__'. Pedantic warnings are also disabled= in > the expression that follows __extension__. Thanks for confirming. >>From gcc-bugs-return-617155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 07:09:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78711 invoked by alias); 7 Oct 2018 07:09:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78581 invoked by uid 48); 7 Oct 2018 07:08:50 -0000 From: "gael.guennebaud at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87544] New: alloc-size-larger-than incorrectly triggered Date: Sun, 07 Oct 2018 07:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gael.guennebaud at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00537.txt.bz2 Content-length: 1426 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 Bug ID: 87544 Summary: alloc-size-larger-than incorrectly triggered Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gael.guennebaud at gmail dot com Target Milestone: --- Created attachment 44800 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44800&action=3Dedit self-contained test case The attached example incorrectly trigger the alloc-size-larger-than=3D warn= ing with either gcc 7, 8 or trunk. (-O2 -Wall). It is also reproduced on godbolt for convenience: https://godbolt.org/z/KXsyZP The weirdest thing is that if I remove the condition line 15: if(size>16 && (std::size_t(result) & 15)!=3D0) or only remove one of the condition like: if(size>16) { ... } if((std::size_t(result) & 15)!=3D0) { ... } then the warning is gone. I don't really see how a test on the pointer retu= rned by malloc can change anything... If I replace this test by an assert (inste= ad of freeing and returning 0) then I also get the alloc-size-larger-than=3D warning. Of course I can workaround with: void *result =3D 0; if(size::max()) result =3D std::malloc(size); and this is what I'm going to do in the original code. >>From gcc-bugs-return-617156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 09:18:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73180 invoked by alias); 7 Oct 2018 09:18:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70206 invoked by uid 48); 7 Oct 2018 09:18:46 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Sun, 07 Oct 2018 09:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00538.txt.bz2 Content-length: 999 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 Marc Glisse changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |libstdc++ --- Comment #1 from Marc Glisse --- This seems to be the usual issue which starts with max_size returning a bad value. The default allocator returns size_t(-1) / sizeof(_Tp), when it shou= ld return PTRDIFF_MAX / sizeof(_Tp). There is some code looking at PTRDIFF_MAX, but it seems to be at the wrong level (number of elements vs number of byte= s). (we are starting to have a lot of code checking for potential overflow in m= any different ways in std::vector, I wonder how much this costs at runtime and = if we will need a way to disable it for people who care about performance, redefining __throw_bad_alloc as __builtin_unreachable only removes part of = the overhead) >>From gcc-bugs-return-617157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 11:32:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44670 invoked by alias); 7 Oct 2018 11:32:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 42769 invoked by uid 48); 7 Oct 2018 11:32:46 -0000 From: "gcc@christoph-conrads.name" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy Date: Sun, 07 Oct 2018 11:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc@christoph-conrads.name X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00539.txt.bz2 Content-length: 1135 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80977 Christoph Conrads changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc@christoph-conrads.name --- Comment #1 from Christoph Conrads --- Created attachment 44801 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44801&action=3Dedit C++11 code demonstrating GCC bug 80977 This file contains * code demonstrating GCC bug 80977 and * a modified version of std::uniform_int_distribution without bug 80977 when operator() is invoked. The modified implementation can be used by replacing `std::uniform_int_distribution` with `standard:uniform_int_distribution` in main(). The code triggers two warnings in lines 178 and 208 with `-Woverflow`. Line= 178 belongs to modified code and overflow there is handled in lines 180-184. The warning in line 208 is caused by unmodified libstdc++ code but judging by t= he comment "wraparound control" in line 205, this is handled properly. >>From gcc-bugs-return-617158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 11:53:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13971 invoked by alias); 7 Oct 2018 11:53:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13902 invoked by uid 48); 7 Oct 2018 11:53:02 -0000 From: "gcc@christoph-conrads.name" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy Date: Sun, 07 Oct 2018 11:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc@christoph-conrads.name X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00540.txt.bz2 Content-length: 613 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80977 --- Comment #2 from Christoph Conrads --- Created attachment 44802 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44802&action=3Dedit Patch proposal for GCC bug 80977 This patch attempts to fix bug 80977. The code in __generate_impl was not tested but the issue is the same. Curiously, __generate_impl handles the case correctly where the right inter= val boundaries of generator and uniform_int_distribution are powers of two while operator() does not. The patch was created based on commit 16db from October 7, 2017. >>From gcc-bugs-return-617159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 12:02:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34630 invoked by alias); 7 Oct 2018 12:02:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 34558 invoked by uid 48); 7 Oct 2018 12:02:03 -0000 From: "gcc@christoph-conrads.name" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/80977] uniform_int_distribution downscaling throws away perfectly good entropy Date: Sun, 07 Oct 2018 12:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc@christoph-conrads.name X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00541.txt.bz2 Content-length: 243 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80977 --- Comment #3 from Christoph Conrads --- With GCC bug 80977, half of all values from the random bit generator may be ignored by std::uniform_int_distribution. >>From gcc-bugs-return-617160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 12:06:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38389 invoked by alias); 7 Oct 2018 12:06:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38312 invoked by uid 48); 7 Oct 2018 12:06:22 -0000 From: "gael.guennebaud at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Sun, 07 Oct 2018 12:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gael.guennebaud at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00542.txt.bz2 Content-length: 331 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #2 from Gael Guennebaud --- Indeed, if I redefine max_size as follows instead of relying on std::alloca= tor then the warning is gone: size_type max_size() const { return std::numeric_limits::max()/sizeof(T); } >>From gcc-bugs-return-617161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 12:49:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11867 invoked by alias); 7 Oct 2018 12:49:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11461 invoked by uid 48); 7 Oct 2018 12:49:15 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87545] New: [9 Regression] -mtune=intel regressions Date: Sun, 07 Oct 2018 12:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00543.txt.bz2 Content-length: 1414 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87545 Bug ID: 87545 Summary: [9 Regression] -mtune=3Dintel regressions Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i386,x86-64 On x86-64, r264866 caused: FAIL: gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp.c scan-tree-dump-not = slp2 "vectorization is not profitable" FAIL: gcc.dg/vect/costmodel/x86_64/costmodel-vect-slp.c scan-tree-dump slp2 "basic block vectorized" FAIL: gcc.target/i386/pr42542-4a.c scan-assembler pcmpgtq FAIL: gcc.target/i386/pr42542-4a.c scan-assembler pcmpgtq FAIL: gcc.target/i386/pr42542-5a.c scan-assembler pcmpgtq FAIL: gcc.target/i386/pr42542-5a.c scan-assembler pcmpgtq FAIL: gcc.target/i386/rotate-3.c scan-tree-dump-times vect "vectorized 1 lo= ops" 1 FAIL: gcc.target/i386/rotate-3.c scan-tree-dump-times vect "vectorized 1 lo= ops" 1 FAIL: gcc.target/i386/rotate-4.c scan-tree-dump-times vect "vectorized 1 lo= ops" 1 FAIL: gcc.target/i386/rotate-4.c scan-tree-dump-times vect "vectorized 1 lo= ops" 1 when RUNTESTFLAGS=3D"--target_board=3D'unix{-m32\ -mtune=3Dintel,-mtune=3Dintel}= '" is used since vectorization is disabled for -mtune=3Dintel. >>From gcc-bugs-return-617162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 13:27:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103723 invoked by alias); 7 Oct 2018 13:27:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103648 invoked by uid 48); 7 Oct 2018 13:27:46 -0000 From: "mrs at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc/80912] enhancement: -Wundeclared-selector improvements Date: Sun, 07 Oct 2018 13:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mrs at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00544.txt.bz2 Content-length: 480 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80912 mrs at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-07 CC| |mrs at gcc dot gnu.org Ever confirmed|0 |1 >>From gcc-bugs-return-617163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 13:29:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119409 invoked by alias); 7 Oct 2018 13:29:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 117252 invoked by uid 48); 7 Oct 2018 13:29:11 -0000 From: "mrs at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc/80912] enhancement: -Wundeclared-selector improvements Date: Sun, 07 Oct 2018 13:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mrs at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00545.txt.bz2 Content-length: 162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80912 --- Comment #3 from mrs at gcc dot gnu.org --- Yes, what you say seems reasonable. >>From gcc-bugs-return-617164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 17:17:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 52122 invoked by alias); 7 Oct 2018 17:17:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52061 invoked by uid 48); 7 Oct 2018 17:17:44 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54613] [F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK= Date: Sun, 07 Oct 2018 17:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00546.txt.bz2 Content-length: 390 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54613 --- Comment #12 from Thomas Koenig --- Created attachment 44803 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44803&action=3Dedit First piece of the work... This adds the parsing, checking, resolution and calling of the library rout= ines (if any). Still a very large piece of work to be done... >>From gcc-bugs-return-617165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 19:49:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78681 invoked by alias); 7 Oct 2018 19:49:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78563 invoked by uid 48); 7 Oct 2018 19:49:18 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Sun, 07 Oct 2018 19:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00547.txt.bz2 Content-length: 1240 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-07 CC| |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Martin Sebor --- Confirmed. The specification for allocator::max_size() to return SIZE_MAX / sizeof (value_type) is worse than useless. At the same time, since the call malloc(SIZE_MAX) is guaranteed to fail, GCC could fold it to zero. It would also have to set errno to ENOMEM but that would be useful in other contexts, such as to fix pr87096. The same call to operator new could be either replaced by throwing an exception or simply fo= lded to zero if the call were to the nothrow new. That would avoid the warning (calling the ordinary new also triggers the warning but calling the nothrow= new doesn't, even though the call is still emitted). >>From gcc-bugs-return-617166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 22:39:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59677 invoked by alias); 7 Oct 2018 22:39:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 59612 invoked by uid 48); 7 Oct 2018 22:39:01 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87541] [7/8/9 Regression] ICE using a constant decl as an attribute alloc_size argument Date: Sun, 07 Oct 2018 22:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00548.txt.bz2 Content-length: 699 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87541 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Summary|]7/8 Regression] ICE using |[7/8/9 Regression] ICE |a constant decl as an |using a constant decl as an |attribute alloc_size |attribute alloc_size |argument |argument --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00390.html >>From gcc-bugs-return-617167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Oct 07 22:40:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63383 invoked by alias); 7 Oct 2018 22:40:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61741 invoked by uid 48); 7 Oct 2018 22:40:10 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87542] [7/8/9 Regression] bogus error on attribute format with a named constant argument Date: Sun, 07 Oct 2018 22:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00549.txt.bz2 Content-length: 675 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87542 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-07 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Ever confirmed|0 |1 --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2018-10/msg00390.html >>From gcc-bugs-return-617168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 00:43:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45763 invoked by alias); 8 Oct 2018 00:43:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45672 invoked by uid 48); 8 Oct 2018 00:43:06 -0000 From: "comexk at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49171] [C++0x][constexpr] Constant expressions support reinterpret_cast Date: Mon, 08 Oct 2018 00:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: comexk at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ktietz at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00550.txt.bz2 Content-length: 547 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49171 comexk at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |comexk at gmail dot com --- Comment #16 from comexk at gmail dot com --- IMHO it would be very useful to have an extension to force the compiler to accept these casts, and anything else that GCC is capable of constant-evaluating but the standard overly-conservatively rejects. >>From gcc-bugs-return-617169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 03:31:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102722 invoked by alias); 8 Oct 2018 03:31:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102237 invoked by uid 48); 8 Oct 2018 03:30:25 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/63374] unhelpful diagnostics for missing initializer Date: Mon, 08 Oct 2018 03:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00551.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63374 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.or= g, | |dodji at gcc dot gnu.org --- Comment #2 from Eric Gallager --- cc-ing current diagnostics maintainers >>From gcc-bugs-return-617170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 03:33:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105076 invoked by alias); 8 Oct 2018 03:33:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105001 invoked by uid 48); 8 Oct 2018 03:33:20 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/85855] [7/8/9 Regression] (Maybe) uninitialized descriptor fields of an allocatable array component of a function result Date: Mon, 08 Oct 2018 03:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00552.txt.bz2 Content-length: 643 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85855 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #5 from Eric Gallager --- (In reply to Dominique d'Humieres from comment #1) > I am pretty sure that it is a duplicate, but I don't have the energy to h= unt > it down right now!-( Maybe Manuel knows; he's usually pretty good at knowing which -Wuninitializ= ed bugs are dups of which >>From gcc-bugs-return-617171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 03:38:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108429 invoked by alias); 8 Oct 2018 03:38:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108344 invoked by uid 48); 8 Oct 2018 03:38:10 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61807] genautomata.c fails to compile Date: Mon, 08 Oct 2018 03:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00553.txt.bz2 Content-length: 607 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D61807 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |FIXED --- Comment #4 from Eric Gallager --- (In reply to Eric Gallager from comment #3) > are you still seeing this issue with newer versions of GCC? No reply; assuming this was fixed. Feel free to reopen if it still happens. >>From gcc-bugs-return-617172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 03:51:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13264 invoked by alias); 8 Oct 2018 03:51:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13186 invoked by uid 48); 8 Oct 2018 03:51:41 -0000 From: "helloqirun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87546] New: Gcc miscompiles at -O3 on valid code Date: Mon, 08 Oct 2018 03:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: helloqirun at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00554.txt.bz2 Content-length: 1198 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 Bug ID: 87546 Summary: Gcc miscompiles at -O3 on valid code Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: helloqirun at gmail dot com Target Milestone: --- It should be a very recent regression. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-l= inux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/home/absozero/trunk/root-gcc --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 9.0.0 20181007 (experimental) [trunk revision 264906] (GCC) $ gcc-trunk abc.c ; ./a.out -37 $ gcc-trunk -O3 abc.c ; ./a.out 219 $ cat abc.c int printf(const char *, ...); int a; long b, f; char c, g; short d =3D 219; int e[7]; int main() { for (; c <=3D 6; c++) { g =3D d < 0 ? d : d >> a; f =3D g + b; e[c] =3D f; } printf("%d\n", e[1]); } >>From gcc-bugs-return-617173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 04:17:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41198 invoked by alias); 8 Oct 2018 04:17:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 41048 invoked by uid 48); 8 Oct 2018 04:16:48 -0000 From: "ensadc at mailnesia dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87431] valueless_by_exception() should unconditionally return false if all the constructors are noexcept Date: Mon, 08 Oct 2018 04:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ensadc at mailnesia dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00555.txt.bz2 Content-length: 963 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87431 ensadc at mailnesia dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ensadc at mailnesia dot com --- Comment #7 from ensadc at mailnesia dot com --- This "optimization" might be unsafe in the presence of throwing conversion operator: // https://wandbox.org/permlink/ADEIfSv120QMrKeS #include #include struct weird { operator int() { throw 0; } }; int main() { std::variant v; try { v.emplace<1>(weird{}); } catch (...) { assert((v.index() =3D=3D std::variant_npos) =3D=3D (v.valueless_by_exception())); } } Maybe we can fix the optimization by making `emplace` restore the original value (or not destroy in the first place) when the optimization is present = and an exception is thrown. >>From gcc-bugs-return-617174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 05:32:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63309 invoked by alias); 8 Oct 2018 05:32:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63247 invoked by uid 48); 8 Oct 2018 05:32:11 -0000 From: "sandro.boehler at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87547] New: G++ reports bad type names for bit-field members Date: Mon, 08 Oct 2018 05:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sandro.boehler at gmx dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00556.txt.bz2 Content-length: 1665 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87547 Bug ID: 87547 Summary: G++ reports bad type names for bit-field members Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sandro.boehler at gmx dot de Target Milestone: --- Host: i686-linux-gnu Target: i686-linux-gnu Consider the following code: #include struct S { unsigned int n4 : 4; unsigned int n12 : 12; }; void f(unsigned char) { std::cout << "uc" << std::endl; } void f(unsigned short) { std::cout << "us" << std::endl; } void f(unsigned int) { std::cout << "ui" << std::endl; } int main(int argc, char* argv[]) { S s; s.n4 =3D 0; s.n12 =3D 0; f(s.n4); f(s.n12); std::cout << typeid(s.n4).name() << std::endl; std::cout << typeid(s.n12).name() << std::endl; std::cout << typeid(unsigned char).name() << std::endl; std::cout << typeid(unsigned short).name() << std::endl; std::cout << typeid(unsigned int).name() << std::endl; return 0; } Expected output (according to standard [class.bit] (http://eel.is/c++draft/class.bit): "The bit-field attribute is not part of= the type of the class member."): ui ui j j h t j Output produced with g++ (Ubuntu 8.1.0-5ubuntu1~16.04) 8.1.0 (initially discovered with 5.5.0): ui ui h t h t j So while the overload is selected correctly, typeid selects the bad type. I did not test separately, but assume the compiler showing same behaviour f= or C as well. >>From gcc-bugs-return-617175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 07:13:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57630 invoked by alias); 8 Oct 2018 07:13:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57562 invoked by uid 48); 8 Oct 2018 07:13:14 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87269] [9 Regression] ICE in tsubst_copy, at cp/pt.c:15475 starting from r261802 Date: Mon, 08 Oct 2018 07:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00557.txt.bz2 Content-length: 157 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87269 --- Comment #2 from Martin Li=C5=A1ka --- Nathan any progress here please? >>From gcc-bugs-return-617176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 07:17:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74098 invoked by alias); 8 Oct 2018 07:17:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 74005 invoked by uid 55); 8 Oct 2018 07:17:01 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Mon, 08 Oct 2018 07:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00558.txt.bz2 Content-length: 583 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #40 from Richard Biener --- Author: rguenth Date: Mon Oct 8 07:16:28 2018 New Revision: 264912 URL: https://gcc.gnu.org/viewcvs?rev=3D264912&root=3Dgcc&view=3Drev Log: 2018-10-08 Richard Biener PR tree-optimization/63155 * tree-ssa-propagate.c (add_ssa_edge): Do cheap check first. (ssa_propagation_engine::ssa_propagate): Remove redundant bitmap bit clearing. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-propagate.c >>From gcc-bugs-return-617177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 07:35:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32756 invoked by alias); 8 Oct 2018 07:35:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32691 invoked by uid 48); 8 Oct 2018 07:35:45 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/64120] [F03] Wrong handling of allocatable character string Date: Mon, 08 Oct 2018 07:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00559.txt.bz2 Content-length: 688 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64120 --- Comment #11 from Paul Thomas --- (In reply to J=C3=BCrgen Reuter from comment #10) > I think inside the logical function (in the local scope) the length of s = has > to be printed as the value of the argument x, so 1 and 2, with or without > the 'save' attribute. That's the way it works. However, it is an odd one because the length for t= he testcase exceeds the allocated memory for the second call. I guess that what should be done is to introduce a static variable to save the string length = and then to do a memory check, if checking is set, on subsequent calls. Thanks for the feedback. Paul >>From gcc-bugs-return-617178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 07:41:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37074 invoked by alias); 8 Oct 2018 07:41:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37027 invoked by uid 48); 8 Oct 2018 07:41:23 -0000 From: "antoshkka at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87431] valueless_by_exception() should unconditionally return false if all the constructors are noexcept Date: Mon, 08 Oct 2018 07:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antoshkka at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00560.txt.bz2 Content-length: 413 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87431 --- Comment #8 from Antony Polukhin --- Here's an idea: Make valueless_by_exception() always false if all the alternatives are trivially copyable. Implement copying and constructions/emplace for such variants as a construction of a temporary + memcpy to destination. In theory the compiler should eliminate the unnecessary copy. >>From gcc-bugs-return-617179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:06:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15243 invoked by alias); 8 Oct 2018 08:06:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15146 invoked by uid 48); 8 Oct 2018 08:06:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Mon, 08 Oct 2018 08:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00561.txt.bz2 Content-length: 909 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization CC| |rguenth at gcc dot gnu.org --- Comment #3 from Richard Biener --- Can you point me to the source for which we generate the popcount call(s)? = It might be not final value replacement but instead code-generating a niter analysis result. Generally I agree that libgcc popcount should be avoided but it's not always easy. Eventually libgcc popcount could do a ifarch() runtime check to use the native popcount instruction. Also that we only have popcountDI is of course less than optimal given we loop over all bytes... >>From gcc-bugs-return-617180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:07:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16196 invoked by alias); 8 Oct 2018 08:07:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16133 invoked by uid 48); 8 Oct 2018 08:07:29 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87531] [8/9 Regression] assignment operator does nothing if performed as a call via operator= Date: Mon, 08 Oct 2018 08:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00562.txt.bz2 Content-length: 353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87531 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target Milestone|--- |8.3 >>From gcc-bugs-return-617182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:09:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19638 invoked by alias); 8 Oct 2018 08:09:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19437 invoked by uid 48); 8 Oct 2018 08:09:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87537] Redundant vmovaps Date: Mon, 08 Oct 2018 08:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00564.txt.bz2 Content-length: 553 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87537 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. >>From gcc-bugs-return-617181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:09:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18668 invoked by alias); 8 Oct 2018 08:09:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18578 invoked by uid 48); 8 Oct 2018 08:09:03 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Mon, 08 Oct 2018 08:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00563.txt.bz2 Content-length: 666 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #41 from rsandifo at gcc dot gnu.org --- (In reply to Richard Biener from comment #39) > Oh, and backprop is really intersect_uses () with >=20 > FOR_EACH_IMM_USE_STMT (stmt, iter, var) > { >=20 > being quadratic due to its stupid implementation (we really have many uses > of vars). Ouch, hadn't realised the difference between them was that severe. > If the pass can deal with duplicate stmt uses just fine using > FOR_EACH_IMM_USE_FAST is going to be faster. Yeah, should be fine here, since the function is just gathering information. Testing a patch... >>From gcc-bugs-return-617183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:11:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26640 invoked by alias); 8 Oct 2018 08:11:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26568 invoked by uid 48); 8 Oct 2018 08:11:21 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87539] [8/9 Regression] internal compiler error when compiling project with Os optimization flag Date: Mon, 08 Oct 2018 08:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00565.txt.bz2 Content-length: 644 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87539 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction Target Milestone|--- |8.3 Summary|internal compiler error |[8/9 Regression] internal |when compiling project with |compiler error when |Os optimization flag |compiling project with Os | |optimization flag >>From gcc-bugs-return-617184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:17:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114678 invoked by alias); 8 Oct 2018 08:17:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 104427 invoked by uid 55); 8 Oct 2018 08:16:50 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87286] ICE on vectors of enums Date: Mon, 08 Oct 2018 08:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00566.txt.bz2 Content-length: 950 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87286 --- Comment #1 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Mon Oct 8 08:16:13 2018 New Revision: 264913 URL: https://gcc.gnu.org/viewcvs?rev=3D264913&root=3Dgcc&view=3Drev Log: Don't ICE on vectors of enums (PR 87286) We've traditionally allowed vectors of enums (not sure if that's deliberate) but vector_types_compatible_elements_p checked for INTEGER_TYPE rather than INTEGRAL_TYPE_P. 2018-10-08 Richard Sandiford gcc/c-family/ PR c/87286 * c-common.c (vector_types_compatible_elements_p): Use INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. gcc/testsuite/ PR c/87286 * gcc.dg/pr87286.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr87286.c Modified: trunk/gcc/c-family/ChangeLog trunk/gcc/c-family/c-common.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:17:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115295 invoked by alias); 8 Oct 2018 08:17:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 114659 invoked by uid 48); 8 Oct 2018 08:17:48 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87540] Missed inner loop hoist if the loop does not depend on outer loop Date: Mon, 08 Oct 2018 08:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00567.txt.bz2 Content-length: 742 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87540 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amker at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- As of "simple" it is basically performing interchange and then killing the innner loop because it does nothing. Not sure how awkward it would be to support this in the interchange pass. And yes, I'd hardly see it worthwhile apart from disturbing simple benchmar= king attempts ;) >>From gcc-bugs-return-617187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:19:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119413 invoked by alias); 8 Oct 2018 08:19:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119046 invoked by uid 48); 8 Oct 2018 08:19:40 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87541] [7/8/9 Regression] ICE using a constant decl as an attribute alloc_size argument Date: Mon, 08 Oct 2018 08:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00569.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87541 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.4 >>From gcc-bugs-return-617186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:19:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119394 invoked by alias); 8 Oct 2018 08:19:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119043 invoked by uid 48); 8 Oct 2018 08:19:40 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87540] Missed inner loop hoist if the loop does not depend on outer loop Date: Mon, 08 Oct 2018 08:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00568.txt.bz2 Content-length: 636 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87540 --- Comment #3 from Richard Biener --- Oh, and in your case there is a dependence. So "correct" and actually compilable one: #define ARRAY_SIZE 1024 #define N_TIMES 10000 int foo(double *array) { int i; double sum; for (i =3D 0; i < N_TIMES; i++) { // lot of code well, this loop does not even depend on "i", hoist it? sum =3D 0; for (int j =3D 0; j < ARRAY_SIZE; j +=3D 8) sum +=3D array[j] + array[j+1] + array[j+2] + array[j+3] + array[j+= 4] + array[j+5] + array[j+6] + array[j+7]; } return sum; } >>From gcc-bugs-return-617188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:19:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119445 invoked by alias); 8 Oct 2018 08:19:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119048 invoked by uid 48); 8 Oct 2018 08:19:40 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87542] [7/8/9 Regression] bogus error on attribute format with a named constant argument Date: Mon, 08 Oct 2018 08:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: patch, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00570.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87542 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.4 >>From gcc-bugs-return-617189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:33:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111116 invoked by alias); 8 Oct 2018 08:33:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85609 invoked by uid 48); 8 Oct 2018 08:32:09 -0000 From: "david.feuer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87548] New: Optimize fetch atomics with unused results Date: Mon, 08 Oct 2018 08:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.feuer at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00571.txt.bz2 Content-length: 706 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87548 Bug ID: 87548 Summary: Optimize fetch atomics with unused results Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: david.feuer at gmail dot com Target Milestone: --- Atomic fetch and and/or/xor/etc., are not natively supported on amd64/x86_6= 4, so they're simulated with CAS loops. There's a special case when this is unnecessary: when the fetched result is never used. In this case, it might = be better to use a non-fetching operation instead. >>From gcc-bugs-return-617190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:34:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56273 invoked by alias); 8 Oct 2018 08:34:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51353 invoked by uid 48); 8 Oct 2018 08:34:36 -0000 From: "david.feuer at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87549] New: Optimize fetch atomics with unused results Date: Mon, 08 Oct 2018 08:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.feuer at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00572.txt.bz2 Content-length: 706 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87549 Bug ID: 87549 Summary: Optimize fetch atomics with unused results Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: david.feuer at gmail dot com Target Milestone: --- Atomic fetch and and/or/xor/etc., are not natively supported on amd64/x86_6= 4, so they're simulated with CAS loops. There's a special case when this is unnecessary: when the fetched result is never used. In this case, it might = be better to use a non-fetching operation instead. >>From gcc-bugs-return-617191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:38:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35362 invoked by alias); 8 Oct 2018 08:38:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32509 invoked by uid 48); 8 Oct 2018 08:38:35 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop Date: Mon, 08 Oct 2018 08:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc version everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00573.txt.bz2 Content-length: 1950 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87543 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 CC| |rguenth at gcc dot gnu.org Version|unknown |8.2.1 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- The issue at -O2 is that we only unroll loops if we estimate that to not gr= ow code-size. For f2 the estimate "works" while for f1 it doesn't because of the awkward IV structure PRE present us with: Estimating sizes for loop 1 BB: 3, after_exit: 0 size: 1 __init_12 =3D prephitmp_8 + __init_19; size: 1 __first_13 =3D __first_18 + 4; size: 1 ivtmp_10 =3D ivtmp_11 - 1; Induction variable computation will be folded away. size: 2 if (ivtmp_10 =3D=3D 0) Exit condition will be eliminated in peeled copies. Exit condition will be eliminated in last copy. Constant conditional. BB: 4, after_exit: 1 size: 1 pretmp_17 =3D MEM[(int *)__first_18 + 4B]; size: 6-3, last_iteration: 5-3 Loop size: 6 Estimated size after unrolling: 9 Not unrolling loop 1: size would grow. [local count: 955630224]: # __first_18 =3D PHI <&arr(2), __first_13(4)> # __init_19 =3D PHI <0(2), __init_12(4)> # prephitmp_8 =3D PHI <1(2), pretmp_17(4)> # ivtmp_11 =3D PHI <5(2), ivtmp_10(4)> __init_12 =3D prephitmp_8 + __init_19; __first_13 =3D __first_18 + 4; ivtmp_10 =3D ivtmp_11 - 1; if (ivtmp_10 =3D=3D 0) goto ; [12.36%] else goto ; [87.64%] [local count: 837518623]: pretmp_17 =3D MEM[(int *)__first_18 + 4B]; goto ; [100.00%] [local count: 118111601]: >>From gcc-bugs-return-617192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:40:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26262 invoked by alias); 8 Oct 2018 08:40:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23327 invoked by uid 48); 8 Oct 2018 08:40:47 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87545] [9 Regression] -mtune=intel regressions Date: Mon, 08 Oct 2018 08:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00574.txt.bz2 Content-length: 636 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87545 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-08 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- I will have a look. >>From gcc-bugs-return-617193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:41:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30700 invoked by alias); 8 Oct 2018 08:41:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 27940 invoked by uid 48); 8 Oct 2018 08:40:59 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87546] [9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 08 Oct 2018 08:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_known_to_work version keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00575.txt.bz2 Content-length: 1111 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-* Status|UNCONFIRMED |NEW Known to work| |8.2.1 Version|unknown |9.0 Keywords| |wrong-code Last reconfirmed| |2018-10-08 CC| |rsandifo at gcc dot gnu.org Ever confirmed|0 |1 Summary|Gcc miscompiles at -O3 on |[9 Regression] Gcc |valid code |miscompiles at -O3 on valid | |code Target Milestone|--- |9.0 --- Comment #1 from Richard Biener --- Confirmed. Caused by loop vectorization (some pattern recog stuff appearantly). >>From gcc-bugs-return-617194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 08:49:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90246 invoked by alias); 8 Oct 2018 08:49:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45481 invoked by uid 48); 8 Oct 2018 08:46:06 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86372] [8/9 Regression] Segfault on ASSOCIATE statement with CHARACTER variable Date: Mon, 08 Oct 2018 08:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00576.txt.bz2 Content-length: 667 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org --- Comment #6 from Paul Thomas --- Created attachment 44804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44804&action=3Dedit Patch for the PR Since this is a regression and the patch is rather simple, I will commit ri= ght away. Paul >>From gcc-bugs-return-617195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:03:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48152 invoked by alias); 8 Oct 2018 09:02:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30296 invoked by uid 48); 8 Oct 2018 08:56:32 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87530] copy elision in return statement doesn't check for rvalue reference to object type Date: Mon, 08 Oct 2018 09:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00577.txt.bz2 Content-length: 754 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87530 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- Smells like a variant of PR 87150 to me, but not a regression as it's been doing the wrong thing since we started treating named lvalues as rvalues in return statements. Marek, could you take a look please? >>From gcc-bugs-return-617196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:03:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49755 invoked by alias); 8 Oct 2018 09:03:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49467 invoked by uid 48); 8 Oct 2018 09:03:46 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/87549] Optimize fetch atomics with unused results Date: Mon, 08 Oct 2018 09:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00578.txt.bz2 Content-length: 482 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87549 Andreas Schwab changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Andreas Schwab --- =2E *** This bug has been marked as a duplicate of bug 87548 *** >>From gcc-bugs-return-617198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:03:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50012 invoked by alias); 8 Oct 2018 09:03:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44794 invoked by uid 48); 8 Oct 2018 09:01:23 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87545] [9 Regression] -mtune=intel regressions Date: Mon, 08 Oct 2018 09:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00580.txt.bz2 Content-length: 3080 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87545 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW Assignee|rguenth at gcc dot gnu.org |unassigned at gcc d= ot gnu.org --- Comment #2 from Richard Biener --- note: =3D=3D=3D vect_compute_single_scalar_iteration_cost =3D=3D=3D 0x341e830 v1[i_11] 1 times scalar_load costs 13 in body 0x341e830 v2[i_11] 1 times scalar_load costs 13 in body 0x341e830 MAX_EXPR <_1, _2> 1 times scalar_stmt costs 6 in body 0x341e830 _3 1 times scalar_store costs 20 in body 0x3409090 v1[i_11] 1 times vector_load costs 20 in body 0x3409090 v2[i_11] 1 times vector_load costs 20 in body 0x3409090 MAX_EXPR <_1, _2> 1 times vector_stmt costs 54 in body 0x3409090 _3 1 times unaligned_store costs 20 in body ix86_add_stmt_cost costs MAX_EXPR as if (SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH) stmt_cost =3D ix86_cost->sse_op; else if (VECTOR_MODE_P (mode)) stmt_cost =3D ix86_vec_cost (mode, ix86_cost->sse_op, true); else stmt_cost =3D ix86_cost->add; where COSTS_N_INSNS (1), /* cost of an add instruction */ COSTS_N_INSNS (8), /* cost of cheap SSE instruction. = */ I see that most cost models have COSTS_N_INSNS (1) for a cheap SSE instruct= ion which generally is used for most integer vector ops. core_cost has COSTS_N_INSNS (1) for cheap SSE instruction. nocona_cost has 2, so do pentium4_cost, bdver[1234]_cost, amdfam10_cost, k8_cost, athlon_cost. All other costs (besides size_cost) have 1. So why the heck does intel_cost have 8!? I didn't look at other costs besides cost of cheap SSE instruction but I wo= nder how intel_cost was derived? I expected it to be a blend of other existing intel CPU cost tables, not a completely unrelated outlier? Not my bug but a pre-existing target one I happened to uncover. Suggested "fix" (but the other vector costs appear high compared to other intel costs as well). diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h index 71a5854c09a..c7f3945d72c 100644 --- a/gcc/config/i386/x86-tune-costs.h +++ b/gcc/config/i386/x86-tune-costs.h @@ -2294,7 +2294,7 @@ struct processor_costs intel_cost =3D { COSTS_N_INSNS (8), /* cost of FCHS instruction. */ COSTS_N_INSNS (40), /* cost of FSQRT instruction. */ - COSTS_N_INSNS (8), /* cost of cheap SSE instruction. = */ + COSTS_N_INSNS (1), /* cost of cheap SSE instruction. = */ COSTS_N_INSNS (8), /* cost of ADDSS/SD SUBSS/SD insns.= */ COSTS_N_INSNS (8), /* cost of MULSS instruction. */ COSTS_N_INSNS (8), /* cost of MULSD instruction. */ HJ, can you make Intel people double-check intel_cost and fix it up? >>From gcc-bugs-return-617197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:03:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49834 invoked by alias); 8 Oct 2018 09:03:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43982 invoked by uid 48); 8 Oct 2018 09:00:32 -0000 From: "eyalroz at technion dot ac.il" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop Date: Mon, 08 Oct 2018 09:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: eyalroz at technion dot ac.il X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00579.txt.bz2 Content-length: 774 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87543 --- Comment #2 from Eyal Rozenberg --- (In reply to Richard Biener from comment #1) > The issue at -O2 is etc. That is one issue, but there is the question of the changes in behavior bet= ween versions and when `-march` is used. I don't know if you guys are actively maintaining 7.x or 6.x ; assuming you do, each of them should at least exhi= bit coherent behavior here. > because of the awkward IV structure PRE present us with I assume other GCC devs will understand what this means, but for my benefit= as the lay reporter - can you define (or link to a definition of) what "PRE" is and what is an "awkward IV structure"? (I'm guessing the acronym expands to Induction Variable.) >>From gcc-bugs-return-617199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:04:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54809 invoked by alias); 8 Oct 2018 09:04:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54163 invoked by uid 55); 8 Oct 2018 09:04:29 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71128] [concepts] ICE on ill-formed explicit instantiation of a function concept Date: Mon, 08 Oct 2018 09:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00581.txt.bz2 Content-length: 738 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71128 --- Comment #2 from paolo at gcc dot gnu.org --- Author: paolo Date: Mon Oct 8 09:02:55 2018 New Revision: 264914 URL: https://gcc.gnu.org/viewcvs?rev=3D264914&root=3Dgcc&view=3Drev Log: /cp 2018-10-08 Paolo Carlini PR c++/71128 * pt.c (do_decl_instantiation): Per 12.6.8/5, a concept cannot be explicitly instantiated. /testsuite 2018-10-08 Paolo Carlini PR c++/71128 * g++.dg/concepts/pr71128.C: New. Added: trunk/gcc/testsuite/g++.dg/concepts/pr71128.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:09:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66617 invoked by alias); 8 Oct 2018 09:09:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65733 invoked by uid 55); 8 Oct 2018 09:09:47 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87543] Inconsistency in noticing a constant result rather than emitting code for a loop Date: Mon, 08 Oct 2018 09:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00584.txt.bz2 Content-length: 1933 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87543 --- Comment #2 from Eyal Rozenberg --- (In reply to Richard Biener from comment #1) > The issue at -O2 is etc. That is one issue, but there is the question of the changes in behavior bet= ween versions and when `-march` is used. I don't know if you guys are actively maintaining 7.x or 6.x ; assuming you do, each of them should at least exhi= bit coherent behavior here. > because of the awkward IV structure PRE present us with I assume other GCC devs will understand what this means, but for my benefit= as the lay reporter - can you define (or link to a definition of) what "PRE" is and what is an "awkward IV structure"? (I'm guessing the acronym expands to Induction Variable.) --- Comment #3 from rguenther at suse dot de --- On Mon, 8 Oct 2018, eyalroz at technion dot ac.il wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87543 >=20 > --- Comment #2 from Eyal Rozenberg --- > (In reply to Richard Biener from comment #1) > > The issue at -O2 is etc. >=20 > That is one issue, but there is the question of the changes in behavior b= etween > versions and when `-march` is used. I don't know if you guys are actively > maintaining 7.x or 6.x ; assuming you do, each of them should at least ex= hibit > coherent behavior here. >=20 > > because of the awkward IV structure PRE present us with >=20 > I assume other GCC devs will understand what this means, but for my benef= it as > the lay reporter - can you define (or link to a definition of) what "PRE"= is > and what is an "awkward IV structure"? (I'm guessing the acronym expands = to > Induction Variable.) PRE means partial redundancy removal -- GCC sees that the loop body in the first iteration can be evaluated at compile-time and restructures the loop to not compute it. IV is indeed induction variable. >>From gcc-bugs-return-617200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:09:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60163 invoked by alias); 8 Oct 2018 09:09:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57934 invoked by uid 48); 8 Oct 2018 09:07:16 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67491] [meta-bug] concepts issues Date: Mon, 08 Oct 2018 09:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00582.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D67491 Bug 67491 depends on bug 71128, which changed state. Bug 71128 Summary: [concepts] ICE on ill-formed explicit instantiation of a= function concept https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71128 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:09:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60191 invoked by alias); 8 Oct 2018 09:09:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57865 invoked by uid 48); 8 Oct 2018 09:07:15 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71128] [concepts] ICE on ill-formed explicit instantiation of a function concept Date: Mon, 08 Oct 2018 09:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00583.txt.bz2 Content-length: 490 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71128 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.0 --- Comment #3 from Paolo Carlini --- Fixed. >>From gcc-bugs-return-617203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:14:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73099 invoked by alias); 8 Oct 2018 09:14:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73004 invoked by uid 55); 8 Oct 2018 09:14:12 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86372] [8/9 Regression] Segfault on ASSOCIATE statement with CHARACTER variable Date: Mon, 08 Oct 2018 09:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00585.txt.bz2 Content-length: 1367 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gn= u.org --- Comment #6 from Paul Thomas --- Created attachment 44804 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44804&action=3Dedit Patch for the PR Since this is a regression and the patch is rather simple, I will commit ri= ght away. Paul --- Comment #7 from Paul Thomas --- Author: pault Date: Mon Oct 8 09:11:03 2018 New Revision: 264915 URL: https://gcc.gnu.org/viewcvs?rev=3D264915&root=3Dgcc&view=3Drev Log: 2018-10-08 Paul Thomas PR fortran/86372 * trans-stmt.c (trans_associate_var): Character associate names with variable string length do not have to be deferred length for the string length to be set, if variable. 2018-10-08 Paul Thomas PR fortran/86372 * gfortran.dg/associate_41.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/associate_41.f90 Modified: trunk/gcc/fortran/trans-stmt.c >>From gcc-bugs-return-617204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:17:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93408 invoked by alias); 8 Oct 2018 09:17:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93354 invoked by uid 48); 8 Oct 2018 09:17:47 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87531] [8/9 Regression] assignment operator does nothing if performed as a call via operator= Date: Mon, 08 Oct 2018 09:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00586.txt.bz2 Content-length: 1146 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87531 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 CC| |nathan at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to Nikita Kniazev from comment #0) > The regression appeared after 7.3.0 and not later than 8.1.0. I do not ha= ve > 8.0.0 to test it. Because there is no 8.0.0 release. https://gcc.gnu.org/develop.html#num_scheme The regression started with r255605 [PR C++/15272] lookups with ambiguating dependent base https://gcc.gnu.org/ml/gcc-patches/2017-12/msg00766.html PR c++/15272 * pt.c (tsubst_baselink): Don't repeat the lookup for non-dependent baselinks. PR c++/15272 * g++.dg/template/pr71826.C: Adjust for 15272 fix. >>From gcc-bugs-return-617205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:25:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121185 invoked by alias); 8 Oct 2018 09:25:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121097 invoked by uid 48); 8 Oct 2018 09:25:07 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87151] allocating array of character Date: Mon, 08 Oct 2018 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00587.txt.bz2 Content-length: 377 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87151 --- Comment #3 from J=C3=BCrgen Reuter --- This now works with the actual trunk (r264898), and gives the anticipated result=20 2 3. So either it was fixed by one of Paul's other fixes, or he just didn't comment on this one here. But of course it needs to be backported to 8- and 7-branches. >>From gcc-bugs-return-617206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:25:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122319 invoked by alias); 8 Oct 2018 09:25:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 122214 invoked by uid 48); 8 Oct 2018 09:25:53 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54005] Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free Date: Mon, 08 Oct 2018 09:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00588.txt.bz2 Content-length: 284 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54005 --- Comment #28 from Jonathan Wakely --- (In reply to Hans-Peter Nilsson from comment #27) > BTW, why use __alignof and not alignof? Because alignof can only be used with a type and we use it with _M_i. >>From gcc-bugs-return-617207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:27:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124954 invoked by alias); 8 Oct 2018 09:27:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124875 invoked by uid 48); 8 Oct 2018 09:27:35 -0000 From: "eyalroz at technion dot ac.il" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/10624] unroll-loops can't unroll nested constant loops Date: Mon, 08 Oct 2018 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 3.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: eyalroz at technion dot ac.il X-Bugzilla-Status: SUSPENDED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00589.txt.bz2 Content-length: 1060 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D10624 Eyal Rozenberg changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eyalroz at technion dot ac= .il --- Comment #8 from Eyal Rozenberg --- This seems to have been solved at some point. Compiling with -O3 -funroll-l= oops using GCC 8.2 on GodBolt: https://godbolt.org/z/4gBcw- We get: .LC0: .string "%d, %d\n" unroll_me: sub rsp, 8 xor edx, edx mov esi, 1 mov edi, OFFSET FLAT:.LC0 xor eax, eax call printf xor edx, edx mov esi, 2 xor eax, eax mov edi, OFFSET FLAT:.LC0 call printf mov edx, 1 xor eax, eax add rsp, 8 mov esi, 2 mov edi, OFFSET FLAT:.LC0 jmp printf Which is quite unrolled. >>From gcc-bugs-return-617208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:28:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126294 invoked by alias); 8 Oct 2018 09:28:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126182 invoked by uid 48); 8 Oct 2018 09:28:26 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87539] [8/9 Regression] internal compiler error when compiling project with Os optimization flag Date: Mon, 08 Oct 2018 09:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00590.txt.bz2 Content-length: 492 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87539 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- While Jan 2018-ish trunk ICEd on this (x86_64-linux -> x86_64-mingw32 cross= ), current trunk doesn't ICE anymore. >>From gcc-bugs-return-617209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:29:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127609 invoked by alias); 8 Oct 2018 09:29:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127522 invoked by uid 48); 8 Oct 2018 09:29:28 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Mon, 08 Oct 2018 09:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00591.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 --- Comment #4 from Alexander Monakov --- (In reply to Richard Biener from comment #3) > Can you point me to the source for which we generate the popcount call(s)= ?=20 > It might be not final value replacement but instead code-generating a nit= er > analysis result. Sorry, the reference to final value replacement was just in order to draw a parallel. I was pointing out a famous historical precedent where GCC had to avoid replacing a cheap loop with a costly libgcc call. >>From gcc-bugs-return-617210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:29:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128656 invoked by alias); 8 Oct 2018 09:29:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128413 invoked by uid 48); 8 Oct 2018 09:29:51 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Mon, 08 Oct 2018 09:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00592.txt.bz2 Content-length: 525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 J=C3=BCrgen Reuter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #5 from J=C3=BCrgen Reuter --- Paul, just to let you have a look into this one, I think this case is corre= ctly handled now. But maybe backports are missing? >>From gcc-bugs-return-617211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:30:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130385 invoked by alias); 8 Oct 2018 09:30:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130253 invoked by uid 48); 8 Oct 2018 09:30:43 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87151] allocating array of character Date: Mon, 08 Oct 2018 09:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00593.txt.bz2 Content-length: 697 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87151 --- Comment #4 from Paul Thomas --- (In reply to J=C3=BCrgen Reuter from comment #3) > This now works with the actual trunk (r264898), and gives the anticipated > result=20 > 2 3. So either it was fixed by one of Paul's other fixes, or he just didn= 't > comment on this one here. But of course it needs to be backported to 8- a= nd > 7-branches. Juergen, It turns out that if you try to do anything with the 'a' outside the subrou= tine 'create', all hell breaks loose with the gimplifier. I posted a proper fix = to this one yesterday and Dominique signalled to the list that it works as intended. Cheers Paul >>From gcc-bugs-return-617212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:31:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 660 invoked by alias); 8 Oct 2018 09:31:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 602 invoked by uid 48); 8 Oct 2018 09:31:31 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87548] Optimize fetch atomics with unused results Date: Mon, 08 Oct 2018 09:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget component Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00594.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87548 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Target| |x86_64-*-*, i?86-*-* Component|other |target --- Comment #1 from Andreas Schwab --- *** Bug 87549 has been marked as a duplicate of this bug. *** >>From gcc-bugs-return-617213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:41:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19123 invoked by alias); 8 Oct 2018 09:41:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19004 invoked by uid 48); 8 Oct 2018 09:41:03 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54005] Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free Date: Mon, 08 Oct 2018 09:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00595.txt.bz2 Content-length: 1683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54005 --- Comment #29 from Jonathan Wakely --- (In reply to Hans-Peter Nilsson from comment #27) > (In reply to Jonathan Wakely from comment #24) > > (In reply to Hans-Peter Nilsson from comment #22) > > > Or do I misread that? Are __alignof(x) and the result of alignas(x) > > > in the declaration guaranteed to always be the same here? > >=20 > > Yes. >=20 > For the combination of alignof and alignas in *this* code it's not > obvious to me. I can imagine that (for example) the alignment of a > container What do you mean by container? The std::atomic class template? > can affect the __alignof(x) such that it's (for example) > higher than the specifically alignas declaration of x, likely by bug, Yes, that would be a compiler bug. > less likely by intent. IOW, to me, this isn't the alignas(type) =3D=3D=3D > alignas(alignof(type)) in > . Because we're not relying on that. We're using GCC's __alignof extension to= ask for the alignment of an lvalue object, not a type. https://gcc.gnu.org/onlinedocs/gcc/Alignment.html That page should probably be amended to also mention 'alignas' when it says "taking into account any minimum alignment specified with GCC=E2=80=99s __a= ttribute__ extension". The alignas(_S_alignment) specifies the alignment for the _M_i member, and __alignof gives that same value back. We could verify that with: static_assert(__alignof(_M_i) =3D=3D _S_alignment, "sanity check"); Given the history of bugs in this code, I'm reluctant to make any larger changes here without a test showing an actual bug. >>From gcc-bugs-return-617214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:49:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71795 invoked by alias); 8 Oct 2018 09:48:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71360 invoked by uid 48); 8 Oct 2018 09:48:26 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Mon, 08 Oct 2018 09:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00596.txt.bz2 Content-length: 646 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 --- Comment #6 from Dominique d'Humieres --- > In the recent trunk (r264725) does _not_ give an ICE anymore, but the code > is vetoed as non-standard, as it is for nagfor and ifort. So, should this > be closed now? I still get an ICE: pr55735.f90:8:14: 8 | common /foo/ str | 1 Warning: Named COMMON block 'foo' at (1) shall be of the same size as elsew= here (8 vs 64 bytes) pr55735.f90:10:0: 10 | print '(3a)', '"',str(1:6),'"' ! ICE in gfc_conv_variable |=20 internal compiler error: in gfc_conv_variable, at fortran/trans-expr.c:2719 >>From gcc-bugs-return-617215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:53:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83223 invoked by alias); 8 Oct 2018 09:53:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 80692 invoked by uid 48); 8 Oct 2018 09:53:36 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Mon, 08 Oct 2018 09:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00597.txt.bz2 Content-length: 303 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 --- Comment #7 from J=C3=BCrgen Reuter --- Ah sorry, I think I moved around the block data and then it wasn't valid Fortran anymore. I think, both the block data and the subroutine are extern= al to the main program. >>From gcc-bugs-return-617216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 09:59:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114027 invoked by alias); 8 Oct 2018 09:59:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113945 invoked by uid 48); 8 Oct 2018 09:59:49 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54005] Use __atomic_always_lock_free in libstdc++ is_lock_free instead of __atomic_is_lock_free Date: Mon, 08 Oct 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hp at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00598.txt.bz2 Content-length: 1904 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54005 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED Assignee|unassigned at gcc dot gnu.org |hp at gcc dot gnu.o= rg --- Comment #30 from Jonathan Wakely --- (In reply to Hans-Peter Nilsson from comment #26) > I went by the documentation, which says at r264855 for __atomic_is_lock_f= ree > that "If the built-in function is not known to be lock-free, a call is ma= de > to a runtime routine named @code{__atomic_is_lock_free}." It certainly > seems to be that way too (builtins.c): >=20 > static tree > fold_builtin_atomic_is_lock_free (tree arg0, tree arg1) > { > if (!flag_inline_atomics) > return NULL_TREE; >=20=20=20 > /* If it isn't always lock free, don't generate a result. */ > if (fold_builtin_atomic_always_lock_free (arg0, arg1) =3D=3D boolean_tr= ue_node) > return boolean_true_node; >=20 > return NULL_TREE; > } >=20 > ISTM that this will not "inline" a return of "false". Indeed. This fails to link without -latomic: #include struct X { alignas(64) char x; }; int main() { std::atomic ax; return ax.is_lock_free(); } So even if the call in libatomic would give the right answer, depending on libatomic is unnecessary. The result should be the same as ax.is_always_lock_free which is a constant. So let's go with your patch to to change to: return __atomic_always_lock_free(sizeof(_M_i), reinterpret_cast(-_S_alignment)); Please also add some tests to the libstdc++ testsuite confirming that a.is_lock_free() is consistent with a.is_always_lock_free for a variety of types with different sizes and alignments. >>From gcc-bugs-return-617217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:08:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32062 invoked by alias); 8 Oct 2018 10:08:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31964 invoked by uid 48); 8 Oct 2018 10:08:02 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87431] valueless_by_exception() should unconditionally return false if all the constructors are noexcept Date: Mon, 08 Oct 2018 10:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00599.txt.bz2 Content-length: 500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87431 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #9 from Jonathan Wakely --- Sigh, I'm starting to dislike variant as much as tuple. Which is a lot. Reopening. >>From gcc-bugs-return-617218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:12:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47604 invoked by alias); 8 Oct 2018 10:12:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46224 invoked by uid 48); 8 Oct 2018 10:11:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Mon, 08 Oct 2018 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00600.txt.bz2 Content-length: 592 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #4 from Jonathan Wakely --- > allocator::max_size() is worse than useless Fixed that for you. https://cplusplus.github.io/LWG/lwg-active.html#3044 https://cplusplus.github.io/LWG/lwg-closed.html#197 For PR 78448 I recently changed std::vector::max_size() so it won't return anything greater than PTRDIFF_MAX, even if the allocator stupidly sa= ys it can handle more than that. But the standard explicitly requires the allocator to be stupid, so I'm not sure what more libstdc++ can do here. >>From gcc-bugs-return-617219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:16:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67554 invoked by alias); 8 Oct 2018 10:16:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67415 invoked by uid 48); 8 Oct 2018 10:15:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Mon, 08 Oct 2018 10:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00601.txt.bz2 Content-length: 917 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #5 from Jonathan Wakely --- Maybe this: --- a/libstdc++-v3/include/bits/stl_vector.h +++ b/libstdc++-v3/include/bits/stl_vector.h @@ -1726,7 +1726,11 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER static size_type _S_max_size(const _Tp_alloc_type& __a) _GLIBCXX_NOEXCEPT { - const size_t __diffmax =3D __gnu_cxx::__numeric_traits::= __max; + // std::distance(begin(), end()) cannot be greater than PTRDIFF_MAX, + // and realistically we can't store more than PTRDIFF_MAX/sizeof(T) + // (even if std::allocator_traits::max_size() says we can). + const size_t __diffmax + =3D __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); const size_t __allocmax =3D _Alloc_traits::max_size(__a); return (std::min)(__diffmax, __allocmax); } >>From gcc-bugs-return-617220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:31:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102518 invoked by alias); 8 Oct 2018 10:31:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102448 invoked by uid 48); 8 Oct 2018 10:31:35 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71586] type confusion when bitfields are accessed from templates Date: Mon, 08 Oct 2018 10:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00602.txt.bz2 Content-length: 744 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71586 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Target Milestone|--- |6.4 Ever confirmed|0 |1 --- Comment #2 from Jonathan Wakely --- This was fixed by r245343 PR c++/78908 - template ops and bitfields * tree.c (build_min_non_dep): Use unlowered_expr_type. We should probably add the testcase to the testsuite before closing it. >>From gcc-bugs-return-617221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:42:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118562 invoked by alias); 8 Oct 2018 10:42:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118480 invoked by uid 48); 8 Oct 2018 10:42:47 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84516] bitfield temporaries > 32-bits have wrong type Date: Mon, 08 Oct 2018 10:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00603.txt.bz2 Content-length: 1013 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84516 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2018-02-27 00:00:00 |2018-10-8 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D70733 --- Comment #3 from Jonathan Wakely --- This seems to be related to the following rule in [conv.prom]: > A prvalue for an integral bit-field (10.3.10) can be converted to a prval= ue of type int if int can represent all the values of the bit-field; otherw= ise, it can be converted to unsigned int if unsigned int can represent all = the values of the bit-field. If the bit-field is larger yet, no integral pr= omotion applies to it. But the fact no promotion applies should mean the type is unchanged, so is = just long, not long:33. >>From gcc-bugs-return-617222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:44:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121435 invoked by alias); 8 Oct 2018 10:44:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 121162 invoked by uid 48); 8 Oct 2018 10:44:05 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87547] G++ reports bad type names for bit-field members Date: Mon, 08 Oct 2018 10:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on cf_gcchost see_also everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00604.txt.bz2 Content-length: 1179 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87547 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target|i686-linux-gnu | Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Host|i686-linux-gnu | See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D84516 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to Sandro Boehler from comment #0) > Expected output (according to standard [class.bit] > (http://eel.is/c++draft/class.bit): "The bit-field attribute is not part = of > the type of the class member."): If the bit-field attribute was part of the type then it would be "unsigned int:4" not "unsigned char" or "unsigned short". But G++ is still wrong to u= se a smaller type, it should be unsigned int (even if internally something else = is used). >>From gcc-bugs-return-617223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:46:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6942 invoked by alias); 8 Oct 2018 10:46:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6551 invoked by uid 48); 8 Oct 2018 10:45:57 -0000 From: "jamborm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Mon, 08 Oct 2018 10:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jamborm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00605.txt.bz2 Content-length: 727 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 --- Comment #5 from Martin Jambor --- (In reply to Richard Biener from comment #3) > Can you point me to the source for which we generate the popcount call(s)= ?=20 > It might be not final value replacement but instead code-generating a nit= er > analysis result. It turns out it is as simple as: ---------------------------------------- typedef unsigned long long BITBOARD; int PopCount (BITBOARD b) { int c =3D 0; while (b) { b &=3D b - 1; c++; } return c; } ---------------------------------------- with -O3. Trunk generates a call to __popcountdi2 when GCC 7 (or trunk with -march=3Dskylake) does not. >>From gcc-bugs-return-617224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:50:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38222 invoked by alias); 8 Oct 2018 10:50:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38006 invoked by uid 48); 8 Oct 2018 10:50:23 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71792] deducing type from bitfield leads to overflow Date: Mon, 08 Oct 2018 10:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cf_known_to_work see_also target_milestone everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00606.txt.bz2 Content-length: 1020 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71792 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Known to work| |6.4.0, 7.1.0, 8.1.0 See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D71586 Target Milestone|--- |6.4 Ever confirmed|0 |1 Known to fail| |6.3.0 --- Comment #2 from Jonathan Wakely --- This was fixed by r245343 PR c++/78908 - template ops and bitfields * tree.c (build_min_non_dep): Use unlowered_expr_type. We should probably add the testcase to the testsuite before closing it. >>From gcc-bugs-return-617225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:51:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41152 invoked by alias); 8 Oct 2018 10:51:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39554 invoked by uid 48); 8 Oct 2018 10:51:00 -0000 From: "vladimir.solontsov at mlp dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87550] New: Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc) are interpreted as pure functions Date: Mon, 08 Oct 2018 10:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vladimir.solontsov at mlp dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00607.txt.bz2 Content-length: 893 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87550 Bug ID: 87550 Summary: Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc) are interpreted as pure functions Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vladimir.solontsov at mlp dot com Target Milestone: --- A code like #include #include int main() { uint64_t s =3D __rdpmc(0); uint64_t e =3D __rdpmc(0); return (int)(e - s); } generates=20 xorl %eax, %eax ret It seems like __rdpmc() is treated as a pure function which makes it comple= tely useless. I initially found it with g++ 7.1.0 but with godbolt confirmed it for all others since 4.5.3. >>From gcc-bugs-return-617226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 10:54:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55374 invoked by alias); 8 Oct 2018 10:53:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55302 invoked by uid 48); 8 Oct 2018 10:53:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 10:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00608.txt.bz2 Content-length: 549 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-08 Assignee|unassigned at gcc dot gnu.org |redi at gcc dot gnu= .org Ever confirmed|0 |1 >>From gcc-bugs-return-617227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:07:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73781 invoked by alias); 8 Oct 2018 11:07:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73679 invoked by uid 55); 8 Oct 2018 11:07:26 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87528] Popcount changes caused 531.deepsjeng_r run-time regression on Skylake Date: Mon, 08 Oct 2018 11:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00609.txt.bz2 Content-length: 1940 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 --- Comment #6 from rguenther at suse dot de --- On Mon, 8 Oct 2018, jamborm at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87528 >=20 > --- Comment #5 from Martin Jambor --- > (In reply to Richard Biener from comment #3) > > Can you point me to the source for which we generate the popcount call(= s)?=20 > > It might be not final value replacement but instead code-generating a n= iter > > analysis result. >=20 > It turns out it is as simple as: >=20 > ---------------------------------------- > typedef unsigned long long BITBOARD; >=20 > int PopCount (BITBOARD b) { > int c =3D 0; >=20 > while (b) { > b &=3D b - 1; > c++; > } >=20 > return c; > } > ---------------------------------------- > with -O3. Trunk generates a call to __popcountdi2 when GCC 7 (or > trunk with -march=3Dskylake) does not. OK, I see. They have that PopCount and also ThickPopCount which appearantly is supposed to handle the high-density case better. They have also open-coded ffs() & friends. I guess without any idea of 'b' we need to assume that 'b' has almost no bits set and thus the loop will be fast(er than a call). This was also noted elsewhere and a GCC discussion circled around the fact that we introduce popcount() into other contexts (the above is final value replacement). So that raises the question whether we should simply open-code popcount on the target? I wonder if you can benchmark using ThickPopCount everywhere (for a non-loopy replacement). Note currently final value replacement uses expression_expensive_p which eventually just checks is_inexpensive_builtin which suffers from the very same issue (in theory). Patching is_inexpensive_builtin to check whether we have an optab might do the trick (with other side-effects, like on inlining, of course). >>From gcc-bugs-return-617228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:10:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76944 invoked by alias); 8 Oct 2018 11:10:14 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76890 invoked by uid 48); 8 Oct 2018 11:10:10 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Mon, 08 Oct 2018 11:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00610.txt.bz2 Content-length: 780 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #6 from Marc Glisse --- (In reply to Jonathan Wakely from comment #4) > But the standard explicitly requires the > allocator to be stupid, so I'm not sure what more libstdc++ can do here. I think the standard specifies the fallback value in allocator_traits for allocators that do not provide max_size (we could open an issue asking for = more freedom in the choice of this value, as long as there is a default, and may= be also the freedom to return something smaller than a.max_size() when that va= lue is provided), but it does not specify what std::allocator::max_size should return (though this function is deprecated), so we could edit new_allocator (and malloc_allocator, etc). >>From gcc-bugs-return-617229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:16:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92165 invoked by alias); 8 Oct 2018 11:16:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92052 invoked by uid 48); 8 Oct 2018 11:16:44 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Mon, 08 Oct 2018 11:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00611.txt.bz2 Content-length: 943 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #7 from Marc Glisse --- (In reply to Jonathan Wakely from comment #5) > static size_type > _S_max_size(const _Tp_alloc_type& __a) _GLIBCXX_NOEXCEPT > { > - const size_t __diffmax =3D > __gnu_cxx::__numeric_traits::__max; > + // std::distance(begin(), end()) cannot be greater than PTRDIFF_M= AX, > + // and realistically we can't store more than PTRDIFF_MAX/sizeof(= T) > + // (even if std::allocator_traits::max_size() says we can). > + const size_t __diffmax > + =3D __gnu_cxx::__numeric_traits::__max / sizeof(_Tp); > const size_t __allocmax =3D _Alloc_traits::max_size(__a); > return (std::min)(__diffmax, __allocmax); > } This looks like a more useful value for __diffmax indeed. And the standard = even seems ok with us doing that :-) >>From gcc-bugs-return-617230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:17:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96168 invoked by alias); 8 Oct 2018 11:17:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95057 invoked by uid 55); 8 Oct 2018 11:17:44 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86372] [8/9 Regression] Segfault on ASSOCIATE statement with CHARACTER variable Date: Mon, 08 Oct 2018 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00612.txt.bz2 Content-length: 724 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 --- Comment #8 from Paul Thomas --- Author: pault Date: Mon Oct 8 11:17:10 2018 New Revision: 264919 URL: https://gcc.gnu.org/viewcvs?rev=3D264919&root=3Dgcc&view=3Drev Log: 2018-10-08 Paul Thomas PR fortran/86372 * trans-stmt.c (trans_associate_var): Character associate names with variable string length do not have to be deferred length for the string length to be set, if variable. 2018-10-08 Paul Thomas PR fortran/86372 * gfortran.dg/associate_41.f90: New test. Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:20:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106322 invoked by alias); 8 Oct 2018 11:20:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106238 invoked by uid 48); 8 Oct 2018 11:20:51 -0000 From: "taz.007 at zoho dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 11:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: taz.007 at zoho dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00614.txt.bz2 Content-length: 512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 taz.007 at zoho dot com changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44794|0 |1 is obsolete| | --- Comment #7 from taz.007 at zoho dot com --- Created attachment 44806 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44806&action=3Dedit preprocessed file that triggers the issue >>From gcc-bugs-return-617231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:20:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105224 invoked by alias); 8 Oct 2018 11:20:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105133 invoked by uid 48); 8 Oct 2018 11:20:06 -0000 From: "taz.007 at zoho dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 11:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: taz.007 at zoho dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00613.txt.bz2 Content-length: 233 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 --- Comment #6 from taz.007 at zoho dot com --- Created attachment 44805 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44805&action=3Dedit script to build the shared lib >>From gcc-bugs-return-617233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:23:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112217 invoked by alias); 8 Oct 2018 11:23:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 112151 invoked by uid 48); 8 Oct 2018 11:23:22 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87546] [9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 08 Oct 2018 11:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00615.txt.bz2 Content-length: 410 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #2 from Martin Li=C5=A1ka --- Started with r262333. >>From gcc-bugs-return-617234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:26:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119522 invoked by alias); 8 Oct 2018 11:26:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119460 invoked by uid 48); 8 Oct 2018 11:26:13 -0000 From: "taz.007 at zoho dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 11:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: taz.007 at zoho dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00616.txt.bz2 Content-length: 696 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 --- Comment #8 from taz.007 at zoho dot com --- I've been able to create a test case with just one file (not the same as the first one attached). you can lookup the build.sh to know how i've build the shared library. Once built, you can objdump -D libFLAC.so.8.3.0 | less and search for the symbol fread.constprop.5 that is compiled as an infinite loop :=20 000025a0 : 25a0: eb fe jmp 25a0 25a2: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi 25a9: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi Let me know if you need more information. >>From gcc-bugs-return-617235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:33:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126778 invoked by alias); 8 Oct 2018 11:33:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126584 invoked by uid 55); 8 Oct 2018 11:33:06 -0000 From: "graham.stott77 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87546] [9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 08 Oct 2018 11:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: graham.stott77 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00617.txt.bz2 Content-length: 2176 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 --- Comment #3 from graham.stott77 at gmail dot com --- 'b' is never assigned a value, so surely it's undefined -------- Original message -------- From: helloqirun at gmail dot com =20 Date: 08/10/2018 04:51 (GMT+00:00)=20 To: gcc-bugs@gcc.gnu.org=20 Subject: [Bug tree-optimization/87546] New: Gcc miscompiles at -O3 on valid code=20 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Bug ID: = 87546 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Summary: Gcc m= iscompiles at -O3 on valid code =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Product: gcc =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Version: unkno= wn =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Status: = UNCONFIRMED =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Severity: normal =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Priority: P3 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Component: tree-optimizati= on =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Assignee: unassigned= at gcc dot gnu.org =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Reporter: helloqirun= at gmail dot com =C2=A0 Target Milestone: --- It should be a very recent regression. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-l= inux-gnu/9.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=3D/home/absozero/trunk/root-gcc --enable-languages=3Dc,c++ --disable-werror --enable-multilib Thread model: posix gcc version 9.0.0 20181007 (experimental) [trunk revision 264906] (GCC) $ gcc-trunk abc.c ; ./a.out -37 $ gcc-trunk -O3 abc.c ; ./a.out 219 $ cat abc.c int printf(const char *, ...); int a; long b, f; char c, g; short d =3D 219; int e[7]; int main() { =C2=A0 for (; c <=3D 6; c++) { =C2=A0=C2=A0=C2=A0 g =3D d < 0 ? d : d >> a; =C2=A0=C2=A0=C2=A0 f =3D g + b; =C2=A0=C2=A0=C2=A0 e[c] =3D f; =C2=A0 } =C2=A0 printf("%d\n", e[1]); } >>From gcc-bugs-return-617236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:45:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21111 invoked by alias); 8 Oct 2018 11:45:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20835 invoked by uid 48); 8 Oct 2018 11:45:35 -0000 From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 11:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00618.txt.bz2 Content-length: 1341 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 Liu Hao changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lh_mouse at 126 dot com --- Comment #9 from Liu Hao --- I reproduced this problem on Linux Mint 19 using the last two attachments. = This issue is only reproducible on i686 i.e. after `-m32` is added into FLAGS in= the build script, as I am on an x64 system. ``` lh_mouse@lhmouse-ideapad ~/Desktop $ objdump -dMintel-mneomic libFLAC.so.8.= 3.0=20 | grep -F 'fread.constprop.5' 00002530 : 2530: eb fe jmp 2530 2c4e: e8 dd f8 ff ff call 2530 8204: e8 27 a3 ff ff call 2530 8b4e: e8 dd 99 ff ff call 2530 lh_mouse@lhmouse-ideapad ~/Desktop $ gcc --version gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. lh_mouse@lhmouse-ideapad ~/Desktop $=20 ``` >>From gcc-bugs-return-617237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 11:48:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25678 invoked by alias); 8 Oct 2018 11:48:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24988 invoked by uid 48); 8 Oct 2018 11:48:27 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 11:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00619.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |ASSIGNED Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot g= nu.org --- Comment #10 from Martin Li=C5=A1ka --- I can also confirm that, I'm taking look at it. >>From gcc-bugs-return-617238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:07:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87586 invoked by alias); 8 Oct 2018 12:07:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87541 invoked by uid 55); 8 Oct 2018 12:07:54 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 12:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00620.txt.bz2 Content-length: 701 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 --- Comment #1 from Jonathan Wakely --- Author: redi Date: Mon Oct 8 12:07:22 2018 New Revision: 264921 URL: https://gcc.gnu.org/viewcvs?rev=3D264921&root=3Dgcc&view=3Drev Log: PR libstdc++/87538 fix std::not_fn exception specifications PR libstdc++/87538 * include/std/functional (_Not_fn::operator()): Check value of __is_nothrow_invocable as well. * testsuite/20_util/function_objects/not_fn/87538.cc: New test. Added: trunk/libstdc++-v3/testsuite/20_util/function_objects/not_fn/87538.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/functional >>From gcc-bugs-return-617239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:10:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 89387 invoked by alias); 8 Oct 2018 12:10:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 89274 invoked by uid 48); 8 Oct 2018 12:09:58 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87546] [9 Regression] Gcc miscompiles at -O3 on valid code Date: Mon, 08 Oct 2018 12:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00621.txt.bz2 Content-length: 557 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87546 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #4 from Jakub Jelinek --- (In reply to graham.stott77 from comment #3) > 'b' is never assigned a value, so surely it's undefined No. b has static storage duration and therefore it is initialized to zero. >>From gcc-bugs-return-617240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:12:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91464 invoked by alias); 8 Oct 2018 12:12:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91416 invoked by uid 48); 8 Oct 2018 12:12:06 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 12:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00622.txt.bz2 Content-length: 954 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |6.4.0 Summary|Incorrect noexcept |[7/8 Regression] Incorrect |specifier for not_fn |noexcept specifier for | |not_fn Known to fail| |7.3.0, 8.2.0 --- Comment #2 from Jonathan Wakely --- This is a regression for std::experimental::not_fn because since gcc-7 it shares the implementation with std::not_fn #include struct N {=20 int operator()(int i) { if (i =3D=3D 0) throw -1; return i; } }; N n; auto not_n =3D std::experimental::not_fn(n); static_assert( !noexcept(not_n(1)), "" ); >>From gcc-bugs-return-617241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:16:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99031 invoked by alias); 8 Oct 2018 12:16:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97404 invoked by uid 48); 8 Oct 2018 12:15:06 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87551] New: [9 regression] libgnat-9.so fails to link on Solaris Date: Mon, 08 Oct 2018 12:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00623.txt.bz2 Content-length: 3171 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87551 Bug ID: 87551 Summary: [9 regression] libgnat-9.so fails to link on Solaris Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: edlinger at gcc dot gnu.org Target Milestone: --- Host: i386-pc-solaris2.11, amd64-pc-solaris2.11, sparc*-sun-solaris2.11 Target: i386-pc-solaris2.11, amd64-pc-solaris2.11, sparc*-sun-solaris2.11 Build: i386-pc-solaris2.11, amd64-pc-solaris2.11, sparc*-sun-solaris2.11 Since this patch (r264850) 2018-10-04 Bernd Edlinger * varasm.c (output_constant): Add new parameter merge_strings. Make strings properly zero terminated in merge string sections. (mergeable_string_section): Don't fail if the last char is non-zero. (assemble_variable_contents): Handle merge string sections. (assemble_variable): Likewise. (assemble_constant_contents): Likewise. (output_constant_def_contents): Likewise. (output_constructor_array_range, output_constructor_regular_field): Adjust call to output_constant. (output_object_block): Adjust call to assemble_constant_contents and assemble_variable_contents. libada tails to link on Solaris 11 with /bin/ld and gas (i.e. when string merging is supported). ld complains ld: fatal: relocation error: R_386_GOTOFF: file s-shasto.o: section [10].rel.text: symbol .LC8: symbol has been discarded with discarded sectio= n: [18].rodata.str1.1 ld: fatal: relocation error: R_386_GOTOFF: file s-shasto.o: section [10].rel.text: symbol .LC8: symbol has been discarded with discarded sectio= n: [18].rodata.str1.1 ld: fatal: relocation error: R_386_GOTOFF: file s-shasto.o: section [14].rel.text.unlikely: symbol .LC8: symbol has been discarded with discard= ed section: [18].rodata.str1.1 and indeed that section is empty Section Header[18]: sh_name: .rodata.str1.1 sh_addr: 0 sh_flags: [ SHF_ALLOC SHF_MERGE SHF_STR= INGS ] sh_size: 0 sh_type: [ SHT_PROGBITS ] sh_offset: 0x1cb0 sh_entsize: 0x1 (0 entries) sh_link: 0 sh_info: 0 sh_addralign: 0x1=20=20=20=20=20=20=20 while relocations remain: [179] R_386_GOTOFF 0x106a 0 .text .LC8 [209] R_386_GOTOFF 0x1408 0 .text .LC8 [39] R_386_GOTOFF 0x28c 0 .text.unlikely .LC8 s-shasto.s has .section .rodata.str1.1,"aMS",@progbits,1 .LC8: .section .rodata .align 4 .LC1: .long 1 .long 0 (i.e. an empty .rodata.str1.1 section with label .LC8 in it) while before we had .section .rodata .LC8: .align 4 .LC1: .long 1 .long 0 (i.e. a non-empty .rodata section). >>From gcc-bugs-return-617242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:18:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 105964 invoked by alias); 8 Oct 2018 12:18:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105869 invoked by uid 55); 8 Oct 2018 12:18:31 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 12:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00624.txt.bz2 Content-length: 528 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 --- Comment #3 from Jonathan Wakely --- Author: redi Date: Mon Oct 8 12:17:58 2018 New Revision: 264922 URL: https://gcc.gnu.org/viewcvs?rev=3D264922&root=3Dgcc&view=3Drev Log: PR libstdc++/87538 Verify fix for std::experimental::not_fn PR libstdc++/87538 * testsuite/experimental/functional/87538.cc: New test. Added: trunk/libstdc++-v3/testsuite/experimental/functional/87538.cc Modified: trunk/libstdc++-v3/ChangeLog >>From gcc-bugs-return-617243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:19:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108496 invoked by alias); 8 Oct 2018 12:19:20 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108334 invoked by uid 48); 8 Oct 2018 12:19:13 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Mon, 08 Oct 2018 12:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00625.txt.bz2 Content-length: 968 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #8 from Jonathan Wakely --- (In reply to Marc Glisse from comment #6) > I think the standard specifies the fallback value in allocator_traits for > allocators that do not provide max_size (we could open an issue asking for > more freedom in the choice of this value, as long as there is a default, = and > maybe also the freedom to return something smaller than a.max_size() when > that value is provided), but it does not specify what > std::allocator::max_size should return (though this function is deprecate= d), It's deprecated because the default provided by allocator_traits is suppose= d to be equivalent, making it redundant. But it's not equivalent. The fact that std::allocator::max_size() was underspecified does mean we're allowed to return a sane value, and so it probably shouldn't be deprecated. I've raised this with the LWG. I hate max_size() so much. >>From gcc-bugs-return-617244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:29:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70553 invoked by alias); 8 Oct 2018 12:29:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70468 invoked by uid 48); 8 Oct 2018 12:29:11 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 12:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00626.txt.bz2 Content-length: 291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.4 >>From gcc-bugs-return-617245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:37:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91474 invoked by alias); 8 Oct 2018 12:37:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91411 invoked by uid 48); 8 Oct 2018 12:37:43 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87552] New: [9 regression] FAIL: gcc.c-torture/compile/20010102-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) Date: Mon, 08 Oct 2018 12:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter blocked target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00627.txt.bz2 Content-length: 2120 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87552 Bug ID: 87552 Summary: [9 regression] FAIL: gcc.c-torture/compile/20010102-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: schwab@linux-m68k.org Blocks: 85458 Target Milestone: --- Target: ia64-*-* On ia64, priorities can become negative, thus the assertion in sel_target_adjust_priority is wrong. This only happens with -O3. during RTL pass: mach /usr/local/gcc/test/gcc/testsuite/gcc.c-torture/compile/20010102-1.c: In function =E2=80=98_obstack_newchunk=E2=80=99: /usr/local/gcc/test/gcc/testsuite/gcc.c-torture/compile/20010102-1.c:101:1: internal compiler error: in sel_target_adjust_priority, at sel-sched.c:3333 0x40000000010bb68f sel_target_adjust_priority ../../gcc/sel-sched.c:3333 0x40000000010bb68f fill_vec_av_set ../../gcc/sel-sched.c:3727 0x40000000010bd45f fill_ready_list ../../gcc/sel-sched.c:4028 0x40000000010bd45f find_best_expr ../../gcc/sel-sched.c:4388 0x40000000010bd45f fill_insns ../../gcc/sel-sched.c:5549 0x40000000010c29cf schedule_on_fences ../../gcc/sel-sched.c:7366 0x40000000010c29cf sel_sched_region_2 ../../gcc/sel-sched.c:7504 0x40000000010c510f sel_sched_region_1 ../../gcc/sel-sched.c:7546 0x40000000010c700f sel_sched_region(int) ../../gcc/sel-sched.c:7647 0x40000000010c9def run_selective_scheduling() ../../gcc/sel-sched.c:7733 0x40000000019e473f ia64_reorg ../../gcc/config/ia64/ia64.c:9857 0x40000000010314cf execute ../../gcc/reorg.c:3984 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85458 [Bug 85458] FAIL: gcc.dg/pr83480.c (internal compiler error) >>From gcc-bugs-return-617246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:38:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92926 invoked by alias); 8 Oct 2018 12:38:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 92889 invoked by uid 48); 8 Oct 2018 12:38:22 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87552] [9 regression] FAIL: gcc.c-torture/compile/20010102-1.c -O3 -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer -finline-functions (test for excess errors) Date: Mon, 08 Oct 2018 12:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: schwab@linux-m68k.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00628.txt.bz2 Content-length: 288 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87552 Andreas Schwab changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-617247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:46:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 77372 invoked by alias); 8 Oct 2018 12:46:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 77296 invoked by uid 48); 8 Oct 2018 12:46:19 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87551] [9 regression] libgnat-9.so fails to link on Solaris Date: Mon, 08 Oct 2018 12:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00629.txt.bz2 Content-length: 285 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87551 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-617248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:51:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96971 invoked by alias); 8 Oct 2018 12:51:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 96909 invoked by uid 48); 8 Oct 2018 12:51:35 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87481] [7/8/9 Regression] Endless loop with optimisation in C++17 Date: Mon, 08 Oct 2018 12:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: compile-time-hog, ice-on-invalid-code, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00630.txt.bz2 Content-length: 1344 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87481 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- I don't think it is a hang. void foo () { [] { while (true) for (int i =3D 0; i < 10; ++i) ; } }; } takes 7 seconds to compile. We have -fconstexpr-loop-limit=3D option with default of 262144, but that i= s just an upper bound for number of iterations for a single loop, but in your test= case you have two nested loops, so the compiler will stop after doing 262144 iterations of the outer loop and 10000 iterations of the inner loop. Perhaps we want in addition to -fconstexpr-loop-limit=3D that affects just a single loop have -fconstexpr-loop-nest-limit=3D that bounds the total numbe= r of loop iterations in the whole constexpr evaluation, all nested loops. Though, something is really strange, with void foo () { [] { while (true) for (int i =3D 0; i < 10000; ++i) ; } }; } -fconstexpr-loop-limit=3D10000 this compiles immediately, likewise with -fconstexpr-loop-limit=3D10001, but with -fconstexpr-loop-limit=3D10002 it = already takes a long time. >>From gcc-bugs-return-617249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 12:55:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108305 invoked by alias); 8 Oct 2018 12:55:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 108257 invoked by uid 55); 8 Oct 2018 12:55:14 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 12:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00631.txt.bz2 Content-length: 985 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 --- Comment #4 from Jonathan Wakely --- Author: redi Date: Mon Oct 8 12:54:41 2018 New Revision: 264924 URL: https://gcc.gnu.org/viewcvs?rev=3D264924&root=3Dgcc&view=3Drev Log: PR libstdc++/87538 fix std::not_fn exception specifications Backport from mainline 2018-10-08 Jonathan Wakely PR libstdc++/87538 * include/std/functional (_Not_fn::operator()): Check value of __is_nothrow_invocable as well. * testsuite/20_util/function_objects/not_fn/87538.cc: New test. * testsuite/experimental/functional/87538.cc: New test. Added: =20=20=20 branches/gcc-8-branch/libstdc++-v3/testsuite/20_util/function_objects/not_f= n/87538.cc =20=20=20 branches/gcc-8-branch/libstdc++-v3/testsuite/experimental/functional/87538.= cc Modified: branches/gcc-8-branch/libstdc++-v3/ChangeLog branches/gcc-8-branch/libstdc++-v3/include/std/functional >>From gcc-bugs-return-617250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:03:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124720 invoked by alias); 8 Oct 2018 13:03:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124430 invoked by uid 55); 8 Oct 2018 13:03:08 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86372] [8/9 Regression] Segfault on ASSOCIATE statement with CHARACTER variable Date: Mon, 08 Oct 2018 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00632.txt.bz2 Content-length: 939 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 --- Comment #9 from Paul Thomas --- Author: pault Date: Mon Oct 8 13:02:36 2018 New Revision: 264925 URL: https://gcc.gnu.org/viewcvs?rev=3D264925&root=3Dgcc&view=3Drev Log: 2018-10-08 Paul Thomas Backport from trunk PR fortran/86372 * trans-stmt.c (trans_associate_var): Character associate names with variable string length do not have to be deferred length for the string length to be set, if variable. 2018-10-08 Paul Thomas Backport from trunk PR fortran/86372 * gfortran.dg/associate_41.f90: New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/associate_41.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/trans-stmt.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:11:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2085 invoked by alias); 8 Oct 2018 13:11:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1912 invoked by uid 48); 8 Oct 2018 13:11:12 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86372] [8/9 Regression] Segfault on ASSOCIATE statement with CHARACTER variable Date: Mon, 08 Oct 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00633.txt.bz2 Content-length: 472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Paul Thomas --- Fixed on 8-branch and trunk. Thanks for the report. Paul >>From gcc-bugs-return-617253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:11:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2385 invoked by alias); 8 Oct 2018 13:11:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2038 invoked by uid 48); 8 Oct 2018 13:11:14 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87477] [meta-bug] [F03] issues concerning the ASSOCIATE statement Date: Mon, 08 Oct 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00635.txt.bz2 Content-length: 500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87477 Bug 87477 depends on bug 86372, which changed state. Bug 86372 Summary: [8/9 Regression] Segfault on ASSOCIATE statement with CH= ARACTER variable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:11:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2331 invoked by alias); 8 Oct 2018 13:11:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1970 invoked by uid 48); 8 Oct 2018 13:11:14 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/68241] [meta-bug] [F03] Deferred-length character Date: Mon, 08 Oct 2018 13:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00634.txt.bz2 Content-length: 500 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68241 Bug 68241 depends on bug 86372, which changed state. Bug 86372 Summary: [8/9 Regression] Segfault on ASSOCIATE statement with CH= ARACTER variable https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86372 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED >>From gcc-bugs-return-617254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:12:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4600 invoked by alias); 8 Oct 2018 13:12:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4495 invoked by uid 48); 8 Oct 2018 13:12:20 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87481] [7/8/9 Regression] Endless loop with optimisation in C++17 Date: Mon, 08 Oct 2018 13:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: compile-time-hog, ice-on-invalid-code, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00636.txt.bz2 Content-length: 1088 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87481 --- Comment #4 from Jakub Jelinek --- There is actually nothing weird on that, with smaller ones we terminate the inner loop early and then stop. With the debugging -O0 build I have around, the constexpr processing is very slow though, so I get about 35 iterations of the outer loop when inner loop= has 10000 iterations per second, so that would be about 7500 seconds for the wh= ole testcase. Of course with optimized build that could be say 10 times faster. In any case, I think the total loop nesting limit would be helpful here, perhaps have two global vars, one loop nesting, incremented at the start of cxx_eval_loop_expr and decremented at the end (or just bool if the current = loop is nested) and then have a global counter compared against the new limit, w= ith say a default of 524288, that would be incremented next to the automatic co= unt, and that would be cleared at the end of cxx_eval_loop_expr if it was not ne= sted (i.e. the nesting count would be 0 when that function was called). >>From gcc-bugs-return-617255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:12:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5261 invoked by alias); 8 Oct 2018 13:12:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 5224 invoked by uid 48); 8 Oct 2018 13:12:31 -0000 From: "vrzubov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71792] deducing type from bitfield leads to overflow Date: Mon, 08 Oct 2018 13:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vrzubov at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00637.txt.bz2 Content-length: 260 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71792 --- Comment #3 from vadim --- Created attachment 44807 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44807&action=3Dedit test case after patch current test have to work >>From gcc-bugs-return-617257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:13:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9498 invoked by alias); 8 Oct 2018 13:13:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8814 invoked by uid 55); 8 Oct 2018 13:13:38 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 13:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00639.txt.bz2 Content-length: 985 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 --- Comment #6 from Jonathan Wakely --- Author: redi Date: Mon Oct 8 13:13:06 2018 New Revision: 264926 URL: https://gcc.gnu.org/viewcvs?rev=3D264926&root=3Dgcc&view=3Drev Log: PR libstdc++/87538 fix std::not_fn exception specifications Backport from mainline 2018-10-08 Jonathan Wakely PR libstdc++/87538 * include/std/functional (_Not_fn::operator()): Check value of __is_nothrow_invocable as well. * testsuite/20_util/function_objects/not_fn/87538.cc: New test. * testsuite/experimental/functional/87538.cc: New test. Added: =20=20=20 branches/gcc-7-branch/libstdc++-v3/testsuite/20_util/function_objects/not_f= n/87538.cc =20=20=20 branches/gcc-7-branch/libstdc++-v3/testsuite/experimental/functional/87538.= cc Modified: branches/gcc-7-branch/libstdc++-v3/ChangeLog branches/gcc-7-branch/libstdc++-v3/include/std/functional >>From gcc-bugs-return-617256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:13:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8801 invoked by alias); 8 Oct 2018 13:13:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 8714 invoked by uid 48); 8 Oct 2018 13:13:33 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87538] [7/8 Regression] Incorrect noexcept specifier for not_fn Date: Mon, 08 Oct 2018 13:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00638.txt.bz2 Content-length: 445 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87538 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Jonathan Wakely --- Fixed for 7.4, 8.3 and 9.1 >>From gcc-bugs-return-617258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:18:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18212 invoked by alias); 8 Oct 2018 13:18:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18138 invoked by uid 48); 8 Oct 2018 13:18:53 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87551] [9 regression] libgnat-9.so fails to link on Solaris Date: Mon, 08 Oct 2018 13:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00640.txt.bz2 Content-length: 1075 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87551 Bernd Edlinger changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bernd.edlinger at hotmail = dot de --- Comment #1 from Bernd Edlinger --- Rainer, can you try this? Index: varasm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- varasm.c (Revision 264887) +++ varasm.c (Arbeitskopie) @@ -804,7 +804,7 @@ && TREE_CODE (decl) =3D=3D STRING_CST && TREE_CODE (TREE_TYPE (decl)) =3D=3D ARRAY_TYPE && align <=3D 256 - && (len =3D int_size_in_bytes (TREE_TYPE (decl))) >=3D 0 + && (len =3D int_size_in_bytes (TREE_TYPE (decl))) > 0 && TREE_STRING_LENGTH (decl) =3D=3D len) { scalar_int_mode mode; >>From gcc-bugs-return-617260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:34:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44280 invoked by alias); 8 Oct 2018 13:33:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44075 invoked by uid 48); 8 Oct 2018 13:33:49 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 13:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00642.txt.bz2 Content-length: 285 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 >>From gcc-bugs-return-617259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:33:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43420 invoked by alias); 8 Oct 2018 13:33:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43307 invoked by uid 48); 8 Oct 2018 13:33:37 -0000 From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] New: [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 13:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00641.txt.bz2 Content-length: 3401 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 Bug ID: 87553 Summary: [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.10, powerpc-ibm-aix7.2.0.0 Between 20180921 (r264460) and 20180929 (r264715), three profiling tests be= gan to FAIL on Solaris 10 (only; Solaris 11 is fine) and AIX 7.2: +FAIL: g++.dg/tree-prof/inline_mismatch_args.C compilation, -fprofile-use -D_PR OFILE_USE +UNRESOLVED: g++.dg/tree-prof/inline_mismatch_args.C execution,=20=20=20 -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_= args.C: In copy constructor 'DocId::DocId(const DocId&)': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_= args.C:5:2: warning: profile for function 'DocId::DocId(const DocId&)' not found in pro= file data [-Wmissing-profile] /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_= args.C: In constructor 'DocId::DocId()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_= args.C:4:2: warning: profile for function 'DocId::DocId()' not found in profile data [-Wmissing-profile] +FAIL: g++.dg/tree-prof/pr35545.C compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: g++.dg/tree-prof/pr35545.C execution, -fprofile-use -D_PROFILE_U SE /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C: In constructor 'B::B()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C:13:7: warning: profile for function 'B::B()' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C: In constructor 'A::A()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C:4:7: warning: profile for function 'A::A()' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C: In constructor 'A::A()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C:4:7: warning: profile for function 'A::A()' not found in profile data [-Wmissing-profile] +FAIL: g++.dg/tree-prof/reorder.C compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: g++.dg/tree-prof/reorder.C execution, -fprofile-use -D_PROFILE_USE In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder.C:5: /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder_class2.h= : In constructor 'constexpr B::B()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder_class2.h= :2:8: warning: profile for function 'constexpr B::B()' not found in profile data [-Wmissing-profile] In file included from /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder.C:4: /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder_class1.h= : In constructor 'constexpr A::A()': /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/tree-prof/reorder_class1.h= :1:8: warning: profile for function 'constexpr A::A()' not found in profile data [-Wmissing-profile] >>From gcc-bugs-return-617261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:46:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30363 invoked by alias); 8 Oct 2018 13:46:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 30291 invoked by uid 48); 8 Oct 2018 13:46:33 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 13:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00643.txt.bz2 Content-length: 598 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-10-08 Ever confirmed|0 |1 --- Comment #1 from Martin Li=C5=A1ka --- It probably looks that there's missing profile file *.gcda. Can you check i= t's generate in -fprofile-generate run? >>From gcc-bugs-return-617262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:49:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35422 invoked by alias); 8 Oct 2018 13:49:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35001 invoked by uid 48); 8 Oct 2018 13:48:57 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++ Date: Mon, 08 Oct 2018 13:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00644.txt.bz2 Content-length: 1066 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71003 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D53431 --- Comment #3 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- I'm pretty sure that this applies to all pedantic warnings that occur while preprocessing: const int a0 =3D 0b101010; const int a1 =3D __extension__ 0b101010; C++ lexes everything at once without parsing __extension__.=20 Same problem with pragma diagnostics (bug 53431). Either these warnings are moved from the preprocessor to the FE, that is, somehow delayed, or the preprocessor has to learn about __extension__ and pragma diagnostics. I'm surprised there is no older report about this. >>From gcc-bugs-return-617263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:54:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87692 invoked by alias); 8 Oct 2018 13:54:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87594 invoked by uid 48); 8 Oct 2018 13:54:36 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86172] [meta-bug] issues with -Wnull-dereference Date: Mon, 08 Oct 2018 13:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic, meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00645.txt.bz2 Content-length: 468 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86172 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |segher at gcc dot gnu.org --- Comment #2 from Eric Gallager --- came up on gcc-help here: https://gcc.gnu.org/ml/gcc-help/2018-10/msg00051.= html >>From gcc-bugs-return-617264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:55:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88858 invoked by alias); 8 Oct 2018 13:55:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88783 invoked by uid 55); 8 Oct 2018 13:55:11 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 13:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00646.txt.bz2 Content-length: 477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Martin Li=C5=A1ka --- > It probably looks that there's missing profile file *.gcda. Can you check= it's > generate in -fprofile-generate run? It isn't, however the g++ run completes without error. According to truss -f, not even an attempt is made to create a .gcda file. >>From gcc-bugs-return-617265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:56:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101516 invoked by alias); 8 Oct 2018 13:56:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101417 invoked by uid 48); 8 Oct 2018 13:56:13 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/71003] __extension__ silences pedwarn for "\e" in C but not in C++ Date: Mon, 08 Oct 2018 13:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: see_also Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00647.txt.bz2 Content-length: 483 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D71003 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=3D87274 --- Comment #4 from Jonathan Wakely --- There's PR 87274 as well. >>From gcc-bugs-return-617266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 13:59:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120096 invoked by alias); 8 Oct 2018 13:59:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 119973 invoked by uid 48); 8 Oct 2018 13:59:49 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/55881] #pragma GCC diagnostic ignored ignored when inlining Date: Mon, 08 Oct 2018 13:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.7.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: major X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00648.txt.bz2 Content-length: 4371 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55881 --- Comment #7 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- Some comments from a discussion with Martin and David: %G and %K sometimes do not work with pragma diagnostics. The reason is that the pragma diagnostics check is done here: https://github.com/gcc-mirror/gcc/blob/a0e9bfbb865dcaf307a4a06a29a7e1e7be24= ee15/gcc/diagnostic.c#L944 which is processed earlier than the %G and %K formats. If we have something like: warning_at(loc, "%K", exp) there is one case when it should work (otherwise something is really broken): when loc =3D=3D EXPR_LOCATION(exp) and loc points to a location that is affected by the #pragma. And two cases when it will not work: Case #1. loc !=3D EXPR_LOCATION(exp) and loc is pointing to a location not affected by the #pragma but EXPR_LOCATION(exp) is pointing to a location affected by the #pragma. Case #2. loc =3D=3D EXPR_LOCATION(exp) and loc is pointing to a location not affected by the #pragma but some location in the inlining stack is affected by the #pragma. I would say that every case #1 is a bug. The fix is to always make sure that loc =3D=3D TREE_LOCATION(exp). I see in builtins.c code like: location_t loc =3D tree_nonartificial_location (exp); loc =3D expansion_point_location_if_in_system_header (loc); warning_at (loc, opt, "%K%qD specified bound %E " "exceeds maximum object size %E", exp, func, range[0], maxobjsize); This is likely to break, because "loc", that is, expansion_point_location_if_in_system_header (tree_nonartificial_location (exp)), is used for evaluating the #pragma but %K (that is, EXPR_LOCATION(exp)) is used for printing the source location, and those two may not be equal in some cases. Fixing this is triv= ial but fragile. Just make sure that "loc" in warning_at(loc) is always "EXPR_LOCATION(exp)", but this is fragile. The real fix is to replace %K an= d %G with an explicit location. For replacing %K and %G (and also for fixing case #2), we need to process t= he inlining stack before calling update_effective_level_from_pragmas(). And we probably need to decide what level takes precedence in cases such as: https://godbolt.org/z/YXA_vG In constructor 'BadString3::BadString3(const char*, size_t) [with long unsigned int N =3D 3]', inlined from 'void bad3_warn_size_m1_var(const char*)' at :30:23, inlined from 'void call_bad3_warn_size_m1_var()' at :37:25: :21:13: warning: 'char* strncpy(char*, const char*, size_t)' output truncated before terminating nul copying 3 bytes from a string of the same length [-Wstringop-truncation] If I place the pragma ignored around line 21. The diagnostic is silenced as it should be. But if I place it around line 30, it is not. I think it makes sense that the outermost #pragmas override inner-most #pragmas, since the inner-most affects more places than the outer-most. But there may be cases I haven't thought about. In any case, I see two ways to fix case #2 (and remove completely %G and %K= ): Solution 1: Have new variants warning_K and error_K (better names needed or overloads?) of warning_at and error_at that can take a tree, do what percent_K_format does, in particular, set *pp_ti_abstract_origin (text) (or even better, set diagnostic_abstract_origin (diagnostic)), and then walk the abstract_origin chain to extract the locations as done here (https://github.com/gcc-mirror/gcc/blob/cba058c7d596cf482254e7a2d7492eec295= 53a9c/gcc/langhooks.c#L407) and save it somewhere in the diagnostic_info or context. Then, call into diagnostic.c (diagnostic_report_diagnostic) and make update_effective_level_from_pragmas() handle multiple locations. Solution 2: Provide a function (or constructor) that somehow encodes the abstract_origin chain in the rich locations and that must be called explicitly before calling warning/error_at using this rich_location, then handle the abstract_origin chain within diagnostic.c as in solution 1. Something like: rich_location ao_loc(EXPR_LOCATION (t), TREE_BLOCK (t)); warning_at(ao_loc,""); Both solutions will remove completely the need for %K and percent_K_format. Solution 1 could also be an intermediate step until there is a way to encode the abstract_origin chain in a rich_location. >>From gcc-bugs-return-617267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:03:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126236 invoked by alias); 8 Oct 2018 14:03:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 126173 invoked by uid 48); 8 Oct 2018 14:03:22 -0000 From: "officesamurai at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87554] New: internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Mon, 08 Oct 2018 14:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: officesamurai at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00649.txt.bz2 Content-length: 2142 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 Bug ID: 87554 Summary: internal compiler error: in record_reference, at cgraphbuild.c:64 Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: officesamurai at gmail dot com Target Milestone: --- GCC crashes when compiling the attached file with -O1 =3D=3D $ g++-8.2.0 -v Using built-in specs. COLLECT_GCC=3Dg++-8.2.0 COLLECT_LTO_WRAPPER=3D/home/brd/soft/gcc-8.2.0/libexec/gcc/x86_64-pc-linux-= gnu/8.2.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ./configure --prefix=3D/home/brd/soft/gcc-8.2.0 Thread model: posix gcc version 8.2.0 (GCC) $ g++-8.2.0 -O1 -c test.cpp.i -o test.o cc1plus: internal compiler error: in record_reference, at cgraphbuild.c:64 0x59361b record_reference ../.././gcc/cgraphbuild.c:64 0xd8aad3 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ../.././gcc/tree.c:11396 0xd8af7a walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set >*)) ../.././gcc/tree.c:11712 0x7e1bf6 record_references_in_initializer(tree_node*, bool) ../.././gcc/cgraphbuild.c:386 0xdbd406 varpool_node::analyze() ../.././gcc/varpool.c:534 0x7e5fbe analyze_functions ../.././gcc/cgraphunit.c:1185 0x7e6c72 symbol_table::finalize_compilation_unit() ../.././gcc/cgraphunit.c:2691 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. =3D=3D >>From gcc-bugs-return-617268-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:04:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127743 invoked by alias); 8 Oct 2018 14:04:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127660 invoked by uid 48); 8 Oct 2018 14:04:24 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 14:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00650.txt.bz2 Content-length: 634 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #3 from Martin Li=C5=A1ka --- (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #2) > > --- Comment #1 from Martin Li=C5=A1ka --- > > It probably looks that there's missing profile file *.gcda. Can you che= ck it's > > generate in -fprofile-generate run? >=20 > It isn't, however the g++ run completes without error. According to > truss -f, not even an attempt is made to create a .gcda file. When the executable is executed, the *.gcda file should be created. Please check why the file is not generated. >>From gcc-bugs-return-617269-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:05:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129420 invoked by alias); 8 Oct 2018 14:05:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129349 invoked by uid 48); 8 Oct 2018 14:05:42 -0000 From: "officesamurai at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87554] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Mon, 08 Oct 2018 14:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: officesamurai at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00651.txt.bz2 Content-length: 248 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 --- Comment #1 from Mikhail Kremnyov --- Created attachment 44808 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44808&action=3Dedit Preprocessed source >>From gcc-bugs-return-617270-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:14:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20802 invoked by alias); 8 Oct 2018 14:14:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19824 invoked by uid 55); 8 Oct 2018 14:14:02 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 14:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00652.txt.bz2 Content-length: 703 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #4 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #3 from Martin Li=C5=A1ka --- [...] > When the executable is executed, the *.gcda file should be created. Please > check why the file is not generated. Sorry, I've been doing too many things at once and not been paying close enough attention. Besides, the g++.log file lacks the "spawn ..." line for executing the binary, so I missed this (obvious) step. Whatever, when I run the executable, inline_mismatch_args.gcda *is* generated. Still, when I run the -fprofile-use step, I get the warnings reported. >>From gcc-bugs-return-617272-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:16:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1535 invoked by alias); 8 Oct 2018 14:16:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 356 invoked by uid 48); 8 Oct 2018 14:16:26 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Mon, 08 Oct 2018 14:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00654.txt.bz2 Content-length: 1345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #3 from Tobias Burnus --- Created attachment 44809 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44809&action=3Dedit Patch (two variants) The attached patch takes care of this - I forgot to add the ref to the stan= dard (R908 in F2018). The primary.c patch directly tackles it at parse level. The patch is not as nice but it provides a nicer error location and also handles: 7 | strings(:)(:) ! gives an error message on invalid | 1 Error: Substring reference of nonscalar not permitted at (1) On the other hand, the resolve.c patch seems to be cleaner, but the error location is not that nice (points one character left(!) of "string(:)(:)") 6 | write(*,*)strings(:)(:) ! gives an ICE on invalid | 1 Error: Substring reference of nonscalar not permitted at (1) And prints for the case above (not affected by resolve.c patch): 7 | strings(:)(:) ! gives an error message on invalid | 1 Error: Invalid character in name at (1) >>From gcc-bugs-return-617271-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:16:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128419 invoked by alias); 8 Oct 2018 14:16:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103111 invoked by uid 48); 8 Oct 2018 14:15:55 -0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87274] -std=c++11 breaks quadmath macros Date: Mon, 08 Oct 2018 14:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00653.txt.bz2 Content-length: 1488 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87274 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #4 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez --- (In reply to Jonathan Wakely from comment #2) > (In reply to Patrick J. LoPresti from comment #0) > > Note that my code does not use any quad-precision literals; just the > > documented `FLT128_MAX` macro. >=20 > Which is a quad-precision literal, of course. >=20 > > I realize quadmath is more a C thing than a C++ thing... But it would s= till > > be nice if this worked, IMO. >=20 > It does work if you use the right options to allow the necessary extensio= ns. >=20 > > On a possibly related note, writing "__extension__" before a quad-preci= sion > > literal does not silence this error. Perhaps it should (?) >=20 > Yes, maybe. Confirming for that feature request. This is an error, not a warning nor a warning converted to an error. __extension__ silences warnings, it does not make something that should not compile into something that should compile. However, the following should work and it doesn't: // with -Wpedantic -std=3Dgnu++11 #include __float128 x0 =3D FLT128_MAX; /* warn */ __float128 x1 =3D __extension__ FLT128_MAX; /* no warn */ >>From gcc-bugs-return-617273-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:21:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9213 invoked by alias); 8 Oct 2018 14:21:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9106 invoked by uid 55); 8 Oct 2018 14:21:12 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83999] [8/9 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233 Date: Mon, 08 Oct 2018 14:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00655.txt.bz2 Content-length: 889 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83999 --- Comment #11 from Paul Thomas --- Author: pault Date: Mon Oct 8 14:20:40 2018 New Revision: 264931 URL: https://gcc.gnu.org/viewcvs?rev=3D264931&root=3Dgcc&view=3Drev Log: 2018-10-08 Paul Thomas PR fortran/83999 Backport from trunk * resolve.c (resolve_fl_procedure): Include class functions in the test that elemental function results be scalar. 2018-10-08 Paul Thomas PR fortran/83999 Backport from trunk * gfortran.dg/elemental_function_4.f90 : New test. Added: branches/gcc-8-branch/gcc/testsuite/gfortran.dg/elemental_function_4.f90 Modified: branches/gcc-8-branch/gcc/fortran/ChangeLog branches/gcc-8-branch/gcc/fortran/resolve.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617275-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:22:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12911 invoked by alias); 8 Oct 2018 14:22:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12178 invoked by uid 48); 8 Oct 2018 14:22:14 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83999] [8/9 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233 Date: Mon, 08 Oct 2018 14:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00657.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83999 Paul Thomas changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #12 from Paul Thomas --- Fixed on both branches. Thanks for the report. Paul >>From gcc-bugs-return-617274-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:22:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12208 invoked by alias); 8 Oct 2018 14:22:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12133 invoked by uid 48); 8 Oct 2018 14:22:11 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87555] New: There is no need for UNSPEC_FMADDSUB Date: Mon, 08 Oct 2018 14:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00656.txt.bz2 Content-length: 1049 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87555 Bug ID: 87555 Summary: There is no need for UNSPEC_FMADDSUB Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com Target Milestone: --- Target: i386,x86-64 sse.md has ;; It would be possible to represent these without the UNSPEC as ;; ;; (vec_merge ;; (fma op1 op2 op3) ;; (fma op1 op2 (neg op3))=20 ;; (merge-const)) ;; ;; But this doesn't seem useful in practice. (define_expand "fmaddsub_" [(set (match_operand:VF 0 "register_operand") (unspec:VF [(match_operand:VF 1 "nonimmediate_operand") (match_operand:VF 2 "nonimmediate_operand") (match_operand:VF 3 "nonimmediate_operand")] UNSPEC_FMADDSUB))] "TARGET_FMA || TARGET_FMA4 || TARGET_AVX512F") There is no need for UNSPEC_FMADDSUB. >>From gcc-bugs-return-617276-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:32:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39175 invoked by alias); 8 Oct 2018 14:32:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39052 invoked by uid 55); 8 Oct 2018 14:31:56 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87551] [9 regression] libgnat-9.so fails to link on Solaris Date: Mon, 08 Oct 2018 14:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00658.txt.bz2 Content-length: 614 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87551 --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #1 from Bernd Edlinger --- > Rainer, can you try this? Looks good so far: an i386-pc-solaris2.11 build has successfully linked libgnat-9.so, but the bootstrap is still running. Meanwhile I've found that two gfortran testcases on Solaris/SPARC (only) are also broken by what seems to be the same issue. I'll run full bootstraps with your patch tonight to verify this. Thanks for the quick fix. Rainer >>From gcc-bugs-return-617277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:33:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45637 invoked by alias); 8 Oct 2018 14:33:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45577 invoked by uid 48); 8 Oct 2018 14:33:55 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87554] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Mon, 08 Oct 2018 14:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00659.txt.bz2 Content-length: 683 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Ever confirmed|0 |1 Known to fail| |8.1.0, 8.2.1 --- Comment #2 from Richard Biener --- Confirmed. GCC 7 doesn't like the preprocessed source so no idea if a regression. >>From gcc-bugs-return-617278-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:39:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28374 invoked by alias); 8 Oct 2018 14:39:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 28285 invoked by uid 48); 8 Oct 2018 14:39:36 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87550] Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc) are interpreted as pure functions Date: Mon, 08 Oct 2018 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cf_gcctarget bug_status cf_reconfirmed_on everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00660.txt.bz2 Content-length: 717 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87550 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Target| |x86_64-*-* i?86-*-* Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 Ever confirmed|0 |1 Known to fail| |8.2.1 --- Comment #1 from Richard Biener --- Confirmed. Expansion happens to an UNSPEC_VOLATILE though. >>From gcc-bugs-return-617279-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:55:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84832 invoked by alias); 8 Oct 2018 14:55:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84770 invoked by uid 55); 8 Oct 2018 14:55:25 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87517] Typo in avx512fintrin.h Date: Mon, 08 Oct 2018 14:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00661.txt.bz2 Content-length: 663 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87517 --- Comment #1 from hjl at gcc dot gnu.org --- Author: hjl Date: Mon Oct 8 14:54:53 2018 New Revision: 264935 URL: https://gcc.gnu.org/viewcvs?rev=3D264935&root=3Dgcc&view=3Drev Log: i386: Correct _mm512_mask3_fmaddsub_round_pd Define _mm512_mask3_fmaddsub_round_pd with __builtin_ia32_vfmaddsubpd512_mask, instead of __builtin_ia32_vfmaddpd512_mask. PR target/87517 * config/i386/avx512fintrin.h (_mm512_mask_fmaddsub_round_pd): Defined with __builtin_ia32_vfmaddsubpd512_mask. Modified: trunk/gcc/ChangeLog trunk/gcc/config/i386/avx512fintrin.h >>From gcc-bugs-return-617280-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:56:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86092 invoked by alias); 8 Oct 2018 14:56:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86000 invoked by uid 48); 8 Oct 2018 14:56:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/87525] infinite loop generated for fread() if enabling -flto and -D_FORTIFY_SOURCE=2 Date: Mon, 08 Oct 2018 14:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cc cf_gcchost cf_gccbuild Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00662.txt.bz2 Content-length: 1589 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87525 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Target|i686-pc-linux-gnu |i686-pc-linux-gnu, | |x86_64-linux-gnu CC| |hubicka at gcc dot gnu.org Host|i686-pc-linux-gnu |i686-pc-linux-gnu, | |x86_64-linux-gnu Build|i686-pc-linux-gnu |i686-pc-linux-gnu, | |x86_64-linux-gnu --- Comment #11 from Martin Li=C5=A1ka --- So I have a small reproducer that works on current trunk. Also 64-bit is affected: $ cat snippet.c #include FILE *f; void call (void) { f =3D fopen("file.txt", "r"); char buffer[10]; while (1) { int r =3D fread (buffer, 1, sizeof (buffer), f); if (r) return; } } void *ptr =3D &fread; $ cat main.c extern void call(void); int main() { call (); return 0; } $ echo "abc" > files.txt $ gcc -flto -D_FORTIFY_SOURCE=3D2 -shared snippet.c -fPIC -o libx.so -O3 &&= gcc main.c -lx -L. && LD_LIBRARY_PATH=3D. timeout 3 ./a.out [timeout] while non-lto is file: $ gcc -D_FORTIFY_SOURCE=3D2 -shared snippet.c -fPIC -o libx.so -O3 && gcc m= ain.c -lx -L. && LD_LIBRARY_PATH=3D. timeout 3 ./a.out && echo OK OK Honza can you please take a look what had happens? >>From gcc-bugs-return-617281-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 14:59:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109864 invoked by alias); 8 Oct 2018 14:59:57 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109775 invoked by uid 48); 8 Oct 2018 14:59:52 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 14:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00663.txt.bz2 Content-length: 868 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #5 from Martin Li=C5=A1ka --- Then (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #4) > > --- Comment #3 from Martin Li=C5=A1ka --- > [...] > > When the executable is executed, the *.gcda file should be created. Ple= ase > > check why the file is not generated. >=20 > Sorry, I've been doing too many things at once and not been paying close > enough attention. Besides, the g++.log file lacks the "spawn ..." line > for executing the binary, so I missed this (obvious) step. That's true, but it should only run the executable without arguments. >=20 > Whatever, when I run the executable, inline_mismatch_args.gcda *is* > generated. Still, when I run the -fprofile-use step, I get the warnings > reported. Then it's hard to guess.. >>From gcc-bugs-return-617282-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:05:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1411 invoked by alias); 8 Oct 2018 15:05:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1353 invoked by uid 48); 8 Oct 2018 15:05:33 -0000 From: "officesamurai at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87554] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Mon, 08 Oct 2018 15:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: officesamurai at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00664.txt.bz2 Content-length: 351 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 --- Comment #3 from Mikhail Kremnyov --- FYI: 6.3.0 is able to compile the non-preprocessed source. As for 7.x - 7.3.0 and earlier versions can't compile it due to another bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85470) and I don't have 7.4= at hand. >>From gcc-bugs-return-617283-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:06:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11368 invoked by alias); 8 Oct 2018 15:06:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11274 invoked by uid 55); 8 Oct 2018 15:06:48 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Mon, 08 Oct 2018 15:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00665.txt.bz2 Content-length: 1000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #5 from Martin Li=C5=A1ka --- [...] >> Sorry, I've been doing too many things at once and not been paying close >> enough attention. Besides, the g++.log file lacks the "spawn ..." line >> for executing the binary, so I missed this (obvious) step. > > That's true, but it should only run the executable without arguments. Indeed: it's easy if you don't forget the step ;-) >> Whatever, when I run the executable, inline_mismatch_args.gcda *is* >> generated. Still, when I run the -fprofile-use step, I get the warnings >> reported. > > Then it's hard to guess.. I've now checked the .gcda file on Solaris 11 where things work fine: it's the same size (312 bytes) and both files barely differ: $ cmp -l inline_mismatch_args.gcda.s10 ~/inline_mismatch_args.gcda.s11 10 2 64 11 316 0 12 333 202 >>From gcc-bugs-return-617284-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:12:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36407 invoked by alias); 8 Oct 2018 15:12:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36342 invoked by uid 48); 8 Oct 2018 15:12:42 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87554] [8/9 Regression] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Mon, 08 Oct 2018 15:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc component cf_known_to_work target_milestone short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00666.txt.bz2 Content-length: 822 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code CC| |marxin at gcc dot gnu.org Component|c++ |ipa Known to work| |6.3.0 Target Milestone|--- |8.3 Summary|internal compiler error: in |[8/9 Regression] internal |record_reference, at |compiler error: in |cgraphbuild.c:64 |record_reference, at | |cgraphbuild.c:64 >>From gcc-bugs-return-617285-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:20:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79271 invoked by alias); 8 Oct 2018 15:20:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 79141 invoked by uid 55); 8 Oct 2018 15:20:40 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87517] Typo in avx512fintrin.h Date: Mon, 08 Oct 2018 15:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00667.txt.bz2 Content-length: 726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87517 --- Comment #2 from hjl at gcc dot gnu.org --- Author: hjl Date: Mon Oct 8 15:20:08 2018 New Revision: 264936 URL: https://gcc.gnu.org/viewcvs?rev=3D264936&root=3Dgcc&view=3Drev Log: i386: Correct _mm512_mask3_fmaddsub_round_pd Define _mm512_mask3_fmaddsub_round_pd with __builtin_ia32_vfmaddsubpd512_mask, instead of __builtin_ia32_vfmaddpd512_mask. Backport from mainline PR target/87517 * config/i386/avx512fintrin.h (_mm512_mask_fmaddsub_round_pd): Defined with __builtin_ia32_vfmaddsubpd512_mask. Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/i386/avx512fintrin.h >>From gcc-bugs-return-617286-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:25:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 102541 invoked by alias); 8 Oct 2018 15:25:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102276 invoked by uid 55); 8 Oct 2018 15:25:02 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87517] Typo in avx512fintrin.h Date: Mon, 08 Oct 2018 15:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00668.txt.bz2 Content-length: 726 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87517 --- Comment #3 from hjl at gcc dot gnu.org --- Author: hjl Date: Mon Oct 8 15:23:48 2018 New Revision: 264937 URL: https://gcc.gnu.org/viewcvs?rev=3D264937&root=3Dgcc&view=3Drev Log: i386: Correct _mm512_mask3_fmaddsub_round_pd Define _mm512_mask3_fmaddsub_round_pd with __builtin_ia32_vfmaddsubpd512_mask, instead of __builtin_ia32_vfmaddpd512_mask. Backport from mainline PR target/87517 * config/i386/avx512fintrin.h (_mm512_mask_fmaddsub_round_pd): Defined with __builtin_ia32_vfmaddsubpd512_mask. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/i386/avx512fintrin.h >>From gcc-bugs-return-617287-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:25:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 103048 invoked by alias); 8 Oct 2018 15:25:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 102517 invoked by uid 48); 8 Oct 2018 15:25:18 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87517] Typo in avx512fintrin.h Date: Mon, 08 Oct 2018 15:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00669.txt.bz2 Content-length: 499 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87517 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |7.4 --- Comment #4 from H.J. Lu --- Fixed for GCC 9, GCC 8.3 and GCC 7.4. >>From gcc-bugs-return-617288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 15:44:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31315 invoked by alias); 8 Oct 2018 15:44:27 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31169 invoked by uid 48); 8 Oct 2018 15:44:13 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Mon, 08 Oct 2018 15:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00670.txt.bz2 Content-length: 669 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 --- Comment #4 from Tobias Burnus --- (In reply to Tobias Burnus from comment #3) > And prints for the case above (not affected by resolve.c patch): > 7 | strings(:)(:) ! gives an error message on invalid > Error: Invalid character in name at (1) The reason is that gfortran tries all options, starting from an assignment.= In between it has a failed gfc_match_name which gets suppressed. When nothing matched, "next_free" calls "gfc_error_check" which shows the buffered outpu= t, only if no error message is buffered, the more suitable "Unclassifiable statement at %C" is printed. >>From gcc-bugs-return-617289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 16:37:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130189 invoked by alias); 8 Oct 2018 16:37:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 130137 invoked by uid 48); 8 Oct 2018 16:37:16 -0000 From: "weeks at iastate dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87556] New: FORM TEAM statement team-number argument interpreted incorrectly when function Date: Mon, 08 Oct 2018 16:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: weeks at iastate dot edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00671.txt.bz2 Content-length: 3312 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87556 Bug ID: 87556 Summary: FORM TEAM statement team-number argument interpreted incorrectly when function Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: weeks at iastate dot edu Target Milestone: --- Created attachment 44810 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44810&action=3Dedit reproducer In the attached reproducer, the gfortran 8.2.0 FORM TEAM statement appears = to misinterpret a team-number actual argument when it is a scalar-int-expr involving a function, but not when the result of this expression is first assigned to an integer variable that is then used as the team-number argume= nt. The following output, using the OpenCoarrays compiler driver, contains 4 columns: current team, this_image() in initial team, this_image() in current team, and num_images() in current team. It looks correct for my_team1 (inte= ger variable actual argument), and incorrect for my_team2 (scalar-int-expr involving a function).=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D $ caf -std=3Df2018 -Wall -Wextra test_form_team.f90=20 $ cafrun -np 6 ./a.out | sort my_team1 1 1 3 my_team1 2 2 3 my_team1 3 3 3 my_team1 4 1 3 my_team1 5 2 3 my_team1 6 3 3 my_team2 1 1 6 my_team2 2 2 6 my_team2 3 3 6 my_team2 4 4 6 my_team2 5 5 6 my_team2 6 6 6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D This seems like the issue gfortran front-end, rather than the OpenCoarrays library. Software versions: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D $ caf --version OpenCoarrays Coarray Fortran Compiler Wrapper (caf version 2.2.0-13-gb47afb= c) Copyright (C) 2015-2018 Sourcery Institute Copyright (C) 2015-2018 Sourcery, Inc. OpenCoarrays comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of OpenCoarrays under the terms of the BSD 3-Clause License. For more information about these matters, see the file named LICENSE that is distributed with OpenCoarrays. $ caf -w caf wraps /opt/local/bin/gfortran-mp-8 $ /opt/local/bin/gfortran-mp-8 -dumpversion 8.2.0 $ mpiexec --version | head -n 2 HYDRA build details: Version: 3.3b3 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D >>From gcc-bugs-return-617290-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 17:18:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19591 invoked by alias); 8 Oct 2018 17:18:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19530 invoked by uid 48); 8 Oct 2018 17:18:49 -0000 From: "wjwray at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87364] Pretty print of enumerator never prints the id, always falls back to C-style cast output Date: Mon, 08 Oct 2018 17:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: wjwray at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00672.txt.bz2 Content-length: 286 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87364 --- Comment #6 from Will Wray --- Created attachment 44811 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44811&action=3Dedit Patch v2, passes check_GNU_style Submitted to gcc-patches mailing list >>From gcc-bugs-return-617291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 18:29:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16406 invoked by alias); 8 Oct 2018 18:29:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 16317 invoked by uid 48); 8 Oct 2018 18:29:17 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/80518] -Wsuggest-override does not warn about missing override on destructor Date: Mon, 08 Oct 2018 18:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00673.txt.bz2 Content-length: 518 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80518 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |redi at gcc dot gnu.org --- Comment #4 from Eric Gallager --- (In reply to Arnaud Desitter from comment #2) > Interesting. Shame that there is no rationale. Maybe Jonathan can state a rationale? >>From gcc-bugs-return-617292-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 18:31:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29784 invoked by alias); 8 Oct 2018 18:31:40 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29713 invoked by uid 48); 8 Oct 2018 18:31:35 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/68827] [concepts] ICE in fold where requires parameter shadows function argument Date: Mon, 08 Oct 2018 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: error-recovery X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00674.txt.bz2 Content-length: 448 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68827 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |paolo.carlini at oracle do= t com --- Comment #2 from Eric Gallager --- cc-ing closest thing we have to a concepts maintainer >>From gcc-bugs-return-617293-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 18:49:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76602 invoked by alias); 8 Oct 2018 18:49:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76302 invoked by uid 48); 8 Oct 2018 18:49:09 -0000 From: "seurer at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87557] New: New test case g++.dg/ext/pr82625.C doesn't compile Date: Mon, 08 Oct 2018 18:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: seurer at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00675.txt.bz2 Content-length: 2564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87557 Bug ID: 87557 Summary: New test case g++.dg/ext/pr82625.C doesn't compile Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- spawn -ignore SIGHUP /home/seurer/gcc/build/gcc-test2/gcc/testsuite/g++/../../xg++ -B/home/seurer/gcc/build/gcc-test2/gcc/testsuite/g++/../../ /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C -fno-diagnostics-show-caret -fno-diagnostics-show-line-numbers -fdiagnostics-color=3Dnever -nostdinc++ -I/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/libstdc++-= v3/include/powerpc64le-unknown-linux-gnu -I/home/seurer/gcc/build/gcc-test2/powerpc64le-unknown-linux-gnu/libstdc++-= v3/include -I/home/seurer/gcc/gcc-test2/libstdc++-v3/libsupc++ -I/home/seurer/gcc/gcc-test2/libstdc++-v3/include/backward -I/home/seurer/gcc/gcc-test2/libstdc++-v3/testsuite/util -fmessage-length= =3D0 -std=3Dgnu++11 -O2 -fdump-tree-optimized -S -o pr82625.s /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:11:51: error: __attribute__((__target__('avx'))) is invalid /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:11:17: error: redefinition of 'unsigned int foo(const char*, unsigned int)' /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:6:17: note: 'unsigned int foo(const char*, unsigned int)' previously defined here /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:26:14: error: __attribute__((__target__('avx'))) is invalid /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:26:10: error: redefinition of 'unsigned int bar()' /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:16:10: note: 'unsigned int bar()' previously defined here compiler exited with status 1 FAIL: g++.dg/ext/pr82625.C -std=3Dgnu++11 (test for excess errors) Excess errors: /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:11:51: error: __attribute__((__target__('avx'))) is invalid /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:11:17: error: redefinition of 'unsigned int foo(const char*, unsigned int)' /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:26:14: error: __attribute__((__target__('avx'))) is invalid /home/seurer/gcc/gcc-test2/gcc/testsuite/g++.dg/ext/pr82625.C:26:10: error: redefinition of 'unsigned int bar()' >>From gcc-bugs-return-617294-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 18:59:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99025 invoked by alias); 8 Oct 2018 18:59:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98904 invoked by uid 55); 8 Oct 2018 18:59:32 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Mon, 08 Oct 2018 18:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00676.txt.bz2 Content-length: 701 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #42 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Mon Oct 8 18:58:59 2018 New Revision: 264941 URL: https://gcc.gnu.org/viewcvs?rev=3D264941&root=3Dgcc&view=3Drev Log: Use FOR_EACH_IMM_USE_FAST in gimple-ssa-backprop.c As pointed out by Richard in PR63155. It speeds up the testcase a few %. 2018-10-08 Richard Sandiford gcc/ PR middle-end/63155 * gimple-ssa-backprop.c (backprop::intersect_uses): Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-ssa-backprop.c >>From gcc-bugs-return-617295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 19:31:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124538 invoked by alias); 8 Oct 2018 19:31:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124114 invoked by uid 48); 8 Oct 2018 19:31:07 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Mon, 08 Oct 2018 19:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00677.txt.bz2 Content-length: 405 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 --- Comment #5 from Tobias Burnus --- (In reply to Tobias Burnus from comment #3) Crossref: Patch fails for gfortran.dg/actual_array_substr_2.f90 for PR fortran/28118 which uses: call bar ((a(:)(7:11))) and likewise for PR fortran/28174's gcc/testsuite/gfortran.dg/actual_array_substr_2.f90 which I believe are invalid. >>From gcc-bugs-return-617296-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 19:34:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 129300 invoked by alias); 8 Oct 2018 19:34:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 129229 invoked by uid 48); 8 Oct 2018 19:34:50 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Mon, 08 Oct 2018 19:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00678.txt.bz2 Content-length: 367 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 --- Comment #5 from Will Schmidt --- (In reply to Segher Boessenkool from comment #4) > Is this fixed now? This should be fixed on trunk with Revision: 264150 Has not yet been backported to 8. Let me find and do a follow-up comment on the thread on gcc-patches.=20 thanks, -Will >>From gcc-bugs-return-617297-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 20:34:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32744 invoked by alias); 8 Oct 2018 20:34:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 32710 invoked by uid 48); 8 Oct 2018 20:34:45 -0000 From: "gcc at gms dot tf" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87558] New: Missing _mm_storeu_si64() intrinsic Date: Mon, 08 Oct 2018 20:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc at gms dot tf X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00679.txt.bz2 Content-length: 1100 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87558 Bug ID: 87558 Summary: Missing _mm_storeu_si64() intrinsic Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gcc at gms dot tf Target Milestone: --- Minimal example: #include void foo(__m128i x, unsigned char*o) { _mm_storeu_si64((void*)o, x); } Excpected behaviour: compiles fine with gcc -march=3Dhaswell Actual behaviour: '_mm_storeu_si64' was not declared in this scope. Also te= sted with gcc 7.2 and trunk. Same issue. FWIW, clang <=3D 7 also misses this intrinsic, but clang trunk has it. GCC does include _mm_storel_epi64(), though. The Intel Intrinsics Guide lists both as: void _mm_storeu_si64 (void* mem_addr, __m128i a) #include Instruction: movq m64, xmm CPUID Flags: SSE void _mm_storel_epi64 (__m128i* mem_addr, __m128i a) #include Instruction: movq m64, xmm CPUID Flags: SSE2 >>From gcc-bugs-return-617298-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 21:16:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11801 invoked by alias); 8 Oct 2018 21:16:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 11733 invoked by uid 48); 8 Oct 2018 21:16:14 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Mon, 08 Oct 2018 21:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: anlauf at gmx dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00680.txt.bz2 Content-length: 902 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 Harald Anlauf changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #6 from Harald Anlauf --- (In reply to Tobias Burnus from comment #5) > (In reply to Tobias Burnus from comment #3) > Crossref: > Patch fails for gfortran.dg/actual_array_substr_2.f90 for PR fortran/281= 18 > which uses: > call bar ((a(:)(7:11))) > and likewise for PR fortran/28174's > gcc/testsuite/gfortran.dg/actual_array_substr_2.f90 > which I believe are invalid. Couldn't this be an array section, as in F2018, Note 9.11: NOTE 9.11 Examples of array elements and array sections are: ARRAY_A(1:N:2)%ARRAY_B(I, J)%STRING(K)(:) array section ? >>From gcc-bugs-return-617299-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 21:41:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82893 invoked by alias); 8 Oct 2018 21:41:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82437 invoked by uid 48); 8 Oct 2018 21:41:40 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87530] copy elision in return statement doesn't check for rvalue reference to object type Date: Mon, 08 Oct 2018 21:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00681.txt.bz2 Content-length: 1164 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87530 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-08 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org --- Comment #1 from Jonathan Wakely --- Smells like a variant of PR 87150 to me, but not a regression as it's been doing the wrong thing since we started treating named lvalues as rvalues in return statements. Marek, could you take a look please? --- Comment #2 from Marek Polacek --- Happy to. >>From gcc-bugs-return-617300-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:03:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53330 invoked by alias); 8 Oct 2018 22:03:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 52982 invoked by uid 48); 8 Oct 2018 22:03:07 -0000 From: "eric.cousineau at tri dot global" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87559] New: Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Date: Mon, 08 Oct 2018 22:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: eric.cousineau at tri dot global X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00682.txt.bz2 Content-length: 1916 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87559 Bug ID: 87559 Summary: Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Product: gcc Version: 7.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: eric.cousineau at tri dot global Target Milestone: --- Created attachment 44812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44812&action=3Dedit Reproduction + Output Relates: - https://bugs.llvm.org/show_bug.cgi?id=3D39202 - The cases posted here are *similar* to this clang bug report (comparing against GCC 5), but there are some differences specific to this bug report. - https://github.com/RobotLocomotion/drake/issues/9600 Attached is `output.txt`, which indicates compiler versions (GCC 7.3.0 vs. clang 6.0.0), C++ code, and compiler output for a list of cases. In each case, there is a defined variable, `top_doc`, and a local alias variable, `doc`. Each case will vary the storage duration for both the defi= ned variable (and sometimes the local alias), and effectively checks the storage duration by how the compiler treats the relevant lambda capture. Observations and guesses from these results: - Case 2.0: `constexpr auto&` alias to global + non-generic lambda. Works in both gcc + clang. - Case 2.1: `constexpr auto&` alias to global + generic lambda. Fails in GC= C. - Case 2.2: `constexpr` local + non-generic lambda. Fails in clang. - Case 2.3: `constexpr` local + generic lambda. Fails in clang. My main concern is the discrepancy between Case 2.0 and Case 2.1. Since this is template/context-dependency dependent, it seems like a bug? For Case 2.2 and 2.3, I'm once again not sure if GCC or clang is wrong in t= he eyes of the standard. >>From gcc-bugs-return-617301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:18:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101966 invoked by alias); 8 Oct 2018 22:18:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 101799 invoked by uid 48); 8 Oct 2018 22:17:59 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/54613] [F08] Add FINDLOC plus support MAXLOC/MINLOC with KIND=/BACK= Date: Mon, 08 Oct 2018 22:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tkoenig at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.isobsolete attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00683.txt.bz2 Content-length: 598 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54613 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #44803|0 |1 is obsolete| | --- Comment #13 from Thomas Koenig --- Created attachment 44813 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44813&action=3Dedit Patch with a first version of a library function At least BACK appears to work already. >>From gcc-bugs-return-617302-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:28:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120498 invoked by alias); 8 Oct 2018 22:28:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120437 invoked by uid 48); 8 Oct 2018 22:28:20 -0000 From: "sameerad at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87330] ICE in scan_rtx_reg, at regrename.c:1097 Date: Mon, 08 Oct 2018 22:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sameerad at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sameerad at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00684.txt.bz2 Content-length: 850 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87330 --- Comment #6 from sameerad at gcc dot gnu.org --- Created attachment 44814 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44814&action=3Dedit the regrename pass does not rename the registers which are in notes, becaus= e of which the REG_DEAD note had previous regname, which caused conflicting information generated for tag collision pass. It is better to do it in regrename_do_replace instead while regrename_analyze, because the note information does not really contribute into the regrename analysis, hence need not be added in the def-use chains that are computed. regrename_do_replace is where the decision to finally rename the register is made - where the note can be altered with new regname. Other notes need not be changed, as they don't hold renamed register information. >>From gcc-bugs-return-617303-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:35:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4783 invoked by alias); 8 Oct 2018 22:35:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4496 invoked by uid 48); 8 Oct 2018 22:35:30 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87330] ICE in scan_rtx_reg, at regrename.c:1097 Date: Mon, 08 Oct 2018 22:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sameerad at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00685.txt.bz2 Content-length: 761 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87330 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg --- Comment #7 from Eric Botcazou --- > the regrename pass does not rename the registers which are in notes, beca= use > of which the REG_DEAD note had previous regname, which caused conflicting > information generated for tag collision pass. Yes, that's by design, RTL passes need not update REG_DEAD & REG_UNUSED not= es.=20 Instead passes that consume them must recompute them on entry by means of D= F. >>From gcc-bugs-return-617304-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:49:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61974 invoked by alias); 8 Oct 2018 22:49:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61362 invoked by uid 55); 8 Oct 2018 22:48:17 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86659] [9 regression] gnat.dg/sso/q[23].adb FAIL Date: Mon, 08 Oct 2018 22:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00686.txt.bz2 Content-length: 812 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86659 --- Comment #5 from Eric Botcazou --- Author: ebotcazou Date: Mon Oct 8 22:47:32 2018 New Revision: 264942 URL: https://gcc.gnu.org/viewcvs?rev=3D264942&root=3Dgcc&view=3Drev Log: PR tree-optimization/86659 * gimple-match.h (struct gimple_match_op): Add reverse field. (gimple_match_op::set_op): New overloaded method. * gimple-match-head.c (maybe_build_generic_op) : Set the REF_REVERSE_STORAGE_ORDER flag on the value. (gimple_simplify) : For BIT_FIELD_REF, propagate the REF_REVERSE_STORAGE_ORDER flag and avoid simplifying if it is set. Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-match-head.c trunk/gcc/gimple-match.h >>From gcc-bugs-return-617305-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 22:52:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70238 invoked by alias); 8 Oct 2018 22:52:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70027 invoked by uid 48); 8 Oct 2018 22:52:36 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86659] [9 regression] gnat.dg/sso/q[23].adb FAIL Date: Mon, 08 Oct 2018 22:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00687.txt.bz2 Content-length: 448 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86659 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #6 from Eric Botcazou --- They should pass again. >>From gcc-bugs-return-617306-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 08 23:01:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86969 invoked by alias); 8 Oct 2018 23:01:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84099 invoked by uid 48); 8 Oct 2018 23:00:46 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/80518] -Wsuggest-override does not warn about missing override on destructor Date: Mon, 08 Oct 2018 23:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00688.txt.bz2 Content-length: 175 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80518 --- Comment #5 from Jonathan Wakely --- https://github.com/isocpp/CppCoreGuidelines/issues/721 >>From gcc-bugs-return-617307-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 01:06:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20067 invoked by alias); 9 Oct 2018 01:06:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19978 invoked by uid 48); 9 Oct 2018 01:06:00 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78632] Produce warning when a derived class shadows a field of the base class with `-Wshadow` Date: Tue, 09 Oct 2018 01:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00689.txt.bz2 Content-length: 419 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78632 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #3 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-617308-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 01:06:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20834 invoked by alias); 9 Oct 2018 01:06:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20774 invoked by uid 48); 9 Oct 2018 01:06:23 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/78632] Produce warning when a derived class shadows a field of the base class with `-Wshadow` Date: Tue, 09 Oct 2018 01:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00690.txt.bz2 Content-length: 416 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D78632 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dodji at gcc dot gnu.org --- Comment #4 from Eric Gallager --- cc-ing diagnostics maintainers >>From gcc-bugs-return-617309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 01:09:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23001 invoked by alias); 9 Oct 2018 01:09:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 22974 invoked by uid 48); 9 Oct 2018 01:09:08 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/85211] Document that -isystem automatically adds extern "C" to includes on some targets Date: Tue, 09 Oct 2018 01:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00691.txt.bz2 Content-length: 939 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85211 Eric Gallager changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|-isystem automatically adds |Document that -isystem |extern "C" to includes |automatically adds extern | |"C" to includes on some | |targets --- Comment #9 from Eric Gallager --- (In reply to Jonathan Wakely from comment #8) > (In reply to blastrock from comment #7) > > My initial suggestion was to mention that behavior in the documentation= , but > > if you think it is not worth it, I guess you can close this bug. >=20 > I'm not sure why it's no longer mentioned, so I'll confirm this as a doc = bug. Retitling accordingly. >>From gcc-bugs-return-617310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 01:10:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24884 invoked by alias); 9 Oct 2018 01:10:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 24820 invoked by uid 48); 9 Oct 2018 01:10:22 -0000 From: "egallager at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49263] SH Target: underutilized "TST #imm, R0" instruction Date: Tue, 09 Oct 2018 01:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: egallager at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00692.txt.bz2 Content-length: 509 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49263 --- Comment #29 from Eric Gallager --- (In reply to Oleg Endo from comment #28) > (In reply to Eric Gallager from comment #27) > > (In reply to Oleg Endo from comment #26) > > > Author: olegendo > > > Date: Mon Jan 26 23:56:05 2015 > > > New Revision: 220144 >=20 > Well, it fixed some of the cases mentioned in this PR, but not all. It's > quite a broad issue actually. So maybe it's worth splitting up into sub-issues? >>From gcc-bugs-return-617311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:07:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26684 invoked by alias); 9 Oct 2018 07:07:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26376 invoked by uid 48); 9 Oct 2018 07:07:28 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87560] New: ICE in curr_insn_transform, at lra-constraints.c:3892 Date: Tue, 09 Oct 2018 07:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00693.txt.bz2 Content-length: 2194 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87560 Bug ID: 87560 Summary: ICE in curr_insn_transform, at lra-constraints.c:3892 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: segher at gcc dot gnu.org Target Milestone: --- Host: x86_64-pc-linux-gnu Target: ppc64le-linux-gnu Following causes an ICE: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/eoshift_bounds_1.f90 -mcpu=3Dpowerpc64 -mpower9-vector -O3 -mno-altivec /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/eoshift_bounds_1.f90= :11:0: 11 | end program main |=20 Error: unable to generate reloads for: (insn 95 22 90 2 (set (reg:V16QI 160) (vec_duplicate:V16QI (const_int 1 [0x1]))) "/home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/eoshift_bounds_1.f9= 0":10:0 1043 {xxspltib_v16qi} (nil)) during RTL pass: reload /home/marxin/Programming/gcc/gcc/testsuite/gfortran.dg/eoshift_bounds_1.f90= :11:0: internal compiler error: in curr_insn_transform, at lra-constraints.c:3892 0x593001 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /rtl-error.c:108 0x58b64a curr_insn_transform =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /lra-constraints.c:3892 0x9958cc lra_constraints(bool) =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /lra-constraints.c:4879 0x984394 lra(_IO_FILE*) =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /lra.c:2446 0x941591 do_reload =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /ira.c:5469 0x941591 execute =20=20=20=20=20=20=20 /home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc= /ira.c:5653 >>From gcc-bugs-return-617312-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:11:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36551 invoked by alias); 9 Oct 2018 07:11:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36491 invoked by uid 48); 9 Oct 2018 07:11:27 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87554] [8/9 Regression] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Tue, 09 Oct 2018 07:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00694.txt.bz2 Content-length: 146 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 --- Comment #4 from Martin Li=C5=A1ka --- I'm reducing that ... >>From gcc-bugs-return-617313-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:12:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37515 invoked by alias); 9 Oct 2018 07:12:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37431 invoked by uid 48); 9 Oct 2018 07:12:10 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86383] [9 Regression] arm-netbsdelf cross compiler fails in selftests Date: Tue, 09 Oct 2018 07:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00695.txt.bz2 Content-length: 153 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86383 --- Comment #9 from Martin Li=C5=A1ka --- Any progress on that please? >>From gcc-bugs-return-617314-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:18:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 46458 invoked by alias); 9 Oct 2018 07:18:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46398 invoked by uid 48); 9 Oct 2018 07:18:12 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Tue, 09 Oct 2018 07:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00696.txt.bz2 Content-length: 1293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #7 from Martin Li=C5=A1ka --- (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #6) > > --- Comment #5 from Martin Li=C5=A1ka --- > [...] > >> Sorry, I've been doing too many things at once and not been paying clo= se > >> enough attention. Besides, the g++.log file lacks the "spawn ..." line > >> for executing the binary, so I missed this (obvious) step. > > > > That's true, but it should only run the executable without arguments. >=20 > Indeed: it's easy if you don't forget the step ;-) >=20 > >> Whatever, when I run the executable, inline_mismatch_args.gcda *is* > >> generated. Still, when I run the -fprofile-use step, I get the warnin= gs > >> reported. > > > > Then it's hard to guess.. >=20 > I've now checked the .gcda file on Solaris 11 where things work fine: > it's the same size (312 bytes) and both files barely differ: >=20 > $ cmp -l inline_mismatch_args.gcda.s10 ~/inline_mismatch_args.gcda.s11 > 10 2 64 > 11 316 0 > 12 333 202 You can use gcov-dump -l to dump content of the files. However, it's not problem as the file exists. The warning should be only shown when a checksu= m of a source file changes or *.gcda file is missing. >>From gcc-bugs-return-617315-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:31:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 127711 invoked by alias); 9 Oct 2018 07:31:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 127630 invoked by uid 48); 9 Oct 2018 07:31:29 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87557] New test case g++.dg/ext/pr82625.C in r264845 doesn't compile Date: Tue, 09 Oct 2018 07:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00697.txt.bz2 Content-length: 453 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87557 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #1 from Richard Biener --- This has been fixed meanwhile. >>From gcc-bugs-return-617316-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:36:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1738 invoked by alias); 9 Oct 2018 07:36:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1667 invoked by uid 48); 9 Oct 2018 07:36:42 -0000 From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87560] ICE in curr_insn_transform, at lra-constraints.c:3892 Date: Tue, 09 Oct 2018 07:36:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: segher at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00698.txt.bz2 Content-length: 661 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87560 Segher Boessenkool changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 Ever confirmed|0 |1 --- Comment #1 from Segher Boessenkool --- Confirmed. define_insn_and_split "*xxspltib__split" (for VSINT_842) is enabled while you disabled altivec, but this pattern requires p9 vector, so you get Yet Another kaboom. >>From gcc-bugs-return-617317-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:39:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84438 invoked by alias); 9 Oct 2018 07:39:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81848 invoked by uid 48); 9 Oct 2018 07:39:29 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/87554] [8/9 Regression] internal compiler error: in record_reference, at cgraphbuild.c:64 Date: Tue, 09 Oct 2018 07:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00699.txt.bz2 Content-length: 1023 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87554 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #5 from Martin Li=C5=A1ka --- Reduced test-case: $ cat pr87554.ii template < class a > class b { static void c(a); static a &create() { c(instance); return mya; } static a mya; public: static a d() { create(); return a(); } static a &instance; }; template < class a > a &b< a >::instance =3D create(); class e; class f { public: void operator()(int g) { h(g); } template < class a > void h(a i) { p(j, i); } e *j; }; class e : public f { public: e(int); }; struct k { int l; }; template < class m, class a > void p(m, a) { b< k >::d(); } extern template class b< k >; int n; int o; void test() { e out(o); out(n); } Started with r259571. >>From gcc-bugs-return-617318-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:40:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86430 invoked by alias); 9 Oct 2018 07:40:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86356 invoked by uid 48); 9 Oct 2018 07:40:47 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug testsuite/87557] New test case g++.dg/ext/pr82625.C in r264845 doesn't compile Date: Tue, 09 Oct 2018 07:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00700.txt.bz2 Content-length: 223 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87557 --- Comment #2 from Martin Li=C5=A1ka --- Yes, but I forgot to move the file to newly created ./gcc/testsuite/g++.target/i386/ I'll do that. >>From gcc-bugs-return-617319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:42:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95467 invoked by alias); 9 Oct 2018 07:42:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94016 invoked by uid 48); 9 Oct 2018 07:42:49 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87550] Intrinsics for rdpmc (__rdpmc, __builtin_ia32_rdpmc) are interpreted as pure functions Date: Tue, 09 Oct 2018 07:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00701.txt.bz2 Content-length: 578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87550 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #2 from Jakub Jelinek --- Created attachment 44815 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44815&action=3Dedit gcc9-pr87550.patch Untested fix. >>From gcc-bugs-return-617320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:47:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1645 invoked by alias); 9 Oct 2018 07:47:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1349 invoked by uid 55); 9 Oct 2018 07:47:33 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87151] allocating array of character Date: Tue, 09 Oct 2018 07:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: pault at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00702.txt.bz2 Content-length: 1939 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87151 --- Comment #5 from Paul Thomas --- Author: pault Date: Tue Oct 9 07:46:48 2018 New Revision: 264949 URL: https://gcc.gnu.org/viewcvs?rev=3D264949&root=3Dgcc&view=3Drev Log: 2018-10-09 Paul Thomas PR fortran/87151 * trans-array.c (gfc_get_array_span): Deal with deferred char array components having a TYPE_MAX_VALUE of zero. (gfc_array_init_size): Use the hidden string length component to build the descriptor dtype. (gfc_array_allocate): Remove the erroneous replacement of the charlen backend decl with a temporary. (gfc_conv_expr_descriptor): Use the ss_info string length in the case of deferred character components. (gfc_alloc_allocatable_for_assignment): Actually compare the string lengths for deferred characters. Make sure that kind > 1 is handled correctly. Set the span field of the descriptor. * trans-intrinsic.c (gfc_conv_intrinsic_len): Remove the stupid comment. PR fortran/80931 * trans-array.c (gfc_array_allocate): Set the span field for variable length character arrays. 2018-10-09 Paul Thomas PR fortran/87151 * gfortran.dg/deferred_type_component_3.f90: New test. PR fortran/80931 * gfortran.dg/deferred_character_28.f90: New test. * gfortran.dg/deferred_character_29.f90: New test (note that this test appears in PR83196 comment #4 by mistake). Added: trunk/gcc/testsuite/gfortran.dg/deferred_character_28.f90 trunk/gcc/testsuite/gfortran.dg/deferred_character_29.f90 trunk/gcc/testsuite/gfortran.dg/deferred_type_component_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/fortran/trans-intrinsic.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617321-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 07:47:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1711 invoked by alias); 9 Oct 2018 07:47:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 1521 invoked by uid 55); 9 Oct 2018 07:47:46 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/80931] ICE on move_alloc in gimplify_expr, at gimplify.c:11335 Date: Tue, 09 Oct 2018 07:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00703.txt.bz2 Content-length: 1939 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D80931 --- Comment #9 from Paul Thomas --- Author: pault Date: Tue Oct 9 07:46:48 2018 New Revision: 264949 URL: https://gcc.gnu.org/viewcvs?rev=3D264949&root=3Dgcc&view=3Drev Log: 2018-10-09 Paul Thomas PR fortran/87151 * trans-array.c (gfc_get_array_span): Deal with deferred char array components having a TYPE_MAX_VALUE of zero. (gfc_array_init_size): Use the hidden string length component to build the descriptor dtype. (gfc_array_allocate): Remove the erroneous replacement of the charlen backend decl with a temporary. (gfc_conv_expr_descriptor): Use the ss_info string length in the case of deferred character components. (gfc_alloc_allocatable_for_assignment): Actually compare the string lengths for deferred characters. Make sure that kind > 1 is handled correctly. Set the span field of the descriptor. * trans-intrinsic.c (gfc_conv_intrinsic_len): Remove the stupid comment. PR fortran/80931 * trans-array.c (gfc_array_allocate): Set the span field for variable length character arrays. 2018-10-09 Paul Thomas PR fortran/87151 * gfortran.dg/deferred_type_component_3.f90: New test. PR fortran/80931 * gfortran.dg/deferred_character_28.f90: New test. * gfortran.dg/deferred_character_29.f90: New test (note that this test appears in PR83196 comment #4 by mistake). Added: trunk/gcc/testsuite/gfortran.dg/deferred_character_28.f90 trunk/gcc/testsuite/gfortran.dg/deferred_character_29.f90 trunk/gcc/testsuite/gfortran.dg/deferred_type_component_3.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-array.c trunk/gcc/fortran/trans-intrinsic.c trunk/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617322-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 08:06:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90794 invoked by alias); 9 Oct 2018 08:06:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87527 invoked by uid 48); 9 Oct 2018 08:06:20 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Tue, 09 Oct 2018 08:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00704.txt.bz2 Content-length: 1249 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #43 from Richard Biener --- We're now down to tree PTA : 3.92 ( 16%) 0.12 ( 36%) 4.02 ( = 16%) 12445 kB ( 2%) tree CCP : 7.43 ( 30%) 0.02 ( 6%) 7.44 ( = 29%) 646 kB ( 0%) tree FRE : 2.34 ( 9%) 0.00 ( 0%) 2.35 ( = 9%) 116 kB ( 0%) tree backward propagate : 0.62 ( 2%) 0.00 ( 0%) 0.62 ( = 2%) 0 kB ( 0%) out of ssa : 3.01 ( 12%) 0.00 ( 0%) 3.01 ( = 12%) 0 kB ( 0%) TOTAL : 24.91 0.33 25.26=20= =20=20=20=20=20=20 573769 kB notice the tree backward propagate improvement. This makes CCP the main offender again but as said the rectification would probably mean pulling back the SSA SCC discovery code from SCCVN and use that in the SSA propagator somehow. The out of SSA time is what was originally topic of this bug. The tree PTA time is "new" and related to the number of PHI nodes and edges. You can disable PTA via -fno-tree-pta. The tree FRE time is PHI lookups/inserts, some refactoring can speed this up a bit. >>From gcc-bugs-return-617323-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 08:32:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81953 invoked by alias); 9 Oct 2018 08:32:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68972 invoked by uid 48); 9 Oct 2018 08:31:02 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Tue, 09 Oct 2018 08:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00705.txt.bz2 Content-length: 1037 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 --- Comment #8 from Paul Thomas --- (In reply to J=C3=BCrgen Reuter from comment #7) > Ah sorry, I think I moved around the block data and then it wasn't valid > Fortran anymore. I think, both the block data and the subroutine are > external to the main program. I do not understand how the processor is expected to lay out the common blo= cks unless the string length appears after the pointer. subroutine bar() character(len=3D:), pointer :: str(:) common /foo/ str ! print *, len(str), '"'//str//'"' !ICE in gfc_conv_intrinsic_len print '(3a)', '"',str(1:6),'"' ! ICE in gfc_conv_variable end is unable to get the string length from anywhere otherwise. As it happens, even character(len=3D:), pointer :: str(:) common /foo/ str allocate (character(len=3D6) :: str(1)) str =3D "ABCDEF" call bar() end ICEs unless the common statement is excised. My original inclination was to close this as a WONTFIX but I will have a lo= ok. Cheers Paul >>From gcc-bugs-return-617325-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 08:34:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92384 invoked by alias); 9 Oct 2018 08:34:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91757 invoked by uid 48); 9 Oct 2018 08:34:30 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] New: [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 08:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc blocked target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00707.txt.bz2 Content-length: 957 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 Bug ID: 87561 Summary: [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Blocks: 26163 Target Milestone: --- It's visible here: https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=3D25.50.0 or here: https://lnt.opensuse.org/db_default/v4/SPEC/graph?plot.0=3D24.50.0 It's slower both for native and generic tuning. Visible on Zen, Kaby Lake a= nd Haswell CPUs. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D26163 [Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95) >>From gcc-bugs-return-617324-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 08:34:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88612 invoked by alias); 9 Oct 2018 08:34:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87405 invoked by uid 48); 9 Oct 2018 08:33:52 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Tue, 09 Oct 2018 08:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00706.txt.bz2 Content-length: 1037 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 --- Comment #9 from Paul Thomas --- (In reply to J=C3=BCrgen Reuter from comment #7) > Ah sorry, I think I moved around the block data and then it wasn't valid > Fortran anymore. I think, both the block data and the subroutine are > external to the main program. I do not understand how the processor is expected to lay out the common blo= cks unless the string length appears after the pointer. subroutine bar() character(len=3D:), pointer :: str(:) common /foo/ str ! print *, len(str), '"'//str//'"' !ICE in gfc_conv_intrinsic_len print '(3a)', '"',str(1:6),'"' ! ICE in gfc_conv_variable end is unable to get the string length from anywhere otherwise. As it happens, even character(len=3D:), pointer :: str(:) common /foo/ str allocate (character(len=3D6) :: str(1)) str =3D "ABCDEF" call bar() end ICEs unless the common statement is excised. My original inclination was to close this as a WONTFIX but I will have a lo= ok. Cheers Paul >>From gcc-bugs-return-617327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:12:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68277 invoked by alias); 9 Oct 2018 09:12:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68205 invoked by uid 48); 9 Oct 2018 09:12:41 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87562] [9 Regression] ICE in in linemap_position_for_line_and_column, at libcpp/line-map.c:848 Date: Tue, 09 Oct 2018 09:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00709.txt.bz2 Content-length: 615 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87562 ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.0 Summary|ICE in in |[9 Regression] ICE in in |linemap_position_for_line_a |linemap_position_for_line_a |nd_column, at |nd_column, at |libcpp/line-map.c:848 |libcpp/line-map.c:848 Known to fail| |9.0 >>From gcc-bugs-return-617326-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:12:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67381 invoked by alias); 9 Oct 2018 09:12:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67316 invoked by uid 48); 9 Oct 2018 09:12:20 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/87562] New: ICE in in linemap_position_for_line_and_column, at libcpp/line-map.c:848 Date: Tue, 09 Oct 2018 09:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00708.txt.bz2 Content-length: 2886 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87562 Bug ID: 87562 Summary: ICE in in linemap_position_for_line_and_column, at libcpp/line-map.c:848 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ktkachov at gcc dot gnu.org CC: dmalcolm at gcc dot gnu.org Target Milestone: --- I get an ICE when building 502.gcc_r from SPEC2017 intrate for aarch64: $ gcc -c -o dbxout.o -DSPEC -DNDEBUG -I. -I./include -I./spec_qsort -DSPEC_= 502 -DSPEC_AUTO_SUPPRESS_OPENMP -DIN_GCC -DHAVE_CONFIG_H -DSPEC_LP64 dbxou= t.c during GIMPLE pass: printf-return-value dbxout.c: In function 'dbxout_stab_value_internal_label': dbxout.c:508:1: internal compiler error: in linemap_position_for_line_and_column, at libcpp/line-map.c:848 508 | dbxout_stab_value_internal_label (const char *stem, int *counterp) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x151f447 linemap_position_for_line_and_column(line_maps*, line_map_ordinary const*, unsigned int, unsigned int) $SRC/libcpp/line-map.c:848 0x1502388 get_substring_ranges_for_loc $SRC/gcc/input.c:1465 0x1502772 get_source_location_for_substring(cpp_reader*, string_concat_db*, unsigned int, cpp_ttype, int, int, int, unsigned int*) $SRC/gcc/input.c:1517 0x68071f c_get_substring_location(substring_loc const&, unsigned int*) $SRC/gcc/c-family/c-common.c:867 0xbf8f8a substring_loc::get_location(unsigned int*) const $SRC/gcc/substring-locations.c:284 0xbf8fef format_string_diagnostic_t::emit_warning_n_va(int, unsigned long, = char const*, char const*, __va_list_tag (*) [1]) const $SRC/gcc/substring-locations.c:156 0xbf9258 format_string_diagnostic_t::emit_warning_va(int, char const*, __va_list_tag (*) [1]) const $SRC/gcc/substring-locations.c:241 0x13cbd6f fmtwarn $SRC/gcc/gimple-ssa-sprintf.c:472 0x13cc83e maybe_warn $SRC/gcc/gimple-ssa-sprintf.c:2564 0x13d2229 format_directive $SRC/gcc/gimple-ssa-sprintf.c:2823 0x13d2229 compute_format_length $SRC/gcc/gimple-ssa-sprintf.c:3502 0x13d2229 handle_gimple_call $SRC/gcc/gimple-ssa-sprintf.c:3988 0x13d2229 before_dom_children $SRC/gcc/gimple-ssa-sprintf.c:4027 0x1384ad7 dom_walker::walk(basic_block_def*) $SRC/gcc/domwalk.c:353 0x13ce8ed execute $SRC/gcc/gimple-ssa-sprintf.c:4053 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Unfortunately this is not reproducible when compiling with -save-temps or w= hen using the preprocessed file, so I can't reduce it. >>From gcc-bugs-return-617328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:13:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70458 invoked by alias); 9 Oct 2018 09:13:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69797 invoked by uid 48); 9 Oct 2018 09:13:45 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86740] [8/9 Regression] ICE with hana and nested lambdas (likely a regression, tsubst_copy, at cp/pt.c:15325) Date: Tue, 09 Oct 2018 09:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00710.txt.bz2 Content-length: 546 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86740 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | CC| |jason at gcc dot gnu.org, | |marxin at gcc dot gnu.org --- Comment #5 from Martin Li=C5=A1ka --- Confirmed, started with r259043. >>From gcc-bugs-return-617329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:14:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72937 invoked by alias); 9 Oct 2018 09:14:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 72574 invoked by uid 48); 9 Oct 2018 09:14:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 09:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget bug_status cf_reconfirmed_on assigned_to target_milestone everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00711.txt.bz2 Content-length: 716 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-*, i?86-*-* Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-09 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Target Milestone|--- |9.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Confirmed. I'll have a look. >>From gcc-bugs-return-617330-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:19:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91792 invoked by alias); 9 Oct 2018 09:19:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 91726 invoked by uid 48); 9 Oct 2018 09:19:41 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55735] ICE with deferred-length strings in COMMON Date: Tue, 09 Oct 2018 09:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00712.txt.bz2 Content-length: 457 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D55735 --- Comment #10 from J=C3=BCrgen Reuter --- Interestingly, nagfor rejects this code with the message "Inconsistent definitions of COMMON block FOO in program-units $block and BAR". Both ifort and pgfortran compile the code, and the program issues 'ABCDEF' upon execut= ion.=20 ifort warns however: warning #5436: Overlapping storage initializations encountered with STR. >>From gcc-bugs-return-617331-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:23:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120656 invoked by alias); 9 Oct 2018 09:23:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 120603 invoked by uid 48); 9 Oct 2018 09:23:18 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87410] internal compiler error: in fold_convert_loc, at fold-const.c:2530 Date: Tue, 09 Oct 2018 09:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc cf_known_to_work everconfirmed cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00713.txt.bz2 Content-length: 754 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87410 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 CC| |marxin at gcc dot gnu.org Known to work| |9.0 Ever confirmed|0 |1 Known to fail| |8.2.0 --- Comment #1 from Martin Li=C5=A1ka --- Fixed on trunk in r259717. >>From gcc-bugs-return-617332-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:27:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 128106 invoked by alias); 9 Oct 2018 09:27:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128021 invoked by uid 48); 9 Oct 2018 09:27:06 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Tue, 09 Oct 2018 09:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00714.txt.bz2 Content-length: 778 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #44 from Richard Biener --- (In reply to Richard Biener from comment #43) > This makes CCP the main > offender again but as said the rectification would probably mean pulling > back the SSA SCC discovery code from SCCVN and use that in the SSA > propagator somehow. I take that back. SCC processing is quite fundamentally incompatible with the way SSA propagation works. But what would be possible is to add a non-optimistic mode to the SSA propagator removing the need to iterate at all. That's some non-trivial work though, possibly better spent teaching value-numbering the bits of CCP that it doesn't do (bit-value tracking, UNDEF handling) and then kill off CCP altogether. >>From gcc-bugs-return-617333-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:35:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21147 invoked by alias); 9 Oct 2018 09:35:21 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21071 invoked by uid 48); 9 Oct 2018 09:35:14 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86576] [F03][OOP] Sourced allocation of object array fails with SEGFAULT Date: Tue, 09 Oct 2018 09:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00715.txt.bz2 Content-length: 528 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86576 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #3 from Dominique d'Humieres --- AFAICT the test in comment 2 has been fixed between revisions r264451 (2018-09-20) and r264486 (2018-09-21), may be r264485 (pr87359). >>From gcc-bugs-return-617334-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:44:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44486 invoked by alias); 9 Oct 2018 09:44:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 44424 invoked by uid 48); 9 Oct 2018 09:44:12 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58787] ICE (error recovery) in check_proc_interface Date: Tue, 09 Oct 2018 09:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00716.txt.bz2 Content-length: 463 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58787 J=C3=BCrgen Reuter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juergen.reuter at desy dot= de --- Comment #10 from J=C3=BCrgen Reuter --- I can confirm that this ICEs on Linux, but not on MACOSX. >>From gcc-bugs-return-617335-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:46:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48913 invoked by alias); 9 Oct 2018 09:46:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48848 invoked by uid 48); 9 Oct 2018 09:46:39 -0000 From: "pault at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/86576] [F03][OOP] Sourced allocation of object array fails with SEGFAULT Date: Tue, 09 Oct 2018 09:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.1.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pault at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00717.txt.bz2 Content-length: 652 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86576 --- Comment #4 from Paul Thomas --- (In reply to Dominique d'Humieres from comment #3) > AFAICT the test in comment 2 has been fixed between revisions r264451 > (2018-09-20) and r264486 (2018-09-21), may be r264485 (pr87359). Unfortunately, the original still segfaults. Tobias's finalization wrapper is rather sensitive for reasons that I am una= ble to understand. If any attempt is made to deallocate the target, even if it = is nulled correctly, the finalization wrapper segfaults. I'll take it although it will be some time before I can turn to it. Cheers Paul >>From gcc-bugs-return-617336-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:51:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118472 invoked by alias); 9 Oct 2018 09:51:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118400 invoked by uid 48); 9 Oct 2018 09:51:40 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58787] ICE (error recovery) in check_proc_interface Date: Tue, 09 Oct 2018 09:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00718.txt.bz2 Content-length: 324 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58787 --- Comment #11 from Dominique d'Humieres --- > I can confirm that this ICEs on Linux, but not on MACOSX. I get the ICE with MACOSX: ... Error: Expecting END SUBROUTINE statement at (1) f951: internal compiler error: Segmentation fault: 11 >>From gcc-bugs-return-617337-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:54:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14579 invoked by alias); 9 Oct 2018 09:54:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14486 invoked by uid 48); 9 Oct 2018 09:54:50 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58787] ICE (error recovery) in check_proc_interface Date: Tue, 09 Oct 2018 09:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00719.txt.bz2 Content-length: 1469 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58787 --- Comment #12 from J=C3=BCrgen Reuter --- (In reply to Dominique d'Humieres from comment #11) > > I can confirm that this ICEs on Linux, but not on MACOSX. >=20 > I get the ICE with MACOSX: >=20 > ... > Error: Expecting END SUBROUTINE statement at (1) > f951: internal compiler error: Segmentation fault: 11 Strange, I get: $ gfortran -c pr_58787.f90=20 pr_58787.f90:15:27: 10 | USE string_utilities_mod | 2=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 .... 15 | FUNCTION array_to_string(array) RESULT(str) | 1 Error: Procedure 'array_to_string' at (1) is already defined at (2) pr_58787.f90:15:34: 15 | FUNCTION array_to_string(array) RESULT(str) | 1 Error: Cannot change attributes of USE-associated symbol array_to_string at= (1) pr_58787.f90:16:33: 16 | CHARACTER(LEN=3D1) :: array(1) | 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr_58787.f90:17:47: 17 | CHARACTER(LEN=3DSUM(LEN_TRIM(array))) :: str | 1 Error: Unexpected data declaration statement in CONTAINS section at (1) pr_58787.f90:18:6: 18 | END FUNCTION array_to_string | 1 Error: Expecting END SUBROUTINE statement at (1) (null):0: confused by earlier errors, bailing out >>From gcc-bugs-return-617338-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:58:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20162 invoked by alias); 9 Oct 2018 09:58:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20089 invoked by uid 48); 9 Oct 2018 09:58:13 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87559] Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Date: Tue, 09 Oct 2018 09:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00720.txt.bz2 Content-length: 2070 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87559 --- Comment #1 from Jonathan Wakely --- Any gcc bugs seem to be fixed in current trunk. As a single testcase: extern "C" int puts(const char*); constexpr char top_doc[] =3D ""; void f1() { constexpr auto& doc =3D top_doc; [](int) { puts(doc); }(1); // should compile [](auto) { puts(doc); }(2); // should compile } void f2() { constexpr char doc[] =3D ""; [](int) { puts(doc); }(3); // should fail [](auto) { puts(doc); }(4); // should fail } GCC 7 gets three of the four cases wrong, incorrectly rejecting the second,= and incorrectly accepting the third and fourth: 87559.cc: In lambda function: 87559.cc:8:19: error: 'doc' is not captured [](auto) { puts(doc); }(2); // should compile ^~~ 87559.cc:8:4: note: the lambda has no capture-default [](auto) { puts(doc); }(2); // should compile ^ 87559.cc:6:19: note: 'constexpr const char (& doc)[1]' declared here constexpr auto& doc =3D top_doc; ^~~ But GCC 8 gets them all right, compiling the first two and rejecting the la= st two: 87559.cc: In lambda function: 87559.cc:13:18: error: 'doc' is not captured [](int) { puts(doc); }(3); // should fail ^~~ 87559.cc:13:4: note: the lambda has no capture-default [](int) { puts(doc); }(3); // should fail ^ 87559.cc:12:18: note: 'constexpr const char doc [1]' declared here constexpr char doc[] =3D ""; ^~~ 87559.cc: In instantiation of 'f2():: [with auto:2 =3D int]= ': 87559.cc:14:28: required from here 87559.cc:14:19: error: 'doc' is not captured [](auto) { puts(doc); }(4); // should fail ^~~ 87559.cc:14:4: note: the lambda has no capture-default [](auto) { puts(doc); }(4); // should fail ^ 87559.cc:12:18: note: 'constexpr const char doc [1]' declared here constexpr char doc[] =3D ""; ^~~ >>From gcc-bugs-return-617339-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 09:59:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21207 invoked by alias); 9 Oct 2018 09:59:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21103 invoked by uid 55); 9 Oct 2018 09:59:02 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Tue, 09 Oct 2018 09:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00721.txt.bz2 Content-length: 1135 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #7 from Martin Li=C5=A1ka --- [...] > You can use gcov-dump -l to dump content of the files. However, it's not > problem as the file exists. The warning should be only shown when a check= sum of > a source file changes or *.gcda file is missing. I just did and the dump output is identical between Solaris 10 and 11, except for the (time?)stamp: --- inline_mismatch_args.gcda.dump 2018-10-09 11:53:46.821193185 +0200 +++ s11/inline_mismatch_args.gcda.dump 2018-10-09 11:54:45.635266085 +0200 @@ -1,5 +1,5 @@ inline_mismatch_args.gcda:data:magic `gcda':version `A90e' -inline_mismatch_args.gcda:stamp 1409470171 +inline_mismatch_args.gcda:stamp 1412694146 inline_mismatch_args.gcda: a1000000: 2:OBJECT_SUMMARY runs=3D1, sum_max= =3D1 inline_mismatch_args.gcda: 01000000: 3:FUNCTION ident=3D108032747, lineno_checksum=3D0xa42833e0, cfg_checksum=3D0xc0bbb23e inline_mismatch_args.gcda: 01a10000: 4:COUNTERS arcs 2 counts >>From gcc-bugs-return-617340-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:02:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36154 invoked by alias); 9 Oct 2018 10:02:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36056 invoked by uid 48); 9 Oct 2018 10:02:46 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58787] ICE (error recovery) in check_proc_interface Date: Tue, 09 Oct 2018 10:02:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00722.txt.bz2 Content-length: 403 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58787 --- Comment #13 from Dominique d'Humieres --- > (null):0: confused by earlier errors, bailing out Your compiler is configured with --enable-checking=3Drelease (either explic= itly or because your are using a release). The above message is the equivalent of the ICE for compilers configured with --enable-checking=3Dyes. >>From gcc-bugs-return-617341-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:03:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38007 invoked by alias); 9 Oct 2018 10:03:55 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 37934 invoked by uid 48); 9 Oct 2018 10:03:51 -0000 From: "juergen.reuter at desy dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/58787] ICE (error recovery) in check_proc_interface Date: Tue, 09 Oct 2018 10:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: juergen.reuter at desy dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00723.txt.bz2 Content-length: 541 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58787 --- Comment #14 from J=C3=BCrgen Reuter --- (In reply to Dominique d'Humieres from comment #13) > > (null):0: confused by earlier errors, bailing out >=20 > Your compiler is configured with --enable-checking=3Drelease (either > explicitly or because your are using a release). The above message is the > equivalent of the ICE for compilers configured with --enable-checking=3Dy= es. Yes, I have configured with --enable-checking=3Drelease, that is true. >>From gcc-bugs-return-617342-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:04:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39061 invoked by alias); 9 Oct 2018 10:04:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38943 invoked by uid 48); 9 Oct 2018 10:04:18 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87559] Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Date: Tue, 09 Oct 2018 10:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00724.txt.bz2 Content-length: 274 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87559 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > But GCC 8 gets them all right 8.1 crashes with an ICE (which makes bisection hard), 8.2 gets them right. >>From gcc-bugs-return-617343-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:08:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43571 invoked by alias); 9 Oct 2018 10:08:18 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 43507 invoked by uid 48); 9 Oct 2018 10:08:13 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87559] Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Date: Tue, 09 Oct 2018 10:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00725.txt.bz2 Content-length: 306 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87559 --- Comment #3 from Jakub Jelinek --- Yeah. I think it is r261121 aka PR85761 that fixed the ICE. Wonder if it would be useful to add the #c1 testcase into testsuite or if lambda-const8.C is close enough that it covers it. >>From gcc-bugs-return-617344-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:10:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68897 invoked by alias); 9 Oct 2018 10:10:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67247 invoked by uid 48); 9 Oct 2018 10:09:57 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87563] New: [9 regression ] ICE with -march=armv8-a+sve Date: Tue, 09 Oct 2018 10:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00726.txt.bz2 Content-length: 2930 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87563 Bug ID: 87563 Summary: [9 regression ] ICE with -march=3Darmv8-a+sve Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: ramana at gcc dot gnu.org Target Milestone: --- Somewhere between r261702 and r262881 the following testcase ICEs with -Ofa= st -O3 -march=3Darmv8-a+sve.=20 int a, b, c, *e; int d[2]; void f() { while (c) { d[0] =3D 4; d[1] =3D 4; *e =3D b =3D=3D 0 ? 0 : a / b; } } /tmp/sve.c:7:21: internal compiler error: in maybe_gen_insn, at optabs.c:73= 07 *e =3D b =3D=3D 0 ? 0 : a / b; ~~~~~~~~~~~^~~~~~~ 0xb06c73 maybe_gen_insn(insn_code, unsigned int, expand_operand*) =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/optabs.c:7307 0xb072be maybe_expand_insn(insn_code, unsigned int, expand_operand*) =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/optabs.c:7351 0xb095ef expand_insn(insn_code, unsigned int, expand_operand*) =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/optabs.c:7382 0x9d586a expand_direct_optab_fn =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/internal-fn.c:2921 0x9d6143 expand_COND_DIV =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/internal-fn.def:155 0x9d76bd expand_internal_call(internal_fn, gcall*) =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/internal-fn.c:3524 0x9d76eb expand_internal_call(gcall*) =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/internal-fn.c:3532 0x757bb2 expand_call_stmt =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/cfgexpand.c:2596 0x757bb2 expand_gimple_stmt_1 =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/cfgexpand.c:3575 0x757bb2 expand_gimple_stmt =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/cfgexpand.c:3734 0x75b8a5 expand_gimple_basic_block =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/cfgexpand.c:5769 0x75f950 execute =20=20=20=20=20=20=20 /tmp/dgboter/bbs/bc-b1-2-11--rhe6x86_64/buildbot/rhe6x86_64--aarch64-none-e= lf/build/src/gcc/gcc/cfgexpand.c:6372 >>From gcc-bugs-return-617345-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:10:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70293 invoked by alias); 9 Oct 2018 10:10:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69953 invoked by uid 48); 9 Oct 2018 10:10:24 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87563] [9 regression ] ICE with -march=armv8-a+sve Date: Tue, 09 Oct 2018 10:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00727.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87563 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 Ever confirmed|0 |1 --- Comment #1 from Ramana Radhakrishnan --- Confirmed. >>From gcc-bugs-return-617346-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:10:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80489 invoked by alias); 9 Oct 2018 10:10:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 78049 invoked by uid 48); 9 Oct 2018 10:10:50 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87563] [9 regression ] ICE with -march=armv8-a+sve Date: Tue, 09 Oct 2018 10:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00728.txt.bz2 Content-length: 464 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87563 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |aarch64-none-elf Target Milestone|--- |9.0 --- Comment #2 from Ramana Radhakrishnan --- Fix target and milestone. >>From gcc-bugs-return-617347-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:11:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86154 invoked by alias); 9 Oct 2018 10:11:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85871 invoked by uid 48); 9 Oct 2018 10:11:34 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87559] Storage duration + lambda captures: Discrepancy in behavior between g++-7 and clang++-6.0 Date: Tue, 09 Oct 2018 10:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00729.txt.bz2 Content-length: 179 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87559 --- Comment #4 from Jonathan Wakely --- Yes. Started to ICE with r253266 and was fixed by r261121. >>From gcc-bugs-return-617348-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:12:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90715 invoked by alias); 9 Oct 2018 10:12:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90041 invoked by uid 48); 9 Oct 2018 10:12:07 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87547] G++ reports bad type names for bit-field members Date: Tue, 09 Oct 2018 10:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ABI, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00730.txt.bz2 Content-length: 578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87547 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gn= u.org --- Comment #2 from Jakub Jelinek --- Created attachment 44816 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44816&action=3Dedit gcc9-pr87547.patch Untested fix. >>From gcc-bugs-return-617349-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:17:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97850 invoked by alias); 9 Oct 2018 10:17:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 97026 invoked by uid 48); 9 Oct 2018 10:17:09 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/87562] [9 Regression] ICE in in linemap_position_for_line_and_column, at libcpp/line-map.c:848 Date: Tue, 09 Oct 2018 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00731.txt.bz2 Content-length: 520 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87562 --- Comment #1 from David Malcolm --- linemap_position_for_line_and_column(line_maps*, line_map_ordinary const*, unsigned int, unsigned int) at libcpp/line-map.c:848 is: linemap_assert (ORDINARY_MAP_STARTING_LINE_NUMBER (ord_map) <=3D line); I wonder if I introduced this in r264887 with the changes to input.c (macro-handling and concatenated strings), which touched the function in the next frame. I'll see if I can reproduce it. >>From gcc-bugs-return-617350-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:17:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98861 invoked by alias); 9 Oct 2018 10:17:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 98804 invoked by uid 48); 9 Oct 2018 10:17:49 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/87553] [9 regression] g++.dg/tree-prof/inline_mismatch_args.C etc. FAIL Date: Tue, 09 Oct 2018 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00732.txt.bz2 Content-length: 1280 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87553 --- Comment #9 from Martin Li=C5=A1ka --- (In reply to ro@CeBiTec.Uni-Bielefeld.DE from comment #8) > > --- Comment #7 from Martin Li=C5=A1ka --- > [...] > > You can use gcov-dump -l to dump content of the files. However, it's not > > problem as the file exists. The warning should be only shown when a che= cksum of > > a source file changes or *.gcda file is missing. >=20 > I just did and the dump output is identical between Solaris 10 and 11, > except for the (time?)stamp: >=20 > --- inline_mismatch_args.gcda.dump 2018-10-09 11:53:46.821193185 +02= 00 > +++ s11/inline_mismatch_args.gcda.dump 2018-10-09 11:54:45.635266085 +02= 00 > @@ -1,5 +1,5 @@ > inline_mismatch_args.gcda:data:magic `gcda':version `A90e' > -inline_mismatch_args.gcda:stamp 1409470171 > +inline_mismatch_args.gcda:stamp 1412694146 > inline_mismatch_args.gcda: a1000000: 2:OBJECT_SUMMARY runs=3D1, sum_m= ax=3D1 > inline_mismatch_args.gcda: 01000000: 3:FUNCTION ident=3D108032747, > lineno_checksum=3D0xa42833e0, cfg_checksum=3D0xc0bbb23e > inline_mismatch_args.gcda: 01a10000: 4:COUNTERS arcs 2 counts Which is logical, it's timestamp when a compilation unit was built. >>From gcc-bugs-return-617351-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:29:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90702 invoked by alias); 9 Oct 2018 10:29:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 90187 invoked by uid 48); 9 Oct 2018 10:28:54 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84191] [7 Regression] Compiler ICEs when trying to resolve impossible arithmetic operations Date: Tue, 09 Oct 2018 10:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00733.txt.bz2 Content-length: 838 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84191 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org Known to work| |8.2.0, 9.0 Summary|[7/8/9 Regression] Compiler |[7 Regression] Compiler |ICEs when trying to resolve |ICEs when trying to resolve |impossible arithmetic |impossible arithmetic |operations |operations Known to fail| |7.3.0 --- Comment #4 from Martin Li=C5=A1ka --- Fixed on trunk in r256842. I'm reducing a test-case.. >>From gcc-bugs-return-617352-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:30:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111184 invoked by alias); 9 Oct 2018 10:30:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 110732 invoked by uid 48); 9 Oct 2018 10:30:27 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 10:30:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00734.txt.bz2 Content-length: 872 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #3 from Martin Li=C5=A1ka --- Can't reproduce with GCC 7.3.0 on x86_64: + gcc-7 -O2 -flto -c test_1.i -o test_1.o + gcc-7 -O2 -flto -c test_2.i -o test_2.o + gcc-7 test_1.o test_2.o /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in function `_start': /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:104: undefined reference to `main' collect2: error: ld returned 1 exit status Richi how did you achieve to reproduce that? >>From gcc-bugs-return-617353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:35:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23726 invoked by alias); 9 Oct 2018 10:35:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23643 invoked by uid 48); 9 Oct 2018 10:34:55 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 10:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00735.txt.bz2 Content-length: 1039 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #4 from Ramana Radhakrishnan --- (In reply to Martin Li=C5=A1ka from comment #3) > Can't reproduce with GCC 7.3.0 on x86_64: >=20 > + gcc-7 -O2 -flto -c test_1.i -o test_1.o > + gcc-7 -O2 -flto -c test_2.i -o test_2.o > + gcc-7 test_1.o test_2.o > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in function > `_start': > /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:104: > undefined reference to `main' > collect2: error: ld returned 1 exit status >=20 > Richi how did you achieve to reproduce that? It's still failing on aarch64-none-linux-gnu. So that doesn't mean this goes waiting. >>From gcc-bugs-return-617354-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:41:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56182 invoked by alias); 9 Oct 2018 10:41:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 51879 invoked by uid 48); 9 Oct 2018 10:41:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 10:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00736.txt.bz2 Content-length: 2223 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #5 from Martin Li=C5=A1ka --- (In reply to Ramana Radhakrishnan from comment #4) > (In reply to Martin Li=C5=A1ka from comment #3) > > Can't reproduce with GCC 7.3.0 on x86_64: > >=20 > > + gcc-7 -O2 -flto -c test_1.i -o test_1.o > > + gcc-7 -O2 -flto -c test_2.i -o test_2.o > > + gcc-7 test_1.o test_2.o > > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: > > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in function > > `_start': > > /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:10= 4: > > undefined reference to `main' > > collect2: error: ld returned 1 exit status > >=20 > > Richi how did you achieve to reproduce that? >=20 > It's still failing on aarch64-none-linux-gnu. So that doesn't mean this g= oes > waiting. Native or cross compiler? Because cross compiler works fine for me: $ aarch64-suse-linux-g++-8 -c test_1.i -c -flto $ aarch64-suse-linux-g++-8 -c test_2.i -c -flto $ /usr/lib64/gcc/aarch64-suse-linux/8/lto1 test_1.o test_2.o Reading object files: test_1.o test_2.o {GC start 1697k}=20 Reading the callgraph Merging declarations Reading summaries Reading function bodies: Performing interprocedural optimizations Assembling functions: init_xyz_0 init_xyz_1 Time variable usr sys = wall GGC phase setup : 0.00 ( 0%) 0.00 ( 0%) 0.00 ( = 0%) 1847 kB ( 1%) phase opt and generate : 2.11 (100%) 0.12 ( 92%) 2.23 (1= 00%) 188629 kB ( 99%) phase finalize : 0.00 ( 0%) 0.01 ( 8%) 0.01 ( = 0%) 0 kB ( 0%) lto stream inflate : 0.12 ( 6%) 0.03 ( 23%) 0.15 ( = 7%) 0 kB ( 0%) ipa lto constructors in : 0.65 ( 31%) 0.03 ( 23%) 0.69 ( = 31%) 188513 kB ( 99%) TOTAL : 2.11 0.13 2.24=20= =20=20=20=20=20=20 190523 kB >>From gcc-bugs-return-617355-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:41:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66904 invoked by alias); 9 Oct 2018 10:41:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57019 invoked by uid 48); 9 Oct 2018 10:41:30 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85114] -fstack-check causes internal compiler error Date: Tue, 09 Oct 2018 10:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00737.txt.bz2 Content-length: 464 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85114 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | CC| |marxin at gcc dot gnu.org --- Comment #6 from Martin Li=C5=A1ka --- Btw. works fine on Linux. >>From gcc-bugs-return-617356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:44:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86853 invoked by alias); 9 Oct 2018 10:44:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86270 invoked by uid 48); 9 Oct 2018 10:44:43 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84487] [8/9 Regression] Large rodate section increase in 465.tonto with r254427 Date: Tue, 09 Oct 2018 10:44:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00738.txt.bz2 Content-length: 180 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84487 --- Comment #9 from Martin Li=C5=A1ka --- Can please anybody from Fotran community dig into this? >>From gcc-bugs-return-617357-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 10:55:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114766 invoked by alias); 9 Oct 2018 10:55:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 103328 invoked by uid 48); 9 Oct 2018 10:55:34 -0000 From: "ktkachov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87563] [9 regression ] ICE with -march=armv8-a+sve Date: Tue, 09 Oct 2018 10:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ktkachov at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00739.txt.bz2 Content-length: 783 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87563 ktkachov at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ktkachov at gcc dot gnu.org Known to fail| |9.0 --- Comment #3 from ktkachov at gcc dot gnu.org --- Confirmed. The ICE occurs when expanding the COND_DIV internal function. It's trying to expand an SImode cond_sdiv optab which doesn't exist (we only have vector versions of it). The question is why did the internal function get generated with a non-vect= or type? All the calls to direct_internal_fn_supported_p are for the vector VN= x4SI type but it still sneaks through. >>From gcc-bugs-return-617358-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:06:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78350 invoked by alias); 9 Oct 2018 11:06:25 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 72379 invoked by uid 48); 9 Oct 2018 11:05:58 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87564] New: Missing -Wuninitialized with -O0 Date: Tue, 09 Oct 2018 11:06:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter blocked target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00740.txt.bz2 Content-length: 993 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87564 Bug ID: 87564 Summary: Missing -Wuninitialized with -O0 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 24639 Target Milestone: --- $ cat pr57832.c int a; unsigned b; void c() { int d; for (int e =3D 0; e < 64; e +=3D 16) { a +=3D d; 6 ? d +=3D 10 + b + (b >> 3) : 0; } } $ gcc pr57832.c -c -Wall [OK] $ gcc pr57832.c -c -Wall -O pr57832.c: In function =E2=80=98c=E2=80=99: pr57832.c:6:7: warning: =E2=80=98d=E2=80=99 is used uninitialized in this f= unction [-Wuninitialized] a +=3D d; ^~ Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D24639 [Bug 24639] [meta-bug] bug to track all Wuninitialized issues >>From gcc-bugs-return-617359-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:10:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118861 invoked by alias); 9 Oct 2018 11:10:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 118777 invoked by uid 48); 9 Oct 2018 11:10:41 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85114] -fstack-check causes internal compiler error Date: Tue, 09 Oct 2018 11:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00741.txt.bz2 Content-length: 456 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85114 Eric Botcazou changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg --- Comment #7 from Eric Botcazou --- > Btw. works fine on Linux. Maybe with -fstack-check=3Dgeneric? >>From gcc-bugs-return-617360-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:13:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2468 invoked by alias); 9 Oct 2018 11:13:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 2390 invoked by uid 48); 9 Oct 2018 11:13:46 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 11:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: sudi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00742.txt.bz2 Content-length: 2472 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #6 from sudi at gcc dot gnu.org --- Still fails for me on aarch64-none-linux-gnu-gcc and aarch64-none-elf-gcc on trunk and gcc-8.2.1 with the same error Reading object files: test_1.o test_2.olto1: internal compiler error: in linemap_line_start, at libcpp/line-map.c:794 0x1414d7b linemap_line_start(line_maps*, unsigned int, unsigned int) /aarch64-none-elf/build/src/gcc/libcpp/line-map.c:794 0x9a264f lto_location_cache::apply_location_cache() /aarch64-none-elf/build/src/gcc/gcc/lto-streamer-in.c:194 0x5e946c lto_read_decls /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:1852 0x5ea533 lto_file_finalize /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:2121 0x5ea533 lto_create_files_from_ids /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:2131 0x5ea533 lto_file_read /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:2172 0x5ea533 read_cgraph_and_symbols /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:2845 0x5ea533 lto_main() /aarch64-none-elf/build/src/gcc/gcc/lto/lto.c:3362 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. aarch64-none-linux-gnu-gcc --version aarch64-none-linux-gnu-gcc (fsf-trunk.1693) 9.0.0 20181005 (experimental) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. aarch64-none-linux-gnu-gcc --version aarch64-none-linux-gnu-gcc (fsf-8.90) 8.2.1 20181007 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. aarch64-none-elf-gcc --version aarch64-none-elf-gcc (fsf-trunk.1693) 9.0.0 20181005 (experimental) Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. aarch64-none-elf-gcc --version aarch64-none-elf-gcc (fsf-8.90) 8.2.1 20181007 Copyright (C) 2018 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. >>From gcc-bugs-return-617361-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:17:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 44667 invoked by alias); 9 Oct 2018 11:17:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38845 invoked by uid 48); 9 Oct 2018 11:16:31 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 11:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: sudi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00743.txt.bz2 Content-length: 1571 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #7 from sudi at gcc dot gnu.org --- It is not failing on x86_64 trunk anymore but with 8.0.1 + TARGET=3Dx86_64-pc-linux-gnu + GCC_INSTALL=3D/work/x86-trunk/bld + GCC=3D/work/x86-trunk/bld/bin/x86_64-pc-linux-gnu-gcc-8.0.1 + LTO1=3D/work/x86-trunk/bld/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto1 + CFLAGS=3D-O2 -flto + /work/x86-trunk/bld/bin/x86_64-pc-linux-gnu-gcc-8.0.1 -O2 -flto -c test_1= .i -o test_1.o + /work/x86-trunk/bld/bin/x86_64-pc-linux-gnu-gcc-8.0.1 -O2 -flto -c test_2= .i -o test_2.o + /work/x86-trunk/bld/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto1 test_1.o test_2.o Reading object files: test_1.o test_2.olto1: internal compiler error: in linemap_line_start, at libcpp/line-map.c:794 0x14a025b linemap_line_start(line_maps*, unsigned int, unsigned int) ../../src/gcc/libcpp/line-map.c:794 0xa8c893 lto_location_cache::apply_location_cache() ../../src/gcc/gcc/lto-streamer-in.c:194 0x76bc54 lto_read_decls ../../src/gcc/gcc/lto/lto.c:1816 0x76e221 lto_file_finalize ../../src/gcc/gcc/lto/lto.c:2076 0x76e221 lto_create_files_from_ids ../../src/gcc/gcc/lto/lto.c:2086 0x76e221 lto_file_read ../../src/gcc/gcc/lto/lto.c:2127 0x76e221 read_cgraph_and_symbols ../../src/gcc/gcc/lto/lto.c:2839 0x76e221 lto_main() ../../src/gcc/gcc/lto/lto.c:3356 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >>From gcc-bugs-return-617362-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:18:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47347 invoked by alias); 9 Oct 2018 11:18:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 45486 invoked by uid 48); 9 Oct 2018 11:17:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 11:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00744.txt.bz2 Content-length: 822 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #9 from Jonathan Wakely --- Do we want something like this as well? (and for malloc_allocator too) --- a/libstdc++-v3/include/ext/new_allocator.h +++ b/libstdc++-v3/include/ext/new_allocator.h @@ -130,7 +130,13 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION size_type max_size() const _GLIBCXX_USE_NOEXCEPT - { return size_t(-1) / sizeof(_Tp); } + { +#if __PTRDIFF_MAX__ < __SIZE_MAX__ + return size_t(__PTRDIFF_MAX__) / sizeof(_Tp); +#else + return size_t(-1) / sizeof(_Tp); +#endif + } #if __cplusplus >=3D 201103L template I added the preprocessor condition because I'm not sure if we can always as= sume that ptrdiff_t and size_t are the same width. >>From gcc-bugs-return-617363-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:20:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50751 invoked by alias); 9 Oct 2018 11:20:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50588 invoked by uid 48); 9 Oct 2018 11:20:05 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 11:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00745.txt.bz2 Content-length: 2523 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #8 from Ramana Radhakrishnan --- (In reply to Martin Li=C5=A1ka from comment #5) > (In reply to Ramana Radhakrishnan from comment #4) > > (In reply to Martin Li=C5=A1ka from comment #3) > > > Can't reproduce with GCC 7.3.0 on x86_64: > > >=20 > > > + gcc-7 -O2 -flto -c test_1.i -o test_1.o > > > + gcc-7 -O2 -flto -c test_2.i -o test_2.o > > > + gcc-7 test_1.o test_2.o > > > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/= ld: > > > /usr/lib64/gcc/x86_64-suse-linux/7/../../../../lib64/crt1.o: in funct= ion > > > `_start': > > > /home/abuild/rpmbuild/BUILD/glibc-2.27/csu/../sysdeps/x86_64/start.S:= 104: > > > undefined reference to `main' > > > collect2: error: ld returned 1 exit status > > >=20 > > > Richi how did you achieve to reproduce that? > >=20 > > It's still failing on aarch64-none-linux-gnu. So that doesn't mean this= goes > > waiting. >=20 > Native or cross compiler? Because cross compiler works fine for me: >=20 > $ aarch64-suse-linux-g++-8 -c test_1.i -c -flto > $ aarch64-suse-linux-g++-8 -c test_2.i -c -flto > $ /usr/lib64/gcc/aarch64-suse-linux/8/lto1 test_1.o test_2.o > Reading object files: test_1.o test_2.o {GC start 1697k}=20 > Reading the callgraph > Merging declarations > Reading summaries > Reading function bodies: > Performing interprocedural optimizations > > > Assembling functions: > init_xyz_0 init_xyz_1 > Time variable usr sys=20=20= =20=20=20=20=20=20=20 > wall GGC > phase setup : 0.00 ( 0%) 0.00 ( 0%) 0.00 = (=20 > 0%) 1847 kB ( 1%) > phase opt and generate : 2.11 (100%) 0.12 ( 92%) 2.23 > (100%) 188629 kB ( 99%) > phase finalize : 0.00 ( 0%) 0.01 ( 8%) 0.01 = (=20 > 0%) 0 kB ( 0%) > lto stream inflate : 0.12 ( 6%) 0.03 ( 23%) 0.15 = (=20 > 7%) 0 kB ( 0%) > ipa lto constructors in : 0.65 ( 31%) 0.03 ( 23%) 0.69 ( > 31%) 188513 kB ( 99%) > TOTAL : 2.11 0.13 2.24= =20=20=20=20 > 190523 kB cross-compiler built with revision r264905 and note that we have --enable-checking=3Dyes turned on. Maybe that makes a difference ? >>From gcc-bugs-return-617364-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:26:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69983 invoked by alias); 9 Oct 2018 11:26:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 69875 invoked by uid 48); 9 Oct 2018 11:26:32 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/57832] compiling sha-256 code (xz 5.0.5) generates false warnings when using -march=native on Atom CPU Date: Tue, 09 Oct 2018 11:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00746.txt.bz2 Content-length: 1120 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D57832 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 CC| |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Martin Li=C5=A1ka --- Hopefully reduced to something reasonable: $ cat pr57832.c int a, b, d; void f() { unsigned c; for (int e =3D 0; e < 64; e +=3D 6) { b =3D e ?: (c =3D d); a +=3D e ? 9 + c + e : 0; } } $ gcc -mtune=3Datom -O2 -Werror=3Dmaybe-uninitialized pr57832.c -c pr57832.c: In function =E2=80=98f=E2=80=99: pr57832.c:3:12: error: =E2=80=98c=E2=80=99 may be used uninitialized in thi= s function [-Werror=3Dmaybe-uninitialized] unsigned c; ^ cc1: some warnings being treated as errors $ gcc -O2 -Werror=3Dmaybe-uninitialized pr57832.c -c [nothing] >>From gcc-bugs-return-617365-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:35:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 131025 invoked by alias); 9 Oct 2018 11:35:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 128541 invoked by uid 48); 9 Oct 2018 11:35:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 11:35:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00747.txt.bz2 Content-length: 1833 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 --- Comment #2 from Richard Biener --- OK, so on haswell I see (- is bad, + is good): -0x2342ca0 _40 + _45 1 times scalar_stmt costs 12 in body +0x2342ca0 _40 + _45 1 times scalar_stmt costs 4 in body so a simple add changes cost from 4 to 12 with the patch. Ah, so that goes switch (subcode) { case PLUS_EXPR: case POINTER_PLUS_EXPR: case MINUS_EXPR: if (kind =3D=3D scalar_stmt) { if (SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH) stmt_cost =3D ix86_cost->addss; else if (X87_FLOAT_MODE_P (mode)) stmt_cost =3D ix86_cost->fadd; else stmt_cost =3D ix86_cost->add; } where with kind =3D=3D scalar_stmt we now run into the SSE_FLOAT_MODE_P case (previously mode was sth like V2DFmode) and thus use ix86_cost->addss instead of ix86_cost->add. That's more correct. That causes us to (for example) now vectorize mccas.fppized.f:3160 where we previously figured vectorization is never profitable. The look looks like DO 10 MK=3D1,NOC DO 10 ML=3D1,MK MKL =3D MKL+1 XPQKL(MPQ,MKL) =3D XPQKL(MPQ,MKL) + * VAL1*(CO(MS,MK)*CO(MR,ML)+CO(MS,ML)*CO(MR,MK)) XPQKL(MRS,MKL) =3D XPQKL(MRS,MKL) + * VAL3*(CO(MQ,MK)*CO(MP,ML)+CO(MQ,ML)*CO(MP,MK)) 10 CONTINUE and requires versioning for aliasing and strided loads and strided stores. We're too trigger-happy for doing that it seems. Also the vector version isn't entered at all at runtime. But that's not the 10%. And the big offenders from looking at perf output do not have any vectorization decision changes... very strage. >>From gcc-bugs-return-617367-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:38:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49217 invoked by alias); 9 Oct 2018 11:38:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 49145 invoked by uid 48); 9 Oct 2018 11:38:39 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 11:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00749.txt.bz2 Content-length: 610 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #10 from Marc Glisse --- (In reply to Jonathan Wakely from comment #9) > Do we want something like this as well? (and for malloc_allocator too) I think so. Changing allocator_traits as LWG seems likely to agree won't he= lp much until we remove the deprecated std::allocator::max_size, but since I d= oubt we will do that soon, we should update the allocators. > I added the preprocessor condition because I'm not sure if we can always > assume that ptrdiff_t and size_t are the same width. I don't think we can. >>From gcc-bugs-return-617366-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:38:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48022 invoked by alias); 9 Oct 2018 11:38:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 47926 invoked by uid 55); 9 Oct 2018 11:37:55 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/87551] [9 regression] libgnat-9.so fails to link on Solaris Date: Tue, 09 Oct 2018 11:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00748.txt.bz2 Content-length: 990 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87551 --- Comment #3 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE Uni-Bielefeld.DE> --- >> --- Comment #1 from Bernd Edlinger --- >> Rainer, can you try this? > > Looks good so far: an i386-pc-solaris2.11 build has successfully linked > libgnat-9.so, but the bootstrap is still running. > > Meanwhile I've found that two gfortran testcases on Solaris/SPARC (only) > are also broken by what seems to be the same issue. I'll run full > bootstraps with your patch tonight to verify this. I've now completed bootstraps of i386-pc-solaris2.11 and sparc-sun-solaris2.11 (each time as/ld, i.e. no string merging; and gas/ld, i.e. with string merging) successfully. The Solaris 11/x86 bootstrap failure is gone, as are the gfortran testsuite failures on Solaris 11/SPARC. Thanks. Rainer >>From gcc-bugs-return-617369-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:39:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50547 invoked by alias); 9 Oct 2018 11:39:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50191 invoked by uid 48); 9 Oct 2018 11:39:04 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues Date: Tue, 09 Oct 2018 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.1.0 X-Bugzilla-Keywords: diagnostic, meta-bug X-Bugzilla-Severity: trivial X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00751.txt.bz2 Content-length: 460 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D24639 Bug 24639 depends on bug 87564, which changed state. Bug 87564 Summary: Missing -Wuninitialized with -O0 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87564 What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID >>From gcc-bugs-return-617368-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:39:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50279 invoked by alias); 9 Oct 2018 11:39:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50123 invoked by uid 48); 9 Oct 2018 11:39:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/87564] Missing -Wuninitialized with -O0 Date: Tue, 09 Oct 2018 11:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00750.txt.bz2 Content-length: 529 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87564 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Richard Biener --- It's only maybe uninitialized because of the loop PHI and we do not run the advanced uninit pass at -O0. >>From gcc-bugs-return-617370-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:44:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 98466 invoked by alias); 9 Oct 2018 11:43:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 85295 invoked by uid 48); 9 Oct 2018 11:43:34 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/77698] Unrolled loop not considered hot after profiling Date: Tue, 09 Oct 2018 11:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00752.txt.bz2 Content-length: 1419 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77698 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #6 from Martin Li=C5=A1ka --- Confirmed, I've got patch candidate for it: diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index c74f4a4a41d..7065af59ba9 100644 --- a/gcc/ipa-profile.c +++ b/gcc/ipa-profile.c @@ -533,11 +533,10 @@ ipa_profile (void) cumulated_size * 100.0 / overall_size); } - if (threshold > get_hot_bb_threshold () - || in_lto_p) + if (in_lto_p) { if (dump_file) - fprintf (dump_file, "Threshold updated.\n"); + fprintf (dump_file, "Setting hotness threshold in LTO mode.\n"); set_hot_bb_threshold (threshold); } } With the patch applied, I see following .S diff: iff -u before.s after.s --- before.s 2018-10-09 13:40:03.464360367 +0200 +++ after.s 2018-10-09 13:38:46.246736676 +0200 @@ -56,6 +56,8 @@ movq %rax, (%rdi,%rcx,8) cmpq %r9, %rdx je .L23 + .p2align 4,,10 + .p2align 3 .L6: movq j(%rip), %r10 movq (%rsi), %r8 Which is hopefully what you expect to happen? >>From gcc-bugs-return-617371-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 11:46:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106764 invoked by alias); 9 Oct 2018 11:46:22 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 106578 invoked by uid 55); 9 Oct 2018 11:46:17 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/63155] [6/7/8 Regression] memory hog Date: Tue, 09 Oct 2018 11:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00753.txt.bz2 Content-length: 594 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63155 --- Comment #45 from Richard Biener --- Author: rguenth Date: Tue Oct 9 11:43:46 2018 New Revision: 264956 URL: https://gcc.gnu.org/viewcvs?rev=3D264956&root=3Dgcc&view=3Drev Log: 2018-10-09 Richard Biener PR tree-optimization/63155 * tree-ssa-structalias.c: Include tree-ssa.h. (get_constraint_for_ssa_var): For undefs return nothing_id. (find_func_aliases): Cleanup PHI handling. Modified: trunk/gcc/ChangeLog trunk/gcc/tree-ssa-structalias.c >>From gcc-bugs-return-617372-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 12:18:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19848 invoked by alias); 9 Oct 2018 12:18:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19752 invoked by uid 48); 9 Oct 2018 12:18:02 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 12:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00754.txt.bz2 Content-length: 139 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #9 from Martin Li=C5=A1ka --- Now confirmed! >>From gcc-bugs-return-617373-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 12:27:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87881 invoked by alias); 9 Oct 2018 12:27:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 87778 invoked by uid 48); 9 Oct 2018 12:27:11 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85114] [6/7 Regression] -fstack-check causes ICE Date: Tue, 09 Oct 2018 12:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_known_to_work short_desc cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00755.txt.bz2 Content-length: 927 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85114 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-valid-code Status|WAITING |NEW Known to work| |8.2.0, 9.0 Summary|-fstack-check causes |[6/7 Regression] |internal compiler error |-fstack-check causes ICE Known to fail| |6.4.0, 7.3.0 --- Comment #8 from Martin Li=C5=A1ka --- (In reply to Eric Botcazou from comment #7) > > Btw. works fine on Linux. >=20 > Maybe with -fstack-check=3Dgeneric? Yes, that causes ICE also on Linux. Fixed on trunk since r251650. I'll try = to come up with a reduced test-case. >>From gcc-bugs-return-617374-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 12:51:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57267 invoked by alias); 9 Oct 2018 12:51:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 57192 invoked by uid 48); 9 Oct 2018 12:51:30 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84487] [8/9 Regression] Large rodate section increase in 465.tonto with r254427 Date: Tue, 09 Oct 2018 12:51:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: missed-optimization, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00756.txt.bz2 Content-length: 1585 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84487 Tobias Burnus changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu.org --- Comment #10 from Tobias Burnus --- In my understanding, the problem is the following (of r254427): Unconditionally generate a vtable for any module derived type, as long as the standard is F2003 or later and it is not a vtype or a PDT template. The idea is: Any TYPE can be (later) uses in a polymorphic context, hence, = one might need both the v(irtual )table and the default constructor and copy procedure. C++ has the same problem, but solves it differently. C++ by default doesn't create the vtable objects. (Which makes especially sense given that the class/struct is usually defined in a header.) But when used, it creates them in every .o which uses them. To avoid linker problems, those are created as "V"/"W", i.e. as weak objects. Thus, the gfortran solution could be likewise: Don't emit the vtab, def_init and copy code when compiling a module (unless used in the module) - and def= er the creation to the later usage. The question is when does one need to create them? One possibility would be= to create them in each translation unit which passes a TYPE to a CLASS(*)/CLASS() and when allocating it or associating it with a (nonpolymorphic) pointer target. I think that would work. >>From gcc-bugs-return-617375-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 12:55:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62084 invoked by alias); 9 Oct 2018 12:55:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 61998 invoked by uid 48); 9 Oct 2018 12:55:33 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 12:55:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00757.txt.bz2 Content-length: 712 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | CC| |dmalcolm at gcc dot gnu.org --- Comment #10 from Martin Li=C5=A1ka --- Obviously fails for the huge constructor in test_2.i: SOURCE_LINE (map, r) =3D=3D 14 while to_line =3D=3D 1048590 Note that line 14 is first element of the constructor. So maybe David can d= ebug that? The test-case can't be reduced, one needs so huge initialization. >>From gcc-bugs-return-617377-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:01:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71272 invoked by alias); 9 Oct 2018 13:01:29 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70930 invoked by uid 48); 9 Oct 2018 13:01:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 13:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00759.txt.bz2 Content-length: 2527 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |matz at gcc dot gnu.org --- Comment #3 from Richard Biener --- OK, so re-running perf gives me a more reasonable result (-march=3Dnative on Haswell): Overhead Samples Command Shared Object Sy= mbol 15.59% 754868 gamess_peak.amd gamess_peak.amd64-m64-gcc42-nn [.] forms_ 15.55% 749452 gamess_base.amd gamess_base.amd64-m64-gcc42-nn [.] forms_ 10.77% 496796 gamess_base.amd gamess_base.amd64-m64-gcc42-nn [.] twotff_ 7.58% 377894 gamess_base.amd gamess_base.amd64-m64-gcc42-nn [.] dirfck_ 7.57% 375587 gamess_peak.amd gamess_peak.amd64-m64-gcc42-nn [.] dirfck_ 7.01% 328685 gamess_peak.amd gamess_peak.amd64-m64-gcc42-nn [.] twotff_ 4.98% 243101 gamess_base.amd gamess_base.amd64-m64-gcc42-nn [.] xyzint_ 4.03% 197815 gamess_peak.amd gamess_peak.amd64-m64-gcc42-nn [.] xyzint_ with the already noticed loop where there's appearantly not enough iteratio= ns warranting the vectorization and the cost model check comes in the way. xyzint_ looks simiar. Note that DO 30 MK=3D1,NOC DO 30 ML=3D1,MK MKL =3D MKL+1 XPQKL(MPQ,MKL) =3D XPQKL(MPQ,MKL) + * VAL1*(CO(MS,MK)*CO(MR,ML)+CO(MS,ML)*CO(MR,MK)) XPQKL(MRS,MKL) =3D XPQKL(MRS,MKL) + * VAL3*(CO(MQ,MK)*CO(MP,ML)+CO(MQ,ML)*CO(MP,MK)) 30 CONTINUE shows the inner loop will first iterate once, then twice, then ... that makes hoisting the cost model check not possible and also it makes the alias check not invariant in the outer loop. That would mean if we'd code-generate the iteration cost-model then loop splitting might get the idea of splitting the outer loop ... (but loop splitting runs before vectorization of course). So in this very case if we analyze the scalar evolution of the niter of the loop we want to vectorize we get back {0, +, 1}_5 -- that's certainly something we could factor in when computing the vectorization cost. It would increase the prologue/epilogue cost but it wouldn't make vectorization never profitable (we know nothing about the upper bound of the number of iterations). >>From gcc-bugs-return-617376-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:01:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71240 invoked by alias); 9 Oct 2018 13:01:26 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70838 invoked by uid 48); 9 Oct 2018 13:00:59 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/87468] [9 Regression] ice "wrong amount of branch edges after conditional jump in bb" Date: Tue, 09 Oct 2018 13:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc cf_known_to_work cf_known_to_fail Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00758.txt.bz2 Content-length: 641 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87468 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | CC| |law at gcc dot gnu.org, | |marxin at gcc dot gnu.org Known to work| |8.2.0 Known to fail| |9.0 --- Comment #3 from Martin Li=C5=A1ka --- Started with r264491. >>From gcc-bugs-return-617378-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:03:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107485 invoked by alias); 9 Oct 2018 13:03:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 105492 invoked by uid 48); 9 Oct 2018 13:03:49 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/85870] [6/7/8/9 Regression][LTO1] ICE in linemap_line_start, at libcpp/line-map.c:794 Date: Tue, 09 Oct 2018 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: ice-on-valid-code, lto X-Bugzilla-Severity: normal X-Bugzilla-Who: sudi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00760.txt.bz2 Content-length: 206 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85870 --- Comment #11 from sudi at gcc dot gnu.org --- Yes I remember spending a while to get it to reduce further. But it needs a= big constructor to fail. >>From gcc-bugs-return-617379-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:19:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67395 invoked by alias); 9 Oct 2018 13:19:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67252 invoked by uid 48); 9 Oct 2018 13:19:32 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85890] [7 Regression] cc1plus runs out of memory in recursive Fibonacci computation Date: Tue, 09 Oct 2018 13:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00761.txt.bz2 Content-length: 606 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85890 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | Status|NEW |ASSIGNED CC| |marxin at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org --- Comment #2 from Martin Li=C5=A1ka --- Regressed with r255813. >>From gcc-bugs-return-617380-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:20:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68567 invoked by alias); 9 Oct 2018 13:20:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68400 invoked by uid 48); 9 Oct 2018 13:20:04 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/85574] [9 Regression] LTO bootstapped binaries differ Date: Tue, 09 Oct 2018 13:20:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00762.txt.bz2 Content-length: 143 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85574 --- Comment #5 from Martin Li=C5=A1ka --- Richi is it fixed? >>From gcc-bugs-return-617381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:22:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71075 invoked by alias); 9 Oct 2018 13:22:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 70993 invoked by uid 48); 9 Oct 2018 13:22:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 13:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00763.txt.bz2 Content-length: 2008 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization CC| |rsandifo at gcc dot gnu.org --- Comment #4 from Richard Biener --- Another thing is the too complicated alias check where for (gdb) p debug_data_reference (dr_a.dr) #(Data Ref:=20 # bb: 14=20 # stmt: _28 =3D *xpqkl_172(D)[_27]; # ref: *xpqkl_172(D)[_27]; # base_object: *xpqkl_172(D); # Access function 0: {(((integer(kind=3D8)) mkl_203 + 1) * stride.33_148 + offset.34_149) + _480, +, stride.33_148}_6 #) $9 =3D void (gdb) p debug_data_reference (dr_b.dr) #(Data Ref:=20 # bb: 14=20 # stmt: *xpqkl_172(D)[_50] =3D _65; # ref: *xpqkl_172(D)[_50]; # base_object: *xpqkl_172(D); # Access function 0: {(((integer(kind=3D8)) mkl_203 + 1) * stride.33_148 + offset.34_149) + _486, +, stride.33_148}_6 #) we generate (ssizetype) (((sizetype) ((((integer(kind=3D8)) mkl_203 + 1) * stride.33_14= 8 + offset.34_149) + (integer(kind=3D8)) (_19 + jpack_161)) + (sizetype) stride.33_148) * 8) < (ssizetype) ((sizetype) ((((integer(kind=3D8)) mkl_20= 3 + 1) * stride.33_148 + offset.34_149) + (integer(kind=3D8)) (_22 + lpack_164)) *= 8) || (ssizetype) (((sizetype) ((((integer(kind=3D8)) mkl_203 + 1) * stride.33_14= 8 + offset.34_149) + (integer(kind=3D8)) (_22 + lpack_164)) + (sizetype) stride.33_148) * 8) < (ssizetype) ((sizetype) ((((integer(kind=3D8)) mkl_20= 3 + 1) * stride.33_148 + offset.34_149) + (integer(kind=3D8)) (_19 + jpack_161)) *= 8) instead of simply _480 !=3D _486 (well, OK, not _that_ simple). I guess we miss many of the "optimizations" we do when dealing with alias checks for constant steps. In this case sth obvious would be to special-case DR_STEP (dra) =3D=3D DR_STEP (drb). Richard? >>From gcc-bugs-return-617382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:25:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86135 invoked by alias); 9 Oct 2018 13:25:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 86000 invoked by uid 55); 9 Oct 2018 13:25:48 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/85574] [9 Regression] LTO bootstapped binaries differ Date: Tue, 09 Oct 2018 13:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00764.txt.bz2 Content-length: 342 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85574 --- Comment #6 from rguenther at suse dot de --- On Tue, 9 Oct 2018, marxin at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85574 >=20 > --- Comment #5 from Martin Li=C5=A1ka --- > Richi is it fixed? No. >>From gcc-bugs-return-617383-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:31:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117642 invoked by alias); 9 Oct 2018 13:31:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 113992 invoked by uid 48); 9 Oct 2018 13:31:38 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/83409] arc: "internal compiler error: in extract_constrain_insn" with -O3 Date: Tue, 09 Oct 2018 13:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 7.2.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00765.txt.bz2 Content-length: 576 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83409 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 Ever confirmed|0 |1 --- Comment #2 from Martin Li=C5=A1ka --- Looks very old, I see it also with GCC-5 branch. >>From gcc-bugs-return-617384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 13:38:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2915 invoked by alias); 9 Oct 2018 13:38:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 124826 invoked by uid 48); 9 Oct 2018 13:38:42 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/79768] `-Wmaybe-uninitialized' false positive with optimisation Date: Tue, 09 Oct 2018 13:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 5.3.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00766.txt.bz2 Content-length: 1486 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D79768 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | CC| |marxin at gcc dot gnu.org --- Comment #9 from Martin Li=C5=A1ka --- It has gone on trunk with r260350: SVN revision: 260350 Author: marxin Radically simplify emission of balanced tree for switch statements. 2018-05-18 Martin Liska * passes.def: Add pass_lower_switch and pass_lower_switch_O0. * tree-pass.h (make_pass_lower_switch_O0): New function. * tree-switch-conversion.c (node_has_low_bound): Remove. (node_has_high_bound): Likewise. (node_is_bounded): Likewise. (class pass_lower_switch): Make it a template type and create two instances. (pass_lower_switch::execute): Add template argument. (make_pass_lower_switch): New function. (make_pass_lower_switch_O0): New function. (do_jump_if_equal): Remove. (emit_case_nodes): Simplify to just handle all 3 cases and leave all the hard work to tree optimization passes. 2018-05-18 Martin Liska * gcc.dg/tree-ssa/vrp104.c: Adjust dump file that is scanned. * gcc.dg/tree-prof/update-loopch.c: Likewise. >>From gcc-bugs-return-617385-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:03:04 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59074 invoked by alias); 9 Oct 2018 14:03:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 58901 invoked by uid 48); 9 Oct 2018 14:02:59 -0000 From: "pthaugen at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/77698] Unrolled loop not considered hot after profiling Date: Tue, 09 Oct 2018 14:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pthaugen at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00767.txt.bz2 Content-length: 286 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D77698 --- Comment #7 from Pat Haugen --- I also see the loop now being aligned when I apply your patch. srdi 10,10,2 mtctr 10 .p2align 4,,15 .L6: ld 9,0(11) ld 8,0(4) >>From gcc-bugs-return-617386-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:09:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 82406 invoked by alias); 9 Oct 2018 14:09:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 82354 invoked by uid 48); 9 Oct 2018 14:09:56 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/82793] __attribute__((target("sse"))) causes call throught ifunc Date: Tue, 09 Oct 2018 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 7.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00768.txt.bz2 Content-length: 455 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D82793 Martin Li=C5=A1ka changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Li=C5=A1ka --- Fixed on trunk with r264845. >>From gcc-bugs-return-617387-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:17:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12327 invoked by alias); 9 Oct 2018 14:17:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12239 invoked by uid 48); 9 Oct 2018 14:16:55 -0000 From: "peter.maydell at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/83256] inconsistent _Pragma behavior in multi-line macros Date: Tue, 09 Oct 2018 14:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: peter.maydell at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00769.txt.bz2 Content-length: 780 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83256 Peter Maydell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.maydell at linaro do= t org --- Comment #1 from Peter Maydell --- I was investigating a similar gcc bug, and was pointed at this one. I note = that the test case attached to this bug seems to be (according to the godbolt compilers) broken in gcc 7.3 but fixed by 8.1. 8.1 didn't fix everything in this area, though -- I have a rather similar k= ind of test case (which I'll attach), which seems to be still broken in 8.3 but fixed in gcc trunk. >>From gcc-bugs-return-617388-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:18:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13732 invoked by alias); 9 Oct 2018 14:18:04 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 13586 invoked by uid 48); 9 Oct 2018 14:18:00 -0000 From: "peter.maydell at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/83256] inconsistent _Pragma behavior in multi-line macros Date: Tue, 09 Oct 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: peter.maydell at linaro dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00770.txt.bz2 Content-length: 297 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83256 --- Comment #2 from Peter Maydell --- Created attachment 44817 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44817&action=3Dedit repro for similar bug, apparently broken up to 8.3 but fixed in trunk? >>From gcc-bugs-return-617389-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:18:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14535 invoked by alias); 9 Oct 2018 14:18:32 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 14473 invoked by uid 48); 9 Oct 2018 14:18:28 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85890] [7 Regression] cc1plus runs out of memory in recursive Fibonacci computation Date: Tue, 09 Oct 2018 14:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.1 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00771.txt.bz2 Content-length: 150 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85890 --- Comment #3 from Jonathan Wakely --- And fixed on trunk by r258116 >>From gcc-bugs-return-617390-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:28:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 35755 invoked by alias); 9 Oct 2018 14:28:51 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35663 invoked by uid 48); 9 Oct 2018 14:28:46 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87565] New: suboptimal memory-indirect tailcalls on arm Date: Tue, 09 Oct 2018 14:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00772.txt.bz2 Content-length: 960 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87565 Bug ID: 87565 Summary: suboptimal memory-indirect tailcalls on arm Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: amonakov at gcc dot gnu.org Target Milestone: --- Target: arm-*-* When tailcalling via a pointer that needs to be loaded from memory, gcc cou= ld use 'ldr pc, [...]' instead of an ldr-bx sequence. void foo(int a, int b, void (*p[])(int, int)) { p[1](a, b); } I see at -Os foo: ldr r3, [r2, #4] bx r3 @ indirect register sibling call But afaict this could be simply foo: ldr pc, [r2, #4] (x86 has memory-indirect jumps too and there GCC gets this right via dedica= ted sibcall patterns) >>From gcc-bugs-return-617391-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:31:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38595 invoked by alias); 9 Oct 2018 14:31:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 38291 invoked by uid 48); 9 Oct 2018 14:30:59 -0000 From: "peter.maydell at linaro dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/85153] _Pragma to disable -Wswitch-unreachable diagnostic not properly working when used within preprocessor macro Date: Tue, 09 Oct 2018 14:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 7.3.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: peter.maydell at linaro dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00773.txt.bz2 Content-length: 1292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85153 Peter Maydell changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter.maydell at linaro do= t org --- Comment #5 from Peter Maydell --- I was looking to see if this bug had been fixed in gcc trunk, and if you te= ll godbolt to run the non-preprocessed original code on gcc trunk (ie the sour= ce you get by following the godbolt link in comment 1), the compiler ICEs: : In function 'int test7(int)': :76:5: internal compiler error: in linemap_macro_map_loc_to_exp_poi= nt, at libcpp/line-map.c:1063 76 | switch (val) { | ^~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler returned: 1 (There are a whole set of these "_Pragma() to disable diagnostics doesn't do the right thing" bugs in bugzilla. So far I have seen test cases which have been fixed in gcc 8, test cases fixed in trunk but not 8, and this one whic= h is differently-broken in trunk. So there isn't a single underlying bug in all cases.) >>From gcc-bugs-return-617392-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:32:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39828 invoked by alias); 9 Oct 2018 14:32:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 39653 invoked by uid 48); 9 Oct 2018 14:31:58 -0000 From: "antony at cosmologist dot info" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87566] New: ICE with class(*) and select Date: Tue, 09 Oct 2018 14:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: antony at cosmologist dot info X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00774.txt.bz2 Content-length: 924 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87566 Bug ID: 87566 Summary: ICE with class(*) and select Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: antony at cosmologist dot info Target Milestone: --- Created attachment 44818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D44818&action=3Dedit Full test case Segmentation fault ICE compiling with 6.4. 7.3 or 8.2.0. subroutine AddArray() type Object_array_pointer class(*), pointer :: p(:) =3D> null() end type Object_array_pointer class(*), pointer :: Pt =3D> null() select type (Pt) class is (object_array_pointer) select type (Point=3D> Pt%P) end select end select end subroutine AddArray >>From gcc-bugs-return-617393-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:34:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67818 invoked by alias); 9 Oct 2018 14:34:53 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 62066 invoked by uid 48); 9 Oct 2018 14:34:48 -0000 From: "olegendo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/49263] SH Target: underutilized "TST #imm, R0" instruction Date: Tue, 09 Oct 2018 14:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.6.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: olegendo at gcc dot gnu.org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: olegendo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00775.txt.bz2 Content-length: 471 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D49263 --- Comment #30 from Oleg Endo --- (In reply to Eric Gallager from comment #29) >=20 > So maybe it's worth splitting up into sub-issues? It'd be better to, yes. But at the moment I don't have a lot of time to go through all the cases and factor out the individual cases. Please leave th= is open. It will be useful if I (or others) get back to active SH development= in the future. >>From gcc-bugs-return-617394-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:39:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81615 invoked by alias); 9 Oct 2018 14:39:23 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 81559 invoked by uid 48); 9 Oct 2018 14:39:19 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 14:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00776.txt.bz2 Content-length: 1657 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ramana at gcc dot gnu.org --- Comment #5 from Ramana Radhakrishnan --- (In reply to joseph@codesourcery.com from comment #4) > Any unaligned access things that don't work for big-endian ARM are=20 > probably fallout from the issues with big-endian NEON (NEON architectural= =20 > lane numbers are different from the architecture-independent lane numbers= =20 > in GNU C vector extensions and GCC IR, and GCC expects each machine mode= =20 > to have a single defined memory layout and a single defined layout in any= =20 > given register, and to be able to move between core and NEON registers,=20 > and between core registers and memory, in the respective layouts used for= =20 > those registers, but some NEON loads and stores for big-endian don't work= =20 > with those expectations, so unaligned vector operations are limited for=20 > big-endian ARM). Correct, we don't allow misaligned access for Neon because of exactly the a= bove mentioned reasons.=20 I would have however expected misaligned access to work with -march=3Darmv7= -a -munaligned-access -mfpu=3Dvfpv3-d16 -mfloat-abi=3Dsoftfp/hard on the comma= nd line for the afore mentioned testcase as we do have a movmisalign pattern in arm= .md that should kick in overriding the movmisalign pattern in neon.md. It prob= ably needs a little more detailed investigation. >>From gcc-bugs-return-617395-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:42:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94093 invoked by alias); 9 Oct 2018 14:42:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 93073 invoked by uid 48); 9 Oct 2018 14:42:50 -0000 From: "ramana at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/86815] [8/9 regression] ICE on valid code on armhf Date: Tue, 09 Oct 2018 14:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: ramana at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00777.txt.bz2 Content-length: 750 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86815 Ramana Radhakrishnan changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-reduction CC| |ramana at gcc dot gnu.org --- Comment #7 from Ramana Radhakrishnan --- (In reply to Gianfranco from comment #6) > Created attachment 44485 [details] > another failing output >=20 > I'm attaching another file suffering from the same issue (mostly every cpp > file has this failure) > this file is only ~2Mb, so maybe reducing it might be easier Needs reduction. >>From gcc-bugs-return-617396-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:45:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 9618 invoked by alias); 9 Oct 2018 14:45:05 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 9242 invoked by uid 48); 9 Oct 2018 14:44:59 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 14:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00778.txt.bz2 Content-length: 1430 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #11 from Jonathan Wakely --- I can make these changes to libstdc++, but why is the compiler warning anyw= ay? It says: In function =E2=80=98T* my_allocator::allocate(std::size_t, const void*)= [with T =3D int]=E2=80=99, inlined from =E2=80=98void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args =3D {int}; _Tp =3D int; _Alloc =3D my_allocator]=E2=80=99 = at /usr/include/c++/7/bits/alloc_traits.h:301:32: alloc_limit.cpp:18:11: warning: argument 1 value =E2=80=9818446744073709551= 612=E2=80=99 exceeds maximum object size 9223372036854775807 [-Walloc-size-larger-than=3D] void *result =3D std::malloc(size); ^~~~~~ In file included from /usr/include/c++/7/cstdlib:75:0, from alloc_limit.cpp:1: /usr/include/stdlib.h: In member function =E2=80=98void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args =3D {int}; _Tp =3D int; _Alloc =3D my_allocator]=E2=80=99: /usr/include/stdlib.h:424:14: note: in a call to allocation function =E2=80= =98void* malloc(size_t)=E2=80=99 declared here extern void *malloc (size_t __size) __THROW __attribute_malloc__ __wur; But this is nonsense, the value is 1*sizeof(cplx) which is 8. Why does it think we're calling it with max_size()? >>From gcc-bugs-return-617397-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 14:49:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73539 invoked by alias); 9 Oct 2018 14:49:48 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 73482 invoked by uid 48); 9 Oct 2018 14:49:44 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 14:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00779.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #12 from Jonathan Wakely --- (In reply to Martin Sebor from comment #3) > At the same time, since the call malloc(SIZE_MAX) is guaranteed to fail, = GCC > could fold it to zero But there is no call to malloc(SIZE_MAX), GCC is confused about the value. = It would be bad to fold the call to malloc(8) to zero. >>From gcc-bugs-return-617398-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:04:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110107 invoked by alias); 9 Oct 2018 15:04:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 109681 invoked by uid 48); 9 Oct 2018 15:04:12 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 15:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00780.txt.bz2 Content-length: 162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #6 from Thomas Preud'homme --- Happens at expand time. Diving in. >>From gcc-bugs-return-617399-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:08:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26744 invoked by alias); 9 Oct 2018 15:08:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 26679 invoked by uid 48); 9 Oct 2018 15:08:05 -0000 From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87565] suboptimal memory-indirect tailcalls on arm Date: Tue, 09 Oct 2018 15:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00781.txt.bz2 Content-length: 201 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87565 --- Comment #1 from Richard Earnshaw --- Not a good idea. Modern CPUs often don't predict such operations correctly >>From gcc-bugs-return-617400-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:22:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55629 invoked by alias); 9 Oct 2018 15:22:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55560 invoked by uid 55); 9 Oct 2018 15:22:34 -0000 From: "joseph at codesourcery dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/83256] inconsistent _Pragma behavior in multi-line macros Date: Tue, 09 Oct 2018 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: joseph at codesourcery dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00782.txt.bz2 Content-length: 504 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83256 --- Comment #3 from joseph at codesourcery dot com --- Unless someone can identify a commit that deliberately fixed the bug *and=20 added appropriate tests to the testsuite*, I'd strongly advise adding=20 tests to the testsuite before marking FIXED on the basis of those tests=20 now passing (if they are passing incidentally as a result of some other=20 change that didn't add tests directly related to this bug). >>From gcc-bugs-return-617401-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:22:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56065 invoked by alias); 9 Oct 2018 15:22:44 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 55607 invoked by uid 48); 9 Oct 2018 15:22:40 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87565] suboptimal memory-indirect tailcalls on arm Date: Tue, 09 Oct 2018 15:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00783.txt.bz2 Content-length: 260 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87565 --- Comment #2 from Alexander Monakov --- PLT trampolines all end with 'ldr pc, [ip, xxx]!', so do all calls via PLT suffer from poor branch prediction of such indirect jumps? >>From gcc-bugs-return-617402-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:26:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63089 invoked by alias); 9 Oct 2018 15:26:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 63024 invoked by uid 48); 9 Oct 2018 15:26:41 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 15:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00784.txt.bz2 Content-length: 1016 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #13 from Martin Sebor --- There is a call to malloc(SIZE_MAX - 15) in GIMPLE, as a result of the conditional and I believe jump threading. Just after thread1 we see this in the vrp1 dump: [local count: 32272892]: # _91 =3D PHI <_54(4), _6(6)> # iftmp.2_92 =3D PHI <1152921504606846975(4), 1152921504606846975(6)> size_94 =3D iftmp.2_92 * 16; result_96 =3D __builtin_malloc (size_94); goto ; [100.00%] and after cselim: [local count: 32272892]: # _91 =3D PHI <_54(4), _6(6)> size_94 =3D 18446744073709551600; result_96 =3D __builtin_malloc (size_94); goto ; [100.00%] which is then propagated into malloc. That's what the warning sees. I think the malloc folding would be fine (provided errno was set as well) b= ut operator new probably wouldn't be because the operator is replaceable so it could be detected (unless the standard was changed to allow the elision). >>From gcc-bugs-return-617403-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:34:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 116736 invoked by alias); 9 Oct 2018 15:34:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 116692 invoked by uid 48); 9 Oct 2018 15:34:52 -0000 From: "raphael.kubo.da.costa at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87567] New: constexpr evaluation rejects call to non-constexpr function Date: Tue, 09 Oct 2018 15:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: raphael.kubo.da.costa at intel dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00785.txt.bz2 Content-length: 914 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87567 Bug ID: 87567 Summary: constexpr evaluation rejects call to non-constexpr function Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: raphael.kubo.da.costa at intel dot com Target Milestone: --- This is similar to bug 86678, and can be reproduced with trunk: constexpr bool always_false() { return false; } int f() { return 1; } constexpr int g() { while (always_false()) return f(); return 0; } : In function 'constexpr int g()': :5:13: error: call to non-'constexpr' function 'int f()' 5 | return f(); | ~^~ It works with MSVC, ICC and clang (GCC also works if `while' is replaced wi= th `if'). >>From gcc-bugs-return-617404-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:37:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24157 invoked by alias); 9 Oct 2018 15:37:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 20590 invoked by uid 48); 9 Oct 2018 15:37:41 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 15:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00786.txt.bz2 Content-length: 1108 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 Thomas Preud'homme changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thopre01 at gcc dot gnu.org --- Comment #7 from Thomas Preud'homme --- (In reply to Thomas Preud'homme from comment #6) > Happens at expand time. Diving in. There's a giant if in expand_expr_real_1 with the following comment: /* In cases where an aligned union has an unaligned object as a field, we might be extracting a BLKmode value from an integer-mode (e.g., SImode) object. Handle this case by doing the extract into an object as wide as the field (which we know to be the width of a basic mode), then storing into memory, and changing the mode to BLKmode. */ The "if" is entered in the big endian unaligned case but not in the other c= ase. In the aligned case, it continues after the if until the call to flip_storage_order which will generate the bswap. >>From gcc-bugs-return-617405-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 15:38:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36940 invoked by alias); 9 Oct 2018 15:38:35 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 35382 invoked by uid 48); 9 Oct 2018 15:38:29 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87567] constexpr evaluation rejects call to non-constexpr function Date: Tue, 09 Oct 2018 15:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00787.txt.bz2 Content-length: 522 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87567 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 CC|redi at gcc dot gnu.org | Ever confirmed|0 |1 >>From gcc-bugs-return-617406-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 16:32:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79998 invoked by alias); 9 Oct 2018 16:32:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 76047 invoked by uid 48); 9 Oct 2018 16:32:44 -0000 From: "renlin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87563] [9 regression ] ICE with -march=armv8-a+sve Date: Tue, 09 Oct 2018 16:32:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: renlin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: renlin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00788.txt.bz2 Content-length: 451 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87563 Renlin Li changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |renlin at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |renlin at gcc dot g= nu.org >>From gcc-bugs-return-617407-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 16:33:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15196 invoked by alias); 9 Oct 2018 16:33:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10883 invoked by uid 48); 9 Oct 2018 16:33:47 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87566] ICE with class(*) and select Date: Tue, 09 Oct 2018 16:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00789.txt.bz2 Content-length: 729 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87566 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Status|UNCONFIRMED |NEW Last reconfirmed| |2018-10-09 Ever confirmed|0 |1 --- Comment #1 from Dominique d'Humieres --- Confirmed from 4.8 up to trunk (9.0). An instrumented compiler gives ../../work/gcc/fortran/resolve.c:8883:21: runtime error: member access with= in null pointer of type 'struct gfc_component' >>From gcc-bugs-return-617408-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 16:49:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22652 invoked by alias); 9 Oct 2018 16:49:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 22622 invoked by uid 48); 9 Oct 2018 16:49:37 -0000 From: "david.sagan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/87568] New: Gfortran compile fails with bogus error message. Date: Tue, 09 Oct 2018 16:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.sagan at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00790.txt.bz2 Content-length: 1320 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87568 Bug ID: 87568 Summary: Gfortran compile fails with bogus error message. Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: david.sagan at gmail dot com Target Milestone: --- consider the following test program: subroutine tao_show_this () implicit none type b_struct integer, pointer :: good_user =3D> null() end type type a_struct type (b_struct), allocatable :: value_ptr(:) end type type (a_struct) a a =3D a_struct() end subroutine Compiling gives: > gfortran -c test.f90 test.f90:4:13: type b_struct 1 Error: The rank of the element in the structure constructor at (1) does not match that of the component (0/1) I believe this error message is bogus. Ifort will compile this code without error.=20 Note: This code will compile if modified in a number of ways: 1) Replace "value_ptr(:)" with "value_ptr" as the allocatable component of a_struct. 2) Replace "integer, pointer :: good_user =3D> null()" with "integer :: goo= d_user =3D 0" as the component of b_struct. 3) Replace "a =3D a_struct()" with "a =3D a_struct(null())". >>From gcc-bugs-return-617409-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:05:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41026 invoked by alias); 9 Oct 2018 17:05:30 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 40919 invoked by uid 48); 9 Oct 2018 17:05:24 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 17:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00791.txt.bz2 Content-length: 1782 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #8 from Thomas Preud'homme --- (In reply to Thomas Preud'homme from comment #7) > (In reply to Thomas Preud'homme from comment #6) > > Happens at expand time. Diving in. >=20 > There's a giant if in expand_expr_real_1 with the following comment: >=20 > /* In cases where an aligned union has an unaligned object > as a field, we might be extracting a BLKmode value from > an integer-mode (e.g., SImode) object. Handle this case > by doing the extract into an object as wide as the field > (which we know to be the width of a basic mode), then > storing into memory, and changing the mode to BLKmode. */ >=20 > The "if" is entered in the big endian unaligned case but not in the other > case. In the aligned case, it continues after the if until the call to > flip_storage_order which will generate the bswap. In the aligned case, the if is not taken because alignment of the memory Vs access is sufficient. There is provision to call flip_storage_order but onl= y if the access is a RECORD and here the mode class is INT. Therefore unaligned access are handled by extract_bit_field. This in turns = call extract_bit_field_1 and later extract_integral_bit_field where things are different between little endian and big endian. For little endian, it goes = in the following if block: /* If OP0 is a memory, try copying it to a register and seeing if a cheap register alternative is available. */ if (MEM_P (op0) & !reverse) For big endian it continues and calls extract_fixed_bit_field. I'm wonderin= g if an extra call to flip_storage_order when reverse is true would solve the is= sue. Need to understand better whe is it safe to call flip_storage_order. >>From gcc-bugs-return-617410-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:16:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51061 invoked by alias); 9 Oct 2018 17:16:19 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50660 invoked by uid 48); 9 Oct 2018 17:15:56 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 17:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00792.txt.bz2 Content-length: 1998 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 --- Comment #9 from Thomas Preud'homme --- (In reply to Thomas Preud'homme from comment #8) > (In reply to Thomas Preud'homme from comment #7) > > (In reply to Thomas Preud'homme from comment #6) > > > Happens at expand time. Diving in. > >=20 > > There's a giant if in expand_expr_real_1 with the following comment: > >=20 > > /* In cases where an aligned union has an unaligned object > > as a field, we might be extracting a BLKmode value from > > an integer-mode (e.g., SImode) object. Handle this case > > by doing the extract into an object as wide as the field > > (which we know to be the width of a basic mode), then > > storing into memory, and changing the mode to BLKmode. */ > >=20 > > The "if" is entered in the big endian unaligned case but not in the oth= er > > case. In the aligned case, it continues after the if until the call to > > flip_storage_order which will generate the bswap. >=20 > In the aligned case, the if is not taken because alignment of the memory = Vs > access is sufficient. There is provision to call flip_storage_order but o= nly > if the access is a RECORD and here the mode class is INT. >=20 > Therefore unaligned access are handled by extract_bit_field. This in turns > call extract_bit_field_1 and later extract_integral_bit_field where things > are different between little endian and big endian. For little endian, it > goes in the following if block: >=20 > /* If OP0 is a memory, try copying it to a register and seeing if a > cheap register alternative is available. */ > if (MEM_P (op0) & !reverse) >=20 > For big endian it continues and calls extract_fixed_bit_field. I'm wonder= ing > if an extra call to flip_storage_order when reverse is true would solve t= he > issue. Need to understand better whe is it safe to call flip_storage_orde= r. It gives me the expected assembly but I need to convince myself that this is always safe. >>From gcc-bugs-return-617412-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:17:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67052 invoked by alias); 9 Oct 2018 17:17:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67017 invoked by uid 48); 9 Oct 2018 17:17:48 -0000 From: "thopre01 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86968] Unaligned big-endian (scalar_storage_order) access on armv7-a yields 4 ldrb instructions rather than ldr+rev Date: Tue, 09 Oct 2018 17:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: thopre01 at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: thopre01 at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00794.txt.bz2 Content-length: 2446 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86968 Thomas Preud'homme changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-10-09 Assignee|unassigned at gcc dot gnu.org |thopre01 at gcc dot= gnu.org Ever confirmed|0 |1 --- Comment #10 from Thomas Preud'homme --- (In reply to Thomas Preud'homme from comment #8) > (In reply to Thomas Preud'homme from comment #7) > > (In reply to Thomas Preud'homme from comment #6) > > > Happens at expand time. Diving in. > >=20 > > There's a giant if in expand_expr_real_1 with the following comment: > >=20 > > /* In cases where an aligned union has an unaligned object > > as a field, we might be extracting a BLKmode value from > > an integer-mode (e.g., SImode) object. Handle this case > > by doing the extract into an object as wide as the field > > (which we know to be the width of a basic mode), then > > storing into memory, and changing the mode to BLKmode. */ > >=20 > > The "if" is entered in the big endian unaligned case but not in the oth= er > > case. In the aligned case, it continues after the if until the call to > > flip_storage_order which will generate the bswap. >=20 > In the aligned case, the if is not taken because alignment of the memory = Vs > access is sufficient. There is provision to call flip_storage_order but o= nly > if the access is a RECORD and here the mode class is INT. >=20 > Therefore unaligned access are handled by extract_bit_field. This in turns > call extract_bit_field_1 and later extract_integral_bit_field where things > are different between little endian and big endian. For little endian, it > goes in the following if block: >=20 > /* If OP0 is a memory, try copying it to a register and seeing if a > cheap register alternative is available. */ > if (MEM_P (op0) & !reverse) >=20 > For big endian it continues and calls extract_fixed_bit_field. I'm wonder= ing > if an extra call to flip_storage_order when reverse is true would solve t= he > issue. Need to understand better whe is it safe to call flip_storage_orde= r. It gives me the expected assembly but I need to convince myself that this is always safe. >>From gcc-bugs-return-617411-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:17:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 56161 invoked by alias); 9 Oct 2018 17:17:13 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 53674 invoked by uid 55); 9 Oct 2018 17:17:02 -0000 From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86659] [9 regression] gnat.dg/sso/q[23].adb FAIL Date: Tue, 09 Oct 2018 17:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00793.txt.bz2 Content-length: 443 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86659 --- Comment #7 from Eric Botcazou --- Author: ebotcazou Date: Tue Oct 9 17:16:24 2018 New Revision: 264986 URL: https://gcc.gnu.org/viewcvs?rev=3D264986&root=3Dgcc&view=3Drev Log: PR tree-optimization/86659 * gimple-match.h (gimple_match_op constructors): Initialize reverse. Modified: trunk/gcc/ChangeLog trunk/gcc/gimple-match.h >>From gcc-bugs-return-617413-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:18:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68012 invoked by alias); 9 Oct 2018 17:18:17 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67948 invoked by uid 55); 9 Oct 2018 17:18:13 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87370] [7/8/9 Regression] Inefficient return code of struct values Date: Tue, 09 Oct 2018 17:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00795.txt.bz2 Content-length: 992 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87370 --- Comment #7 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Oct 9 17:17:41 2018 New Revision: 264987 URL: https://gcc.gnu.org/viewcvs?rev=3D264987&root=3Dgcc&view=3Drev Log: i386: Use TImode for BLKmode values in 2 integer registers When passing and returning BLKmode values in 2 integer registers, use 1 TImode register instead of 2 DImode registers. Otherwise, V1TImode may be used to move and store such BLKmode values, which prevent RTL optimizations. gcc/ Backport from mainline PR target/87370 * config/i386/i386.c (construct_container): Use TImode for BLKmode values in 2 integer registers. gcc/testsuite/ Backport from mainline PR target/87370 * gcc.target/i386/pr87370.c: New test. Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/i386/i386.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617414-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:23:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 84645 invoked by alias); 9 Oct 2018 17:23:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84575 invoked by uid 55); 9 Oct 2018 17:23:38 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87370] [7/8/9 Regression] Inefficient return code of struct values Date: Tue, 09 Oct 2018 17:23:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00796.txt.bz2 Content-length: 1065 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87370 --- Comment #8 from hjl at gcc dot gnu.org --- Author: hjl Date: Tue Oct 9 17:23:06 2018 New Revision: 264989 URL: https://gcc.gnu.org/viewcvs?rev=3D264989&root=3Dgcc&view=3Drev Log: i386: Use TImode for BLKmode values in 2 integer registers When passing and returning BLKmode values in 2 integer registers, use 1 TImode register instead of 2 DImode registers. Otherwise, V1TImode may be used to move and store such BLKmode values, which prevent RTL optimizations. gcc/ Backport from mainline PR target/87370 * config/i386/i386.c (construct_container): Use TImode for BLKmode values in 2 integer registers. gcc/testsuite/ Backport from mainline PR target/87370 * gcc.target/i386/pr87370.c: New test. Added: branches/gcc-7-branch/gcc/testsuite/gcc.target/i386/pr87370.c Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/i386/i386.c branches/gcc-7-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617415-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 17:31:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15482 invoked by alias); 9 Oct 2018 17:31:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15410 invoked by uid 48); 9 Oct 2018 17:31:42 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87370] [7/8/9 Regression] Inefficient return code of struct values Date: Tue, 09 Oct 2018 17:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution target_milestone Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00797.txt.bz2 Content-length: 499 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87370 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|9.0 |7.4 --- Comment #9 from H.J. Lu --- Fixed for GCC 9, GCC 8.3 and GCC 7.4. >>From gcc-bugs-return-617416-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 18:04:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18616 invoked by alias); 9 Oct 2018 18:04:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 18530 invoked by uid 55); 9 Oct 2018 18:04:04 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Tue, 09 Oct 2018 18:04:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00798.txt.bz2 Content-length: 1031 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 --- Comment #7 from Tobias Burnus --- Author: burnus Date: Tue Oct 9 18:03:31 2018 New Revision: 264990 URL: https://gcc.gnu.org/viewcvs?rev=3D264990&root=3Dgcc&view=3Drev Log: 2018-10-09 Tobias Burnus PR fortran/83522 * resolve.c (resolve_ref): Reject nonscalar substring references. PR fortran/83522 * gfortran.dg/actual_array_substr_1.f90: Add dg-error, change to dg-do compile. * gfortran.dg/actual_array_substr_2.f90: Ditto. * gfortran.dg/array_initializer_1.f90: Use array element not size-one section. * gfortran.dg/array_substring.f90: New. Added: trunk/gcc/testsuite/gfortran.dg/array_substring.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/resolve.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/actual_array_substr_1.f90 trunk/gcc/testsuite/gfortran.dg/actual_array_substr_2.f90 >>From gcc-bugs-return-617417-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 18:18:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48568 invoked by alias); 9 Oct 2018 18:18:01 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 46491 invoked by uid 48); 9 Oct 2018 18:17:56 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/87561] [9 Regression] 416.gamess is slower by ~10% starting from r264866 with -Ofast Date: Tue, 09 Oct 2018 18:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00799.txt.bz2 Content-length: 2291 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87561 --- Comment #5 from rsandifo at gcc dot gnu.org --- (In reply to Richard Biener from comment #4) > Another thing is the too complicated alias check where for >=20 > (gdb) p debug_data_reference (dr_a.dr) > #(Data Ref:=20 > # bb: 14=20 > # stmt: _28 =3D *xpqkl_172(D)[_27]; > # ref: *xpqkl_172(D)[_27]; > # base_object: *xpqkl_172(D); > # Access function 0: {(((integer(kind=3D8)) mkl_203 + 1) * stride.33_148= + > offset.34_149) + _480, +, stride.33_148}_6 > #) > $9 =3D void > (gdb) p debug_data_reference (dr_b.dr) > #(Data Ref:=20 > # bb: 14=20 > # stmt: *xpqkl_172(D)[_50] =3D _65; > # ref: *xpqkl_172(D)[_50]; > # base_object: *xpqkl_172(D); > # Access function 0: {(((integer(kind=3D8)) mkl_203 + 1) * stride.33_148= + > offset.34_149) + _486, +, stride.33_148}_6 > #) >=20 > we generate >=20 > (ssizetype) (((sizetype) ((((integer(kind=3D8)) mkl_203 + 1) * stride.33_= 148 + > offset.34_149) + (integer(kind=3D8)) (_19 + jpack_161)) + (sizetype) > stride.33_148) * 8) < (ssizetype) ((sizetype) ((((integer(kind=3D8)) mkl_= 203 + > 1) * stride.33_148 + offset.34_149) + (integer(kind=3D8)) (_22 + lpack_16= 4)) * > 8) || (ssizetype) (((sizetype) ((((integer(kind=3D8)) mkl_203 + 1) * > stride.33_148 + offset.34_149) + (integer(kind=3D8)) (_22 + lpack_164)) + > (sizetype) stride.33_148) * 8) < (ssizetype) ((sizetype) > ((((integer(kind=3D8)) mkl_203 + 1) * stride.33_148 + offset.34_149) + > (integer(kind=3D8)) (_19 + jpack_161)) * 8) >=20 > instead of simply _480 !=3D _486 (well, OK, not _that_ simple). >=20 > I guess we miss many of the "optimizations" we do when dealing with > alias checks for constant steps. In this case sth obvious would be > to special-case DR_STEP (dra) =3D=3D DR_STEP (drb). Richard? Not sure that would help much with the existing optimisations. I think the closest we get is create_intersect_range_checks_index, but "all" that avoids is scaling the index by the element size and adding the common base. I guess the expensive bit here is multiplying by the stride, but the index-based check would still do that. That said, create_intersect_range_checks_index does feel like it might be a bit *too* conservative (but I'm not brave enough to relax it) >>From gcc-bugs-return-617418-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 18:31:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10469 invoked by alias); 9 Oct 2018 18:31:38 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 4734 invoked by uid 48); 9 Oct 2018 18:31:34 -0000 From: "glisse at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: glisse at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00800.txt.bz2 Content-length: 1425 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #14 from Marc Glisse --- (In reply to Jonathan Wakely from comment #11) > Why does it think we're calling it with max_size()? _M_check_len contains a path (hopefully not taken, but gcc doesn't see that) where it returns max_size(), and we allocate 8 times the return value of _M_check_len. With optimizations, gcc thus sees a path where we allocate 8*max_size(), that is size_t(-1) rounded down to a multiple of 8. --- By the way, looking at an optimized dump of _M_realloc_insert, it almost st= arts with (_46 is the size): if (_46 =3D=3D 0) goto ; [34.00%] else goto ; [66.00%] [local count: 77922475]: __len_51 =3D _46 * 2; if (_46 > __len_51) goto ; [53.03%] else goto ; [46.97%] [local count: 36599951]: if (__len_51 > 2305843009213693951) goto ; [73.39%] else goto ; [26.61%] [local count: 9724245]: if (__len_51 !=3D 0) The tests _46 > __len_51 and __len_51 > 2305843009213693951 both check if t= he size is small enough, while the checks _46 =3D=3D 0 and __len_51 !=3D 0 bot= h check if the size is 0. That's a bit too much redundancy for error-checking code on = the hot path (I am not saying if that's the responsibility of the middle-end to optimize it, or of libstdc++ not to have it in the first place). >>From gcc-bugs-return-617419-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 18:57:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48191 invoked by alias); 9 Oct 2018 18:57:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 48144 invoked by uid 48); 9 Oct 2018 18:57:48 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzg3NTY5XSBOZXc6IGRlZmluaW5nIHR5cGUgaW4g4oCYc2l6ZW9m?= =?UTF-8?B?4oCZIGV4cHJlc3Npb24gaXMgaW52YWxpZCBpbiBDKysgcmVmZXJlbmNlcyB3?= =?UTF-8?B?cm9uZyBvcGVyYXRvcg==?= Date: Tue, 09 Oct 2018 18:57:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00801.txt.bz2 Content-length: 2356 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87569 Bug ID: 87569 Summary: defining type in =E2=80=98sizeof=E2=80=99 expression is= invalid in C++ references wrong operator Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- While enhancing the C parser to recognize a new built-in similar to alignof/sizeof/typeof I noticed the in_alignof, in_sizeof and in_typeof handling by -Wc++-compat isn't quite right. The warning code uses the in_x= xx counters to reference the operator whose operand is a type definition, like this: warning_at (loc, OPT_Wc___compat, "defining type in %qs expression is invalid in C++", (in_sizeof ? "sizeof" : (in_typeof ? "typeof" : "alignof"))); But this approach is inaccurate whew multiple counters are set because it f= ails to consider that the current operator may be different between the same cou= nter values. Below is a test case that shows the problem (note the warning ment= ions sizeof in both instances, even though only one of them defines a type in a sizeof operand; the other one defines it in a typeof operand). To accurate= ly reflect the current operator the code would need to maintain a data structu= re like a stack. It's not really a big deal but if one expects the message to accurately reflect the operator (e.g., when writing tests for a new operato= r), one realizes that this sort of accuracy is not possible with the current design. $ cat x.c && gcc -S -Wall -Wextra -Wc++-compat x.c int i =3D sizeof (__typeof (enum { e0 })); // type defined in typeof __typeof (sizeof (enum { e1 })) e; // type defined in sizeof x.c:1:32: warning: defining type in =E2=80=98sizeof=E2=80=99 expression is = invalid in C++ [-Wc++-compat] 1 | int i =3D sizeof (__typeof (enum { e0 })); // type defined in typeof | ^ x.c:3:24: warning: defining type in =E2=80=98sizeof=E2=80=99 expression is = invalid in C++ [-Wc++-compat] 3 | __typeof (sizeof (enum { e1 })) e; // type defined in sizeof | ^ >>From gcc-bugs-return-617420-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 19:08:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65243 invoked by alias); 9 Oct 2018 19:08:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 65169 invoked by uid 48); 9 Oct 2018 19:08:19 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87567] constexpr evaluation rejects call to non-constexpr function Date: Tue, 09 Oct 2018 19:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00802.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87567 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |mpolacek at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot= gnu.org >>From gcc-bugs-return-617421-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 20:56:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21934 invoked by alias); 9 Oct 2018 20:56:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 21641 invoked by uid 55); 9 Oct 2018 20:55:57 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Tue, 09 Oct 2018 20:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00803.txt.bz2 Content-length: 1806 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 --- Comment #6 from Will Schmidt --- Author: willschm Date: Tue Oct 9 20:55:25 2018 New Revision: 264994 URL: https://gcc.gnu.org/viewcvs?rev=3D264994&root=3Dgcc&view=3Drev Log: [gcc] 2018-10-09 Will Schmidt Backport from trunk. 2018-09-06 Will Schmidt PR target/86731 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Update logic around folding of vec_sl to handle out of range shift values. [testsuite] 2018-10-09 Will Schmidt Backport from trunk 2018-09-06 Will Schmidt PR target/86731 * gcc.target/powerpc/pr86731.c: New test. * gcc.target/powerpc/pr86731-longlong.c: New test. * gcc.target/powerpc/pr86731-fwrapv.c: New test. * gcc.target/powerpc/pr86731-fwrapv-longlong.c: New test. * gcc.target/powerpc/pr86731-nogimplefold.c: New test. * gcc.target/powerpc/pr86731-nogimplefold-longlong.c: New test. Added: =20=20=20 branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731-fwrapv-longl= ong.c branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731-fwrapv.c branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731-longlong= .c =20=20=20 branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731-nogimplefold= -longlong.c =20=20=20 branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731-nogimplefold= .c branches/gcc-8-branch/gcc/testsuite/gcc.target/powerpc/pr86731.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/config/rs6000/rs6000.c branches/gcc-8-branch/gcc/testsuite/ChangeLog >>From gcc-bugs-return-617422-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 21:03:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33460 invoked by alias); 9 Oct 2018 21:03:12 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 33398 invoked by uid 48); 9 Oct 2018 21:03:08 -0000 From: "willschm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/86731] [8/9 Regression] Miscompiles vec_sl at -O3 with -fwrapv on ppc64el Date: Tue, 09 Oct 2018 21:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: willschm at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: willschm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00804.txt.bz2 Content-length: 568 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86731 Will Schmidt changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Will Schmidt --- (In reply to Segher Boessenkool from comment #4) > Is this fixed now? Backport to 8 has been committed. should be done with this one, thanks. :-) >>From gcc-bugs-return-617423-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 21:16:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85193 invoked by alias); 9 Oct 2018 21:16:56 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 84815 invoked by uid 55); 9 Oct 2018 21:16:49 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84423] [6/7/8/9 Regression] [concepts] ICE with invalid using declaration Date: Tue, 09 Oct 2018 21:16:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00805.txt.bz2 Content-length: 1613 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D84423 --- Comment #6 from paolo at gcc dot gnu.org --- Author: paolo Date: Tue Oct 9 21:16:09 2018 New Revision: 264996 URL: https://gcc.gnu.org/viewcvs?rev=3D264996&root=3Dgcc&view=3Drev Log: /cp 2018-10-09 Paolo Carlini PR c++/84423 * pt.c (convert_template_argument): Immediately return error_mark_n= ode if the second argument is erroneous. * parser.c (cp_parser_type_id): Add location_t * parameter. (cp_parser_type_id_1): Likewise. (cp_parser_alias_declaration): Adjust cp_parser_type_id call, obtain the location of the type and save it. (cp_parser_template_type_arg): Adjust. (cp_parser_trailing_type_id): Likewise. * decl.c (grokdeclarator): Improve error message for 'auto' in alias declaration. /testsuite 2018-10-09 Paolo Carlini PR c++/84423 * g++.dg/concepts/pr84423-1.C: New. * g++.dg/concepts/pr84423-2.C: Likewise. * g++.dg/cpp0x/auto39.C: Test location too. * g++.dg/cpp0x/auto9.C: Likewise. * g++.dg/cpp1y/pr60384.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/concepts/pr84423-1.C trunk/gcc/testsuite/g++.dg/concepts/pr84423-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/cpp0x/auto39.C trunk/gcc/testsuite/g++.dg/cpp0x/auto9.C trunk/gcc/testsuite/g++.dg/cpp1y/pr60384.C >>From gcc-bugs-return-617424-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 22:03:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71131 invoked by alias); 9 Oct 2018 22:03:46 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 71077 invoked by uid 48); 9 Oct 2018 22:03:42 -0000 From: "nok.raven at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/87570] New: Rejects valid alias template usage (as a type pack size requirement) Date: Tue, 09 Oct 2018 22:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: nok.raven at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00806.txt.bz2 Content-length: 1932 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87570 Bug ID: 87570 Summary: Rejects valid alias template usage (as a type pack size requirement) Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: nok.raven at gmail dot com Target Milestone: --- MWE: ---- template using limit_argnum =3D T; template struct tuple { template tuple(limit_argnum&&...) {} }; tuple a(1, 2); GCC says: --------- :11:24: error: no matching function for call to 'tuple::tuple(int, int)' 11 | tuple a(1, 2); | ^ :8:5: note: candidate: 'template tuple::tuple(limit_argnum&& ...)' 8 | tuple(limit_argnum&&...) {} | ^~~~~ :8:5: note: template argument deduction/substitution failed: :11:24: note: mismatched types 'limit_argnum' and 'int' 11 | tuple a(1, 2); | ^ :5:8: note: candidate: 'constexpr tuple::tuple(const tuple&)' 5 | struct tuple | ^~~~~ :5:8: note: candidate expects 1 argument, 2 provided :5:8: note: candidate: 'constexpr tuple::tuple(tuple&&)' :5:8: note: candidate expects 1 argument, 2 provided Note that the same thing but with a function works: --------------------------------------------------- template using limit_argnum =3D T; template void foo(limit_argnum&&...) {} int main() { foo(1, 2); } Clang and MSVC are fine with both examples. >>From gcc-bugs-return-617425-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 22:40:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68152 invoked by alias); 9 Oct 2018 22:40:42 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 68049 invoked by uid 48); 9 Oct 2018 22:40:37 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/83522] ICE on invalid allocatable string reference, string(:)(:) Date: Tue, 09 Oct 2018 22:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00807.txt.bz2 Content-length: 501 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D83522 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #8 from Jakub Jelinek --- This patch caused lots of regressions in the testsuite, see e.g. http://gcc.gnu.org/ml/gcc-regression/2018-10/msg00062.html >>From gcc-bugs-return-617426-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 09 22:50:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88891 invoked by alias); 9 Oct 2018 22:50:02 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 88776 invoked by uid 48); 9 Oct 2018 22:49:58 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/87544] alloc-size-larger-than incorrectly triggered Date: Tue, 09 Oct 2018 22:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 8.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00808.txt.bz2 Content-length: 410 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D87544 --- Comment #15 from Jonathan Wakely --- Thanks Martin and Marc for the explanations. The warning sounds a lot more definite than "there is some possible execution where the value is too larg= e". The phrasing of the warning makes it look like that's the only possible val= ue. I'll try to take a look at the redundant checking. >>From gcc-bugs-return-617427-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Oct 10 00:34:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50869 invoked by alias); 10 Oct 2018 00:34:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 50798 invoked by uid 48); 10 Oct 2018 00:34:49 -0000 From: "Francois-R.Boyer at PolyMtl dot ca" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/86747] [8/9 Regression] rejects-valid with redundant friend declaration Date: Wed, 10 Oct 2018 00:34:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 8.2.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: Francois-R.Boyer at PolyMtl dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-10/txt/msg00809.txt.bz2 Content-length: 1661 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86747 Fran=C3=A7ois-R Boyer changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Francois-R.Boyer at PolyMt= l dot ca --- Comment #3 from Fran=C3=A7ois-R Boyer --- I'm not sure if this bug is related or if I should post it as a separate bug report. I have the same error messages, with a friend class, but in my cas= e it is not redundant, and happens in a much more complicated case. Here is the code: template struct A { template