https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84928 --- Comment #1 from Jonathan Wakely --- This isn't a bug, because that change has only been in the working draft for a few months, and is not part of any published standard yet. https://wg21.link/p0616R0 >From gcc-bugs-return-598018-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 01:16:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88591 invoked by alias); 18 Mar 2018 01:16: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 88509 invoked by uid 48); 18 Mar 2018 01:16:23 -0000 From: "helloqirun at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84929] New: ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Date: Sun, 18 Mar 2018 01:16: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.0 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-03/txt/msg02606.txt.bz2 Content-length: 2948 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84929 Bug ID: 84929 Summary: ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Product: gcc Version: 8.0 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 happens at -O3. "-O2" works fine. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/home/absozero/trunk/root-gcc/libexec/gcc/x86_64-pc-linux-gnu/8.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/home/absozero/trunk/root-gcc --enable-languages=c,c++ --disable-werror --enable-multilib Thread model: posix gcc version 8.0.1 20180317 (experimental) [trunk revision 258620] (GCC) $ gcc-trunk -O3 abc.c during GIMPLE pass: pcom abc.c: In function ‘fn1’: abc.c:2:6: internal compiler error: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 void fn1() { ^~~ 0x6f05ca tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9322 0x76fe1b analyze_siv_subscript_cst_affine ../../gcc/gcc/tree.h:3135 0x1514588 analyze_siv_subscript ../../gcc/gcc/tree-data-ref.c:3898 0x1514588 analyze_overlapping_iterations ../../gcc/gcc/tree-data-ref.c:4153 0x1514588 subscript_dependence_tester_1 ../../gcc/gcc/tree-data-ref.c:4694 0x1514a37 subscript_dependence_tester_1 ../../gcc/gcc/tree-data-ref.c:4690 0x1514a37 subscript_dependence_tester ../../gcc/gcc/tree-data-ref.c:4744 0x1514a37 compute_affine_dependence(data_dependence_relation*, loop*) ../../gcc/gcc/tree-data-ref.c:4803 0x151661c compute_all_dependences(vec, vec*, vec, bool) ../../gcc/gcc/tree-data-ref.c:4870 0x1516e0a compute_data_dependences_for_loop(loop*, bool, vec*, vec*, vec*) ../../gcc/gcc/tree-data-ref.c:5269 0xd7d589 tree_predictive_commoning_loop ../../gcc/gcc/tree-predcom.c:3190 0xd805dd tree_predictive_commoning() ../../gcc/gcc/tree-predcom.c:3312 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $ cat abc.c int a[4]; void fn1() { unsigned long b = 7818038963515661296; for (;; b++) a[0xA699ECD2C348A3A0] = a[b]; } >From gcc-bugs-return-598019-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 02:00:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40006 invoked by alias); 18 Mar 2018 02:00: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 39364 invoked by uid 48); 18 Mar 2018 02:00:50 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies Date: Sun, 18 Mar 2018 02:00: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.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle 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-03/txt/msg02607.txt.bz2 Content-length: 554 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310 --- Comment #23 from Jerry DeLisle --- Ok I see it. In fbuf.c (fbuf_alloc): /* Round up to nearest multiple of the current buffer length. */ newlen = ((u->fbuf->pos + len) / u->fbuf->len + 1) *u->fbuf->len; u->fbuf->buf = xrealloc (u->fbuf->buf, newlen); u->fbuf->len = newlen; We are rounding up to make sure we have enough buffer. The size newlen is calculated to 2147484160 which exceeds the limit of 2147483647 and xrealloc fails. >From gcc-bugs-return-598020-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 04:34:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76907 invoked by alias); 18 Mar 2018 04:34: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 76841 invoked by uid 48); 18 Mar 2018 04:34:11 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies Date: Sun, 18 Mar 2018 04: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: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle 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-03/txt/msg02608.txt.bz2 Content-length: 725 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310 --- Comment #24 from Jerry DeLisle --- (In reply to Jerry DeLisle from comment #23) > Ok I see it. > > In fbuf.c (fbuf_alloc): > > /* Round up to nearest multiple of the current buffer length. */ > newlen = ((u->fbuf->pos + len) / u->fbuf->len + 1) *u->fbuf->len; > u->fbuf->buf = xrealloc (u->fbuf->buf, newlen); > u->fbuf->len = newlen; > > We are rounding up to make sure we have enough buffer. The size newlen is > calculated to 2147484160 which exceeds the limit of 2147483647 and xrealloc > fails. There is a 2 GB limit on 32 bit processes, so this is not a bug. I suggest this be closed. >From gcc-bugs-return-598021-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 06:35:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 97322 invoked by alias); 18 Mar 2018 06:35: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 94113 invoked by uid 48); 18 Mar 2018 06:35:50 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410 Date: Sun, 18 Mar 2018 06: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: 7.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: kargl at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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-03/txt/msg02609.txt.bz2 Content-length: 552 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P4 Status|NEW |ASSIGNED CC| |kargl at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org --- Comment #6 from kargl at gcc dot gnu.org --- I have patch. >From gcc-bugs-return-598022-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 07:02:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51767 invoked by alias); 18 Mar 2018 07:02: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 51596 invoked by uid 48); 18 Mar 2018 07:01:43 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Sun, 18 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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-03/txt/msg02610.txt.bz2 Content-length: 375 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 --- Comment #19 from Jakub Jelinek --- Sorry, my fault, forgot about -da, can you repeat with that option as well? Your optimized dump is identical to my, so if there is a difference (and there must be, because the function in question isn't called for me), it must be during the RTL passes. >From gcc-bugs-return-598023-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 07:19:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80603 invoked by alias); 18 Mar 2018 07:19: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 78110 invoked by uid 48); 18 Mar 2018 07:19:11 -0000 From: "su at cs dot ucdavis.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Sun, 18 Mar 2018 07: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: su at cs dot ucdavis.edu 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-03/txt/msg02611.txt.bz2 Content-length: 257 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 --- Comment #20 from Zhendong Su --- Created attachment 43695 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43695&action=edit output from "gcctk -O3 -S -da small.c" >From gcc-bugs-return-598024-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 09:21:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79760 invoked by alias); 18 Mar 2018 09:21: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 79688 invoked by uid 55); 18 Mar 2018 09:21:21 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/79929] [7 Regression] Bogus Warning: '__builtin_memset': specified size 4294967291 exceeds maximum object size 2147483647 Date: Sun, 18 Mar 2018 09: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: 7.0.1 X-Bugzilla-Keywords: diagnostic 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: 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-03/txt/msg02612.txt.bz2 Content-length: 493 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79929 --- Comment #29 from Thomas Koenig --- Author: tkoenig Date: Sun Mar 18 09:20:37 2018 New Revision: 258630 URL: https://gcc.gnu.org/viewcvs?rev=258630&root=gcc&view=rev Log: 2018-03-18 Thomas Koenig PR fortran/79929 * gfortran.dg/warn_concat.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/warn_concat.f90 Modified: trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598025-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 10:26:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120988 invoked by alias); 18 Mar 2018 10:26: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 120960 invoked by uid 55); 18 Mar 2018 10:26:02 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84913] ICE vectorising chained conditional reduction Date: Sun, 18 Mar 2018 10:26: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: unknown X-Bugzilla-Keywords: 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: 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-03/txt/msg02613.txt.bz2 Content-length: 976 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84913 --- Comment #2 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Sun Mar 18 10:25:29 2018 New Revision: 258631 URL: https://gcc.gnu.org/viewcvs?rev=258631&root=gcc&view=rev Log: Don't try to vectorise COND_EXPR reduction chains (PR 84913) The testcase ICEd for both SVE and AVX512 because we were trying to vectorise a chain of COND_EXPRs as a reduction and getting confused by reduc_index == -1. 2018-03-18 Richard Sandiford gcc/ PR tree-optimization/84913 * tree-vect-loop.c (vectorizable_reduction): Don't try to vectorize chains of COND_EXPRs. gcc/testsuite/ PR tree-optimization/84913 * gfortran.dg/vect/pr84913.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/vect/pr84913.f90 Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vect-loop.c >From gcc-bugs-return-598026-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 10:27:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122001 invoked by alias); 18 Mar 2018 10:27: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 121915 invoked by uid 48); 18 Mar 2018 10:26:56 -0000 From: "rsandifo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84913] ICE vectorising chained conditional reduction Date: Sun, 18 Mar 2018 10: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rsandifo 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-03/txt/msg02614.txt.bz2 Content-length: 467 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84913 rsandifo at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from rsandifo at gcc dot gnu.org --- Patch applied. >From gcc-bugs-return-598027-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 11:05:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68176 invoked by alias); 18 Mar 2018 11:05: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 68101 invoked by uid 48); 18 Mar 2018 11:05:12 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Sun, 18 Mar 2018 11:05: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.0.1 X-Bugzilla-Keywords: ice-on-valid-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: --- 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-03/txt/msg02615.txt.bz2 Content-length: 2218 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |NEW --- Comment #21 from Jakub Jelinek --- Ah, ok, so the difference is in your case for some reason I don't understand you get: ;; b[2180000000000000000][8] = 1; (insn 28 27 29 (set (reg/f:DI 104) (symbol_ref:DI ("b") [flags 0x2] )) "small.c":9 -1 (nil)) (insn 29 28 30 (set (reg:DI 105) (const_int 162675373468811328 [0x241f063e9500040])) "small.c":9 -1 (nil)) (insn 30 29 31 (parallel [ (set (reg/f:DI 106) (plus:DI (reg/f:DI 104) (reg:DI 105))) (clobber (reg:CC 17 flags)) ]) "small.c":9 -1 (nil)) (insn 31 30 0 (set (mem:DI (reg/f:DI 106) [2 b S8 A128]) (const_int 1 [0x1])) "small.c":9 -1 (nil)) while I get: ;; b[2180000000000000000][8] = 1; (insn 28 27 29 (set (reg/f:DI 104) (symbol_ref:DI ("b") [flags 0x2] )) "small.c":9 -1 (nil)) (insn 29 28 30 (set (reg:DI 105) (const_int -9060696663385964480 [0x8241f063e9500040])) "small.c":9 -1 (nil)) (insn 30 29 31 (parallel [ (set (reg/f:DI 106) (plus:DI (reg/f:DI 104) (reg:DI 105))) (clobber (reg:CC 17 flags)) ]) "small.c":9 -1 (nil)) (insn 31 30 0 (set (mem:DI (reg/f:DI 106) [2 b S8 A128]) (const_int 1 [0x1])) "small.c":9 -1 (nil)) Note that the topmost bit is lost. Anyway, if I write what I see in your dump: int a; long b[1][9]; typedef long V __attribute__((vector_size (16), may_alias)); void foo () { V *c = (V *) ((char *) b + -9060696663385964544); *c = (V) { 1, 1 }; c++; *c = (V) { 1, 1 }; c++; *c = (V) { 1, 1 }; c++; *c = (V) { 1, 1 }; long __attribute__((may_alias)) *d = (long *) ((char *) b + 162675373468811328); *d = 1; } then I get the ICE you are getting, so I'll have a look at that. >From gcc-bugs-return-598028-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 11:09:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96252 invoked by alias); 18 Mar 2018 11:09: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 96140 invoked by uid 48); 18 Mar 2018 11:09:01 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] [8 Regression] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Sun, 18 Mar 2018 11: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status assigned_to 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-03/txt/msg02616.txt.bz2 Content-length: 956 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Target Milestone|--- |8.0 Summary|ICE on valid code at -O3 in |[8 Regression] ICE on valid |64-bit mode on |code at -O3 in 64-bit mode |x86_64-linux-gnu: in |on x86_64-linux-gnu: in |smallest_mode_for_size, at |smallest_mode_for_size, at |stor-layout.c:355 |stor-layout.c:355 --- Comment #22 from Jakub Jelinek --- On #c21 this regressed with r255692. >From gcc-bugs-return-598029-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 11:13:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99929 invoked by alias); 18 Mar 2018 11: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 99852 invoked by uid 48); 18 Mar 2018 11:13:12 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/79929] [7 Regression] Bogus Warning: '__builtin_memset': specified size 4294967291 exceeds maximum object size 2147483647 Date: Sun, 18 Mar 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: fortran X-Bugzilla-Version: 7.0.1 X-Bugzilla-Keywords: diagnostic 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: 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-03/txt/msg02617.txt.bz2 Content-length: 155 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79929 --- Comment #30 from Dominique d'Humieres --- Fixed by revision r256284? >From gcc-bugs-return-598030-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 12:32:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123458 invoked by alias); 18 Mar 2018 12:32: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 123420 invoked by uid 48); 18 Mar 2018 12:32:37 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53281] poor error message for calling a non-const method from a const object Date: Sun, 18 Mar 2018 12: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: 4.6.3 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to 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-03/txt/msg02618.txt.bz2 Content-length: 4223 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53281 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |dmalcolm at gcc dot gnu.org Target Milestone|--- |9.0 --- Comment #6 from David Malcolm --- Another example, given by reddit user "agcpp" here: https://www.reddit.com/r/cpp/comments/84op5c/usability_improvements_in_gcc_8/dvvry8y/ > I'm little late to the party but want to add another example > where diagnostics will improve overall experience - > https://godbolt.org/g/kGKowz > > The diagnostics produced by MSVC here are just perfect, clang does > seem a bit verbose but readable otoh gcc confuses anyone who > hasn't been writing c++ for about 5 years :D ************************************************************ Code at that godbolt link: #include using std::string; void func(string &s) { s.clear(); } int main() { const string s = "20"; func(s); } ************************************************************ MSVC 19 2017: /opt/compiler-explorer/windows/19.10.25017/lib/native/include/xlocale(314): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc (10): error C2664: 'void func(std::string &)': cannot convert argument 1 from 'const std::string' to 'std::string &' (10): note: Conversion loses qualifiers ************************************************************ clang trunk: :10:5: error: no matching function for call to 'func' func(s); ^~~~ :4:6: note: candidate function not viable: 1st argument ('const std::__cxx11::string' (aka 'const basic_string')) would lose const qualifier void func(string &s) { ^ 1 error generated. Compiler returned: 1 ************************************************************ gcc trunk: : In function 'int main()': :10:10: error: binding reference of type 'std::__cxx11::string&' {aka 'std::__cxx11::basic_string&'} to 'const string' {aka 'const std::__cxx11::basic_string'} discards qualifiers func(s); ^ :4:6: note: initializing argument 1 of 'void func(std::__cxx11::string&)' void func(string &s) { ^~~~ Compiler returned: 1 ************************************************************ Part of the verbosity here relates to PR c++/84897 (reporting std::string rather than std::__cxx11::string). We're emitting a 28 words/~170 chars to seemingly talk about how: Compiler: "did you know that std::string is actually a std::basic_string?" mumble mumble, something about a qualifier. where the user has to spot the most pertinent word: "const" appearing in the 2nd pair of types, absent in the 1st pair of types. Among other issues, the aka seems redundant/unhelpful here. It seems best to special-case the "const member fn/param called with non-const" cases and to report them directly in terms of the types in user's source with and without "const", and to be explicit about which qualifier(s) are lost. We should also underline the param, or the "const" token. Proposed output for the above: error: binding reference of type 'std::string&' to 'const string' discards 'const' qualifier func(s); ^ note: initializing non-'const' argument 1 of 'void func(std::string&)' void func(string &s) { ~~~~~~~^~ (though even that is a bit "compiler-ese"; might want to talk about it being a call up-front) Proposed output for the case in comment #3: cv.cc: In member function ‘void Foo::bar2(const Foo&)’: cv.cc:4:26: error: passing ‘const Foo’ as ‘this’ argument discards 'const' qualifier [-fpermissive] foo.bar1(); ^ cv.cc:2:14: note: in call to ‘void Foo::bar1()’ which is non-const void bar1() {} ^~~~ I hope to fix these for gcc 9. >From gcc-bugs-return-598031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 12:37:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11383 invoked by alias); 18 Mar 2018 12:37: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 11311 invoked by uid 48); 18 Mar 2018 12:37:04 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53281] poor error message for calling a non-const method from a const object Date: Sun, 18 Mar 2018 12:37: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.6.3 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm 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-03/txt/msg02619.txt.bz2 Content-length: 329 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53281 --- Comment #7 from David Malcolm --- (In reply to David Malcolm from comment #6) [...] > We should also underline the param, or the "const" token. (actually, if the member function or param is 'const', it's not a problem, I think. -ENOCOFFEE) >From gcc-bugs-return-598032-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 12:55:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47033 invoked by alias); 18 Mar 2018 12:55: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 46952 invoked by uid 48); 18 Mar 2018 12:55:35 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84890] Overly verbose notes for missing headers Date: Sun, 18 Mar 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: 8.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm at gcc dot gnu.org X-Bugzilla-Status: NEW 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-03/txt/msg02620.txt.bz2 Content-length: 451 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890 --- Comment #5 from David Malcolm --- A similar sentiment to comment #1: https://www.reddit.com/r/cpp/comments/84op5c/usability_improvements_in_gcc_8/dvu7n5e/ > I find that "did you forget to '#include" is kind of personal message > and it's quite clear that you forget to include something otherwise > this notification would not appear, so it's like mocking you. >From gcc-bugs-return-598033-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 13:43:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 108744 invoked by alias); 18 Mar 2018 13:43: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 108682 invoked by uid 48); 18 Mar 2018 13:43:03 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77680] [6/7/8 Regression] [F03] ICE in ctor_for_folding, at varpool.c:419 Date: Sun, 18 Mar 2018 13:43: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 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: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 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-03/txt/msg02621.txt.bz2 Content-length: 839 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77680 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |tkoenig at gcc dot gnu.org Resolution|--- |FIXED --- Comment #4 from Thomas Koenig --- This is now correctly rejected: ig25@flaemmli:/tmp> cat d.f90 program p bind(c) :: x call s(x) end ig25@flaemmli:/tmp> gfortran d.f90 d.f90:2:15: bind(c) :: x 1 Error: Variable ‘x’ at (1) cannot be BIND(C) because it is neither a COMMON block nor declared at the module level scope Closing. >From gcc-bugs-return-598034-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 13:45:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110799 invoked by alias); 18 Mar 2018 13:45: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 110724 invoked by uid 48); 18 Mar 2018 13:45:32 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/71066] [6/7/8 Regression] ICE in set_loop_bounds, at fortran/trans-array.c:4680 Date: Sun, 18 Mar 2018 13:45: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: ice-on-valid-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: 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-03/txt/msg02622.txt.bz2 Content-length: 478 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71066 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #5 from Thomas Koenig --- OK, so the first example is indeed invalid. What about the second one? I don't speak Coarray. >From gcc-bugs-return-598035-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 13:47:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115112 invoked by alias); 18 Mar 2018 13:47: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 115067 invoked by uid 48); 18 Mar 2018 13:47:11 -0000 From: "hotguest1 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84930] New: Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation Date: Sun, 18 Mar 2018 13:47: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: hotguest1 at hotmail 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-03/txt/msg02623.txt.bz2 Content-length: 1648 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 Bug ID: 84930 Summary: Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: hotguest1 at hotmail dot com Target Milestone: --- We can do this in both GCC and clang std::array, 2> arr_from_cstr1{{ {{"abcdefghi"}}, {{"abcdefghi"}} }}; std::array arr_from_cstr2{{ {"abcdefghi"}, {"abcdefghi"} }}; std::vector > vec_from_direct{{ {{ 'a','b','c','d','e','f','g','h','i','\0' }}, {{ 'a','b','c','d','e','f','g','h','i','\0' }} }}; std::vector vec_from_ctor{{ std::array{ {"abcdefghi"} }, std::array{ {"abcdefghi"} } }}; We can't do this in GCC but can do in clang std::vector > vec_from_ctr1{{ {{"abcdefghi"}}, {{"abcdefghi"}} }}; struct A { std::array x; A(std::array arr) : x(arr) {} }; A struct_from_ctr1{ {{"abcdefghi"}} }; You may see the error details in CE (tested with gcc 7.3): https://godbolt.org/g/zV6dHd I'm sorry that I can't describe the scenario good enough. >From gcc-bugs-return-598036-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 14:00:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10741 invoked by alias); 18 Mar 2018 14:00: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 10612 invoked by uid 48); 18 Mar 2018 14:00:32 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/79685] [6/7/8 Regression] ICE on valid code in gfc_match_structur_constructor Date: Sun, 18 Mar 2018 14:00: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: ice-on-valid-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: 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-03/txt/msg02624.txt.bz2 Content-length: 712 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79685 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig --- The problem seems to be in the renaming, the test case module omega_color implicit none type omega_color_factor integer :: i end type end module module foo use omega_color implicit none type(omega_color_factor) :: table_color_factors data table_color_factors / omega_color_factor(1) / end module works. >From gcc-bugs-return-598037-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 15:55:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72973 invoked by alias); 18 Mar 2018 15:55: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 72897 invoked by uid 48); 18 Mar 2018 15:55:06 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/79929] [7 Regression] Bogus Warning: '__builtin_memset': specified size 4294967291 exceeds maximum object size 2147483647 Date: Sun, 18 Mar 2018 15:55: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: diagnostic 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: 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-03/txt/msg02625.txt.bz2 Content-length: 465 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79929 --- Comment #31 from Thomas Koenig --- (In reply to Dominique d'Humieres from comment #30) > Fixed by revision r256284? r256284 is OK, r256283 fails. We cannot backport r256284 because this is the ABI change for long string lengths. So, this is a candidate for "RESOLVED FIXED" unless somebody comes up with an independent way to fix this (but frankly, I wouldn't try to do it). >From gcc-bugs-return-598038-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 16:34:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19801 invoked by alias); 18 Mar 2018 16:34: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 19749 invoked by uid 55); 18 Mar 2018 16:34:28 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65453] ICE in build_function_decl, at fortran/trans-decl.c:2001 Date: Sun, 18 Mar 2018 16: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: 5.0 X-Bugzilla-Keywords: diagnostic, error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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-03/txt/msg02626.txt.bz2 Content-length: 711 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65453 --- Comment #3 from kargl at gcc dot gnu.org --- Author: kargl Date: Sun Mar 18 16:33:55 2018 New Revision: 258632 URL: https://gcc.gnu.org/viewcvs?rev=258632&root=gcc&view=rev Log: 2018-03-18 Steven G. Kargl PR fortran/65453 * decl.c (get_proc_name): Catch clash between a procedure statement and a contained subprogram 2018-03-18 Steven G. Kargl PR fortran/65453 * gfortran.dg/pr65453.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr65453.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598039-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:16:19 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75777 invoked by alias); 18 Mar 2018 17:16: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 75644 invoked by uid 48); 18 Mar 2018 17:16:12 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies Date: Sun, 18 Mar 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: fortran X-Bugzilla-Version: 5.1.1 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: jvdelisle 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-03/txt/msg02627.txt.bz2 Content-length: 1211 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED CC| |tkoenig at gcc dot gnu.org Resolution|--- |FIXED --- Comment #25 from Thomas Koenig --- (In reply to Jerry DeLisle from comment #24) > (In reply to Jerry DeLisle from comment #23) > > Ok I see it. > > > > In fbuf.c (fbuf_alloc): > > > > /* Round up to nearest multiple of the current buffer length. */ > > newlen = ((u->fbuf->pos + len) / u->fbuf->len + 1) *u->fbuf->len; > > u->fbuf->buf = xrealloc (u->fbuf->buf, newlen); > > u->fbuf->len = newlen; > > > > We are rounding up to make sure we have enough buffer. The size newlen is > > calculated to 2147484160 which exceeds the limit of 2147483647 and xrealloc > > fails. > > There is a 2 GB limit on 32 bit processes, so this is not a bug. I suggest > this be closed. I concur. Closing accordingly. >From gcc-bugs-return-598040-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:21:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80878 invoked by alias); 18 Mar 2018 17:21: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 80840 invoked by uid 48); 18 Mar 2018 17:21:34 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] New: Expansion of array constructor with constant implied-do-object goes sideways Date: Sun, 18 Mar 2018 17:21: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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-03/txt/msg02628.txt.bz2 Content-length: 478 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 Bug ID: 84931 Summary: Expansion of array constructor with constant implied-do-object goes sideways Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: kargl at gcc dot gnu.org Target Milestone: --- >From gcc-bugs-return-598041-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:22:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81928 invoked by alias); 18 Mar 2018 17:22: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 81862 invoked by uid 48); 18 Mar 2018 17:22:33 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/79929] [7 Regression] Bogus Warning: '__builtin_memset': specified size 4294967291 exceeds maximum object size 2147483647 Date: Sun, 18 Mar 2018 17: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: 7.0.1 X-Bugzilla-Keywords: diagnostic 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: 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-03/txt/msg02629.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79929 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #32 from Thomas Koenig --- So, fixed in gcc-8, backport too invasive / not needed for gcc-7. >From gcc-bugs-return-598042-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:30:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88086 invoked by alias); 18 Mar 2018 17:30: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 87886 invoked by uid 48); 18 Mar 2018 17:29:59 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] Expansion of array constructor with constant implied-do-object goes sideways Date: Sun, 18 Mar 2018 17: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: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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-03/txt/msg02630.txt.bz2 Content-length: 1580 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-18 Ever confirmed|0 |1 --- Comment #1 from kargl at gcc dot gnu.org --- The following code does the correct thing with an integer array 'y'. program test implicit none integer, parameter :: n = 65536 integer, dimension(n) :: y integer*4 :: i y = (/ (1, i=1, n) /) if (y(2) /= 1) stop 1 end program test The expansion of the array constructor is implemented by creating a temporary array and filling it with '1'. The temporary array is then copied into 'y'. This however does sideways program test implicit none integer, parameter :: n = 65536 real, dimension(n) :: y integer*4 :: i y = (/ (1, i=1, n) /) if (y(2) /= 1) stop 1 end program test A temporary array is created, but only the first element of the temporary array is initialized to 1. The temporary array is then copied into 'y', except the temporary array has not assigned values for tmp(2:65536). Tree dumps are here https://gcc.gnu.org/ml/fortran/2018-03/msg00096.html Problem found on Stack Overflow https://stackoverflow.com/questions/49330816/strange-initialization-behavior-for-an-array-constructor-with-implied-do-in-gfor >From gcc-bugs-return-598043-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:47:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11516 invoked by alias); 18 Mar 2018 17:47: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 11463 invoked by uid 48); 18 Mar 2018 17:47:45 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies Date: Sun, 18 Mar 2018 17: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: 5.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle 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-03/txt/msg02631.txt.bz2 Content-length: 226 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310 --- Comment #26 from Dominique d'Humieres --- > I concur. Closing accordingly. I disagree: if there is a limit, gfortran should emit an error. >From gcc-bugs-return-598044-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 17:52:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43066 invoked by alias); 18 Mar 2018 17:52: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 43001 invoked by uid 55); 18 Mar 2018 17:52:30 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410 Date: Sun, 18 Mar 2018 17:52: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 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: kargl 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-03/txt/msg02632.txt.bz2 Content-length: 975 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414 --- Comment #7 from kargl at gcc dot gnu.org --- Author: kargl Date: Sun Mar 18 17:51:57 2018 New Revision: 258633 URL: https://gcc.gnu.org/viewcvs?rev=258633&root=gcc&view=rev Log: 2018-03-18 Steven G. Kargl PR fortran/77414 * decl.c (get_proc_name): Check for a subroutine re-defined in the contain portion of a subroutine. Change language of existing error message to better describe the issue. While here fix whitespace issues. 2018-03-18 Steven G. Kargl PR fortran/77414 * gfortran.dg/pr77414.f90: New test. * gfortran.dg/internal_references_1.f90: Adjust error message. Added: trunk/gcc/testsuite/gfortran.dg/pr77414.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/internal_references_1.f90 >From gcc-bugs-return-598045-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:09:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81092 invoked by alias); 18 Mar 2018 18:09: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 81059 invoked by uid 48); 18 Mar 2018 18:09:32 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84932] New: i386/cpuinfo.h:293: 4 * bad bitshifts ? Date: Sun, 18 Mar 2018 18:09: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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-03/txt/msg02633.txt.bz2 Content-length: 1316 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84932 Bug ID: 84932 Summary: i386/cpuinfo.h:293: 4 * bad bitshifts ? Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- [trunk/libgcc/config/i386/cpuinfo.c:293]: (error) Shifting 32-bit value by 32 bits is undefined behaviour [trunk/libgcc/config/i386/cpuinfo.c:295]: (error) Shifting 32-bit value by 33 bits is undefined behaviour [trunk/libgcc/config/i386/cpuinfo.c:297]: (error) Shifting 32-bit value by 34 bits is undefined behaviour [trunk/libgcc/config/i386/cpuinfo.c:299]: (error) Shifting 32-bit value by 35 bits is undefined behaviour Source code is if (ecx & bit_GFNI) features |= (1 << FEATURE_GFNI); if (ecx & bit_VPCLMULQDQ) features |= (1 << FEATURE_VPCLMULQDQ); if (ecx & bit_AVX512VNNI) features |= (1 << FEATURE_AVX512VNNI); if (ecx & bit_AVX512BITALG) features |= (1 << FEATURE_AVX512BITALG); There are more than 32 features. 1UL would be a better bitmask. Local variable "features" could do with moving from int to size_t. >From gcc-bugs-return-598046-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:13:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100706 invoked by alias); 18 Mar 2018 18:13: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 100659 invoked by uid 48); 18 Mar 2018 18:13:28 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] Expansion of array constructor with constant implied-do-object goes sideways Date: Sun, 18 Mar 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: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: wrong-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-03/txt/msg02634.txt.bz2 Content-length: 167 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 --- Comment #2 from Dominique d'Humieres --- Confirmed from 4.3.1 up to trunk (8.0). >From gcc-bugs-return-598047-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:29:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38915 invoked by alias); 18 Mar 2018 18:29: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 38890 invoked by uid 48); 18 Mar 2018 18:29:24 -0000 From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84932] i386/cpuinfo.h:293: 4 * bad bitshifts ? Date: Sun, 18 Mar 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: target X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail 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-03/txt/msg02635.txt.bz2 Content-length: 485 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84932 David Binderman changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jkoval at gcc dot gnu.org --- Comment #1 from David Binderman --- Revision 258551 looks related. Maybe Julia can offer some assistance with this possible problem. >From gcc-bugs-return-598048-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:38:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72469 invoked by alias); 18 Mar 2018 18:38: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 72419 invoked by uid 48); 18 Mar 2018 18:38:26 -0000 From: "jvdelisle at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/66310] Problems with intrinsic repeat for large number of copies Date: Sun, 18 Mar 2018 18:38: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.1.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jvdelisle at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jvdelisle 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-03/txt/msg02636.txt.bz2 Content-length: 510 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66310 --- Comment #27 from Jerry DeLisle --- (In reply to Dominique d'Humieres from comment #26) > > I concur. Closing accordingly. > > I disagree: if there is a limit, gfortran should emit an error. Well you are hitting on an OS limit, we could put a check in the runtime but how do we test that -m32 was used? The error message I get now is from our memory.c: if (p == NULL) os_error ("Memory allocation failed"); >From gcc-bugs-return-598049-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:57:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125872 invoked by alias); 18 Mar 2018 18:57: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 125801 invoked by uid 48); 18 Mar 2018 18:56:58 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] New: [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Sun, 18 Mar 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: tree-optimization X-Bugzilla-Version: unknown 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 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-03/txt/msg02637.txt.bz2 Content-length: 2358 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 Bug ID: 84933 Summary: [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: law at gcc dot gnu.org, msebor at gcc dot gnu.org Target Milestone: --- Following ICEs: $ cat /tmp/ice.ii enum a {}; int *d; int b, e, f; a c, g; class h { virtual unsigned i(); }; class j : h { unsigned i() { for (;;) { b = c <= 0; if (b) e = *d; b = g && c; if (b) f = *d; } } }; void k() { new j; } $ gcc -fstrict-enums -O3 -fno-inline /tmp/ice.ii -c during GIMPLE pass: printf-return-value /tmp/ice.ii: In member function ‘virtual unsigned int j::i()’: /tmp/ice.ii:9:12: internal compiler error: in set_value_range, at tree-vrp.c:288 unsigned i() { ^ c0x108f87f set_value_range(value_range*, value_range_type, tree_node*, tree_node*, bitmap_head*) ../../gcc/tree-vrp.c:288 0x108f966 set_and_canonicalize_value_range(value_range*, value_range_type, tree_node*, tree_node*, bitmap_head*) ../../gcc/tree-vrp.c:433 0x108fffc vrp_intersect_ranges_1 ../../gcc/tree-vrp.c:6297 0x108fffc vrp_intersect_ranges(value_range*, value_range*) ../../gcc/tree-vrp.c:6334 0x1112b45 vr_values::extract_range_for_var_from_comparison_expr(tree_node*, tree_code, tree_node*, tree_node*, value_range*) ../../gcc/vr-values.c:682 0x15b8bf5 evrp_range_analyzer::try_find_new_range(tree_node*, tree_node*, tree_code, tree_node*) ../../gcc/gimple-ssa-evrp-analyze.c:89 0x15b9a62 evrp_range_analyzer::record_ranges_from_incoming_edge(basic_block_def*) ../../gcc/gimple-ssa-evrp-analyze.c:198 0x15ba06c evrp_range_analyzer::enter(basic_block_def*) ../../gcc/gimple-ssa-evrp-analyze.c:75 0x15dc8eb before_dom_children ../../gcc/gimple-ssa-sprintf.c:4018 0x159a0d7 dom_walker::walk(basic_block_def*) ../../gcc/domwalk.c:353 0x15d567a execute ../../gcc/gimple-ssa-sprintf.c:4053 >From gcc-bugs-return-598050-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 18:57:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126651 invoked by alias); 18 Mar 2018 18:57: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 126579 invoked by uid 48); 18 Mar 2018 18:57:15 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Sun, 18 Mar 2018 18:57: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: unknown 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cf_known_to_work 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-03/txt/msg02638.txt.bz2 Content-length: 619 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-18 Known to work| |7.3.0 Target Milestone|--- |8.0 Ever confirmed|0 |1 Known to fail| |8.0 >From gcc-bugs-return-598051-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:08:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12171 invoked by alias); 18 Mar 2018 19:08:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 12099 invoked by uid 48); 18 Mar 2018 19:08:05 -0000 From: "law at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Sun, 18 Mar 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: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: law at redhat dot com 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: 8.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-03/txt/msg02639.txt.bz2 Content-length: 1101 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 Jeffrey A. Law changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |law at redhat dot com --- Comment #1 from Jeffrey A. Law --- Looks like a bug in vrp_intersect_ranges_1 or its children to me. We call vrp_intersect_range_1 with: (gdb) p debug_value_range (vr0) ~[0, 2147483647] EQUIVALENCES: { c.0_1 } (1 elements) $16 = void (gdb) p debug_value_range (vr1) ~[1, 2147483647] EQUIVALENCES: { c.0_1 } (1 elements) $17 = void Which then proceeds to call set_and_canonicalize_value_range with min/max as: (gdb) p debug_tree (min) constant 2147483648> $18 = void (gdb) p debug_tree (max) constant 1> $19 = void Which looks bogus to me. I'll have to look deeper tues/wed if nobody gets to it before then.. >From gcc-bugs-return-598052-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:09:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13224 invoked by alias); 18 Mar 2018 19: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 13192 invoked by uid 48); 18 Mar 2018 19:09:04 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84932] [8 Regression] i386/cpuinfo.h:293: 4 * bad bitshifts ? Date: Sun, 18 Mar 2018 19: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: 8.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: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority bug_status cf_reconfirmed_on cc target_milestone short_desc 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-03/txt/msg02640.txt.bz2 Content-length: 923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84932 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-18 CC| |marxin at gcc dot gnu.org Target Milestone|--- |8.0 Summary|i386/cpuinfo.h:293: 4 * |[8 Regression] |bad bitshifts ? |i386/cpuinfo.h:293: 4 * | |bad bitshifts ? Ever confirmed|0 |1 Known to fail| |8.0 --- Comment #2 from Martin Liška --- Confirmed. >From gcc-bugs-return-598053-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:14:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25311 invoked by alias); 18 Mar 2018 19:14: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 25265 invoked by uid 48); 18 Mar 2018 19:14:21 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84929] [8 Regression] ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Date: Sun, 18 Mar 2018 19:14: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.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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_known_to_work keywords cf_reconfirmed_on cc everconfirmed short_desc target_milestone 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-03/txt/msg02641.txt.bz2 Content-length: 1507 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84929 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Known to work| |7.3.0 Keywords| |ice-on-valid-code Last reconfirmed| |2018-03-18 CC| |marxin at gcc dot gnu.org, | |rguenth at gcc dot gnu.org Ever confirmed|0 |1 Summary|ICE at -O3 on valid code on |[8 Regression] ICE at -O3 |x86_64-linux-gnu: tree |on valid code on |check: expected |x86_64-linux-gnu: tree |polynomial_chrec, have |check: expected |nop_expr in |polynomial_chrec, have |analyze_siv_subscript_cst_a |nop_expr in |ffine, at |analyze_siv_subscript_cst_a |tree-data-ref.c:3018 |ffine, at | |tree-data-ref.c:3018 Target Milestone|--- |8.0 Known to fail| |8.0 --- Comment #1 from Martin Liška --- Confirmed, started with r257013. >From gcc-bugs-return-598054-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:16:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26821 invoked by alias); 18 Mar 2018 19: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 26797 invoked by uid 48); 18 Mar 2018 19:16:28 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvODQ5MjZdIGVycm9yOiBpbmxpbmluZyBmYWlsZWQgaW4g?= =?UTF-8?B?Y2FsbCB0byBhbHdheXNfaW5saW5lIOKAmF9tbV9jcmMzMl91NjTigJk6IHRh?= =?UTF-8?B?cmdldCBzcGVjaWZpYyBvcHRpb24gbWlzbWF0Y2ggIF9tbV9jcmMzMl91NjQ=?Date: Sun, 18 Mar 2018 19: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: 7.3.1 X-Bugzilla-Keywords: lto 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: 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-03/txt/msg02642.txt.bz2 Content-length: 571 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84926 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-03-18 Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- It will be unrelated, please attach content of --verbose for the problematic source file. >From gcc-bugs-return-598055-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:19:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 72975 invoked by alias); 18 Mar 2018 19:19: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 72932 invoked by uid 48); 18 Mar 2018 19:19:49 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] [8 Regression] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Sun, 18 Mar 2018 19: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02643.txt.bz2 Content-length: 395 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 --- Comment #23 from Martin Liška --- Isn't that caused by a undefined behavior in compiler? Can you please run it in valgrind: valgrind --leak-check=yes --trace-children=yes ... Can you please test it with compiler that is built w/o optimization: make all-host -k CFLAGS="-O0 -g" CXXFLAGS="-O0 -g" >From gcc-bugs-return-598056-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:40:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118744 invoked by alias); 18 Mar 2018 19:40: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 118650 invoked by uid 48); 18 Mar 2018 19:40:01 -0000 From: "dilyan.palauzov at aegee dot org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvODQ5MjZdIGVycm9yOiBpbmxpbmluZyBmYWlsZWQgaW4g?= =?UTF-8?B?Y2FsbCB0byBhbHdheXNfaW5saW5lIOKAmF9tbV9jcmMzMl91NjTigJk6IHRh?= =?UTF-8?B?cmdldCBzcGVjaWZpYyBvcHRpb24gbWlzbWF0Y2ggIF9tbV9jcmMzMl91NjQ=?Date: Sun, 18 Mar 2018 19: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: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: dilyan.palauzov at aegee dot 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-03/txt/msg02644.txt.bz2 Content-length: 5155 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84926 --- Comment #2 from Дилян Палаузов --- make -C src all make[1]: Entering directory '/git/postgresql/src' make -C common all make[2]: Entering directory '/git/postgresql/src/common' make -C ../backend submake-errcodes make[3]: Entering directory '/git/postgresql/src/backend' make[3]: Nothing to be done for 'submake-errcodes'. make[3]: Leaving directory '/git/postgresql/src/backend' make[2]: Leaving directory '/git/postgresql/src/common' make -C port all make[2]: Entering directory '/git/postgresql/src/port' make -C ../backend submake-errcodes make[3]: Entering directory '/git/postgresql/src/backend' make[3]: Nothing to be done for 'submake-errcodes'. make[3]: Leaving directory '/git/postgresql/src/backend' gcc -flto --verbose -I../../src/port -DFRONTEND -I../../src/include -D_GNU_SOURCE -I/usr/local/include/libxml2 -c -o pg_crc32c_sse42.o pg_crc32c_sse42.c Using built-in specs. COLLECT_GCC=gcc Target: x86_64-pc-linux-gnu Configured with: ./configure --enable-threads=posix --enable-nls --enable-interpreter --with-system-zlib --enable-libgcj-multifile --enable-languages=all --enable-targets=all --with-system-unwind --without-x --with-linker-hash-style=gnu --disable-multilib --enable-shared --with-build-config='bootstrap-lto bootstrap-O3' Thread model: posix gcc version 7.3.1 20180316 (GCC) COLLECT_GCC_OPTIONS='-flto' '-v' '-I' '../../src/port' '-D' 'FRONTEND' '-I' '../../src/include' '-D' '_GNU_SOURCE' '-I' '/usr/local/include/libxml2' '-c' '-o' 'pg_crc32c_sse42.o' '-mtune=generic' '-march=x86-64' /usr/local/libexec/gcc/x86_64-pc-linux-gnu/7.3.1/cc1 -quiet -v -I ../../src/port -I ../../src/include -I /usr/local/include/libxml2 -imultiarch x86_64-linux-gnu -D FRONTEND -D _GNU_SOURCE pg_crc32c_sse42.c -quiet -dumpbase pg_crc32c_sse42.c -mtune=generic -march=x86-64 -auxbase-strip pg_crc32c_sse42.o -version -flto -o /tmp/cce8jOUn.s GNU C11 (GCC) version 7.3.1 20180316 (x86_64-pc-linux-gnu) compiled by GNU C version 7.3.1 20180316, GMP version 6.1.2, MPFR version 4.0.0, MPC version 1.1.0, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" ignoring nonexistent directory "/usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/../../../../x86_64-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: ../../src/port ../../src/include /usr/local/include/libxml2 /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include /usr/local/include /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include-fixed /usr/include/x86_64-linux-gnu /usr/include End of search list. GNU C11 (GCC) version 7.3.1 20180316 (x86_64-pc-linux-gnu) compiled by GNU C version 7.3.1 20180316, GMP version 6.1.2, MPFR version 4.0.0, MPC version 1.1.0, isl version isl-0.18-GMP GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: e97c32a4d3c4d8b00665455dd270ad26 In file included from /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/nmmintrin.h:31:0, from pg_crc32c_sse42.c:19: pg_crc32c_sse42.c: In function ‘pg_comp_crc32c_sse42’: /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/smmintrin.h:846:1: error: inlining failed in call to always_inline ‘_mm_crc32_u64’: target specific option mismatch _mm_crc32_u64 (unsigned long long __C, unsigned long long __V) ^~~~~~~~~~~~~ pg_crc32c_sse42.c:37:18: note: called from here crc = (uint32) _mm_crc32_u64(crc, *((const uint64 *) p)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/nmmintrin.h:31:0, from pg_crc32c_sse42.c:19: /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/smmintrin.h:839:1: error: inlining failed in call to always_inline ‘_mm_crc32_u32’: target specific option mismatch _mm_crc32_u32 (unsigned int __C, unsigned int __V) ^~~~~~~~~~~~~ pg_crc32c_sse42.c:44:7: note: called from here crc = _mm_crc32_u32(crc, *((const unsigned int *) p)); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/nmmintrin.h:31:0, from pg_crc32c_sse42.c:19: /usr/local/lib/gcc/x86_64-pc-linux-gnu/7.3.1/include/smmintrin.h:827:1: error: inlining failed in call to always_inline ‘_mm_crc32_u8’: target specific option mismatch _mm_crc32_u8 (unsigned int __C, unsigned char __V) ^~~~~~~~~~~~ pg_crc32c_sse42.c:63:7: note: called from here crc = _mm_crc32_u8(crc, *p); ~~~~^~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [: pg_crc32c_sse42.o] Error 1 make[2]: Leaving directory '/git/postgresql/src/port' make[1]: *** [Makefile:38: all-port-recurse] Error 2 make[1]: Leaving directory '/git/postgresql/src' make: *** [GNUmakefile:11: all-src-recurse] Error 2 >From gcc-bugs-return-598057-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:51:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10899 invoked by alias); 18 Mar 2018 19:51: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 10813 invoked by uid 48); 18 Mar 2018 19:51:18 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84048] [8 Regression] FAIL: gcc.dg/torture/tls/run-ld.c -O0 -pie -fPIE execution test Date: Sun, 18 Mar 2018 19: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02645.txt.bz2 Content-length: 213 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84048 --- Comment #5 from John David Anglin --- With binutils-2.29,test passes: https://sourceware.org/bugzilla/show_bug.cgi?id=22978 >From gcc-bugs-return-598058-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:56:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19706 invoked by alias); 18 Mar 2018 19:56:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19584 invoked by uid 48); 18 Mar 2018 19:56:06 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84902] [8 Regression] 549.fotonik3d_r from SPEC2017 fails verification with -Ofast -march=native on Zen since r258518 Date: Sun, 18 Mar 2018 19: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: unknown 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: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02646.txt.bz2 Content-length: 470 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84902 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #5 from Martin Liška --- Thank you both, works for me. Thus closing. >From gcc-bugs-return-598059-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 19:56:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19811 invoked by alias); 18 Mar 2018 19:56: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 19628 invoked by uid 48); 18 Mar 2018 19:56:07 -0000 From: "marxin 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: Sun, 18 Mar 2018 19:56: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.2.0 X-Bugzilla-Keywords: meta-bug, missed-optimization X-Bugzilla-Severity: enhancement 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 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-03/txt/msg02647.txt.bz2 Content-length: 540 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 84902, which changed state. Bug 84902 Summary: [8 Regression] 549.fotonik3d_r from SPEC2017 fails verification with -Ofast -march=native on Zen since r258518 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84902 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >From gcc-bugs-return-598060-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:12:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18686 invoked by alias); 18 Mar 2018 20:12: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 18643 invoked by uid 48); 18 Mar 2018 20:12:29 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0YXJnZXQvODQ5MjZdIGVycm9yOiBpbmxpbmluZyBmYWlsZWQgaW4g?= =?UTF-8?B?Y2FsbCB0byBhbHdheXNfaW5saW5lIOKAmF9tbV9jcmMzMl91NjTigJk6IHRh?= =?UTF-8?B?cmdldCBzcGVjaWZpYyBvcHRpb24gbWlzbWF0Y2ggIF9tbV9jcmMzMl91NjQ=?Date: Sun, 18 Mar 2018 20: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: 7.3.1 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin 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-03/txt/msg02648.txt.bz2 Content-length: 940 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84926 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #3 from Martin Liška --- The issue is that it uses always_inline for a function that uses -msse3 and you use -march=native and -mtune=generic. If I configure postgres with : CFLAGS="-mtune=generic -march=x86-64" CXXFLAGS=... LDFLAGS=... then it builds fine. The file should not be built with the flags. Clang has nicer error message: error: always_inline function '_mm_crc32_u64' requires target feature 'ssse3', but would be inlined into function 'pg_comp_crc32c_sse42' that is compiled without support for 'ssse3' >From gcc-bugs-return-598061-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:17:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21214 invoked by alias); 18 Mar 2018 20:17: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 21175 invoked by uid 55); 18 Mar 2018 20:17:42 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84635] gcc/regrename.c:1706:64: runtime error: index -1 out of bounds for type 'machine_mode [30]' Date: Sun, 18 Mar 2018 20:17: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: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02649.txt.bz2 Content-length: 549 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84635 --- Comment #2 from Martin Liška --- Author: marxin Date: Sun Mar 18 20:17:10 2018 New Revision: 258634 URL: https://gcc.gnu.org/viewcvs?rev=258634&root=gcc&view=rev Log: Fix UBSAN in regrename.c (PR rtl-optimization/84635). 2018-03-18 Martin Liska PR rtl-optimization/84635 * regrename.c (build_def_use): Use matches_mode only when matches >= 0. Modified: trunk/gcc/ChangeLog trunk/gcc/regrename.c >From gcc-bugs-return-598062-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:20:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22703 invoked by alias); 18 Mar 2018 20:20: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 22670 invoked by uid 48); 18 Mar 2018 20:20:08 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84635] gcc/regrename.c:1706:64: runtime error: index -1 out of bounds for type 'machine_mode [30]' Date: Sun, 18 Mar 2018 20:20: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: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code 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-03/txt/msg02650.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84635 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Liška --- Fixed. >From gcc-bugs-return-598063-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:22:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67600 invoked by alias); 18 Mar 2018 20:22: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 67564 invoked by uid 48); 18 Mar 2018 20:22:17 -0000 From: "dilyan.palauzov at aegee dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84934] New: Installing the lto plugin where binutils will look for it Date: Sun, 18 Mar 2018 20:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dilyan.palauzov at aegee 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: 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-03/txt/msg02651.txt.bz2 Content-length: 1613 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934 Bug ID: 84934 Summary: Installing the lto plugin where binutils will look for it Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: dilyan.palauzov at aegee dot org CC: marxin at gcc dot gnu.org Target Milestone: --- For the LTO prime time to arise, "gcc/Makefile install" shall put the liblto_plugin in a place, where the ar/ranlib/nm tools load it. They load search for plugins in the {libdir}/bfd-plugins directory. Currently users detect in autoconf if they will do LTO, then switch ar/nm/ranlib to gcc-ar/gcc-nm/gcc-ranlib in order to avoid dealing with the --plugin and because they are unaware of the bfd-plugin directory. This is unacceptable. There are several options: *) ar/nm/ranlib provide a mechanism to show the directory, where they look for plugins, and gcc installs the plugins there, *) ar/nm/ranlib ask gcc, clang and the other compilers where they have put their plugins. *) gcc and binutils mutually agree on a directory where the plugins are installed and install/read the plugins there. Assuming that both gcc and binutils share the same value for {libdir}, being it /usr/local/lib, or /usr/lib64, gcc could install it in {libdir}/bfd-plugins, clang can do the same for LLVMgold.so , and then binutils don't change, as they look for the files there. What speaks against the third option? >From gcc-bugs-return-598064-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:32:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101500 invoked by alias); 18 Mar 2018 20:32: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 101460 invoked by uid 48); 18 Mar 2018 20:32:06 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84934] Installing the lto plugin where binutils will look for it Date: Sun, 18 Mar 2018 20:32: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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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-03/txt/msg02652.txt.bz2 Content-length: 304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934 --- Comment #1 from Andrew Pinski --- I think it is up to the distro/installer themselves to install the plugin in the correct location. Binutils might be installed in a fully differently directory structure as gcc is. >From gcc-bugs-return-598065-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:42:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 124178 invoked by alias); 18 Mar 2018 20:42: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 124088 invoked by uid 48); 18 Mar 2018 20:41:57 -0000 From: "dilyan.palauzov at aegee dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84934] Installing the lto plugin where binutils will look for it Date: Sun, 18 Mar 2018 20:42: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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dilyan.palauzov at aegee 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-03/txt/msg02653.txt.bz2 Content-length: 596 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934 --- Comment #2 from Дилян Палаузов --- Builind a linux from scratch system, doing everywhere "./configure && make install" shall work, taking all defaults into account. For gcc+LTO+binutils this does not work. While distros can adjust the exact location, for binutils doing "./configure && make install" the location is "/usr/local/bin/bfd-plugins/", so with gcc's "./configure && make install " this location shall be used by default. >From gcc-bugs-return-598066-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 20:58:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92092 invoked by alias); 18 Mar 2018 20:58: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 92060 invoked by uid 48); 18 Mar 2018 20:58:21 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] New: FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Sun, 18 Mar 2018 20:58: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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 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-03/txt/msg02654.txt.bz2 Content-length: 1216 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 Bug ID: 84935 Summary: FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org Target Milestone: --- Host: hppa64-hp-hpux11.11 Target: hppa64-hp-hpux11.11 Build: hppa64-hp-hpux11.11 Executing on host: /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /te st/gnu/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/pr84512.c -fno-diagnostics-show-c aret -fdiagnostics-color=never -O3 -fdump-tree-optimized -S -o pr84512.s (timeout = 300) spawn /test/gnu/gcc/objdir/gcc/xgcc -B/test/gnu/gcc/objdir/gcc/ /test/gnu/gcc/gc c/gcc/testsuite/gcc.dg/tree-ssa/pr84512.c -fno-diagnostics-show-caret -fdiagnost ics-color=never -O3 -fdump-tree-optimized -S -o pr84512.s PASS: gcc.dg/tree-ssa/pr84512.c (test for excess errors) FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" >From gcc-bugs-return-598067-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 21:11:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 100303 invoked by alias); 18 Mar 2018 21:11: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 100285 invoked by uid 48); 18 Mar 2018 21:11:05 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84936] New: [8 Regression] ICE with unexpanded parameter pack Date: Sun, 18 Mar 2018 21:11: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.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt 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 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-03/txt/msg02655.txt.bz2 Content-length: 2296 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84936 Bug ID: 84936 Summary: [8 Regression] ICE with unexpanded parameter pack Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following invalid code snippet triggers an ICE on trunk: ========================================================== struct A { template A(T... t) : decltype(t)() {} }; A a; ========================================================== bug.cc: In instantiation of 'A::A(T ...) [with T = {}]': bug.cc:6:3: required from here bug.cc:3:51: internal compiler error: Segmentation fault template A(T... t) : decltype(t)() {} ^ 0xebab0f crash_signal ../../gcc/gcc/toplev.c:325 0x9d5e09 invalid_nonstatic_memfn_p(unsigned int, tree_node*, int) ../../gcc/gcc/cp/typeck.c:1882 0x9b2529 finish_decltype_type(tree_node*, bool, int) ../../gcc/gcc/cp/semantics.c:8734 0x975ed5 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/pt.c:14580 0x96ed2f tsubst_initializer_list ../../gcc/gcc/cp/pt.c:23825 0x96ed2f tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/gcc/cp/pt.c:16213 0x96d6cf tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/gcc/cp/pt.c:16489 0x96c868 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc/gcc/cp/pt.c:16193 0x96c868 instantiate_decl(tree_node*, bool, bool) ../../gcc/gcc/cp/pt.c:23575 0x99146b instantiate_pending_templates(int) ../../gcc/gcc/cp/pt.c:23691 0x8b760b c_parse_final_cleanups() ../../gcc/gcc/cp/decl2.c:4721 Please submit a full bug report, [etc.] The regression was introduced between 2017-05-06 and 2017-05-12. >From gcc-bugs-return-598068-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 21:25:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118723 invoked by alias); 18 Mar 2018 21:25: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 118678 invoked by uid 48); 18 Mar 2018 21:25:30 -0000 From: "mikael at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] Expansion of array constructor with constant implied-do-object goes sideways Date: Sun, 18 Mar 2018 21: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: unknown X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mikael 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-03/txt/msg02656.txt.bz2 Content-length: 636 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 Mikael Morin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikael at gcc dot gnu.org --- Comment #3 from Mikael Morin --- Note that gfc_trans_assignment has short-circuit code to specifically handle "simple" assignment such as assignment from an array constructor. This may explain the difference between the integer and real version: they use a completely different code path. >From gcc-bugs-return-598069-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 21:40:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60197 invoked by alias); 18 Mar 2018 21:39: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 58847 invoked by uid 48); 18 Mar 2018 21:39:55 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84937] New: [7/8 Regression] ICE with class template argument deduction and auto Date: Sun, 18 Mar 2018 21:39: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt 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 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-03/txt/msg02657.txt.bz2 Content-length: 2854 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84937 Bug ID: 84937 Summary: [7/8 Regression] ICE with class template argument deduction and auto Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org Target Milestone: --- The following valid code snippet (compiled with "-std=c++17") triggers an ICE since GCC 7.1.0: ================================== template struct A {}; template struct B { template B(A); }; B b(A<0,0>{}); ================================== bug.cc: In substitution of 'template B(A)-> B [with int I = ; auto J = ]': bug.cc:8:13: required from here bug.cc:8:13: internal compiler error: in tsubst, at cp/pt.c:14007 B b(A<0,0>{}); ^ 0x643561 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc/gcc/cp/pt.c:14007 0x9699e8 unify ../../gcc/gcc/cp/pt.c:21239 0x968f44 unify ../../gcc/gcc/cp/pt.c:21434 0x989312 try_class_unification ../../gcc/gcc/cp/pt.c:20439 0x968fc5 unify ../../gcc/gcc/cp/pt.c:21471 0x985d13 unify_one_argument ../../gcc/gcc/cp/pt.c:19681 0x989763 type_unification_real ../../gcc/gcc/cp/pt.c:19801 0x98be55 fn_type_unification(tree_node*, tree_node*, tree_node*, tree_node* const*, unsigned int, tree_node*, unification_kind_t, int, bool, bool) ../../gcc/gcc/cp/pt.c:19186 0x82af2f add_template_candidate_real ../../gcc/gcc/cp/call.c:3179 0x82b940 add_template_candidate ../../gcc/gcc/cp/call.c:3258 0x82b940 add_candidates ../../gcc/gcc/cp/call.c:5523 0x82bd61 add_candidates ../../gcc/gcc/cp/call.c:4195 0x82bd61 perform_overload_resolution ../../gcc/gcc/cp/call.c:4203 0x82dde2 build_new_function_call(tree_node*, vec**, int) ../../gcc/gcc/cp/call.c:4276 0x967298 do_class_deduction ../../gcc/gcc/cp/pt.c:26163 0x967298 do_auto_deduction(tree_node*, tree_node*, tree_node*, int, auto_deduction_context, tree_node*, int) ../../gcc/gcc/cp/pt.c:26218 0x89e733 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6909 0x93b893 cp_parser_init_declarator ../../gcc/gcc/cp/parser.c:19723 0x942cc8 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:13057 0x943ad8 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:12882 Please submit a full bug report, [etc.] >From gcc-bugs-return-598070-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 21:53:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67805 invoked by alias); 18 Mar 2018 21:53: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 67770 invoked by uid 48); 18 Mar 2018 21:53:18 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] Expansion of array constructor with constant implied-do-object goes sideways Date: Sun, 18 Mar 2018 21: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: unknown X-Bugzilla-Keywords: wrong-code 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: 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-03/txt/msg02658.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 Thomas Koenig changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |tkoenig at gcc dot gnu.org --- Comment #4 from Thomas Koenig --- Let's see. >From gcc-bugs-return-598071-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 21:59:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78751 invoked by alias); 18 Mar 2018 21:59: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 78729 invoked by uid 48); 18 Mar 2018 21:59:39 -0000 From: "anlauf at gmx dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/82992] ICE in create_int_parameter_array, at fortran/module.c:6586 Date: Sun, 18 Mar 2018 21:59: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: 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02659.txt.bz2 Content-length: 606 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82992 --- Comment #5 from Harald Anlauf --- Adding 'implicit none' after the use statements: subroutine sub (c_int) use iso_c_binding, only: c_int implicit none ! makes no difference end -> still no error message module pr82992 integer :: x end module pr82992 subroutine sub (x) use pr82992, only : x implicit none ! -> Error: Symbol 'x' at (1) has no IMPLICIT type end -> gives wrong/misleading error message pr82992c.f90:4:17: subroutine sub (x) 1 Error: Symbol 'x' at (1) has no IMPLICIT type >From gcc-bugs-return-598072-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:36:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 38625 invoked by alias); 18 Mar 2018 22:36: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 32980 invoked by uid 48); 18 Mar 2018 22:36:19 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84938] New: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Date: Sun, 18 Mar 2018 22:36: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02660.txt.bz2 Content-length: 3578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84938 Bug ID: 84938 Summary: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int &&a = 1 / ~-1ULL; Output: $ cc1plus :1:13: warning: division by zero [-Wdiv-by-zero] Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> Assembling functions: :1:21: internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 0x1d84b67 gen_reg_rtx(machine_mode) /home/vegard/git/gcc/gcc/emit-rtl.c:1187 0x2b0ee4c maybe_legitimize_operand /home/vegard/git/gcc/gcc/optabs.c:7143 0x2b0ee4c maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) /home/vegard/git/gcc/gcc/optabs.c:7222 0x2b0ee4c maybe_gen_insn(insn_code, unsigned int, expand_operand*) /home/vegard/git/gcc/gcc/optabs.c:7240 0x2b0ee4c expand_unop_direct /home/vegard/git/gcc/gcc/optabs.c:2695 0x2b07681 expand_unop(machine_mode, optab_tag, rtx_def*, rtx_def*, int) /home/vegard/git/gcc/gcc/optabs.c:2737 0x1edee2a expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/vegard/git/gcc/gcc/expr.c:9222 0x1e76836 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/vegard/git/gcc/gcc/expr.c:11286 0x1eb0674 expand_expr_real(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/vegard/git/gcc/gcc/expr.c:8227 0x1eb0674 expand_expr /home/vegard/git/gcc/gcc/expr.h:276 0x1eb0674 expand_operands(tree_node*, tree_node*, rtx_def*, rtx_def**, rtx_def**, expand_modifier) /home/vegard/git/gcc/gcc/expr.c:7825 0x1edc677 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /home/vegard/git/gcc/gcc/expr.c:8971 0x1e76836 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/vegard/git/gcc/gcc/expr.c:11286 0x41d9f62 expand_expr /home/vegard/git/gcc/gcc/expr.h:276 0x41d9f62 output_constant /home/vegard/git/gcc/gcc/varasm.c:4907 0x41dcc2b assemble_variable_contents /home/vegard/git/gcc/gcc/varasm.c:2136 0x41fd542 assemble_variable(tree_node*, int, int, int) /home/vegard/git/gcc/gcc/varasm.c:2312 0x4218599 varpool_node::assemble_decl() /home/vegard/git/gcc/gcc/varpool.c:590 0x19a9497 output_in_order /home/vegard/git/gcc/gcc/cgraphunit.c:2385 0x19a9497 symbol_table::compile() /home/vegard/git/gcc/gcc/cgraphunit.c:2623 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) Possibly related: bug #70420, bug #78380 Clang complains about UB (division by zero) but does compiles it. >From gcc-bugs-return-598073-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:44:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96462 invoked by alias); 18 Mar 2018 22:44: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 96404 invoked by uid 48); 18 Mar 2018 22:43:56 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi83MTQ4NV0gZysrIElDRSBvbiB4ODZf?= =?UTF-8?B?NjQtbGludXgtZ251IGluIOKAnGdpbXBsaWZ5X2V4cHLigJ0=?Date: Sun, 18 Mar 2018 22: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: 7.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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: 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-03/txt/msg02661.txt.bz2 Content-length: 596 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71485 Vegard Nossum changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vegard.nossum at gmail dot com --- Comment #2 from Vegard Nossum --- This does not ICE for me with either 7.1 or trunk on godbolt.org (but 6.3 has "confused by earlier errors, bailing out"), nor with 8.0.1 compiled with checks enabled, so maybe it has been fixed? >From gcc-bugs-return-598074-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:48:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113602 invoked by alias); 18 Mar 2018 22:48: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 113267 invoked by uid 48); 18 Mar 2018 22:48:07 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84939] New: internal compiler error: in gimplify_expr, at gimplify.c:12382 Date: Sun, 18 Mar 2018 22:48: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02662.txt.bz2 Content-length: 3634 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84939 Bug ID: 84939 Summary: internal compiler error: in gimplify_expr, at gimplify.c:12382 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct a { void b() { struct c { int d struct d e(decltype(d)); }; } a() { (sizeof(char[static_cast(d)])); } } f; Output: $ cc1plus void a::b() :4:11: error: expected ';' at end of member declaration a::a() a::a() a::a() void __static_initialization_and_destruction_0(int, int) void _GLOBAL__sub_I_f() Analyzing compilation unit : In constructor 'a::a()': :7:43: internal compiler error: in gimplify_expr, at gimplify.c:12382 0x222617f gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:12382 0x2219625 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11375 0x2218312 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11556 0x2238683 gimplify_compound_lval /home/vegard/git/gcc/gcc/gimplify.c:2969 0x22191c9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11387 0x2219625 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11375 0x227604c gimplify_modify_expr /home/vegard/git/gcc/gcc/gimplify.c:5626 0x221b0e6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11435 0x221b493 gimplify_target_expr /home/vegard/git/gcc/gcc/gimplify.c:6577 0x221b493 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11815 0x2219625 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11375 0x2218f62 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:12159 0x227604c gimplify_modify_expr /home/vegard/git/gcc/gcc/gimplify.c:5626 0x221b0e6 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11435 0x2228401 gimplify_stmt(tree_node**, gimple**) /home/vegard/git/gcc/gcc/gimplify.c:6658 0x221a50d gimplify_cleanup_point_expr /home/vegard/git/gcc/gcc/gimplify.c:6400 0x221a50d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11811 0x2228401 gimplify_stmt(tree_node**, gimple**) /home/vegard/git/gcc/gcc/gimplify.c:6658 0x221bc6b gimplify_statement_list /home/vegard/git/gcc/gcc/gimplify.c:1767 0x221bc6b gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/vegard/git/gcc/gcc/gimplify.c:11863 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598075-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:51:22 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 115478 invoked by alias); 18 Mar 2018 22:51: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 115426 invoked by uid 48); 18 Mar 2018 22:51:17 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] New: internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Sun, 18 Mar 2018 22:51: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02663.txt.bz2 Content-length: 2951 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 Bug ID: 84940 Summary: internal compiler error: in build_value_init_noctor, at cp/init.c:465 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int b; void c() { struct { } a[__builtin_constant_p(0)][b](-a[0]) } Output: $ cc1plus void c() :4:39: error: wrong type argument to unary minus :4:39: internal compiler error: in build_value_init_noctor, at cp/init.c:465 0xcf8133 build_value_init_noctor(tree_node*, int) /home/vegard/git/gcc/gcc/cp/init.c:465 0xcf8474 build_value_init(tree_node*, int) /home/vegard/git/gcc/gcc/cp/init.c:378 0xa429f6 cxx_eval_array_reference /home/vegard/git/gcc/gcc/cp/constexpr.c:2472 0xa2f3d0 cxx_eval_constant_expression /home/vegard/git/gcc/gcc/cp/constexpr.c:4475 0xa4996a cxx_eval_outermost_constant_expr /home/vegard/git/gcc/gcc/cp/constexpr.c:4832 0xa57256 maybe_constant_value(tree_node*, tree_node*) /home/vegard/git/gcc/gcc/cp/constexpr.c:5049 0xab6bea cp_fully_fold(tree_node*) /home/vegard/git/gcc/gcc/cp/cp-gimplify.c:2041 0x1273a47 finish_unary_op_expr(unsigned int, tree_code, cp_expr, int) /home/vegard/git/gcc/gcc/cp/semantics.c:2679 0xf2a14f cp_parser_unary_expression /home/vegard/git/gcc/gcc/cp/parser.c:8303 0xebfeca cp_parser_cast_expression /home/vegard/git/gcc/gcc/cp/parser.c:9090 0xec24f6 cp_parser_binary_expression /home/vegard/git/gcc/gcc/cp/parser.c:9191 0xec62ca cp_parser_assignment_expression /home/vegard/git/gcc/gcc/cp/parser.c:9486 0xecc0a3 cp_parser_constant_expression /home/vegard/git/gcc/gcc/cp/parser.c:9770 0xed376b cp_parser_parenthesized_expression_list /home/vegard/git/gcc/gcc/cp/parser.c:7758 0xedc2bc cp_parser_initializer /home/vegard/git/gcc/gcc/cp/parser.c:21864 0xfa0f3d cp_parser_init_declarator /home/vegard/git/gcc/gcc/cp/parser.c:19677 0xfa57a7 cp_parser_simple_declaration /home/vegard/git/gcc/gcc/cp/parser.c:13065 0xfab998 cp_parser_block_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12883 0xfade64 cp_parser_declaration_statement /home/vegard/git/gcc/gcc/cp/parser.c:12476 0xefab2b cp_parser_statement /home/vegard/git/gcc/gcc/cp/parser.c:10925 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) Possibly related to bug #80812? >From gcc-bugs-return-598076-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:54:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 123986 invoked by alias); 18 Mar 2018 22:54: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 123945 invoked by uid 48); 18 Mar 2018 22:54:28 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84941] New: internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()) Date: Sun, 18 Mar 2018 22:54: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02664.txt.bz2 Content-length: 1972 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84941 Bug ID: 84941 Summary: internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()) Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct a { ~a() { short *b[]{0}; asm("" : "=m"(b), "=d"(b) : "1p"(b)); } } b; Output: $ cc1plus -O2 a::~a() a::~a() a::~a() void __static_initialization_and_destruction_0(int, int) void _GLOBAL__sub_I_b() Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> Assembling functions: a::~a()during RTL pass: asmcons : In destructor 'a::~a()': :5:3: internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 0x2f0c0e7 reg_overlap_mentioned_p(rtx_def const*, rtx_def const*) /home/vegard/git/gcc/gcc/rtlanal.c:1870 0x2002163 match_asm_constraints_1 /home/vegard/git/gcc/gcc/function.c:6720 0x2005f43 execute /home/vegard/git/gcc/gcc/function.c:6800 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) Actually compiles at -O0, get the ICE at -O1. >From gcc-bugs-return-598077-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 22:58:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3595 invoked by alias); 18 Mar 2018 22:58: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 3490 invoked by uid 48); 18 Mar 2018 22:57:59 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84942] New: internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Date: Sun, 18 Mar 2018 22:58: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02665.txt.bz2 Content-length: 3246 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84942 Bug ID: 84942 Summary: internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: a(__attribute__((b((int)__builtin_inf() * 1ULL / auto)))) Output: $ cc1plus :1:41: internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 0x1f571ab fold_convert_const_int_from_real /home/vegard/git/gcc/gcc/fold-const.c:2011 0x1f571ab fold_convert_const /home/vegard/git/gcc/gcc/fold-const.c:2257 0x1fc4255 const_unop(tree_code, tree_node*, tree_node*) /home/vegard/git/gcc/gcc/fold-const.c:1729 0x1f9aff4 fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*) /home/vegard/git/gcc/gcc/fold-const.c:7737 0x1fa2321 fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*) /home/vegard/git/gcc/gcc/fold-const.c:12282 0xa34f93 cxx_eval_constant_expression /home/vegard/git/gcc/gcc/cp/constexpr.c:4638 0xa4996a cxx_eval_outermost_constant_expr /home/vegard/git/gcc/gcc/cp/constexpr.c:4832 0xa57256 maybe_constant_value(tree_node*, tree_node*) /home/vegard/git/gcc/gcc/cp/constexpr.c:5049 0xab6bea cp_fully_fold(tree_node*) /home/vegard/git/gcc/gcc/cp/cp-gimplify.c:2041 0x13cf877 cp_build_binary_op(unsigned int, tree_code, tree_node*, tree_node*, int) /home/vegard/git/gcc/gcc/cp/typeck.c:5391 0x940727 build_new_op_1 /home/vegard/git/gcc/gcc/cp/call.c:6017 0x944116 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) /home/vegard/git/gcc/gcc/cp/call.c:6062 0x1392a6b build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) /home/vegard/git/gcc/gcc/cp/typeck.c:4032 0x10f0d9c tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) /home/vegard/git/gcc/gcc/cp/pt.c:17546 0xa5796a fold_non_dependent_expr(tree_node*) /home/vegard/git/gcc/gcc/cp/constexpr.c:5102 0x105112f build_non_dependent_expr(tree_node*) /home/vegard/git/gcc/gcc/cp/pt.c:25305 0x13933bf build_x_binary_op(unsigned int, tree_code, tree_node*, tree_code, tree_node*, tree_code, tree_node**, int) /home/vegard/git/gcc/gcc/cp/typeck.c:4024 0xec484b cp_parser_binary_expression /home/vegard/git/gcc/gcc/cp/parser.c:9356 0xec62ca cp_parser_assignment_expression /home/vegard/git/gcc/gcc/cp/parser.c:9486 0xed4304 cp_parser_parenthesized_expression_list /home/vegard/git/gcc/gcc/cp/parser.c:7764 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598078-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Mar 18 23:02:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 11150 invoked by alias); 18 Mar 2018 23:02: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 11101 invoked by uid 48); 18 Mar 2018 23:02:24 -0000 From: "vegard.nossum at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84943] New: internal compiler error: in build_call_a, at cp/call.c:374 Date: Sun, 18 Mar 2018 23: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum 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 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-03/txt/msg02666.txt.bz2 Content-length: 3162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84943 Bug ID: 84943 Summary: internal compiler error: in build_call_a, at cp/call.c:374 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at gmail dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: void a() { a[0]() } Output: $ cc1plus void a() :1:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] :1:17: internal compiler error: in build_call_a, at cp/call.c:374 0x8bd3d7 build_call_a(tree_node*, int, tree_node**) /home/vegard/git/gcc/gcc/cp/call.c:372 0x8c7d79 build_cxx_call(tree_node*, int, tree_node**, int) /home/vegard/git/gcc/gcc/cp/call.c:8663 0x13f7f75 cp_build_function_call_vec(tree_node*, vec**, int) /home/vegard/git/gcc/gcc/cp/typeck.c:3775 0x127d98e finish_call_expr(tree_node*, vec**, bool, bool, int) /home/vegard/git/gcc/gcc/cp/semantics.c:2521 0xf77968 cp_parser_postfix_expression /home/vegard/git/gcc/gcc/cp/parser.c:7246 0xf2a4b7 cp_parser_unary_expression /home/vegard/git/gcc/gcc/cp/parser.c:8322 0xebfeca cp_parser_cast_expression /home/vegard/git/gcc/gcc/cp/parser.c:9090 0xec24f6 cp_parser_binary_expression /home/vegard/git/gcc/gcc/cp/parser.c:9191 0xec62ca cp_parser_assignment_expression /home/vegard/git/gcc/gcc/cp/parser.c:9486 0xeca236 cp_parser_expression /home/vegard/git/gcc/gcc/cp/parser.c:9655 0xede7b6 cp_parser_expression_statement /home/vegard/git/gcc/gcc/cp/parser.c:11131 0xefa0e0 cp_parser_statement /home/vegard/git/gcc/gcc/cp/parser.c:10935 0xefe5eb cp_parser_statement_seq_opt /home/vegard/git/gcc/gcc/cp/parser.c:11274 0xeff08a cp_parser_compound_statement /home/vegard/git/gcc/gcc/cp/parser.c:11228 0xf9283b cp_parser_function_body /home/vegard/git/gcc/gcc/cp/parser.c:21778 0xf9283b cp_parser_ctor_initializer_opt_and_function_body /home/vegard/git/gcc/gcc/cp/parser.c:21813 0xf9ba45 cp_parser_function_definition_after_declarator /home/vegard/git/gcc/gcc/cp/parser.c:26818 0xfa209d cp_parser_function_definition_from_specifiers_and_declarator /home/vegard/git/gcc/gcc/cp/parser.c:26735 0xfa209d cp_parser_init_declarator /home/vegard/git/gcc/gcc/cp/parser.c:19502 0xfa57a7 cp_parser_simple_declaration /home/vegard/git/gcc/gcc/cp/parser.c:13065 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) The error itself looks VERY similar to bug #67533 but the code is sufficiently different that I think it might be a different underlying problem so I'm opening a new bug. >From gcc-bugs-return-598079-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:05:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75586 invoked by alias); 19 Mar 2018 07:05: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 75523 invoked by uid 55); 19 Mar 2018 07:05:07 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84931] Expansion of array constructor with constant implied-do-object goes sideways Date: Mon, 19 Mar 2018 07: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: unknown X-Bugzilla-Keywords: wrong-code 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02667.txt.bz2 Content-length: 752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84931 --- Comment #5 from Thomas Koenig --- Author: tkoenig Date: Mon Mar 19 07:04:35 2018 New Revision: 258641 URL: https://gcc.gnu.org/viewcvs?rev=258641&root=gcc&view=rev Log: 2018-03-19 Thomas Koenig PR fortran/84931 * simplify.c (gfc_convert_constant): Correctly handle iterators for type conversion. 2018-03-19 Thomas Koenig PR fortran/84931 * gfortran.dg/array_constructor_52.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/array_constructor_52.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/simplify.c trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598080-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:18:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7275 invoked by alias); 19 Mar 2018 07:18: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 7230 invoked by uid 48); 19 Mar 2018 07:18:14 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84938] [7/8 Regression] internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: bug_status cf_reconfirmed_on cc target_milestone 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-03/txt/msg02668.txt.bz2 Content-length: 1039 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84938 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |7.4 Summary|internal compiler error: in |[7/8 Regression] internal |gen_reg_rtx, at |compiler error: in |emit-rtl.c:1187 |gen_reg_rtx, at |(gen_reg_rtx()/maybe_legiti |emit-rtl.c:1187 |mize_operand()) |(gen_reg_rtx()/maybe_legiti | |mize_operand()) Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. r241531. >From gcc-bugs-return-598082-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:29:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66375 invoked by alias); 19 Mar 2018 07:29: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 65925 invoked by uid 48); 19 Mar 2018 07:29:41 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84939] [6/7/8 Regression] internal compiler error: in gimplify_expr, at gimplify.c:12382 Date: Mon, 19 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 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-03/txt/msg02670.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84939 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |6.5 >From gcc-bugs-return-598081-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:29:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65143 invoked by alias); 19 Mar 2018 07:29: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 65082 invoked by uid 48); 19 Mar 2018 07:29:31 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84939] [6/7/8 Regression] internal compiler error: in gimplify_expr, at gimplify.c:12382 Date: Mon, 19 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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 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-03/txt/msg02669.txt.bz2 Content-length: 836 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84939 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Summary|internal compiler error: in |[6/7/8 Regression] internal |gimplify_expr, at |compiler error: in |gimplify.c:12382 |gimplify_expr, at | |gimplify.c:12382 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- r210692 >From gcc-bugs-return-598083-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:30:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67691 invoked by alias); 19 Mar 2018 07:30: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 67343 invoked by uid 48); 19 Mar 2018 07:30:05 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84939] [6/7/8 Regression] internal compiler error: in gimplify_expr, at gimplify.c:12382 Date: Mon, 19 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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-03/txt/msg02671.txt.bz2 Content-length: 304 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84939 --- Comment #2 from Marek Polacek --- G++ 4.9 says: 84939.C:8:46: warning: taking sizeof array of runtime bound [-Wvla] a() { (sizeof(char[static_cast(d)])); } ^ >From gcc-bugs-return-598084-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:40:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2223 invoked by alias); 19 Mar 2018 07:40: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 2130 invoked by uid 48); 19 Mar 2018 07:39:59 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi83MTQ4NV0gZysrIElDRSBvbiB4ODZf?= =?UTF-8?B?NjQtbGludXgtZ251IGluIOKAnGdpbXBsaWZ5X2V4cHLigJ0=?Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: 7.0 X-Bugzilla-Keywords: error-recovery, ice-checking, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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 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-03/txt/msg02672.txt.bz2 Content-length: 517 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71485 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mpolacek at gcc dot gnu.org Resolution|--- |FIXED --- Comment #3 from Marek Polacek --- Fixed by r246034. >From gcc-bugs-return-598085-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:41:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70141 invoked by alias); 19 Mar 2018 07:41: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 70101 invoked by uid 48); 19 Mar 2018 07:41:54 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84944] New: UBSAN: gcc/optabs.c:6550:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Date: Mon, 19 Mar 2018 07:41: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: unknown 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 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-03/txt/msg02673.txt.bz2 Content-length: 2736 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84944 Bug ID: 84944 Summary: UBSAN: gcc/optabs.c:6550:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- $ UBSAN_OPTIONS="print_stacktrace=1 halt_on_error=1" ./xgcc -B. /home/marxin/Programming/gcc2/gcc/testsuite/gcc.target/i386/hle-clear-rel.c ../../gcc/optabs.c:6550:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' #0 0x186dc79 in expand_atomic_store(rtx_def*, rtx_def*, memmodel, bool) ../../gcc/optabs.c:6550 #1 0x9f34ab in expand_builtin_atomic_clear ../../gcc/builtins.c:6352 #2 0xa15c41 in expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) ../../gcc/builtins.c:7644 #3 0xf5c974 in expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) ../../gcc/expr.c:10999 #4 0xaa6132 in expand_expr ../../gcc/expr.h:276 #5 0xaa6132 in expand_call_stmt ../../gcc/cfgexpand.c:2690 #6 0xaa6132 in expand_gimple_stmt_1 ../../gcc/cfgexpand.c:3624 #7 0xaa6132 in expand_gimple_stmt ../../gcc/cfgexpand.c:3790 #8 0xaabfe9 in expand_gimple_basic_block ../../gcc/cfgexpand.c:5819 #9 0xac4f59 in execute ../../gcc/cfgexpand.c:6425 #10 0x18f5250 in execute_one_pass(opt_pass*) ../../gcc/passes.c:2497 #11 0x18f85bb in execute_pass_list_1 ../../gcc/passes.c:2586 #12 0x18f8674 in execute_pass_list(function*, opt_pass*) ../../gcc/passes.c:2597 #13 0xbe01ae in cgraph_node::expand() ../../gcc/cgraphunit.c:2139 #14 0xbe4fed in output_in_order ../../gcc/cgraphunit.c:2381 #15 0xbe4fed in symbol_table::compile() ../../gcc/cgraphunit.c:2623 #16 0xbeee87 in symbol_table::compile() ../../gcc/cgraphunit.c:2720 #17 0xbeee87 in symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2717 #18 0x1d10338 in compile_file ../../gcc/toplev.c:480 #19 0x639d9c in do_compile ../../gcc/toplev.c:2132 #20 0x639d9c in toplev::main(int, char**) ../../gcc/toplev.c:2267 #21 0x63c7fa in main ../../gcc/main.c:39 #22 0x7ffff5cafa86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #23 0x63c929 in _start (/home/marxin/Programming/gcc/objdir2/gcc/cc1+0x63c929) It's caused by fact that #define IX86_HLE_ACQUIRE (1 << 16) #define IX86_HLE_RELEASE (1 << 17) are not defined in memmodel enum. >From gcc-bugs-return-598086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:44:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71774 invoked by alias); 19 Mar 2018 07: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 71720 invoked by uid 48); 19 Mar 2018 07:44:12 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: bug_status cf_reconfirmed_on cc target_milestone 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-03/txt/msg02674.txt.bz2 Content-length: 897 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |7.4 Summary|internal compiler error: in |[7/8 Regression] internal |build_value_init_noctor, at |compiler error: in |cp/init.c:465 |build_value_init_noctor, at | |cp/init.c:465 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. >From gcc-bugs-return-598087-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:45:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73322 invoked by alias); 19 Mar 2018 07: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 73227 invoked by uid 48); 19 Mar 2018 07:45:52 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84944] UBSAN: gcc/optabs.c:6550:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Date: Mon, 19 Mar 2018 07: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.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-03/txt/msg02675.txt.bz2 Content-length: 497 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84944 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Martin Liška --- Dup. *** This bug has been marked as a duplicate of bug 84643 *** >From gcc-bugs-return-598089-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:46:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 74721 invoked by alias); 19 Mar 2018 07:46: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 74696 invoked by uid 48); 19 Mar 2018 07:46:07 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84643] gcc/optabs.c:6549:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Date: Mon, 19 Mar 2018 07:46: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: 8.0.1 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02676.txt.bz2 Content-length: 257 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84643 --- Comment #2 from Martin Liška --- It's caused by fact that #define IX86_HLE_ACQUIRE (1 << 16) #define IX86_HLE_RELEASE (1 << 17) are not defined in memmodel enum. >From gcc-bugs-return-598088-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:45:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73428 invoked by alias); 19 Mar 2018 07: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 73249 invoked by uid 48); 19 Mar 2018 07:45:53 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84643] gcc/optabs.c:6549:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Date: Mon, 19 Mar 2018 07:46: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: 8.0.1 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02677.txt.bz2 Content-length: 186 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84643 --- Comment #1 from Martin Liška --- *** Bug 84944 has been marked as a duplicate of this bug. *** >From gcc-bugs-return-598090-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:47:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 76264 invoked by alias); 19 Mar 2018 07:47: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 76218 invoked by uid 48); 19 Mar 2018 07:47:25 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02678.txt.bz2 Content-length: 130 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 --- Comment #2 from Marek Polacek --- r239267 >From gcc-bugs-return-598091-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:50:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104878 invoked by alias); 19 Mar 2018 07:50: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 104831 invoked by uid 48); 19 Mar 2018 07:50:16 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84941] internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()) Date: Mon, 19 Mar 2018 07: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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-03/txt/msg02679.txt.bz2 Content-length: 564 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84941 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- 4.6 ICEs too. >From gcc-bugs-return-598092-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:54:27 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117471 invoked by alias); 19 Mar 2018 07:54: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 116968 invoked by uid 48); 19 Mar 2018 07:54:23 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] New: UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 07:54: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: unknown 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 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-03/txt/msg02680.txt.bz2 Content-length: 3048 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Bug ID: 84945 Summary: UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 63426 Target Milestone: --- Following causes an UBSAN: $ cat tc.i void a() { __builtin_cpu_supports ("gfni"); } $ ./xgcc -B. tc.i ../../gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' #0 0x2a7434e in fold_builtin_cpu ../../gcc/config/i386/i386.c:33312 #1 0x2a76664 in ix86_fold_builtin ../../gcc/config/i386/i386.c:33334 #2 0x10055ba in fold_build_call_array_loc(unsigned int, tree_node*, tree_node*, int, tree_node**) ../../gcc/fold-const.c:12450 #3 0x73a5b7 in build_function_call_vec(unsigned int, vec, tree_node*, vec*, vec*) ../../gcc/c/c-typeck.c:3124 #4 0x7b018f in c_parser_postfix_expression_after_primary ../../gcc/c/c-parser.c:9155 #5 0x776898 in c_parser_postfix_expression ../../gcc/c/c-parser.c:8980 #6 0x7998ca in c_parser_unary_expression ../../gcc/c/c-parser.c:7260 #7 0x79c22a in c_parser_cast_expression ../../gcc/c/c-parser.c:7104 #8 0x79ca1b in c_parser_binary_expression ../../gcc/c/c-parser.c:6907 #9 0x79fe76 in c_parser_conditional_expression ../../gcc/c/c-parser.c:6645 #10 0x7a108b in c_parser_expr_no_commas ../../gcc/c/c-parser.c:6562 #11 0x7a15fe in c_parser_expression ../../gcc/c/c-parser.c:9292 #12 0x7aad13 in c_parser_expression_conv ../../gcc/c/c-parser.c:9325 #13 0x7d43f7 in c_parser_statement_after_labels ../../gcc/c/c-parser.c:5540 #14 0x7dac3c in c_parser_compound_statement_nostart ../../gcc/c/c-parser.c:5078 #15 0x7dc332 in c_parser_compound_statement ../../gcc/c/c-parser.c:4912 #16 0x7df56e in c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2341 #17 0x7f9e10 in c_parser_external_declaration ../../gcc/c/c-parser.c:1643 #18 0x7fbd61 in c_parser_translation_unit ../../gcc/c/c-parser.c:1524 #19 0x7fbd61 in c_parse_file() ../../gcc/c/c-parser.c:18411 #20 0x8ebe43 in c_common_parse_file() ../../gcc/c-family/c-opts.c:1132 #21 0x1d0fdfa in compile_file ../../gcc/toplev.c:455 #22 0x639d9c in do_compile ../../gcc/toplev.c:2132 #23 0x639d9c in toplev::main(int, char**) ../../gcc/toplev.c:2267 #24 0x63c7fa in main ../../gcc/main.c:39 #25 0x7ffff5cafa86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #26 0x63c929 in _start (/home/marxin/Programming/gcc/objdir2/gcc/cc1+0x63c929) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined >From gcc-bugs-return-598093-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 07:57:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 119971 invoked by alias); 19 Mar 2018 07:57: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 119908 invoked by uid 48); 19 Mar 2018 07:57:04 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84942] [6/7/8 Regression] internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Date: Mon, 19 Mar 2018 07: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.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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 cf_reconfirmed_on cc target_milestone 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-03/txt/msg02681.txt.bz2 Content-length: 924 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84942 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |6.5 Summary|internal compiler error: in |[6/7/8 Regression] internal |fold_convert_const_int_from |compiler error: in |_real, at fold-const.c:2011 |fold_convert_const_int_from | |_real, at fold-const.c:2011 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Started with r230365. >From gcc-bugs-return-598094-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:01:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12924 invoked by alias); 19 Mar 2018 08:01: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 12836 invoked by uid 48); 19 Mar 2018 08:01:23 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84943] [8 Regression] internal compiler error: in build_call_a, at cp/call.c:374 Date: Mon, 19 Mar 2018 08: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc target_milestone 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-03/txt/msg02682.txt.bz2 Content-length: 925 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84943 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |8.0 Summary|internal compiler error: in |[8 Regression] internal |build_call_a, at |compiler error: in |cp/call.c:374 |build_call_a, at | |cp/call.c:374 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Started with r254712. Better: void a() { a[0](); } >From gcc-bugs-return-598095-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:08:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20454 invoked by alias); 19 Mar 2018 08:08: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 20386 invoked by uid 48); 19 Mar 2018 08:08:44 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84946] New: UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Date: Mon, 19 Mar 2018 08:08: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: 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 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-03/txt/msg02683.txt.bz2 Content-length: 2293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84946 Bug ID: 84946 Summary: UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Following causes UBSAN: $ ./xgcc -B. -mavx512f -O2 /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr82389.c ../../gcc/poly-int.h:845:5: runtime error: signed integer overflow: 9223372034573074432 + 8589934592 cannot be represented in type 'long int' #0 0x38fd659 in poly_int<1u, poly_result::result_kind>::type> operator+<1u, long, long>(poly_int_pod<1u, long> const&, poly_int_pod<1u, long> const&) ../../gcc/poly-int.h:845 #1 0x38fd659 in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 #2 0x3908e85 in process_store ../../gcc/gimple-ssa-store-merging.c:4043 #3 0x3908e85 in execute ../../gcc/gimple-ssa-store-merging.c:4279 #4 0x18f5250 in execute_one_pass(opt_pass*) ../../gcc/passes.c:2497 #5 0x18f85bb in execute_pass_list_1 ../../gcc/passes.c:2586 #6 0x18f85e4 in execute_pass_list_1 ../../gcc/passes.c:2587 #7 0x18f8674 in execute_pass_list(function*, opt_pass*) ../../gcc/passes.c:2597 #8 0xbe01ae in cgraph_node::expand() ../../gcc/cgraphunit.c:2139 #9 0xbe4f7d in expand_all_functions ../../gcc/cgraphunit.c:2275 #10 0xbe4f7d in symbol_table::compile() ../../gcc/cgraphunit.c:2624 #11 0xbeee87 in symbol_table::compile() ../../gcc/cgraphunit.c:2720 #12 0xbeee87 in symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2717 #13 0x1d100a8 in compile_file ../../gcc/toplev.c:480 #14 0x639d9c in do_compile ../../gcc/toplev.c:2132 #15 0x639d9c in toplev::main(int, char**) ../../gcc/toplev.c:2267 #16 0x63c7fa in main ../../gcc/main.c:39 #17 0x7ffff5cafa86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #18 0x63c929 in _start (/home/marxin/Programming/gcc/objdir2/gcc/cc1+0x63c929) >From gcc-bugs-return-598096-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:09:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21249 invoked by alias); 19 Mar 2018 08:09: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 21111 invoked by uid 48); 19 Mar 2018 08:08:56 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84946] UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: unknown 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on blocked 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-03/txt/msg02684.txt.bz2 Content-length: 546 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84946 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2018-3-19 Blocks| |63426 Target Milestone|--- |8.0 Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined >From gcc-bugs-return-598097-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:16:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24726 invoked by alias); 19 Mar 2018 08:15: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 24573 invoked by uid 48); 19 Mar 2018 08:15:42 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84811] [8 Regression] ICE on valid code at -O3 in 64-bit mode on x86_64-linux-gnu: in smallest_mode_for_size, at stor-layout.c:355 Date: Mon, 19 Mar 2018 08:15: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 8.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-03/txt/msg02685.txt.bz2 Content-length: 1985 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84811 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |rsandifo at gcc dot gnu.org Assignee|jakub at gcc dot gnu.org |unassigned at gcc dot gnu.org --- Comment #24 from Jakub Jelinek --- It is UB in the compiler, sure. And I believe the bug is in known_subrange_p and similar patterns, template inline bool known_subrange_p (const T1 &pos1, const T2 &size1, const T3 &pos2, const T4 &size2) { typedef typename poly_int_traits::coeff_type C2; typedef POLY_BINARY_COEFF (T2, T4) size_diff_type; typedef poly_span_traits span; return (known_gt (size1, POLY_INT_TYPE (T2) (0)) && (poly_coeff_traits::signedness > 0 || known_size_p (size1)) && known_size_p (size2) && known_ge (pos1, pos2) && known_le (size1, size2) && known_le (span::cast (pos1 - pos2), size2 - size1)); } isn't enough if pos2 is negative (i.e. poly_coeff_traits::signedness > 0), we can run into overflow that way. The standard way to handle this pos1 - pos2 <= size2 - size1 is perform the computation in unsigned type, but poly-int.h probably doesn't have so far an easy way to cast to corresponding unsigned poly_int if signedness > 0. What complicates it even more is that pos1 and pos2 can have different types. size2 - size1 could in theory overflow too, even assuming that sizeN can be only positive or -1, if size1 is -1 and size2 maximum signed size, but perhaps we can't run into that. I think other poly-int.h templates suffer from similar issues. Richard, can you please handle this? >From gcc-bugs-return-598098-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:18:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26509 invoked by alias); 19 Mar 2018 08:18: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 26455 invoked by uid 48); 19 Mar 2018 08:18:33 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84937] [7/8 Regression] ICE with class template argument deduction and auto Date: Mon, 19 Mar 2018 08: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.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: bug_status cf_reconfirmed_on cc 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-03/txt/msg02686.txt.bz2 Content-length: 534 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84937 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |7.4 Ever confirmed|0 |1 >From gcc-bugs-return-598099-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:20:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31713 invoked by alias); 19 Mar 2018 08:20: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 31663 invoked by uid 48); 19 Mar 2018 08:20:39 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84937] [7/8 Regression] ICE with class template argument deduction and auto Date: Mon, 19 Mar 2018 08: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.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02687.txt.bz2 Content-length: 130 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84937 --- Comment #1 from Marek Polacek --- r240756 >From gcc-bugs-return-598100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:21:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 34679 invoked by alias); 19 Mar 2018 08:21: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 32568 invoked by uid 48); 19 Mar 2018 08:21:09 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] New: UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 2018 08:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: unknown 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 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-03/txt/msg02688.txt.bz2 Content-length: 3365 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 Bug ID: 84947 Summary: UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Product: gcc Version: unknown Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Following causes UBSAN: $ cat a.c int main() { foo(0); } $ cat b.c struct a { } foo(struct a b) { } $ gcc -flto -O2 [ab].c a.c: In function ‘main’: a.c:1:14: warning: implicit declaration of function ‘foo’ [-Wimplicit-function-declaration] int main() { foo(0); } ^~~ a.c:1:14: warning: type of ‘foo’ does not match original declaration [-Wlto-type-mismatch] int main() { foo(0); } ^ b.c:2:3: note: return value type mismatch } foo(struct a b) { ^ b.c:2:3: note: type ‘struct a’ should match type ‘int’ b.c:2:3: note: ‘foo’ was previously declared here ../../gcc/hwint.h:293:61: runtime error: shift exponent 64 is too large for 64-bit type 'long unsigned int' #0 0x37bd3d1 in sext_hwi ../../gcc/hwint.h:293 #1 0x37bd3d1 in wi::binary_traits >, generic_wide_int >, wi::int_traits > >::precision_type, wi::int_traits > >::precision_type>::result_type wi::sext > >(generic_wide_int > const&, unsigned int) ../../gcc/wide-int.h:2133 #2 0x37bd3d1 in ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 #3 0x37c3d07 in propagate_bits_across_jump_function(cgraph_edge*, int, ipa_jump_func*, ipcp_bits_lattice*) ../../gcc/ipa-cp.c:1878 #4 0x37c5892 in propagate_constants_across_call ../../gcc/ipa-cp.c:2317 #5 0x37d8ca2 in propagate_constants_topo ../../gcc/ipa-cp.c:3224 #6 0x37d8ca2 in ipcp_propagate_stage ../../gcc/ipa-cp.c:3318 #7 0x37e28ee in ipcp_driver ../../gcc/ipa-cp.c:5044 #8 0x37e28ee in execute ../../gcc/ipa-cp.c:5138 #9 0x16690a0 in execute_one_pass(opt_pass*) ../../gcc/passes.c:2497 #10 0x166e35a in execute_ipa_pass_list(opt_pass*) ../../gcc/passes.c:2932 #11 0x6a22f8 in do_whole_program_analysis ../../gcc/lto/lto.c:3147 #12 0x6a22f8 in lto_main() ../../gcc/lto/lto.c:3368 #13 0x1a607ca in compile_file ../../gcc/toplev.c:455 #14 0x628cdc in do_compile ../../gcc/toplev.c:2132 #15 0x628cdc in toplev::main(int, char**) ../../gcc/toplev.c:2267 #16 0x62b76a in main ../../gcc/main.c:39 #17 0x7ffff5cafa86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #18 0x62b899 in _start (/home/marxin/bin/gcc/lib/gcc/x86_64-pc-linux-gnu/8.0.1/lto1+0x62b899) >From gcc-bugs-return-598101-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:27:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 54582 invoked by alias); 19 Mar 2018 08:27:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 54490 invoked by uid 48); 19 Mar 2018 08:27:00 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84946] UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Date: Mon, 19 Mar 2018 08: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: unknown 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status 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-03/txt/msg02689.txt.bz2 Content-length: 656 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84946 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |rsandifo at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Jakub Jelinek --- This is another thing that I could easily fix for UHWI computations, but not really sure how to do it with the poly-int.h stuff in the way. Richard, please have a look. >From gcc-bugs-return-598102-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:28:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55893 invoked by alias); 19 Mar 2018 08: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 55862 invoked by uid 48); 19 Mar 2018 08:28:32 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84936] [8 Regression] ICE with unexpanded parameter pack Date: Mon, 19 Mar 2018 08: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.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc 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-03/txt/msg02690.txt.bz2 Content-length: 611 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84936 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Target Milestone|--- |8.0 Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- r247842 >From gcc-bugs-return-598103-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:29:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 57163 invoked by alias); 19 Mar 2018 08:29: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 57053 invoked by uid 48); 19 Mar 2018 08:29:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84901] --dynamic-list=export is ignored in presence of -flto Date: Mon, 19 Mar 2018 08:29: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.2.0 X-Bugzilla-Keywords: lto 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-03/txt/msg02691.txt.bz2 Content-length: 1978 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84901 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |lto CC| |hjl.tools at gmail dot com, | |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener --- I think this is a BFD linker bug, with --dynamic-list the linker resolution with GNU ld 2.30 is the following 2 func.o 4 190 37612a23f90e023e PREVAILING_DEF_IRONLY func_attr_used_disabled 194 37612a23f90e023e PREVAILING_DEF_IRONLY func_attr_used_enabled 199 37612a23f90e023e PREVAILING_DEF_IRONLY var_attr_used_disabled 202 37612a23f90e023e PREVAILING_DEF_IRONLY var_attr_used_enabled main.o 5 201 7ea6415e61742ba7 PREVAILING_DEF main 224 7ea6415e61742ba7 RESOLVED_IR var_attr_used_disabled 226 7ea6415e61742ba7 RESOLVED_IR var_attr_used_enabled 218 7ea6415e61742ba7 RESOLVED_IR func_attr_used_enabled 220 7ea6415e61742ba7 RESOLVED_IR func_attr_used_disabled while when using gold it is 2 func.o 4 190 1ff7d470667c7203 PREVAILING_DEF_IRONLY_EXP func_attr_used_disabled 194 1ff7d470667c7203 PREVAILING_DEF_IRONLY_EXP func_attr_used_enabled 199 1ff7d470667c7203 PREVAILING_DEF_IRONLY_EXP var_attr_used_disabled 202 1ff7d470667c7203 PREVAILING_DEF_IRONLY_EXP var_attr_used_enabled main.o 5 201 64462b5d6de9d7fa PREVAILING_DEF main 224 64462b5d6de9d7fa RESOLVED_IR var_attr_used_disabled 226 64462b5d6de9d7fa RESOLVED_IR var_attr_used_enabled 218 64462b5d6de9d7fa RESOLVED_IR func_attr_used_enabled 220 64462b5d6de9d7fa RESOLVED_IR func_attr_used_disabled which looks correct to me and results in properly exported symbols. So it should work correctly when using gold (from recent enough binutils version, didn't try to bisect). HJ, can you look to fix GNU ld? >From gcc-bugs-return-598104-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:30:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 58921 invoked by alias); 19 Mar 2018 08:30: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 58243 invoked by uid 48); 19 Mar 2018 08:30:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84899] [6/7 Regression] ICE: in final_scan_insn_1, at final.c:3139 (error: could not split insn) Date: Mon, 19 Mar 2018 08:30: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.0 X-Bugzilla-Keywords: ice-on-valid-code 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: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_known_to_work Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02692.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84899 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Known to work| |8.0 >From gcc-bugs-return-598106-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:32:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68868 invoked by alias); 19 Mar 2018 08:32: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 68826 invoked by uid 48); 19 Mar 2018 08:32:43 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84936] [8 Regression] ICE with unexpanded parameter pack Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-code 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: 8.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-03/txt/msg02694.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84936 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org >From gcc-bugs-return-598105-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:32:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63582 invoked by alias); 19 Mar 2018 08:32: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 63525 invoked by uid 48); 19 Mar 2018 08:31:58 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84900] Compiler report a error unexpectedly. Date: Mon, 19 Mar 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: c X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: accepts-invalid 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 Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02693.txt.bz2 Content-length: 512 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84900 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #1 from Richard Biener --- I belive the code is invalid and using literal 0 instead of test = 0 shouldn't make it accepted either. clang rejects both variants. >From gcc-bugs-return-598107-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:34:42 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70220 invoked by alias); 19 Mar 2018 08:34: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 70162 invoked by uid 48); 19 Mar 2018 08:34:38 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84906] [8 Regression] Ambiguous conversion not diagnosed, causes entire selection-statement to be omitted Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: accepts-invalid, wrong-code 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: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02695.txt.bz2 Content-length: 293 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84906 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0 >From gcc-bugs-return-598108-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:36:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 78727 invoked by alias); 19 Mar 2018 08:36: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 78686 invoked by uid 48); 19 Mar 2018 08:36:44 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Mon, 19 Mar 2018 08: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: unknown X-Bugzilla-Keywords: 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: cf_gcctarget 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-03/txt/msg02696.txt.bz2 Content-length: 513 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84908 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |x86_64-*-*, i?86-*-* Status|WAITING |RESOLVED Resolution|--- |INVALID --- Comment #6 from Richard Biener --- So not a gcc bug?. >From gcc-bugs-return-598109-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:40:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83399 invoked by alias); 19 Mar 2018 08:40: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 83313 invoked by uid 48); 19 Mar 2018 08:40:04 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode. Date: Mon, 19 Mar 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: 7.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02697.txt.bz2 Content-length: 1021 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84711 --- Comment #9 from Tamar Christina --- Hi Christophhe, This seems to be a combine issue. It thinks that (set (reg/i:SF 16 s0) (vec_select:SF (reg:V4SF 16 s0 [ xD.6085 ]) (parallel [ (const_int 0 [0]) ]))) is a no-op while it doesn't think that (set (reg/i:SF 16 s0) (vec_select:SF (reg:V4SF 16 s0 [ xD.6082 ]) (parallel [ (const_int 3 [0x3]) ]))) is. It's removing the instruction and there doesn't seem to be anyway for the backend to tell it not to. The reason it worked before seem to be that we were telling it any subreg under big-endian is invalid, so the big-endian code would skip this no-op check. Marking the destination register as a use (use (match_dup 0)) seems to make it skip the first no-op check but later deletes it anyway. So I see no way around this without a mid-end change. As such I will revert the commit for GCC 8. >From gcc-bugs-return-598110-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:40:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 93808 invoked by alias); 19 Mar 2018 08:40: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 91370 invoked by uid 48); 19 Mar 2018 08:40:42 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 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: ipa X-Bugzilla-Version: unknown 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on 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-03/txt/msg02698.txt.bz2 Content-length: 354 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2018-3-19 Target Milestone|--- |8.0 >From gcc-bugs-return-598111-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:41:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114290 invoked by alias); 19 Mar 2018 08:41: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 111769 invoked by uid 48); 19 Mar 2018 08:41:18 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 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: c X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: diagnostic 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.0 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-03/txt/msg02699.txt.bz2 Content-length: 353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Target Milestone|--- |8.0 >From gcc-bugs-return-598112-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:41:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130342 invoked by alias); 19 Mar 2018 08:41: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 126604 invoked by uid 48); 19 Mar 2018 08:41:37 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84927] [7/8 Regressiion] ICE with NSDMI and reference Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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-03/txt/msg02700.txt.bz2 Content-length: 558 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84927 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 CC| |mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- r238559 >From gcc-bugs-return-598113-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:43:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70936 invoked by alias); 19 Mar 2018 08:43: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 65137 invoked by uid 48); 19 Mar 2018 08:42:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84925] [8 Regression] ICE with segfault in __PRETTY_FUNCTION__ Date: Mon, 19 Mar 2018 08: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: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02701.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84925 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 >From gcc-bugs-return-598114-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:43:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79244 invoked by alias); 19 Mar 2018 08:43: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 79192 invoked by uid 48); 19 Mar 2018 08:43:30 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 08:43: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: unknown 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on cc 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-03/txt/msg02702.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2018-3-19 CC| |jkoval at gcc dot gnu.org Target Milestone|--- |8.0 >From gcc-bugs-return-598116-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:44:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81521 invoked by alias); 19 Mar 2018 08:44: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 81480 invoked by uid 48); 19 Mar 2018 08:44:37 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84929] [8 Regression] ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Date: Mon, 19 Mar 2018 08: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: 8.0 X-Bugzilla-Keywords: ice-on-valid-code 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: 8.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-03/txt/msg02704.txt.bz2 Content-length: 458 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84929 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- Mine. >From gcc-bugs-return-598115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:44:18 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80573 invoked by alias); 19 Mar 2018 08:44: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 80527 invoked by uid 48); 19 Mar 2018 08:44:06 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84927] [7/8 Regressiion] ICE with NSDMI and reference Date: Mon, 19 Mar 2018 08: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: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: priority 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-03/txt/msg02703.txt.bz2 Content-length: 345 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84927 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |7.4 >From gcc-bugs-return-598117-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:46:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 17632 invoked by alias); 19 Mar 2018 08:46: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 14209 invoked by uid 48); 19 Mar 2018 08:45:53 -0000 From: "141242068 at smail dot nju.edu.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84900] Compiler report a error unexpectedly. Date: Mon, 19 Mar 2018 08:46: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: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: 141242068 at smail dot nju.edu.cn 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-03/txt/msg02705.txt.bz2 Content-length: 461 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84900 --- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> --- (In reply to Richard Biener from comment #1) > I belive the code is invalid and using literal 0 instead of test = 0 > shouldn't make it accepted either. clang rejects both variants. I think so too, the gcc should accept the both two forms or reject them together, but as I tested above, the gcc accept the first and reject the second. >From gcc-bugs-return-598118-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:47:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18966 invoked by alias); 19 Mar 2018 08:47: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 18891 invoked by uid 48); 19 Mar 2018 08:47:43 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 2018 08:47: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 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-03/txt/msg02706.txt.bz2 Content-length: 713 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-03-19 CC| |rguenth at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Richard Biener --- Please provide the .optimized dump. Note the testcase is expected to fully unroll on the GIMPLE level with both loops vectorized or both loops not vectorized. >From gcc-bugs-return-598119-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:47:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19812 invoked by alias); 19 Mar 2018 08:47: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 19688 invoked by uid 48); 19 Mar 2018 08:47:55 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 08:47: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.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: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority cf_reconfirmed_on cc version 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-03/txt/msg02707.txt.bz2 Content-length: 1842 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Last reconfirmed|2018-03-19 00:00:00 | CC| |hjl.tools at gmail dot com, | |jakub at gcc dot gnu.org, | |kyukhin at gcc dot gnu.org, | |uros at gcc dot gnu.org Version|unknown |8.0 Summary|UBSAN: |[8 Regression] UBSAN: |gcc/config/i386/i386.c:3331 |gcc/config/i386/i386.c:3331 |2:22: runtime error: shift |2:22: runtime error: shift |exponent 32 is too large |exponent 32 is too large |for 32-bit type 'int' |for 32-bit type 'int' --- Comment #1 from Jakub Jelinek --- Ugh, this is an important issue. In GCC 7 we had F_MAX 31, so all of the runtime feature tests are fine. We have: struct __processor_model { unsigned int __cpu_vendor; unsigned int __cpu_type; unsigned int __cpu_subtype; unsigned int __cpu_features[1]; } __cpu_model; and that is an exported variable from libgcc, thankfully only as @GCC_4.8 symbol and thus new programs shouldn't link against that. No matter what, at least for targets that don't use symbol versioning and prevent using that symbol, I think we need to rename __cpu_model to something else (__cpu_model2), add at least one another 32-bit __cpu_features bitfield and for features >= 32 use the second field instead of the first one. >From gcc-bugs-return-598123-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:49:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26590 invoked by alias); 19 Mar 2018 08:48: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 26246 invoked by uid 48); 19 Mar 2018 08:48:26 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 08:48: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.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: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02711.txt.bz2 Content-length: 401 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 Ever confirmed|0 |1 >From gcc-bugs-return-598120-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:48:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19957 invoked by alias); 19 Mar 2018 08:48: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 19729 invoked by uid 48); 19 Mar 2018 08:47:56 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84936] [8 Regression] ICE with unexpanded parameter pack Date: Mon, 19 Mar 2018 08:48: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-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: mpolacek at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02708.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84936 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 >From gcc-bugs-return-598121-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:48:36 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26331 invoked by alias); 19 Mar 2018 08:48: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 21175 invoked by uid 48); 19 Mar 2018 08:48:08 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84937] [7/8 Regression] ICE with class template argument deduction and auto Date: Mon, 19 Mar 2018 08:48: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.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02709.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84937 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >From gcc-bugs-return-598122-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:48:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26371 invoked by alias); 19 Mar 2018 08:48: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 26159 invoked by uid 48); 19 Mar 2018 08:48:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84938] [7/8 Regression] internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Date: Mon, 19 Mar 2018 08:48: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.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02710.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84938 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >From gcc-bugs-return-598124-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:49:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26889 invoked by alias); 19 Mar 2018 08:49: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 26385 invoked by uid 48); 19 Mar 2018 08:48:31 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84939] [6/7/8 Regression] internal compiler error: in gimplify_expr, at gimplify.c:12382 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02715.txt.bz2 Content-length: 356 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84939 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery Priority|P3 |P4 >From gcc-bugs-return-598127-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:49:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31041 invoked by alias); 19 Mar 2018 08:49: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 30870 invoked by uid 48); 19 Mar 2018 08:49:48 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84943] [8 Regression] internal compiler error: in build_call_a, at cp/call.c:374 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02714.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84943 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 >From gcc-bugs-return-598126-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:49:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30200 invoked by alias); 19 Mar 2018 08: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 29943 invoked by uid 48); 19 Mar 2018 08:49:36 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84942] [6/7/8 Regression] internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02713.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84942 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >From gcc-bugs-return-598125-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:49:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27455 invoked by alias); 19 Mar 2018 08:49: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 26922 invoked by uid 48); 19 Mar 2018 08:49:12 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02712.txt.bz2 Content-length: 292 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 >From gcc-bugs-return-598128-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 08:50:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 39733 invoked by alias); 19 Mar 2018 08:50: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 34582 invoked by uid 48); 19 Mar 2018 08:50:16 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84946] [8 Regression] UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Date: Mon, 19 Mar 2018 08:50: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.0.1 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: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority version 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-03/txt/msg02716.txt.bz2 Content-length: 639 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84946 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 Version|unknown |8.0.1 Summary|UBSAN: in |[8 Regression] UBSAN: in |mem_valid_for_store_merging |mem_valid_for_store_merging |../../gcc/gimple-ssa-store- |../../gcc/gimple-ssa-store- |merging.c:3951 |merging.c:3951 >From gcc-bugs-return-598129-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 09:01:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69432 invoked by alias); 19 Mar 2018 09:01: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 69368 invoked by uid 48); 19 Mar 2018 09:01:53 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84615] [8 Regression] Executable Segfault for some tests compiled with -m32 after r256284 Date: Mon, 19 Mar 2018 09:01: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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jb 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.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-03/txt/msg02717.txt.bz2 Content-length: 1192 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615 --- Comment #11 from Janne Blomqvist --- Yes, makes sense. And the same happens if one uses an external function with a hand-rolled interface declaration: function chararray2string(chararray) result(text) character(len=1), dimension(:) :: chararray ! input character(len=int(size(chararray, 1), kind=8)) :: text ! output print *, ">", chararray, "<" do i = 1,size(chararray,1) text(i:i) = chararray (i) end do print *, ">", text, "<" end function chararray2string program TestStringTools interface function chararray2string(chararray) result(text) character(len=1), dimension(:) :: chararray ! input character(len=int(size(chararray, 1), kind=8)) :: text ! output end function chararray2string end interface character(len=52) :: txt character(len=1), dimension(52) :: chararr = & (/(char(i+64),char(i+96), i = 1,26)/) print *, ">", chararr, "<" txt = chararray2string(chararr) if (txt .ne. "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz") & STOP 1 end program TestStringTools >From gcc-bugs-return-598130-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 09:15:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19506 invoked by alias); 19 Mar 2018 09:15: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 19209 invoked by uid 55); 19 Mar 2018 09:14:57 -0000 From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84711] AArch32 big-endian fails when taking subreg of a vector mode to a scalar mode. Date: Mon, 19 Mar 2018 09:15: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02718.txt.bz2 Content-length: 744 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84711 --- Comment #10 from Tamar Christina --- Author: tnfchris Date: Mon Mar 19 09:14:25 2018 New Revision: 258642 URL: https://gcc.gnu.org/viewcvs?rev=258642&root=gcc&view=rev Log: gcc/ 2018-03-19 Tamar Christina PR target/84711 * config/arm/arm.c (arm_can_change_mode_class): revert r258554. gcc/testsuite/ 2018-03-19 Tamar Christina PR target/84711 * gcc.target/arm/big-endian-subreg.c: Delete. Removed: trunk/gcc/testsuite/gcc.target/arm/big-endian-subreg.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.c trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598131-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 09:15:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20401 invoked by alias); 19 Mar 2018 09:15: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 19822 invoked by uid 48); 19 Mar 2018 09:15:49 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84615] [8 Regression] Executable Segfault for some tests compiled with -m32 after r256284 Date: Mon, 19 Mar 2018 09: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.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jb 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.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-03/txt/msg02719.txt.bz2 Content-length: 426 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615 --- Comment #12 from Janne Blomqvist --- So to be clear, the problem seems to be that while the code generation for the function itself appears Ok, it generates the interface wrong (i.e. uses the declared charlen kind instead of C_SIZE_T), and thus calling it doesn't work properly. I still have no idea where in the frontend code the error is. >From gcc-bugs-return-598132-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 09:24:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 81045 invoked by alias); 19 Mar 2018 09:24: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 77240 invoked by uid 48); 19 Mar 2018 09:24:35 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 09:24: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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-03/txt/msg02720.txt.bz2 Content-length: 1169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 43696 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43696&action=edit gcc8-pr84945.patch Untested fix. I think this ought to work well on x86_64/i?86-linux, but I'm afraid is going to be an ABI change otherwise, because __cpu_model exported out of libgcc will change in that case size and objects referencing it might have copy relocations against it. Another possibility is not to add the extra features into __cpu_model.__cpu_features, but add a new variable (say __cpu_features2), and make sure to not add this variable at all into libgcc_s.so.1 (i.e. force it to be libgcc.a only), then __builtin_cpu_supports for these new features would always link in the libgcc.a(cpuinfo.o). >From gcc-bugs-return-598133-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 09:36:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80699 invoked by alias); 19 Mar 2018 09:36: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 76182 invoked by uid 48); 19 Mar 2018 09:36:50 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/84643] gcc/optabs.c:6549:26: runtime error: load of value 131075, which is not a valid value for type 'memmodel' Date: Mon, 19 Mar 2018 09:36: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: 8.0.1 X-Bugzilla-Keywords: 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 cf_reconfirmed_on assigned_to everconfirmed 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-03/txt/msg02721.txt.bz2 Content-length: 689 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84643 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-03-19 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #3 from Jakub Jelinek --- Created attachment 43697 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43697&action=edit gcc8-pr84643.patch Untested fix. >From gcc-bugs-return-598134-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:01:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59700 invoked by alias); 19 Mar 2018 10:01: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 59571 invoked by uid 48); 19 Mar 2018 10:00:54 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/84948] New: [8 regression] ICE in set_from, at go/gofrontend/types.cc:2660 Date: Mon, 19 Mar 2018 10:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 8.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: ian at airs dot com 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_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-03/txt/msg02722.txt.bz2 Content-length: 6007 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84948 Bug ID: 84948 Summary: [8 regression] ICE in set_from, at go/gofrontend/types.cc:2660 Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: schwab@linux-m68k.org CC: cmang at google dot com Target Milestone: --- Target: m68k-*-* It looks like set_from makes some invalid alignment assumptions. libtool: compile: /home/abuild/rpmbuild/BUILD/gcc-8.0.1+r258445/obj-m68k-suse-linux/./gcc/gccgo -B/home/abuild/rpmbuild/BUILD/gcc-8.0.1+r258445/obj-m68k-suse-linux/./gcc/ -B/usr/m68k-suse-linux/bin/ -B/usr/m68k-suse-linux/lib/ -isystem /usr/m68k-suse-linux/include -isystem /usr/m68k-suse-linux/sys-include -O2 -g -I . -c -fgo-pkgpath=runtime -fgo-c-header=runtime.inc.tmp -fgo-compiling-runtime ../../../libgo/go/runtime/alg.go ../../../libgo/go/runtime/atomic_pointer.go ../../../libgo/go/runtime/cgo_gccgo.go ../../../libgo/go/runtime/cgocall.go ../../../libgo/go/runtime/cgocheck.go ../../../libgo/go/runtime/chan.go ../../../libgo/go/runtime/compiler.go ../../../libgo/go/runtime/cpuprof.go ../../../libgo/go/runtime/cputicks.go ../../../libgo/go/runtime/debug.go ../../../libgo/go/runtime/env_posix.go ../../../libgo/go/runtime/error.go ../../../libgo/go/runtime/extern.go ../../../libgo/go/runtime/fastlog2.go ../../../libgo/go/runtime/fastlog2table.go ../../../libgo/go/runtime/ffi.go ../../../libgo/go/runtime/float.go ../../../libgo/go/runtime/hash32.go ../../../libgo/go/runtime/hashmap.go ../../../libgo/go/runtime/hashmap_fast.go ../../../libgo/go/runtime/heapdump.go ../../../libgo/go/runtime/iface.go ../../../libgo/go/runtime/lfstack.go ../../../libgo/go/runtime/lfstack_32bit.go ../../../libgo/go/runtime/lock_futex.go ../../../libgo/go/runtime/malloc.go ../../../libgo/go/runtime/mbarrier.go ../../../libgo/go/runtime/mbitmap.go ../../../libgo/go/runtime/mcache.go ../../../libgo/go/runtime/mcentral.go ../../../libgo/go/runtime/mem_gccgo.go ../../../libgo/go/runtime/mfinal.go ../../../libgo/go/runtime/mfixalloc.go ../../../libgo/go/runtime/mgc.go ../../../libgo/go/runtime/mgc_gccgo.go ../../../libgo/go/runtime/mgclarge.go ../../../libgo/go/runtime/mgcmark.go ../../../libgo/go/runtime/mgcsweep.go ../../../libgo/go/runtime/mgcsweepbuf.go ../../../libgo/go/runtime/mgcwork.go ../../../libgo/go/runtime/mheap.go ../../../libgo/go/runtime/mprof.go ../../../libgo/go/runtime/msan0.go ../../../libgo/go/runtime/msize.go ../../../libgo/go/runtime/mstats.go ../../../libgo/go/runtime/mwbbuf.go ../../../libgo/go/runtime/netpoll.go ../../../libgo/go/runtime/netpoll_epoll.go ../../../libgo/go/runtime/os_gccgo.go ../../../libgo/go/runtime/os_linux.go ../../../libgo/go/runtime/panic.go ../../../libgo/go/runtime/print.go ../../../libgo/go/runtime/proc.go ../../../libgo/go/runtime/profbuf.go ../../../libgo/go/runtime/proflabel.go ../../../libgo/go/runtime/race0.go ../../../libgo/go/runtime/rdebug.go ../../../libgo/go/runtime/relax_stub.go ../../../libgo/go/runtime/runtime.go ../../../libgo/go/runtime/runtime1.go ../../../libgo/go/runtime/runtime2.go ../../../libgo/go/runtime/rwmutex.go ../../../libgo/go/runtime/select.go ../../../libgo/go/runtime/sema.go ../../../libgo/go/runtime/signal_gccgo.go ../../../libgo/go/runtime/signal_sighandler.go ../../../libgo/go/runtime/signal_unix.go ../../../libgo/go/runtime/sigqueue.go ../../../libgo/go/runtime/sizeclasses.go ../../../libgo/go/runtime/slice.go ../../../libgo/go/runtime/string.go ../../../libgo/go/runtime/stubs.go ../../../libgo/go/runtime/stubs2.go ../../../libgo/go/runtime/stubs_linux.go ../../../libgo/go/runtime/symtab.go ../../../libgo/go/runtime/time.go ../../../libgo/go/runtime/timestub.go ../../../libgo/go/runtime/trace.go ../../../libgo/go/runtime/traceback_gccgo.go ../../../libgo/go/runtime/type.go ../../../libgo/go/runtime/typekind.go ../../../libgo/go/runtime/unaligned2.go ../../../libgo/go/runtime/utf8.go ../../../libgo/go/runtime/write_err.go runtime_sysinfo.go sigtab.go -fPIC -o .libs/runtime.o go1: internal compiler error: in set_from, at go/gofrontend/types.cc:2660 0x80241bd9 Ptrmask::set_from(Gogo*, Type*, long long, long long) ../../gcc/go/gofrontend/types.cc:2660 0x80241959 Ptrmask::set_from(Gogo*, Type*, long long, long long) ../../gcc/go/gofrontend/types.cc:2696 0x80241cb1 Type::gc_ptrmask_var(Gogo*, long long, long long) ../../gcc/go/gofrontend/types.cc:2816 0x80243409 Type::make_gc_symbol_var(Gogo*) ../../gcc/go/gofrontend/types.cc:2523 0x802437ab Type::gc_symbol_pointer(Gogo*) ../../gcc/go/gofrontend/types.cc:2473 0x801ad2ad Expression::get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:413 0x801c2ee9 Struct_construction_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:12782 0x801ad2ad Expression::get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:413 0x801c2ee9 Struct_construction_expression::do_get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:12782 0x801ad2ad Expression::get_backend(Translate_context*) ../../gcc/go/gofrontend/expressions.cc:413 0x8023c0d7 Type::make_type_descriptor_var(Gogo*) ../../gcc/go/gofrontend/types.cc:1418 0x8023c377 Type::type_descriptor_pointer(Gogo*, Location) ../../gcc/go/gofrontend/types.cc:1298 0x801e9107 Named_object::get_backend(Gogo*, std::vector >&, std::vector >&, std::vector >&) ../../gcc/go/gofrontend/gogo.cc:7524 0x801f0d8d Gogo::write_globals() ../../gcc/go/gofrontend/gogo.cc:1329 0x801db3b5 go_write_globals() ../../gcc/go/gofrontend/go.cc:183 >From gcc-bugs-return-598135-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:03:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66334 invoked by alias); 19 Mar 2018 10:03: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 66288 invoked by uid 48); 19 Mar 2018 10:03:36 -0000 From: "schwab@linux-m68k.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/84948] [8 regression] ICE in set_from, at go/gofrontend/types.cc:2660 Date: Mon, 19 Mar 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: go X-Bugzilla-Version: 8.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: ian at airs dot com X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02723.txt.bz2 Content-length: 288 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84948 Andreas Schwab changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.0 >From gcc-bugs-return-598136-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:06:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69338 invoked by alias); 19 Mar 2018 10:06: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 69265 invoked by uid 48); 19 Mar 2018 10:05:57 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84942] [6/7/8 Regression] internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Date: Mon, 19 Mar 2018 10: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code 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: 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-03/txt/msg02724.txt.bz2 Content-length: 1146 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84942 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Using cp_build_unary_op for FIX_TRUNC_EXPR looks wrong to me, that function uses the type of the operand as the type of the unary expression. Perhaps: --- gcc/cp/pt.c.jj 2018-03-16 21:11:04.440773108 +0100 +++ gcc/cp/pt.c 2018-03-19 10:58:39.803657613 +0100 @@ -17495,8 +17495,10 @@ tsubst_copy_and_build (tree t, complain|decltype_flag)); case FIX_TRUNC_EXPR: - RETURN (cp_build_unary_op (FIX_TRUNC_EXPR, RECUR (TREE_OPERAND (t, 0)), - false, complain)); + op1 = RECUR (TREE_OPERAND (t, 0)); + if (error_operand_p (op1)) + RETURN (error_mark_node); + RETURN (build1 (FIX_TRUNC_EXPR, TREE_TYPE (t), op1)); case ADDR_EXPR: op1 = TREE_OPERAND (t, 0); >From gcc-bugs-return-598137-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:16:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 90795 invoked by alias); 19 Mar 2018 10:16: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 90484 invoked by uid 48); 19 Mar 2018 10:16:30 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84615] [8 Regression] Executable Segfault for some tests compiled with -m32 after r256284 Date: Mon, 19 Mar 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: fortran X-Bugzilla-Version: 8.0.1 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: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02725.txt.bz2 Content-length: 507 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615 --- Comment #13 from Thomas Koenig --- (In reply to Janne Blomqvist from comment #12) > So to be clear, the problem seems to be that while the code generation for > the function itself appears Ok, it generates the interface wrong (i.e. uses > the declared charlen kind instead of C_SIZE_T), and thus calling it doesn't > work properly. I'm confused. Should not the charlen kind be identical to C_SIZE_T, also for -m32? >From gcc-bugs-return-598138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:24:45 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22213 invoked by alias); 19 Mar 2018 10:24: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 21781 invoked by uid 48); 19 Mar 2018 10:24:40 -0000 From: "jb at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84615] [8 Regression] Executable Segfault for some tests compiled with -m32 after r256284 Date: Mon, 19 Mar 2018 10:24: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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jb 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.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-03/txt/msg02726.txt.bz2 Content-length: 1026 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615 --- Comment #14 from Janne Blomqvist --- (In reply to Thomas Koenig from comment #13) > (In reply to Janne Blomqvist from comment #12) > > So to be clear, the problem seems to be that while the code generation for > > the function itself appears Ok, it generates the interface wrong (i.e. uses > > the declared charlen kind instead of C_SIZE_T), and thus calling it doesn't > > work properly. > > I'm confused. Should not the charlen kind be identical to C_SIZE_T, also > for -m32? Yes, it should. But if you look e.g. at #c8 and #c9 you'll see that in the interface the compiler thinks it should be kind=8 (on 32-bit i686), most likely because the charlen is declared as kind=8. Which isn't C_SIZE_T which is 4 on 32-bit targets. So what I'm trying to say is that we should always treat charlens as kind=C_SIZE_T (gfc_charlen_type_node) in interfaces regardless of how they are actually declared in the Fortran source code. >From gcc-bugs-return-598139-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:25:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23100 invoked by alias); 19 Mar 2018 10: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 22365 invoked by uid 48); 19 Mar 2018 10:24:45 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/84941] [6/7/8 Regression] internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()) Date: Mon, 19 Mar 2018 10:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-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: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc component version 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-03/txt/msg02727.txt.bz2 Content-length: 1156 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84941 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Component|c++ |inline-asm Version|8.0.1 |8.0 Target Milestone|--- |8.0 Summary|internal compiler error: in |[6/7/8 Regression] internal |reg_overlap_mentioned_p, at |compiler error: in |rtlanal.c:1870 |reg_overlap_mentioned_p, at |(reg_overlap_mentioned_p()/ |rtlanal.c:1870 |match_asm_constraints_1()) |(reg_overlap_mentioned_p()/ | |match_asm_constraints_1()) --- Comment #2 from Jakub Jelinek --- Doesn't need the destructor, not C++ void foo (void) { short *b[1] = { 0 }; asm ("" : "=m" (b), "=d" (b) : "1p" (b)); } ICEs at -O1+ as well. Started with r128864. >From gcc-bugs-return-598140-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:28:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60352 invoked by alias); 19 Mar 2018 10:28: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 60276 invoked by uid 48); 19 Mar 2018 10:28:32 -0000 From: "julia.koval at intel dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 10: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: julia.koval at intel dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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-03/txt/msg02728.txt.bz2 Content-length: 599 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Julia Koval changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |julia.koval at intel dot com --- Comment #3 from Julia Koval --- Created attachment 43698 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43698&action=edit 64bit const patch As an idea, can we use 64bit int instead of second array element(was proposed in PR84932)? >From gcc-bugs-return-598141-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:39:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 4930 invoked by alias); 19 Mar 2018 10:39: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 4864 invoked by uid 48); 19 Mar 2018 10:39:30 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 10: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02729.txt.bz2 Content-length: 167 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 --- Comment #4 from Jakub Jelinek --- See above, that is an ABI change on all of x86. >From gcc-bugs-return-598143-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:40:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6766 invoked by alias); 19 Mar 2018 10:40: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 6422 invoked by uid 48); 19 Mar 2018 10:40:49 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 10: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02732.txt.bz2 Content-length: 440 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #5 from Jakub Jelinek --- *** Bug 84932 has been marked as a duplicate of this bug. *** >From gcc-bugs-return-598144-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:40:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7105 invoked by alias); 19 Mar 2018 10:40: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 6495 invoked by uid 48); 19 Mar 2018 10:40:50 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/63426] [meta-bug] Issues found with -fsanitize=undefined Date: Mon, 19 Mar 2018 10:40: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: 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: 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-03/txt/msg02731.txt.bz2 Content-length: 485 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 Bug 63426 depends on bug 84932, which changed state. Bug 84932 Summary: [8 Regression] i386/cpuinfo.h:293: 4 * bad bitshifts ? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84932 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE >From gcc-bugs-return-598142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:40:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6530 invoked by alias); 19 Mar 2018 10: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 6350 invoked by uid 48); 19 Mar 2018 10:40:48 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84932] [8 Regression] i386/cpuinfo.h:293: 4 * bad bitshifts ? Date: Mon, 19 Mar 2018 10: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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-03/txt/msg02730.txt.bz2 Content-length: 561 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84932 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jakub at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #3 from Jakub Jelinek --- Dup. *** This bug has been marked as a duplicate of bug 84945 *** >From gcc-bugs-return-598145-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:59:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80115 invoked by alias); 19 Mar 2018 10:59: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 80018 invoked by uid 48); 19 Mar 2018 10:59:00 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug inline-asm/84941] [6/7/8 Regression] internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()) Date: Mon, 19 Mar 2018 10:59:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: inline-asm X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: ice-on-invalid-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: 8.0 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-03/txt/msg02733.txt.bz2 Content-length: 578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84941 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Created attachment 43699 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43699&action=edit gcc8-pr84941.patch Untested fix. >From gcc-bugs-return-598146-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 10:59:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80225 invoked by alias); 19 Mar 2018 10:59: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 80030 invoked by uid 48); 19 Mar 2018 10:59:01 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Mon, 19 Mar 2018 10:59: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status version 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-03/txt/msg02734.txt.bz2 Content-length: 3257 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Version|unknown |8.0.1 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org --- Comment #2 from Richard Biener --- else if (is_min /* As a special exception preserve non-null ranges. */ && !(TYPE_UNSIGNED (TREE_TYPE (min)) && integer_zerop (max))) { tree one = build_int_cst (TREE_TYPE (max), 1); min = int_const_binop (PLUS_EXPR, max, one); max = vrp_val_max (TREE_TYPE (max)); t = VR_RANGE; } the issue is we end up with ~[0, 2147483647] which we want to canonicalize to [2147483647 + 1, type-max]. But with -fstrict-enums TYPE_MAX_VALUE of the enumeral type is 1. So we have out-of-bound ranges as input if we look at TYPE_MIN/MAX_VALUE which leads to GIGO. Not sure what to do here at this point. I was always uncomfortable with using TYPE_MIN/MAX_VALUE and given we use wi::min/max_value in a lot of places already we could do the same in vrp_val_min/max. Another fix would be to prune those out-of-bound ranges in both set_and_canonicalize_value_range and set_value_range. Or a more localized fix in set_and_canonicalize_value_range instead of looking for an exact match of vrp_val_is_min/max check <=/>= here and thus in this case drop into if (is_min && is_max) { /* We cannot deal with empty ranges, drop to varying. ??? This could be VR_UNDEFINED instead. */ set_value_range_to_varying (vr); return; } we still have the issue of using TYPE_MIN/MAX_VALUE and allowing out-of-bound ranges at the same time though. vrp_val_is_min/max has the issue to only work reliably for integral types as well. Auditing all users of vrp_val_[is_]{min,max} is necessary here. So the simplest fix I can think of is Index: gcc/tree-vrp.c =================================================================== --- gcc/tree-vrp.c (revision 258641) +++ gcc/tree-vrp.c (working copy) @@ -386,8 +386,13 @@ set_and_canonicalize_value_range (value_ /* Anti-ranges that can be represented as ranges should be so. */ if (t == VR_ANTI_RANGE) { - bool is_min = vrp_val_is_min (min); - bool is_max = vrp_val_is_max (max); + /* For -fstrict-enums we may receive out-of-range ranges so consider + values < -INF and values > INF as -INF/INF as well. */ + tree type = TREE_TYPE (min); + bool is_min = (INTEGRAL_TYPE_P (type) + && tree_int_cst_compare (min, TYPE_MIN_VALUE (type)) <= 0); + bool is_max = (INTEGRAL_TYPE_P (type) + && tree_int_cst_compare (max, TYPE_MAX_VALUE (type)) >= 0); if (is_min && is_max) { >From gcc-bugs-return-598147-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:04:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86390 invoked by alias); 19 Mar 2018 11:04: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 86337 invoked by uid 48); 19 Mar 2018 11:04:09 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 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: ipa X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-valid-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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version 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-03/txt/msg02735.txt.bz2 Content-length: 1122 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unknown |8.0.1 Target Milestone|8.0 |--- --- Comment #1 from Richard Biener --- #if defined (__GNUC__) { /* Take the faster path if the implementation-defined bits it's relying on are implemented the way we expect them to be. Namely, conversion from unsigned to signed preserves bit pattern, and right shift of a signed value propagates the sign bit. We have to convert from signed to unsigned and back, because when left shifting signed values, any overflow is undefined behavior. */ gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT); int shift = HOST_BITS_PER_WIDE_INT - prec; return ((HOST_WIDE_INT) ((unsigned HOST_WIDE_INT) src << shift)) >> shift; } #else so prec is zero for some reason? >From gcc-bugs-return-598148-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:26:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66522 invoked by alias); 19 Mar 2018 11:26: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 66472 invoked by uid 48); 19 Mar 2018 11:26:54 -0000 From: "christoph@lipka-koeln.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84949] New: -ffast-math bugged with respect to NaNs Date: Mon, 19 Mar 2018 11:26: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: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: christoph@lipka-koeln.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 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-03/txt/msg02736.txt.bz2 Content-length: 984 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84949 Bug ID: 84949 Summary: -ffast-math bugged with respect to NaNs Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: christoph@lipka-koeln.de Target Milestone: --- When -ffast-math is specified, NaNs are broken in _one_ of the following ways: (A) std::isnan() and std::fpclassify() are broken in that they fail to identify NaNs. -OR- (B) std::numeric_limits::has_quiet_NaN() is broken in that it claims that NaNs are supported. Seen with both g++ 4.8.4 on Ubuntu 14.04, as well as g++ 5.4.0 on MS Windows Subsystem for Linux, using the following set of compiler flags in both cases: -pipe -Wno-multichar -Wno-write-strings -fno-enforce-eh-specs -Wno-non-template-friend -s -O3 -ffast-math -march=native -pthread >From gcc-bugs-return-598149-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:35:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85357 invoked by alias); 19 Mar 2018 11: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 77151 invoked by uid 48); 19 Mar 2018 11:35:44 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/84949] -ffast-math bugged with respect to NaNs Date: Mon, 19 Mar 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: libstdc++ X-Bugzilla-Version: 5.4.0 X-Bugzilla-Keywords: 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: cc 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-03/txt/msg02737.txt.bz2 Content-length: 1165 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84949 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org Component|c++ |libstdc++ --- Comment #1 from Richard Biener --- -ffast-math implies -ffinite-math-only which causes GCC to assume no inputs to isnan/fpclassify are NaN. As a programmer using -ffast-math you give this guarantee to the compiler, so what you report is a pilot error? I'm not sure if std::numeric_limits is wrong with -ffinite-math-only given NaNs are still "supported" as in double nan = __builtin_nan(""); int main() { __builtin_printf ("%f\n", nan); return __builtin_isnan (nan); } > g++-7 t.C -ffast-math -O2 > ./a.out nan > echo $? 0 so NaNs are there. But in the testcase I broke the contract with the compiler with feeding a NaN into isnan(). I guess the compiler could have as well replaced the NaN generated by __builtin_nan("") with zero. >From gcc-bugs-return-598150-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:36:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19502 invoked by alias); 19 Mar 2018 11:36: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 12558 invoked by uid 48); 19 Mar 2018 11:36:28 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84942] [6/7/8 Regression] internal compiler error: in fold_convert_const_int_from_real, at fold-const.c:2011 Date: Mon, 19 Mar 2018 11:36: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.1 X-Bugzilla-Keywords: ice-on-invalid-code 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: 6.5 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-03/txt/msg02738.txt.bz2 Content-length: 260 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84942 --- Comment #3 from Jakub Jelinek --- Created attachment 43700 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43700&action=edit gcc8-pr84942.patch Full untested patch. >From gcc-bugs-return-598151-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:46:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30633 invoked by alias); 19 Mar 2018 11:46: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 30560 invoked by uid 48); 19 Mar 2018 11:46:13 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84891] -fno-signed-zeros leads to optimization which should be possible only if also -ffinite-math-only is on Date: Mon, 19 Mar 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: 7.2.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: 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-03/txt/msg02739.txt.bz2 Content-length: 1563 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org, | |pault at gcc dot gnu.org --- Comment #3 from Richard Biener --- (In reply to joseph@codesourcery.com from comment #2) > I'm not sure what the C++ complex multiplication / division requirements > are here (for that matter, C doesn't seem to precisely define which NaN - > which value with at least one NaN part and the other part not infinite - > is produced from complex multiplication / division in this case, though > NaN + iNaN probably makes more sense). I don't see anything in the C++ standard going into detail here either. It simply says (from C++14 26.4/3): "If the result of a function is not mathematically defined or not in the range of representable vaslues for its type, the behavior is undefined." which to my reading makes any operation with NaN/Inf undefined given "mathematically" a NaN or Inf does not exist. I can't find anything in the Fortran2008 standard specifying how arithmetic on intrinsic complex types work. CCing two Fortran maintainers to see whether Fortran requires us to do any changes here. So we conclude this bug isn't a bug after all just there's implementation defined behavior that would make more sense? >From gcc-bugs-return-598152-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:48:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33119 invoked by alias); 19 Mar 2018 11:48: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 32875 invoked by uid 48); 19 Mar 2018 11:48:03 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code 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-03/txt/msg02740.txt.bz2 Content-length: 533 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Similar to PR84665. Also needs an empty class to invoke constexpr evaluation. >From gcc-bugs-return-598153-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:52:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 40571 invoked by alias); 19 Mar 2018 11:52: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 40507 invoked by uid 48); 19 Mar 2018 11:52:03 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 2018 11:52: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.1 X-Bugzilla-Keywords: ice-on-invalid-code 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-03/txt/msg02741.txt.bz2 Content-length: 251 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 --- Comment #4 from Jakub Jelinek --- Slightly adjusted testcase: void foo (int x) { struct {} a[1][x](-a[0]); // { dg-error "wrong type argument to unary minus" } } >From gcc-bugs-return-598154-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:52:31 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41451 invoked by alias); 19 Mar 2018 11:52: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 41390 invoked by uid 48); 19 Mar 2018 11:52:26 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84940] [7/8 Regression] internal compiler error: in build_value_init_noctor, at cp/init.c:465 Date: Mon, 19 Mar 2018 11:52: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.1 X-Bugzilla-Keywords: error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 7.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02742.txt.bz2 Content-length: 353 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84940 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery Priority|P2 |P4 >From gcc-bugs-return-598155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:53:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 42759 invoked by alias); 19 Mar 2018 11:53: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 42624 invoked by uid 48); 19 Mar 2018 11:52:58 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84665] [7/8 Regression] internal compiler error: in build_value_init, at cp/init.c:343 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code 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-03/txt/msg02743.txt.bz2 Content-length: 139 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84665 --- Comment #3 from Jakub Jelinek --- Related to PR84940. >From gcc-bugs-return-598156-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 11:58:07 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80756 invoked by alias); 19 Mar 2018 11:58: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 79484 invoked by uid 48); 19 Mar 2018 11:58:01 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Mon, 19 Mar 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: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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: 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-03/txt/msg02744.txt.bz2 Content-length: 424 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84908 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |MOVED --- Comment #7 from H.J. Lu --- It is a kernel bug: https://bugzilla.kernel.org/show_bug.cgi?id=199129 >From gcc-bugs-return-598157-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:03:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104510 invoked by alias); 19 Mar 2018 12:03: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 104354 invoked by uid 48); 19 Mar 2018 12:03:35 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 12: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02745.txt.bz2 Content-length: 875 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 --- Comment #6 from H.J. Lu --- (In reply to Jakub Jelinek from comment #2) > Created attachment 43696 [details] > gcc8-pr84945.patch > > Untested fix. > I think this ought to work well on x86_64/i?86-linux, but I'm afraid is > going to be an ABI change otherwise, because __cpu_model exported out of > libgcc will change in that case size and objects referencing it might have > copy relocations against it. > > Another possibility is not to add the extra features into > __cpu_model.__cpu_features, but add a new variable (say __cpu_features2), > and make sure to not add this variable at all into libgcc_s.so.1 (i.e. force > it to be libgcc.a only), then __builtin_cpu_supports for these new features > would always link in the libgcc.a(cpuinfo.o). I like this approach better. >From gcc-bugs-return-598158-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:17:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118757 invoked by alias); 19 Mar 2018 12:17: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 118225 invoked by uid 48); 19 Mar 2018 12:16:45 -0000 From: "fw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 2018 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw 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-03/txt/msg02746.txt.bz2 Content-length: 849 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #1 from Florian Weimer --- This bit needs to change for glibc 2.27 and later: #ifdef __i386__ # define DL_INTERNAL_FUNCTION __attribute__((regparm(3), stdcall)) #else # define DL_INTERNAL_FUNCTION #endif We removed the regparm attribute for compatibility with CET. The GCC manual says that regparm (3) is ABI-compatible on i386, but it really is not. We could perhaps add an alias to newer glibcs (including 2.27), so that libasan can detect that glibc is more recent and call the function with the right ABI. Or expose the information via dlinfo (but the interface is problematic because it assumes that the static TLS size is fixed—we could eventually switch to a model where we have a larger reserved region for the initial thread). >From gcc-bugs-return-598159-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:18:48 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 121129 invoked by alias); 19 Mar 2018 12: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 120857 invoked by uid 48); 19 Mar 2018 12:18:28 -0000 From: "noone@turm-lahnstein.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84891] -fno-signed-zeros leads to optimization which should be possible only if also -ffinite-math-only is on Date: Mon, 19 Mar 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: middle-end X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: noone@turm-lahnstein.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-03/txt/msg02747.txt.bz2 Content-length: 1334 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 --- Comment #4 from ead --- From my naive point of view: - The c++ standard doesn't define how complex-number-multiplication should work, it is implementation defined/gcc-specific (I'm not a standard-scholar, so might be very wrong about it). - One can deduce from the results in the IEEE 754 mode, how this multiplication (implementation-defined and gcc-specific) is implemented. - One's expectation with -fno-signed-zeros is that only transformations which honor infs/nans can be performed by the optimizer. Clearly, we cannot refer to the standard to see, what the result with -fno-signed-zeros should be, because -fno-signed-zeros is not covered by standard, but is a gcc-specific option. So in this case, the effect of -fno-signed-zeros is not covered by the description in the man-pages (at least as I understand that): -fno-signed-zeros Allow optimizations for floating point arithmetic that ignore the signedness of zero. IEEE arithmetic specifies the behavior of distinct +0.0 and -0.0 values, which then prohibits simplification of expressions such as x+0.0 or 0.0*x (even with -ffinite-math-only). This option implies that the sign of a zero result isn't significant. The default is -fsigned-zeros. >From gcc-bugs-return-598160-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:23:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 130093 invoked by alias); 19 Mar 2018 12:23: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 130029 invoked by uid 48); 19 Mar 2018 12:23:25 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84938] [7/8 Regression] internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Date: Mon, 19 Mar 2018 12: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code 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-03/txt/msg02748.txt.bz2 Content-length: 525 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84938 --- Comment #2 from Jakub Jelinek --- int &&a = 1 / ~-1; is enough. When we have int &&b = 1 / 0; this doesn't ICE. When creating TRUNC_DIV_EXPR for the latter, we don't set the constant bit on it, because the last argument is integer_zerop. That is not the case with the former testcase, but both arguments are TREE_CONSTANT and so we set TREE_CONSTANT on the TRUNC_DIV_EXPR as well. I'm surprised we never cp_fold this initializer. >From gcc-bugs-return-598162-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:27:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5234 invoked by alias); 19 Mar 2018 12:27: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 2263 invoked by uid 55); 19 Mar 2018 12:27:18 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 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: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: 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-03/txt/msg02749.txt.bz2 Content-length: 2162 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #2 from rguenther at suse dot de --- On Mon, 19 Mar 2018, fw at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 > > --- Comment #1 from Florian Weimer --- > This bit needs to change for glibc 2.27 and later: > > #ifdef __i386__ > # define DL_INTERNAL_FUNCTION __attribute__((regparm(3), stdcall)) > #else > # define DL_INTERNAL_FUNCTION > #endif > > We removed the regparm attribute for compatibility with CET. The GCC manual > says that regparm (3) is ABI-compatible on i386, but it really is not. > > We could perhaps add an alias to newer glibcs (including 2.27), so that libasan > can detect that glibc is more recent and call the function with the right ABI. > Or expose the information via dlinfo (but the interface is problematic because > it assumes that the static TLS size is fixed—we could eventually switch to a > model where we have a larger reserved region for the initial thread). I think as there are already quite some __GLIBC_PREREQ uses in the sanitizer lib changing the above prototype appropriately would be good enough. Of course exposing the desired information without the need to resort to a private interface would be nice. So sth like Index: libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc =================================================================== --- libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc (revision 258641) +++ libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc (working copy) @@ -152,7 +152,14 @@ bool SanitizerGetThreadName(char *name, static uptr g_tls_size; #ifdef __i386__ +#ifndef __GLIBC_PREREQ +#define __GLIBC_PREREQ(x, y) 0 +#endif +#ifdef SANITIZER_LINUX && __GLIBC_PREREQ(2, 27) +# define DL_INTERNAL_FUNCTION +#else # define DL_INTERNAL_FUNCTION __attribute__((regparm(3), stdcall)) +#endif #else # define DL_INTERNAL_FUNCTION #endif >From gcc-bugs-return-598161-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:27:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 5221 invoked by alias); 19 Mar 2018 12:27: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 2248 invoked by uid 48); 19 Mar 2018 12:27:18 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84938] [7/8 Regression] internal compiler error: in gen_reg_rtx, at emit-rtl.c:1187 (gen_reg_rtx()/maybe_legitimize_operand()) Date: Mon, 19 Mar 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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code 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-03/txt/msg02750.txt.bz2 Content-length: 856 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84938 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jason at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Perhaps instead of integer_zerop for div_by_zero build2 could use div_by_zero = TREE_CONSTANT (arg1) && !integer_nonzerop (arg1); i.e. be conservative rather than optimistic when arg1 is TREE_CONSTANT, but not INTEGER_CST/COMPLEX_CST. But integer_nonzerop doesn't handle for some reason VECTOR_CSTs, so we'd either need to change integer_nonzerop or for now build2 to handle VECTOR_CST somehow. >From gcc-bugs-return-598164-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:31:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28414 invoked by alias); 19 Mar 2018 12: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 27829 invoked by uid 55); 19 Mar 2018 12:30:31 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84891] -fno-signed-zeros leads to optimization which should be possible only if also -ffinite-math-only is on Date: Mon, 19 Mar 2018 12: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: 7.2.0 X-Bugzilla-Keywords: wrong-code 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-03/txt/msg02752.txt.bz2 Content-length: 1868 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 --- Comment #5 from rguenther at suse dot de --- On Mon, 19 Mar 2018, noone@turm-lahnstein.de wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 > > --- Comment #4 from ead --- > From my naive point of view: > > - The c++ standard doesn't define how complex-number-multiplication should > work, it is implementation defined/gcc-specific (I'm not a standard-scholar, so > might be very wrong about it). > > - One can deduce from the results in the IEEE 754 mode, how this > multiplication (implementation-defined and gcc-specific) is implemented. > > - One's expectation with -fno-signed-zeros is that only transformations > which honor infs/nans can be performed by the optimizer. Clearly, we cannot > refer to the standard to see, what the result with -fno-signed-zeros should be, > because -fno-signed-zeros is not covered by standard, but is a gcc-specific > option. > > So in this case, the effect of -fno-signed-zeros is not covered by the > description in the man-pages (at least as I understand that): > > > > -fno-signed-zeros > > Allow optimizations for floating point arithmetic that ignore the > signedness of zero. IEEE arithmetic specifies the behavior of distinct +0.0 and > -0.0 values, which then prohibits simplification of expressions such as x+0.0 > or 0.0*x (even with -ffinite-math-only). This option implies that the sign of a > zero result isn't significant. > > The default is -fsigned-zeros. The implementation might choose to make complex multiplication with NaN have either the real or imag part NaN and not exactly specify which one. I previously said in this bug that the way tree-complex.c guards against signed-zeros is awkward and overly pessimistic. >From gcc-bugs-return-598163-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:31:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28218 invoked by alias); 19 Mar 2018 12:31: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 26320 invoked by uid 48); 19 Mar 2018 12:29:43 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug demangler/84950] New: UBSAN: libiberty/cplus-dem.c:4430:3: runtime error: null pointer passed as argument 2, which is declared to never be null Date: Mon, 19 Mar 2018 12:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: demangler X-Bugzilla-Version: unknown 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 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-03/txt/msg02751.txt.bz2 Content-length: 1554 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84950 Bug ID: 84950 Summary: UBSAN: libiberty/cplus-dem.c:4430:3: runtime error: null pointer passed as argument 2, which is declared to never be null Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 63426 Target Milestone: --- Following causes the run-time error: $ cat /tmp/todo _Q.__0 ::Q.(void) $ ./libiberty/testsuite/test-demangle < /tmp/todo ../../libiberty/cplus-dem.c:4430:3: runtime error: null pointer passed as argument 2, which is declared to never be null #0 0x402378 in remember_Ktype ../../libiberty/cplus-dem.c:4430 #1 0x41bd85 in demangle_class ../../libiberty/cplus-dem.c:2688 #2 0x41bd85 in demangle_signature ../../libiberty/cplus-dem.c:1556 #3 0x41f211 in internal_cplus_demangle ../../libiberty/cplus-dem.c:1257 #4 0x40cc3e in cplus_demangle ../../libiberty/cplus-dem.c:918 #5 0x404a2c in main ../../../libiberty/testsuite/test-demangle.c:317 #6 0x7ffff707ca86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #7 0x405269 in _start (/home/marxin/Programming/gcc/objdir3/libiberty/testsuite/test-demangle+0x405269) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined >From gcc-bugs-return-598165-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:33:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31248 invoked by alias); 19 Mar 2018 12:33: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 31184 invoked by uid 48); 19 Mar 2018 12:33:45 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug demangler/84951] New: UBSAN: libiberty/d-demangle.c:209:14: runtime error: signed integer overflow: 922337203685477581 * 10 cannot be represented in type 'long int' Date: Mon, 19 Mar 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: demangler X-Bugzilla-Version: unknown 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 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-03/txt/msg02753.txt.bz2 Content-length: 1699 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84951 Bug ID: 84951 Summary: UBSAN: libiberty/d-demangle.c:209:14: runtime error: signed integer overflow: 922337203685477581 * 10 cannot be represented in type 'long int' Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: demangler Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 63426 Target Milestone: --- Following causes trouble: $ cat /tmp/todo2 # --format=dlang _D9223372036854775817 _D9223372036854775817 $ ./libiberty/testsuite/test-demangle < /tmp/todo2 ../../libiberty/d-demangle.c:209:14: runtime error: signed integer overflow: 922337203685477581 * 10 cannot be represented in type 'long int' #0 0x457e1f in dlang_number ../../libiberty/d-demangle.c:209 #1 0x45af90 in dlang_identifier ../../libiberty/d-demangle.c:788 #2 0x45c43c in dlang_parse_qualified ../../libiberty/d-demangle.c:1437 #3 0x45cc6e in dlang_parse_mangle ../../libiberty/d-demangle.c:1354 #4 0x45d361 in dlang_demangle ../../libiberty/d-demangle.c:1633 #5 0x40cce1 in cplus_demangle ../../libiberty/cplus-dem.c:913 #6 0x404a2c in main ../../../libiberty/testsuite/test-demangle.c:317 #7 0x7ffff707ca86 in __libc_start_main (/lib64/libc.so.6+0x21a86) #8 0x405269 in _start (/home/marxin/Programming/gcc/objdir3/libiberty/testsuite/test-demangle+0x405269) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426 [Bug 63426] [meta-bug] Issues found with -fsanitize=undefined >From gcc-bugs-return-598166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:49:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91063 invoked by alias); 19 Mar 2018 12:49: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 87713 invoked by uid 48); 19 Mar 2018 12:49:30 -0000 From: "fw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 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: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fw 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-03/txt/msg02754.txt.bz2 Content-length: 591 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #3 from Florian Weimer --- (In reply to rguenther@suse.de from comment #2) > I think as there are already quite some __GLIBC_PREREQ uses in the > sanitizer lib changing the above prototype appropriately would be > good enough. If that's the way to go, then your patch should work. I'd add a comment: /* glibc 2.27 changed internal ABI and removed internal_function. */ And perhaps the condition can be simplified to: #if defined (__i386__) && defined (__GLIBC_PREREQ) && !__GLIBC_PREREQ(2, 27) >From gcc-bugs-return-598167-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:50:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95182 invoked by alias); 19 Mar 2018 12:50:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 95091 invoked by uid 55); 19 Mar 2018 12:50:04 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84929] [8 Regression] ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Date: Mon, 19 Mar 2018 12:50: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.0 X-Bugzilla-Keywords: ice-on-valid-code 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: 8.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-03/txt/msg02755.txt.bz2 Content-length: 671 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84929 --- Comment #3 from Richard Biener --- Author: rguenth Date: Mon Mar 19 12:49:30 2018 New Revision: 258643 URL: https://gcc.gnu.org/viewcvs?rev=258643&root=gcc&view=rev Log: 2018-03-19 Richard Biener PR tree-optimization/84929 * tree-data-ref.c (analyze_siv_subscript_cst_affine): Guard chrec_is_positive against non-chrec arg. * gcc.dg/torture/pr84929.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/torture/pr84929.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-data-ref.c >From gcc-bugs-return-598168-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:52:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113139 invoked by alias); 19 Mar 2018 12:52: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 113001 invoked by uid 48); 19 Mar 2018 12:52:51 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 2018 12:52:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.0.1 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-03/txt/msg02756.txt.bz2 Content-length: 2582 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #4 from Jakub Jelinek --- That won't really work, if you configure against one glibc version and run against another one, that will still not work properly. So I think we need something like: --- libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc 2017-10-19 13:20:58.972958379 +0200 +++ libsanitizer/sanitizer_common/sanitizer_linux_libcdep.cc 2018-03-19 13:50:41.978147828 +0100 @@ -151,25 +151,35 @@ bool SanitizerGetThreadName(char *name, !SANITIZER_NETBSD static uptr g_tls_size; -#ifdef __i386__ -# define DL_INTERNAL_FUNCTION __attribute__((regparm(3), stdcall)) -#else -# define DL_INTERNAL_FUNCTION -#endif - void InitTlsSize() { // all current supported platforms have 16 bytes stack alignment const size_t kStackAlign = 16; - typedef void (*get_tls_func)(size_t*, size_t*) DL_INTERNAL_FUNCTION; - get_tls_func get_tls; - void *get_tls_static_info_ptr = dlsym(RTLD_NEXT, "_dl_get_tls_static_info"); - CHECK_EQ(sizeof(get_tls), sizeof(get_tls_static_info_ptr)); - internal_memcpy(&get_tls, &get_tls_static_info_ptr, - sizeof(get_tls_static_info_ptr)); - CHECK_NE(get_tls, 0); size_t tls_size = 0; size_t tls_align = 0; - get_tls(&tls_size, &tls_align); + void *get_tls_static_info_ptr = dlsym(RTLD_NEXT, "_dl_get_tls_static_info"); +#ifdef __i386__ + /* On i?86, _dl_get_tls_static_info used to be regparm(3) before glibc 2.27 + and is now a normal function. */ + if (!dlvsym(RTLD_NEXT, "glob", "GLIBC_2.27")) { + typedef void (*get_tls_func)(size_t*, size_t*) + __attribute__((regparm(3), stdcall)); + get_tls_func get_tls; + CHECK_EQ(sizeof(get_tls), sizeof(get_tls_static_info_ptr)); + internal_memcpy(&get_tls, &get_tls_static_info_ptr, + sizeof(get_tls_static_info_ptr)); + CHECK_NE(get_tls, 0); + get_tls(&tls_size, &tls_align); + } else +#endif + { + typedef void (*get_tls_func)(size_t*, size_t*); + get_tls_func get_tls; + CHECK_EQ(sizeof(get_tls), sizeof(get_tls_static_info_ptr)); + internal_memcpy(&get_tls, &get_tls_static_info_ptr, + sizeof(get_tls_static_info_ptr)); + CHECK_NE(get_tls, 0); + get_tls(&tls_size, &tls_align); + } if (tls_align < kStackAlign) tls_align = kStackAlign; g_tls_size = RoundUpTo(tls_size, tls_align); instead. If we only support using the glibc with which gcc has been configured or later, perhaps that dlvsym call could be avoided if __GLIBC_PREREQ(2, 27). >From gcc-bugs-return-598169-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 12:56:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 122791 invoked by alias); 19 Mar 2018 12: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 122705 invoked by uid 48); 19 Mar 2018 12:55:56 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84890] Overly verbose notes for missing headers Date: Mon, 19 Mar 2018 12: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: 8.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: 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-03/txt/msg02757.txt.bz2 Content-length: 402 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84890 --- Comment #6 from Jonathan Wakely --- I have very little sympathy for anybody who thinks that an automated message from a compiler is "kind of personal", but how about instead of asking a question or equivocating with "you may want to ..." just say what the required header is: #include to define std::foo >From gcc-bugs-return-598170-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 13:25:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61048 invoked by alias); 19 Mar 2018 13: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 60995 invoked by uid 48); 19 Mar 2018 13:24:55 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53281] poor error message for calling a non-const method from a const object Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: enhancement X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm 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-03/txt/msg02758.txt.bz2 Content-length: 1093 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53281 --- Comment #8 from Jonathan Wakely --- (In reply to David Malcolm from comment #6) > It seems best to special-case the "const member fn/param called with > non-const" cases and to report them directly in terms of the types in user's > source with and without "const", and to be explicit about which qualifier(s) > are lost. Don't forget 'volatile', which is rarely used for member function qualifiers, but we might as well handle both at once (as my patches above do). > Proposed output for the case in comment #3: > > cv.cc: In member function ‘void Foo::bar2(const Foo&)’: > cv.cc:4:26: error: passing ‘const Foo’ as ‘this’ argument discards 'const' > qualifier [-fpermissive] > foo.bar1(); > ^ > cv.cc:2:14: note: in call to ‘void Foo::bar1()’ which is non-const > void bar1() {} > ^~~~ This has a number of problems, see comment 5 for discussion and a patch. >From gcc-bugs-return-598171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 13:38:54 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94159 invoked by alias); 19 Mar 2018 13:38: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 94049 invoked by uid 48); 19 Mar 2018 13:38:49 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 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: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: 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 cf_reconfirmed_on assigned_to everconfirmed 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-03/txt/msg02759.txt.bz2 Content-length: 999 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-03-19 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #5 from Jakub Jelinek --- Created attachment 43701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43701&action=edit gcc8-pr84761.patch Full untested patch, tested so far just with building against glibc 2.26 and running a simple 32-bit -fsanitize=address sanitized program against: 1) unpatched libasan.so.5 and glibc 2.26 2) unpatched libasan.so.5 and glibc 2.27 (this crashes) 3) patched libasan.so.5 and glibc 2.26 4) patched libasan.so.5 and glibc 2.27 >From gcc-bugs-return-598172-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 13:39:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94890 invoked by alias); 19 Mar 2018 13:39: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 94603 invoked by uid 48); 19 Mar 2018 13:38:57 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84918] Better handling of "std::cout >> 42;" Date: Mon, 19 Mar 2018 13: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: 8.0 X-Bugzilla-Keywords: diagnostic 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: dmalcolm 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-03/txt/msg02760.txt.bz2 Content-length: 325 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84918 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > I'd much rather see a solution to the more general problem of drowning the > user in information when the overload set is very large. Which is now PR 84920 >From gcc-bugs-return-598173-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 13:50:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23659 invoked by alias); 19 Mar 2018 13:50: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 23544 invoked by uid 48); 19 Mar 2018 13:50:35 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 2018 13:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02761.txt.bz2 Content-length: 167 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #6 from Jakub Jelinek --- Filed https://reviews.llvm.org/D44623 upstream. >From gcc-bugs-return-598174-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 13:51:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25462 invoked by alias); 19 Mar 2018 13:51: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 25351 invoked by uid 48); 19 Mar 2018 13:51:54 -0000 From: "amonakov at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 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: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amonakov 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: 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-03/txt/msg02762.txt.bz2 Content-length: 702 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 Alexander Monakov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #7 from Alexander Monakov --- Is it possible that a distribution would backport glob() changes together with its symver update (without also backporting the regparm change)? In that case the dlvsym check shown above will be wrong I think. Would the approach with confstr query for glibc version (discussed on irc) be less fragile? >From gcc-bugs-return-598175-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:03:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 117906 invoked by alias); 19 Mar 2018 14:03: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 117799 invoked by uid 48); 19 Mar 2018 14:03:52 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/84761] AddressSanitizer is not compatible with glibc 2.27 on x86 Date: Mon, 19 Mar 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: sanitizer X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02763.txt.bz2 Content-length: 294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84761 --- Comment #8 from Jakub Jelinek --- Distributions should never backport symbol additions to symbol versioned libraries, unless they backport all the corresponding changes. So no, I don't think this is an issue. >From gcc-bugs-return-598177-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:07:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21208 invoked by alias); 19 Mar 2018 14:07: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 21128 invoked by uid 55); 19 Mar 2018 14:07:39 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84812] [8 Regression] ICE with local function Date: Mon, 19 Mar 2018 14: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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02765.txt.bz2 Content-length: 695 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84812 --- Comment #3 from Nathan Sidwell --- Author: nathan Date: Mon Mar 19 14:07:07 2018 New Revision: 258644 URL: https://gcc.gnu.org/viewcvs?rev=258644&root=gcc&view=rev Log: [C++/84812] ICE with local fn decl https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00872.html PR c++/84812 * name-lookup.c (set_local_extern_decl_linkage): Defend against ambiguous lookups. PR c++/84812 * g++.dg/lookup/pr84812.C: New. Added: trunk/gcc/testsuite/g++.dg/lookup/pr84812.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/name-lookup.c trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598176-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:07:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 20341 invoked by alias); 19 Mar 2018 14:07: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 20205 invoked by uid 48); 19 Mar 2018 14:07:16 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84812] [8 Regression] ICE with local function Date: Mon, 19 Mar 2018 14: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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02764.txt.bz2 Content-length: 435 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84812 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #2 from Nathan Sidwell --- Fixed r258644. >From gcc-bugs-return-598178-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:08:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 22318 invoked by alias); 19 Mar 2018 14:08: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 22269 invoked by uid 48); 19 Mar 2018 14:08:53 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 2018 14:08: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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-03/txt/msg02766.txt.bz2 Content-length: 200 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 --- Comment #2 from Jakub Jelinek --- Is that with r258590 in? I don't think hppa* is vect_int_mult effective target. >From gcc-bugs-return-598179-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:09:09 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23334 invoked by alias); 19 Mar 2018 14:09:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 23275 invoked by uid 48); 19 Mar 2018 14:09:06 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/56456] [meta-bug] bogus/missing -Warray-bounds Date: Mon, 19 Mar 2018 14:09:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: dep_changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: meta-bug 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 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-03/txt/msg02767.txt.bz2 Content-length: 483 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 Bug 56456 depends on bug 84859, which changed state. Bug 84859 Summary: [8 Regression] bogus -Warray-bounds on a memcpy in a loop https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84859 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED >From gcc-bugs-return-598180-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:09:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23788 invoked by alias); 19 Mar 2018 14: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 23226 invoked by uid 48); 19 Mar 2018 14:09:05 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84859] [8 Regression] bogus -Warray-bounds on a memcpy in a loop Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic, missed-optimization 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: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02768.txt.bz2 Content-length: 430 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84859 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #11 from Richard Biener --- Fixed. >From gcc-bugs-return-598181-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:09:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24918 invoked by alias); 19 Mar 2018 14:09: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 24867 invoked by uid 55); 19 Mar 2018 14:09:30 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84859] [8 Regression] bogus -Warray-bounds on a memcpy in a loop Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic, missed-optimization 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: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02769.txt.bz2 Content-length: 1149 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84859 --- Comment #12 from Richard Biener --- Author: rguenth Date: Mon Mar 19 14:08:58 2018 New Revision: 258645 URL: https://gcc.gnu.org/viewcvs?rev=258645&root=gcc&view=rev Log: 2018-03-19 Richard Biener PR tree-optimization/84859 * tree-ssa-phiopt.c (single_trailing_store_in_bb): New function. (cond_if_else_store_replacement): Perform sinking operation on single-store BBs regardless of MAX_STORES_TO_SINK setting. Generalize what a BB with a single eligible store is. * gcc.dg/tree-ssa/pr84859.c: New testcase. * gcc.dg/tree-ssa/pr35286.c: Disable cselim. * gcc.dg/tree-ssa/split-path-6.c: Likewise. * gcc.dg/tree-ssa/split-path-7.c: Likewise. Added: trunk/gcc/testsuite/gcc.dg/tree-ssa/pr84859.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/pr35286.c trunk/gcc/testsuite/gcc.dg/tree-ssa/split-path-6.c trunk/gcc/testsuite/gcc.dg/tree-ssa/split-path-7.c trunk/gcc/tree-ssa-phiopt.c >From gcc-bugs-return-598182-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:10:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 25891 invoked by alias); 19 Mar 2018 14:10: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 25773 invoked by uid 48); 19 Mar 2018 14:10:04 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84929] [8 Regression] ICE at -O3 on valid code on x86_64-linux-gnu: tree check: expected polynomial_chrec, have nop_expr in analyze_siv_subscript_cst_affine, at tree-data-ref.c:3018 Date: Mon, 19 Mar 2018 14: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: 8.0 X-Bugzilla-Keywords: ice-on-valid-code 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: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02770.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84929 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #4 from Richard Biener --- Fixed. >From gcc-bugs-return-598184-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:11:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63634 invoked by alias); 19 Mar 2018 14:11: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 62574 invoked by uid 55); 19 Mar 2018 14:11:38 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Mon, 19 Mar 2018 14:11: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02772.txt.bz2 Content-length: 682 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 --- Comment #4 from Richard Biener --- Author: rguenth Date: Mon Mar 19 14:11:05 2018 New Revision: 258646 URL: https://gcc.gnu.org/viewcvs?rev=258646&root=gcc&view=rev Log: 2018-03-19 Richard Biener PR tree-optimization/84933 * tree-vrp.c (set_and_canonicalize_value_range): Treat out-of-bound values as -INF/INF when canonicalizing an ANTI_RANGE to a RANGE. * g++.dg/pr84933.C: New testcase. Added: trunk/gcc/testsuite/g++.dg/pr84933.C Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-vrp.c >From gcc-bugs-return-598183-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:11:29 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59626 invoked by alias); 19 Mar 2018 14:11: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 57678 invoked by uid 48); 19 Mar 2018 14:11:25 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84933] [8 Regression] ICE in set_value_range, at tree-vrp.c:288 since r257852 Date: Mon, 19 Mar 2018 14:11: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02771.txt.bz2 Content-length: 429 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84933 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Richard Biener --- Fixed. >From gcc-bugs-return-598185-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:12:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65266 invoked by alias); 19 Mar 2018 14:12: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 64459 invoked by uid 48); 19 Mar 2018 14:12:12 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 2018 14: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-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 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-03/txt/msg02773.txt.bz2 Content-length: 2362 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 Martin Liška changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-valid-code |ice-on-invalid-code Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Martin Liška --- Because: (gdb) p debug_tree(parm_type) constant 0> unit-size constant 0> align:8 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type 0x7ffff52be930 context chain > In the original testcase it's also zero for: $ gcc -flto /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lto/20120723_*.c -O2 (gdb) p parm_type $2 = (tree) 0x7ffff52be690 (gdb) p debug_tree(parm_type) constant 64> unit-size constant 8> align:64 warn_if_not_align:0 symtab:0 alias-set 2 canonical-type 0x7ffff52be690 fields unsigned DI size unit-size align:64 warn_if_not_align:0 symtab:0 alias-set 1 structural-equality pointer_to_this > unsigned DI /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/lto/20120723_1.c:15:13 size unit-size align:64 warn_if_not_align:0 offset_align 128 offset bit-offset context > context chain > >From gcc-bugs-return-598186-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:13:37 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 66645 invoked by alias); 19 Mar 2018 14:13: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 66577 invoked by uid 55); 19 Mar 2018 14:13:28 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 2018 14:13: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net 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-03/txt/msg02774.txt.bz2 Content-length: 409 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 --- Comment #3 from dave.anglin at bell dot net --- On 2018-03-19 10:08 AM, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 > > --- Comment #2 from Jakub Jelinek --- > Is that with r258590 in? I don't think hppa* is vect_int_mult effective > target. > No.  It was seen with r258555. >From gcc-bugs-return-598187-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:13:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 71543 invoked by alias); 19 Mar 2018 14: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 71501 invoked by uid 55); 19 Mar 2018 14:13:46 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 2018 14:13: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot 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: --- 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-03/txt/msg02775.txt.bz2 Content-length: 622 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 --- Comment #4 from rguenther at suse dot de --- On Mon, 19 Mar 2018, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 > > --- Comment #2 from Jakub Jelinek --- > Is that with r258590 in? I don't think hppa* is vect_int_mult effective > target. The rev wasn't supposed to go in. The testcase was really supposed to verify we either vectorize both loops or none. It shows with nvptx that still fails and so that's a bug (and thus the testcase should be XFAILed there). >From gcc-bugs-return-598188-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:18:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91774 invoked by alias); 19 Mar 2018 14:18: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 91654 invoked by uid 48); 19 Mar 2018 14:17:57 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 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: ipa X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02776.txt.bz2 Content-length: 1049 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 --- Comment #3 from Richard Biener --- bool propagate_bits_across_jump_function (cgraph_edge *cs, int idx, ipa_jump_func *jfunc, ipcp_bits_lattice *dest_lattice) { ... /* For K&R C programs, ipa_get_type() could return NULL_TREE. Avoid the transform for these cases. */ if (!parm_type) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Setting dest_lattice to bottom, because" " param %i type is NULL for %s\n", idx, cs->callee->name ()); return dest_lattice->set_to_bottom (); } unsigned precision = TYPE_PRECISION (parm_type); signop sgn = TYPE_SIGN (parm_type); those two accesses only work for INTEGRAL_TYPE_P types. So maybe the !parm_type should be instead if (!parm_type || !INTEGRAL_TYPE_P (parm_type)) ? (with appropriate adjustment of the dump message) >From gcc-bugs-return-598189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:19:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 49346 invoked by alias); 19 Mar 2018 14:19: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 49167 invoked by uid 48); 19 Mar 2018 14:19:33 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 2018 14:19: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02777.txt.bz2 Content-length: 1290 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 --- Comment #4 from Richard Biener --- (In reply to Richard Biener from comment #3) > bool > propagate_bits_across_jump_function (cgraph_edge *cs, int idx, > ipa_jump_func *jfunc, > ipcp_bits_lattice *dest_lattice) > { > ... > /* For K&R C programs, ipa_get_type() could return NULL_TREE. > Avoid the transform for these cases. */ > if (!parm_type) > { > if (dump_file && (dump_flags & TDF_DETAILS)) > fprintf (dump_file, "Setting dest_lattice to bottom, because" > " param %i type is NULL for %s\n", idx, > cs->callee->name ()); > > return dest_lattice->set_to_bottom (); > } > > unsigned precision = TYPE_PRECISION (parm_type); > signop sgn = TYPE_SIGN (parm_type); > > those two accesses only work for INTEGRAL_TYPE_P types. So maybe > the !parm_type should be instead > > if (!parm_type || !INTEGRAL_TYPE_P (parm_type)) !(INTEGRAL_TYPE_P (parm_type) || POINTER_TYPE_P (parm_type)) of course. > ? (with appropriate adjustment of the dump message) Does IPA-CP in any way handle jump functions of float types? >From gcc-bugs-return-598190-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:20:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 50368 invoked by alias); 19 Mar 2018 14:20: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 50306 invoked by uid 48); 19 Mar 2018 14:20:12 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 2018 14:20: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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-03/txt/msg02778.txt.bz2 Content-length: 969 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 --- Comment #5 from Jakub Jelinek --- Seems it actually is vectorized, probably just using DImode vectors for 2xSImode, and dom doesn't handle vector stores followed by scalar loads. Before store-merging the dump is: MEM[(int *)&a] = { 0, 1 }; MEM[(int *)&a + 8B] = { 4, 9 }; MEM[(int *)&a + 16B] = { 16, 25 }; MEM[(int *)&a + 24B] = { 36, 49 }; MEM[(int *)&a + 32B] = { 64, 81 }; _6 = a[0]; _28 = a[1]; res_29 = _6 + _28; _35 = a[2]; res_36 = res_29 + _35; _42 = a[3]; res_43 = res_36 + _42; _49 = a[4]; res_50 = res_43 + _49; _56 = a[5]; res_57 = res_50 + _56; _63 = a[6]; res_64 = res_57 + _63; _70 = a[7]; res_71 = res_64 + _70; _77 = a[8]; res_78 = res_71 + _77; _2 = a[9]; res_11 = _2 + res_78; a ={v} {CLOBBER}; return res_11; and nothing really changes till *.optimized in it. >From gcc-bugs-return-598191-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:22:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109929 invoked by alias); 19 Mar 2018 14:22: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 109865 invoked by uid 55); 19 Mar 2018 14:22:29 -0000 From: "rguenther at suse dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84935] FAIL: gcc.dg/tree-ssa/pr84512.c scan-tree-dump optimized "return 285;" Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenther at suse dot 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: --- 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-03/txt/msg02779.txt.bz2 Content-length: 1294 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 --- Comment #6 from rguenther at suse dot de --- On Mon, 19 Mar 2018, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84935 > > --- Comment #5 from Jakub Jelinek --- > Seems it actually is vectorized, probably just using DImode vectors for > 2xSImode, > and dom doesn't handle vector stores followed by scalar loads. Before > store-merging the dump is: > MEM[(int *)&a] = { 0, 1 }; > MEM[(int *)&a + 8B] = { 4, 9 }; > MEM[(int *)&a + 16B] = { 16, 25 }; > MEM[(int *)&a + 24B] = { 36, 49 }; > MEM[(int *)&a + 32B] = { 64, 81 }; > _6 = a[0]; > _28 = a[1]; > res_29 = _6 + _28; > _35 = a[2]; > res_36 = res_29 + _35; > _42 = a[3]; > res_43 = res_36 + _42; > _49 = a[4]; > res_50 = res_43 + _49; > _56 = a[5]; > res_57 = res_50 + _56; > _63 = a[6]; > res_64 = res_57 + _63; > _70 = a[7]; > res_71 = res_64 + _70; > _77 = a[8]; > res_78 = res_71 + _77; > _2 = a[9]; > res_11 = _2 + res_78; > a ={v} {CLOBBER}; > return res_11; > and nothing really changes till *.optimized in it. Similar as with nvptx. Yes, DOM doesn't handle this while FRE would. >From gcc-bugs-return-598192-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:25:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125715 invoked by alias); 19 Mar 2018 14:25: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 125611 invoked by uid 48); 19 Mar 2018 14:25:08 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/84947] UBSAN: ipcp_bits_lattice::meet_with(generic_wide_int >, generic_wide_int >, unsigned int) ../../gcc/ipa-cp.c:1058 Date: Mon, 19 Mar 2018 14:25: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02780.txt.bz2 Content-length: 755 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84947 --- Comment #5 from Martin Liška --- I can confirm it works for me: diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index ee41a8d55b7..96fff686a3a 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -1813,7 +1813,8 @@ propagate_bits_across_jump_function (cgraph_edge *cs, int idx, /* For K&R C programs, ipa_get_type() could return NULL_TREE. Avoid the transform for these cases. */ - if (!parm_type) + if (!parm_type || !(INTEGRAL_TYPE_P (parm_type) + || POINTER_TYPE_P (parm_type))) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Setting dest_lattice to bottom, because" I'm leaving that to Martin. >From gcc-bugs-return-598193-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:30:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33299 invoked by alias); 19 Mar 2018 14:30: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 19399 invoked by uid 48); 19 Mar 2018 14:30:41 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84920] Better handling of unmatched/ambiguous calls Date: Mon, 19 Mar 2018 14: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: 8.0 X-Bugzilla-Keywords: diagnostic 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: dmalcolm 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-03/txt/msg02781.txt.bz2 Content-length: 3026 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84920 --- Comment #1 from Jonathan Wakely --- (In reply to David Malcolm from comment #0) > As reported by user "jcoffland" on Hacker News: > https://news.ycombinator.com/item?id=16598071 > > > One improvement I'd like to see is a simplified error message > > for mismatched overloaded calls. If you make an overloaded call > > for which the is no matching conversion or if the conversation is > > ambiguous the compiler will "helpfully" dump a list of possibly > > matching overloaded function signatures. The list can be hundreds > > of lines long. It's rare to get hundreds of lines in general. That usually only happens for iostream operator<< and operator>>, because not many operators have as many overloads all in the same namespace. But a general solution wouldn't hurt. > > For example, when you try to pipe a class to std::cout that > > doesn't have an std::ostream &operator<<(std::ostream &, const X &). > > Perhaps instead of dumping the complete function signatures it > > could show one function signature followed by a list of types > > accepted as the second parameter. Since the signatures are > > otherwise the same. I like the idea, but this isn't *strictly* true, as there's a function template taking an rvalue stream as the first parameter, but that should accept all the same types as the version for lvalue streams, so showing it doesn't add much value. The other advantages of the signatures is that they include the location info, so if an overload doesn't match because of a SFINAE constraint you can go and check the source, e.g. given #include template struct A { T value; }; template auto operator<<(std::ostream& o, const A& a) -> decltype(o << a.value) { return o << a.value; } struct Y { }; void f(std::ostream& o, const A& a) { o << a; } Included in the output is: a.cc:5:6: note: candidate: template decltype ((o << a.value)) operator<<(std::ostream&, const A&) auto operator<<(std::ostream& o, const A& a) ^~~~~~~~ a.cc:5:6: note: template argument deduction/substitution failed: a.cc: In substitution of ‘template decltype ((o << a.value)) operator<<(std::ostream&, const A&) [with T = Y]’: a.cc:13:8: required from here a.cc:6:15: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream}’ and ‘const Y’) -> decltype(o << a.value) ~~^~~~~~~~~~ which points to a.cc:5:6 as the location of the overload, and the expression at a.cc:6:15 is potentially useful infomration. Maybe we could special-case the overloads from namespace std, since they are usually less interesting. Usually. More generally, maybe add -foverload-candidates-limit=N so if the overload set is above the limit don't show the notes with the reasons overload resolution failed, just show the candidates. >From gcc-bugs-return-598194-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:31:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37032 invoked by alias); 19 Mar 2018 14:31: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 19792 invoked by uid 48); 19 Mar 2018 14:30:44 -0000 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/83665] [8 regression] Big code size regression and some code quality improvement at Jan 2 2018 Date: Mon, 19 Mar 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: middle-end X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: 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: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02782.txt.bz2 Content-length: 159 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83665 --- Comment #15 from Martin Liška --- Honza, may I close this as fixed? >From gcc-bugs-return-598195-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:34:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 62728 invoked by alias); 19 Mar 2018 14:34: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 62606 invoked by uid 48); 19 Mar 2018 14:34:08 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvNTg3MTNdIGVycm9yOiBjYW5ub3QgYmluZCDigJhzdGQ6Om9z?= =?UTF-8?B?dHJlYW0ge2FrYSBzdGQ6OmJhc2ljX29zdHJlYW08Y2hhcj594oCZIGx2YWx1?= =?UTF-8?B?ZSB0byDigJhzdGQ6OmJhc2ljX29zdHJlYW08Y2hhcj4mJuKAmQ==?Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic 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-03/txt/msg02783.txt.bz2 Content-length: 662 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 --- Comment #8 from Jonathan Wakely --- (In reply to Daniel Krügler from comment #3) > A possible fix might be to change the Standard ;-) Despite the smiley I > seriously consider to make the proposal/open an issue that the "all-eating" > signature That was done, and implemented in libstdc++. Maybe any remaining improvements should be left to PR c++/84920 and this one closed? (The original report of inconsistent behaviour was just due to forgetting -std=c++11, and the greedy rvalue overload is constrained now so the output is similar for c++11 and c++98 anyway). >From gcc-bugs-return-598196-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:34:41 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 63626 invoked by alias); 19 Mar 2018 14:34: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 63581 invoked by uid 48); 19 Mar 2018 14:34:37 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvNTg3MTNdIGVycm9yOiBjYW5ub3QgYmluZCDigJhzdGQ6Om9z?= =?UTF-8?B?dHJlYW0ge2FrYSBzdGQ6OmJhc2ljX29zdHJlYW08Y2hhcj594oCZIGx2YWx1?= =?UTF-8?B?ZSB0byDigJhzdGQ6OmJhc2ljX29zdHJlYW08Y2hhcj4mJuKAmQ==?Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WORKSFORME 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-03/txt/msg02784.txt.bz2 Content-length: 448 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #9 from Jonathan Wakely --- Closing (see comment 8). >From gcc-bugs-return-598197-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:48:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 26779 invoked by alias); 19 Mar 2018 14:48: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 124866 invoked by uid 48); 19 Mar 2018 14:48:45 -0000 From: "jimis at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/54183] Generate __udivmoddi4 instead of __udivdi3 plus __umoddi3 Date: Mon, 19 Mar 2018 14:48: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.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jimis at gmx dot net 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-03/txt/msg02785.txt.bz2 Content-length: 487 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54183 jimis changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from jimis --- Thanks, closing ticket then! *** This bug has been marked as a duplicate of bug 84759 *** >From gcc-bugs-return-598198-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:49:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 27607 invoked by alias); 19 Mar 2018 14:48: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 17537 invoked by uid 48); 19 Mar 2018 14:48:55 -0000 From: "jimis at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84759] Calculation of quotient and remainder with constant denominator uses __umoddi3+__udivdi3 instead of __udivmoddi4 Date: Mon, 19 Mar 2018 14:48: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.3.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: jimis at gmx dot net 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-03/txt/msg02786.txt.bz2 Content-length: 169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84759 --- Comment #2 from jimis --- *** Bug 54183 has been marked as a duplicate of this bug. *** >From gcc-bugs-return-598199-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:53:21 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 68573 invoked by alias); 19 Mar 2018 14:53: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 63459 invoked by uid 48); 19 Mar 2018 14:53:17 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 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: c X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: diagnostic 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: 8.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-03/txt/msg02787.txt.bz2 Content-length: 375 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #8 from Jakub Jelinek --- Not aware of any right now, but 1) if the format string is not compile time known, we don't know if it is %p or not 2) the format string parsing is done in other passes (-Wformat code in FEs, and gimple-ssa-sprintf.c) compared to the restrict warning. >From gcc-bugs-return-598200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 14:57:52 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 104003 invoked by alias); 19 Mar 2018 14: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 103933 invoked by uid 48); 19 Mar 2018 14:57:48 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 2018 14: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.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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: 8.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-03/txt/msg02788.txt.bz2 Content-length: 524 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #9 from H.J. Lu --- (In reply to Jakub Jelinek from comment #8) > Not aware of any right now, but 1) if the format string is not compile time > known, we don't know if it is %p or not 2) the format string parsing is done We only need to handle the known format string case. > in other passes (-Wformat code in FEs, and gimple-ssa-sprintf.c) compared to > the restrict warning. This shouldn't be the reason not to do it. >From gcc-bugs-return-598201-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:00:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 111523 invoked by alias); 19 Mar 2018 15:00: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 111294 invoked by uid 48); 19 Mar 2018 15:00:24 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84927] [7/8 Regressiion] ICE with NSDMI and reference Date: Mon, 19 Mar 2018 15:00: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.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek 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: 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-03/txt/msg02789.txt.bz2 Content-length: 486 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84927 Marek Polacek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot gnu.org --- Comment #2 from Marek Polacek --- I'd like to try to fix this one. >From gcc-bugs-return-598202-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:02:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 113248 invoked by alias); 19 Mar 2018 15:02: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 113115 invoked by uid 55); 19 Mar 2018 15:01:58 -0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84891] -fno-signed-zeros leads to optimization which should be possible only if also -ffinite-math-only is on Date: Mon, 19 Mar 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: middle-end X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu 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-03/txt/msg02790.txt.bz2 Content-length: 3014 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 --- Comment #6 from Steve Kargl --- On Mon, Mar 19, 2018 at 11:46:11AM +0000, rguenth at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 > > Richard Biener changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |kargl at gcc dot gnu.org, > | |pault at gcc dot gnu.org > > --- Comment #3 from Richard Biener --- > (In reply to joseph@codesourcery.com from comment #2) > > I'm not sure what the C++ complex multiplication / division requirements > > are here (for that matter, C doesn't seem to precisely define which NaN - > > which value with at least one NaN part and the other part not infinite - > > is produced from complex multiplication / division in this case, though > > NaN + iNaN probably makes more sense). > > I don't see anything in the C++ standard going into detail here either. > It simply says (from C++14 26.4/3): > > "If the result of a function is not mathematically defined or not in the > range of representable vaslues for its type, the behavior is undefined." > > which to my reading makes any operation with NaN/Inf undefined given > "mathematically" a NaN or Inf does not exist. > > I can't find anything in the Fortran2008 standard specifying how > arithmetic on intrinsic complex types work. CCing two Fortran maintainers > to see whether Fortran requires us to do any changes here. > It's a little complicated. If the Fortran program isn't using a module from the Fortran 2008, Sec. 14, "Exceptions and IEEE arithmetic", then the following applies F20008 7.1.5.2.4 Evaluation of numeric intrinsic operations The execution of any numeric operation whose result is not defined by the arithmetic used by the processor is prohibited. Raising a negative-valued primary of type real to a real power is prohibited. Note "the processor" here is "the compiler". What complicates the matter is that Fortran makes a distinct between a model number and a representable number. For gfortran with a binary radix, the model numbers are essentially the normalized finite IEEE 754 binary floating pointing numbers. The representable numbers, which are a property of the compiler, can be considered to include Inf/NaN and subnormal. So, in this Fortran program program foo x = 1 y = 0 call sub(x,y) end program foo subroutine sub(x,y) print *, x/y end subroutine sub gfortran gives an Infinity on output with no error or warning. gfortran does have the -ffpe-trap=zero option, which with enables trapping of division-by-zero errors. With all that said, gfortran uses the GCC backend, and follows whatever is enforced by the backend. >From gcc-bugs-return-598203-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:03:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 118423 invoked by alias); 19 Mar 2018 15:03: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 116007 invoked by uid 55); 19 Mar 2018 15:03:29 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/82965] [8 regression] gcc.dg/vect/pr79347.c starts failing after r254379 Date: Mon, 19 Mar 2018 15: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.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE 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: 8.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-03/txt/msg02791.txt.bz2 Content-length: 482 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82965 --- Comment #13 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #10 from bin.cheng --- > a proposed patch @https://gcc.gnu.org/ml/gcc-patches/2018-01/msg02419.html I've regtested the patch on sparc-sun-solaris2.11 and i386-pc-solaris2.11: the gcc.dg/vect/pr79347.c failures are gone on the former, no change on the latter. Thanks. Rainer >From gcc-bugs-return-598204-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:05:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 59588 invoked by alias); 19 Mar 2018 15:05: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 59467 invoked by uid 55); 19 Mar 2018 15:05:38 -0000 From: "ro at CeBiTec dot Uni-Bielefeld.DE" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84005] [8 regression] gcc.dg/vect/bb-slp-1.c etc. FAIL Date: Mon, 19 Mar 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: tree-optimization X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at CeBiTec dot Uni-Bielefeld.DE X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02792.txt.bz2 Content-length: 549 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84005 --- Comment #10 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #9 from rsandifo at gcc dot gnu.org gnu.org> --- [...] > Could you try the attached patch? It should restore the ability > to look through steps when trying to align variables. I've regtested the patch on sparc-sun-solaris2.11 (and i386-pc-solaris2.11 for good measure): the bb-slp-*.c failures are gone on sparc, no change on i386. Thanks. Rainer >From gcc-bugs-return-598205-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:14:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 85912 invoked by alias); 19 Mar 2018 15:14: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 83751 invoked by uid 48); 19 Mar 2018 15:14:20 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 2018 15: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: 8.0.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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: 8.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-03/txt/msg02793.txt.bz2 Content-length: 682 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #10 from H.J. Lu --- (In reply to H.J. Lu from comment #9) > (In reply to Jakub Jelinek from comment #8) > > Not aware of any right now, but 1) if the format string is not compile time > > known, we don't know if it is %p or not 2) the format string parsing is done > > We only need to handle the known format string case. > > > in other passes (-Wformat code in FEs, and gimple-ssa-sprintf.c) compared to > > the restrict warning. > > This shouldn't be the reason not to do it. If there is no way to fix it, we should warn (char *) cases under -Wextra, not under -Wall. >From gcc-bugs-return-598206-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:22:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 45000 invoked by alias); 19 Mar 2018 15:22: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 37196 invoked by uid 55); 19 Mar 2018 15:22:29 -0000 From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/84891] -fno-signed-zeros leads to optimization which should be possible only if also -ffinite-math-only is on Date: Mon, 19 Mar 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: middle-end X-Bugzilla-Version: 7.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu 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-03/txt/msg02794.txt.bz2 Content-length: 1243 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84891 --- Comment #7 from Steve Kargl --- On Mon, Mar 19, 2018 at 08:01:17AM -0700, Steve Kargl wrote: > > I can't find anything in the Fortran2008 standard specifying how > > arithmetic on intrinsic complex types work. CCing two Fortran maintainers > > to see whether Fortran requires us to do any changes here. I forgot about what I believe are default setting. '-fcx-fortran-rules' Complex multiplication and division follow Fortran rules. Range reduction is done as part of complex division, but there is no checking whether the result of a complex multiplication or division is 'NaN + I*NaN', with an attempt to rescue the situation in that case. I also believe that '-fcx-limited-range' When enabled, this option states that a range reduction step is not needed when performing complex division. Also, there is no checking whether the result of a complex multiplication or division is 'NaN + I*NaN', with an attempt to rescue the situation in that case. The default is '-fno-cx-limited-range', but is enabled by '-ffast-math'. is active, but I can't find where either is set. >From gcc-bugs-return-598207-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:32:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 41420 invoked by alias); 19 Mar 2018 15:32: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 41366 invoked by uid 48); 19 Mar 2018 15:32:43 -0000 From: "christoph@lipka-koeln.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/84949] -ffast-math bugged with respect to NaNs Date: Mon, 19 Mar 2018 15: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: 5.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: christoph@lipka-koeln.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-03/txt/msg02795.txt.bz2 Content-length: 831 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84949 --- Comment #2 from Christoph Lipka --- Having dug a bit deeper, I notice another way in which NaNs are broken in -ffinite-math-only mode: Normally, NaNs should always compare NON-EQUAL, even when compared to itself. In -ffinite-math-only mode, NaNs ALWAYS compare EQUAL, even when compared to a totally different value (such as, say, 0.0). I would disagree with the claim that "NaNs are there" in -ffinite-math-only mode - de facto they're not. What is there is one or more representations that cause all sorts of undefined behaviour, which just so _happens_ to include rendering as "nan" when converted to a string. So my point stands that std::numeric_limits::has_quiet_NaN() should return false when -ffinite-math-only is active. >From gcc-bugs-return-598208-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:41:26 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 64031 invoked by alias); 19 Mar 2018 15:41: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 63922 invoked by uid 48); 19 Mar 2018 15:41:21 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 2018 15: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: 8.0.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: 8.0 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-03/txt/msg02796.txt.bz2 Content-length: 1932 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83688, | |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=83859 --- Comment #11 from Martin Sebor --- The warning will go away once -Wrestrict is implemented for sprintf, hopefully in GCC 9 (the patch I submitted in July didn't make it to GCC 8: https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00036.html), and the handling for the built-in functions removed from the front-end. This is being tracked in bug 83688. Until then, the only way to avoid the warning that I can think of is to exclude from checking arguments passed through the ellipsis, but that will result in some false negatives for sprintf et al. So the question is: do the benefits of the warning outweigh the cost of the false positives. The potential for false positives here also isn't limited to sprintf. It's a general problem that affects user-defined functions as well. For example: $ cat z.c && gcc -S -Wall z.c void f (char* restrict, const char* restrict, const void*); void g (char *s) { f (s, "", s); } z.c: In function ‘g’: z.c:5:3: warning: passing argument 1 to restrict-qualified parameter aliases with argument 3 [-Wrestrict] f (s, "", s); ^ The only way to avoid these false positives (and negatives) is to add some annotation to let users indicate how each argument is used (e.g., such as the attributes read_only and write_only that I've been working on). This is being tracked in bug 83859. >From gcc-bugs-return-598210-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:46:46 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73826 invoked by alias); 19 Mar 2018 15:46: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 73787 invoked by uid 48); 19 Mar 2018 15:46:42 -0000 From: "dmalcolm at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84943] [8 Regression] internal compiler error: in build_call_a, at cp/call.c:374 Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dmalcolm 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: 8.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-03/txt/msg02798.txt.bz2 Content-length: 943 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84943 David Malcolm changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #2 from David Malcolm --- Failed assertion here in build_call_a: 368 /* We invoke build_call directly for several library 369 functions. These may have been declared normally if 370 we're building libgcc, so we can't just check 371 DECL_ARTIFICIAL. */ 372 gcc_assert (DECL_ARTIFICIAL (decl) 373 || !strncmp (IDENTIFIER_POINTER (DECL_NAME (decl)), 374 "__", 2)); 375 mark_used (decl); 376 } (gdb) p decl $1 = >From gcc-bugs-return-598209-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:46:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 73007 invoked by alias); 19 Mar 2018 15: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 72979 invoked by uid 48); 19 Mar 2018 15:46:19 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] New: [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 15:46: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02797.txt.bz2 Content-length: 3366 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 Bug ID: 84952 Summary: [nvptx] bar.sync generated in divergent code Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ As discussed here: https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00408.html ] Consider testcase workers.c: ... int main (void) { int a[10]; #pragma acc parallel loop worker for (int i = 0; i < 10; i++) a[i] = i; return 0; } ... At -O2, we generate (edited for readability): ... // BEGIN PREAMBLE .version 3.1 .target sm_30 .address_size 64 // END PREAMBLE // BEGIN FUNCTION DECL: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0); //:FUNC_MAP "main$_omp_fn$0", 0x1, 0x20, 0x20 // BEGIN VAR DEF: __worker_bcast .shared .align 8 .u8 __worker_bcast[8]; // BEGIN FUNCTION DEF: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0) { .reg .u64 %ar0; ld.param.u64 %ar0,[%in_ar0]; .reg .u32 %r24; .reg .u64 %r25; .reg .pred %r26; .reg .u64 %r27; .reg .u64 %r28; .reg .u64 %r29; .reg .u64 %r30; .reg .u64 %r31; .reg .u64 %r32; .reg .pred %r33; .reg .pred %r34; { .reg .u32 %y; mov.u32 %y,%tid.y; setp.ne.u32 %r34,%y,0; } { .reg .u32 %x; mov.u32 %x,%tid.x; setp.ne.u32 %r33,%x,0; } @ %r34 bra.uni $L6; @ %r33 bra $L7; mov.u64 %r25,%ar0; // fork 2; cvta.shared.u64 %r32,__worker_bcast; st.u64 [%r32],%r25; $L7: $L6: @ %r33 bra $L5; // forked 2; bar.sync 0; cvta.shared.u64 %r31,__worker_bcast; ld.u64 %r25,[%r31]; mov.u32 %r24,%tid.y; setp.le.s32 %r26,%r24,9; @ %r26 bra $L2; bra $L3; $L2: ld.u64 %r27,[%r25]; cvt.s64.s32 %r28,%r24; shl.b64 %r29,%r28,2; add.u64 %r30,%r27,%r29; st.u32 [%r30],%r24; $L3: bar.sync 1; // joining 2; $L5: @ %r34 bra.uni $L8; @ %r33 bra $L9; // join 2; $L9: $L8: ret; } ... [ Note the neutering of "join 2", that's PR84025 - [nvptx] Don't generate branch-around-nothing ]. The problem is the positioning of bar.sync, inside the vector-neutering branch. The documentation for bar.sync says: ... Barriers are executed on a per-warp basis as if all the threads in a warp are active. Thus, if any thread in a warp executes a bar instruction, it is as if all the threads in the warp have executed the bar instruction. All threads in the warp are stalled until the barrier completes, and the arrival count for the barrier is incremented by the warp size (not the number of active threads in the warp). In conditionally executed code, a bar instruction should only be used if it is known that all threads evaluate the condition identically (the warp does not diverge). ... The documentation is somewhat contradictory, in that it first explains that that it is executed on a per-warp basis (implying that only one thread executing it should be fine), but then goes on to state that it should not be executed in divergent mode (implying that all threads should execute it). Either way, the safest form of usage is: don't execute in divergent mode. As is evident from the example above, we do generate bar.sync in divergent mode, and that should be fixed. >From gcc-bugs-return-598211-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:47:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 75941 invoked by alias); 19 Mar 2018 15:47: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 75868 invoked by uid 48); 19 Mar 2018 15:47:26 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84945] [8 Regression] UBSAN: gcc/config/i386/i386.c:33312:22: runtime error: shift exponent 32 is too large for 32-bit type 'int' Date: Mon, 19 Mar 2018 15:47: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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-03/txt/msg02799.txt.bz2 Content-length: 580 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84945 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #43696|0 |1 is obsolete| | --- Comment #7 from Jakub Jelinek --- Created attachment 43702 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43702&action=edit gcc8-pr84945.patch Untested fix with __cpu_features2 var for features 32+. >From gcc-bugs-return-598212-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:56:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126693 invoked by alias); 19 Mar 2018 15:56: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 126325 invoked by uid 48); 19 Mar 2018 15:56:46 -0000 From: "avkhatskevich at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84901] --dynamic-list=export is ignored in presence of -flto Date: Mon, 19 Mar 2018 15: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.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: avkhatskevich 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-03/txt/msg02800.txt.bz2 Content-length: 249 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84901 --- Comment #2 from Alex Khatskevich --- It seems, like the commit (20 sep) https://sourceware.org/ml/binutils-cvs/2017-09/msg00172.html fixes the issue in gold. >From gcc-bugs-return-598213-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:58:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 1216 invoked by alias); 19 Mar 2018 15:58: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 1176 invoked by uid 48); 19 Mar 2018 15:58:45 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 15:58: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02801.txt.bz2 Content-length: 1779 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #1 from Tom de Vries --- For stage1, I have the following patch set: ... git log --pretty=%s --reverse HEAD^^^..HEAD | cat -n 1 Fix branch-around-nothing 2 Fix bar.sync position 3 Verify bar.sync position ... where 1 is a fix for PR84025, 2 is a fix for this PR and 3 is a verification for this PR. Using this patch set, we generate (edited for readability): ... // BEGIN PREAMBLE .version 3.1 .target sm_30 .address_size 64 // END PREAMBLE // BEGIN FUNCTION DECL: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0); //:FUNC_MAP "main$_omp_fn$0", 0x1, 0x20, 0x20 // BEGIN VAR DEF: __worker_bcast .shared .align 8 .u8 __worker_bcast[8]; // BEGIN FUNCTION DEF: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0) { .reg .u64 %ar0; ld.param.u64 %ar0,[%in_ar0]; .reg .u32 %r24; .reg .u64 %r25; .reg .pred %r26; .reg .u64 %r27; .reg .u64 %r28; .reg .u64 %r29; .reg .u64 %r30; .reg .u64 %r31; .reg .u64 %r32; .reg .pred %r33; .reg .pred %r34; { .reg .u32 %y; mov.u32 %y,%tid.y; setp.ne.u32 %r34,%y,0; } { .reg .u32 %x; mov.u32 %x,%tid.x; setp.ne.u32 %r33,%x,0; } @ %r34 bra.uni $L6; @ %r33 bra $L7; mov.u64 %r25,%ar0; // fork 2; cvta.shared.u64 %r32,__worker_bcast; st.u64 [%r32],%r25; $L7: $L6: bar.sync 0; // forked 2; @ %r33 bra $L5; cvta.shared.u64 %r31,__worker_bcast; ld.u64 %r25,[%r31]; mov.u32 %r24,%tid.y; setp.le.s32 %r26,%r24,9; @ %r26 bra $L2; bra $L3; $L2: ld.u64 %r27,[%r25]; cvt.s64.s32 %r28,%r24; shl.b64 %r29,%r28,2; add.u64 %r30,%r27,%r29; st.u32 [%r30],%r24; $L3: // joining 2; $L5: bar.sync 1; // join 2; ret; } ... >From gcc-bugs-return-598214-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:59:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 2637 invoked by alias); 19 Mar 2018 15:59: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 2582 invoked by uid 48); 19 Mar 2018 15:59:28 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 15:59: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02802.txt.bz2 Content-length: 255 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #2 from Tom de Vries --- Created attachment 43703 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43703&action=edit 0001-Fix-branch-around-nothing.patch >From gcc-bugs-return-598215-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 15:59:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 12217 invoked by alias); 19 Mar 2018 15:59: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 8194 invoked by uid 48); 19 Mar 2018 15:59:55 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 15:59: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02803.txt.bz2 Content-length: 251 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #3 from Tom de Vries --- Created attachment 43704 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43704&action=edit 0002-Fix-bar.sync-position.patch >From gcc-bugs-return-598216-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:00:59 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 80889 invoked by alias); 19 Mar 2018 16: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 70552 invoked by uid 48); 19 Mar 2018 16:00:50 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 16: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02804.txt.bz2 Content-length: 254 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #4 from Tom de Vries --- Created attachment 43705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43705&action=edit 0003-Verify-bar.sync-position.patch >From gcc-bugs-return-598217-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:02:11 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 28503 invoked by alias); 19 Mar 2018 16:02: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 22973 invoked by uid 48); 19 Mar 2018 16:02:06 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84919] [8 Regression] error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict] Date: Mon, 19 Mar 2018 16: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: 8.0.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools 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: 8.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-03/txt/msg02805.txt.bz2 Content-length: 573 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84919 --- Comment #12 from H.J. Lu --- (In reply to Martin Sebor from comment #11) > > Until then, the only way to avoid the warning that I can think of is to > exclude from checking arguments passed through the ellipsis, but that will > result in some false negatives for sprintf et al. So the question is: do > the benefits of the warning outweigh the cost of the false positives. > It is a regression that GCC 8 can't compile lib/str_error_r.c in Linux kernel without modifications. >From gcc-bugs-return-598218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:21:15 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 101542 invoked by alias); 19 Mar 2018 16:21: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 101494 invoked by uid 48); 19 Mar 2018 16:21:10 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] New: misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 16:21: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.0.1 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: --- 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-03/txt/msg02806.txt.bz2 Content-length: 1075 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 Bug ID: 84953 Summary: misleading warning from strpbrk(x,"") Product: gcc Version: 8.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bernd.edlinger at hotmail dot de Target Milestone: --- The following program prints a misleading warning: $ cat t1.c #include char* test(char *p) { p = strpbrk(p, ""); return p; } $ gcc -c t1.c t1.c: In function ‘test’: t1.c:4:5: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] p = strpbrk(p, ""); ^ The code _is_ bogus, because strpbrk does not make sense with "" as second Parameter and strpbrk will always return null. It is just the warning could be much more helpful if the empty string constant is diagnosed. Issue was originally found here: https://github.com/openssl/openssl/pull/5666 >From gcc-bugs-return-598219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:50:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 8450 invoked by alias); 19 Mar 2018 16:50: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 6883 invoked by uid 48); 19 Mar 2018 16:50:52 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84954] New: [nvptx] prevent_branch_around_nothing doesn't trigger often enough Date: Mon, 19 Mar 2018 16:50: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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02807.txt.bz2 Content-length: 2192 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84954 Bug ID: 84954 Summary: [nvptx] prevent_branch_around_nothing doesn't trigger often enough Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ Encountered at PR84952 - [nvptx] bar.sync generated in divergent code ] Consider testcase workers.c: ... int main (void) { int a[10]; #pragma acc parallel loop worker for (int i = 0; i < 10; i++) a[i] = i; return 0; } ... At -O2, we generate (edited for readability): ... // BEGIN PREAMBLE .version 3.1 .target sm_30 .address_size 64 // END PREAMBLE // BEGIN FUNCTION DECL: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0); //:FUNC_MAP "main$_omp_fn$0", 0x1, 0x20, 0x20 // BEGIN VAR DEF: __worker_bcast .shared .align 8 .u8 __worker_bcast[8]; // BEGIN FUNCTION DEF: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0) { .reg .u64 %ar0; ld.param.u64 %ar0,[%in_ar0]; .reg .u32 %r24; .reg .u64 %r25; .reg .pred %r26; .reg .u64 %r27; .reg .u64 %r28; .reg .u64 %r29; .reg .u64 %r30; .reg .u64 %r31; .reg .u64 %r32; .reg .pred %r33; .reg .pred %r34; { .reg .u32 %y; mov.u32 %y,%tid.y; setp.ne.u32 %r34,%y,0; } { .reg .u32 %x; mov.u32 %x,%tid.x; setp.ne.u32 %r33,%x,0; } @ %r34 bra.uni $L6; @ %r33 bra $L7; mov.u64 %r25,%ar0; // fork 2; cvta.shared.u64 %r32,__worker_bcast; st.u64 [%r32],%r25; $L7: $L6: @ %r33 bra $L5; // forked 2; bar.sync 0; cvta.shared.u64 %r31,__worker_bcast; ld.u64 %r25,[%r31]; mov.u32 %r24,%tid.y; setp.le.s32 %r26,%r24,9; @ %r26 bra $L2; bra $L3; $L2: ld.u64 %r27,[%r25]; cvt.s64.s32 %r28,%r24; shl.b64 %r29,%r28,2; add.u64 %r30,%r27,%r29; st.u32 [%r30],%r24; $L3: bar.sync 1; // joining 2; $L5: @ %r34 bra.uni $L8; @ %r33 bra $L9; // join 2; $L9: $L8: ret; } ... prevent_branch_around_nothing should be generating a nop next to the "join 2". >From gcc-bugs-return-598220-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:52:01 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 16822 invoked by alias); 19 Mar 2018 16:52: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 16765 invoked by uid 48); 19 Mar 2018 16:51:57 -0000 From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84905] Improve warning for __attribute__((const)) on function returning void Date: Mon, 19 Mar 2018 16:52: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, documentation X-Bugzilla-Severity: minor X-Bugzilla-Who: msebor 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: 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-03/txt/msg02808.txt.bz2 Content-length: 1316 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84905 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |WAITING --- Comment #2 from Martin Sebor --- Agreed that the new attributes warnings should be mentioned in gcc-8/changes.html (I still need to submit my updates). This particular warning is issued based on the note in the manual: "It does not make sense for a const function to return void" (it might be worthwhile to expand on why it doesn't make sense in case it's not clear from the prior text). I tend to prefer descriptive warnings over other kinds and I'm not sure that changing it to say "attribute const doesn't make sense for a void function" would be an improvement. Either way, as in many other cases, to understand this warning the user needs to know why the attribute doesn't make sense and that cannot easily be summed up in a single sentence. The only way to find that out is to read up on what the attribute is used for by GCC. Jon, unless you have a suggestion for a different phrasing that makes it clearer I'm inclined to resolve this part of the report as won't fix. >From gcc-bugs-return-598221-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:52:50 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 18249 invoked by alias); 19 Mar 2018 16:52: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 18195 invoked by uid 55); 19 Mar 2018 16:52:45 -0000 From: "hjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84574] Function return thunks shouldn't be aliased to indirect branch thunks Date: Mon, 19 Mar 2018 16:52: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.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl 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: 8.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-03/txt/msg02809.txt.bz2 Content-length: 1923 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84574 --- Comment #3 from hjl at gcc dot gnu.org --- Author: hjl Date: Mon Mar 19 16:52:13 2018 New Revision: 258647 URL: https://gcc.gnu.org/viewcvs?rev=258647&root=gcc&view=rev Log: i386: Don't generate alias for function return thunk Function return thunks shouldn't be aliased to indirect branch thunks since indirect branch thunks are placed in COMDAT section and a COMDAT section with indirect branch may not have function return thunk. This patch generates function return thunks directly. gcc/ Backport from mainline 2018-03-15 H.J. Lu PR target/84574 * config/i386/i386.c (indirect_thunk_needed): Update comments. (indirect_thunk_bnd_needed): Likewise. (indirect_thunks_used): Likewise. (indirect_thunks_bnd_used): Likewise. (indirect_return_needed): New. (indirect_return_bnd_needed): Likewise. (output_indirect_thunk_function): Add a bool argument for function return. (output_indirect_thunk_function): Don't generate alias for function return thunk. (ix86_code_end): Call output_indirect_thunk_function to generate function return thunks. (ix86_output_function_return): Set indirect_return_bnd_needed and indirect_return_needed instead of indirect_thunk_bnd_needed and indirect_thunk_needed. gcc/testsuite/ Backport from mainline 2018-03-15 H.J. Lu PR target/84574 * gcc.target/i386/ret-thunk-9.c: Expect __x86_return_thunk label instead of __x86_indirect_thunk label. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/config/i386/i386.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gcc.target/i386/ret-thunk-9.c >From gcc-bugs-return-598222-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:53:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19095 invoked by alias); 19 Mar 2018 16:53: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 18939 invoked by uid 48); 19 Mar 2018 16:52:55 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84954] [nvptx] prevent_branch_around_nothing doesn't trigger often enough Date: Mon, 19 Mar 2018 16:53: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02810.txt.bz2 Content-length: 234 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84954 --- Comment #1 from Tom de Vries --- Created attachment 43706 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43706&action=edit Tentative patch >From gcc-bugs-return-598223-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:54:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 21992 invoked by alias); 19 Mar 2018 16:54: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 21915 invoked by uid 48); 19 Mar 2018 16:54:54 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 16:54: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02811.txt.bz2 Content-length: 1718 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #5 from Tom de Vries --- For stage4, however, we want a fix without fixing optimization issue PR84025, so we have: ... $ git log --pretty=%s --reverse HEAD^^..HEAD | cat -n 1 Fix bar.sync position 2 Verify bar.sync position ... which results in: ... // BEGIN PREAMBLE .version 3.1 .target sm_30 .address_size 64 // END PREAMBLE // BEGIN FUNCTION DECL: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0); //:FUNC_MAP "main$_omp_fn$0", 0x1, 0x20, 0x20 // BEGIN VAR DEF: __worker_bcast .shared .align 8 .u8 __worker_bcast[8]; // BEGIN FUNCTION DEF: main$_omp_fn$0 .entry main$_omp_fn$0 (.param .u64 %in_ar0) { .reg .u64 %ar0; ld.param.u64 %ar0,[%in_ar0]; .reg .u32 %r24; .reg .u64 %r25; .reg .pred %r26; .reg .u64 %r27; .reg .u64 %r28; .reg .u64 %r29; .reg .u64 %r30; .reg .u64 %r31; .reg .u64 %r32; .reg .pred %r33; .reg .pred %r34; { .reg .u32 %y; mov.u32 %y,%tid.y; setp.ne.u32 %r34,%y,0; } { .reg .u32 %x; mov.u32 %x,%tid.x; setp.ne.u32 %r33,%x,0; } @ %r34 bra.uni $L6; @ %r33 bra $L7; mov.u64 %r25,%ar0; // fork 2; cvta.shared.u64 %r32,__worker_bcast; st.u64 [%r32],%r25; $L7: $L6: bar.sync 0; @ %r33 bra $L5; // forked 2; cvta.shared.u64 %r31,__worker_bcast; ld.u64 %r25,[%r31]; mov.u32 %r24,%tid.y; setp.le.s32 %r26,%r24,9; @ %r26 bra $L2; bra $L3; $L2: ld.u64 %r27,[%r25]; cvt.s64.s32 %r28,%r24; shl.b64 %r29,%r28,2; add.u64 %r30,%r27,%r29; st.u32 [%r30],%r24; $L3: // joining 2; $L5: bar.sync 1; @ %r34 bra.uni $L8; @ %r33 bra $L9; // join 2; $L9: $L8: ret; } ... >From gcc-bugs-return-598224-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:55:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 23266 invoked by alias); 19 Mar 2018 16:55: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 23204 invoked by uid 48); 19 Mar 2018 16:55:46 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 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: 8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02812.txt.bz2 Content-length: 260 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #6 from Tom de Vries --- Created attachment 43707 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43707&action=edit 0001-Fix-bar.sync-position.patch (stage4) >From gcc-bugs-return-598225-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:56:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 24911 invoked by alias); 19 Mar 2018 16:56: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 24860 invoked by uid 48); 19 Mar 2018 16:56:15 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 16: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02813.txt.bz2 Content-length: 263 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #7 from Tom de Vries --- Created attachment 43708 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43708&action=edit 0002-Verify-bar.sync-position.patch (stage4) >From gcc-bugs-return-598226-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 16:58:33 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 51111 invoked by alias); 19 Mar 2018 16:58: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 47238 invoked by uid 48); 19 Mar 2018 16:58:28 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84952] [nvptx] bar.sync generated in divergent code Date: Mon, 19 Mar 2018 16:58: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02814.txt.bz2 Content-length: 510 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84952 --- Comment #8 from Tom de Vries --- (In reply to Tom de Vries from comment #5) > For stage4, however, we want a fix without fixing optimization issue > PR84025 > ... > @ %r34 bra.uni $L8; > @ %r33 bra $L9; > // join 2; > $L9: > $L8: > ... Now I realize that prevent_branch_around_nothing is not triggering here, while it should. Filed PR84954 - "[nvptx] prevent_branch_around_nothing doesn't trigger often enough" >From gcc-bugs-return-598227-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:04:39 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 120141 invoked by alias); 19 Mar 2018 17:04: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 120009 invoked by uid 48); 19 Mar 2018 17:04:35 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84946] [8 Regression] UBSAN: in mem_valid_for_store_merging ../../gcc/gimple-ssa-store-merging.c:3951 Date: Mon, 19 Mar 2018 17:04: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.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.0 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-03/txt/msg02815.txt.bz2 Content-length: 578 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84946 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek --- Created attachment 43709 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43709&action=edit gcc8-pr84946.patch Untested fix. >From gcc-bugs-return-598228-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:17:12 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65763 invoked by alias); 19 Mar 2018 17:17: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 60863 invoked by uid 48); 19 Mar 2018 17:17:08 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84905] Improve warning for __attribute__((const)) on function returning void Date: Mon, 19 Mar 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: c++ X-Bugzilla-Version: 8.0 X-Bugzilla-Keywords: diagnostic, documentation X-Bugzilla-Severity: minor 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-03/txt/msg02816.txt.bz2 Content-length: 330 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84905 --- Comment #3 from Jonathan Wakely --- No suggestions here, I was just passing on it on. My response on IRC was pretty much what you said: you need to read the manual to know what the attribute does, the warning is not the place to put that info. >From gcc-bugs-return-598229-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:21:17 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 760 invoked by alias); 19 Mar 2018 17:21: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 126862 invoked by uid 48); 19 Mar 2018 17:21:12 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/84949] -ffast-math bugged with respect to NaNs Date: Mon, 19 Mar 2018 17:21: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: 5.4.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: --- 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-03/txt/msg02817.txt.bz2 Content-length: 801 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84949 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-03-19 Ever confirmed|0 |1 --- Comment #3 from Jonathan Wakely --- (In reply to Christoph Lipka from comment #0) > (B) > std::numeric_limits::has_quiet_NaN() is broken in that it claims that > NaNs are supported. Agreed. > Seen with both g++ 4.8.4 on Ubuntu 14.04, as well as g++ 5.4.0 on MS Windows > Subsystem for Linux Neither of those compilers is still supported by the GCC project. >From gcc-bugs-return-598230-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:29:16 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 61604 invoked by alias); 19 Mar 2018 17: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 61398 invoked by uid 48); 19 Mar 2018 17:29:12 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84826] ICE in extract_insn, at recog.c:2304 on arm-linux-gnueabi Date: Mon, 19 Mar 2018 17:29: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sudi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sudi 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-03/txt/msg02818.txt.bz2 Content-length: 433 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84826 sudi at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |sudi at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |sudi at gcc dot gnu.org >From gcc-bugs-return-598231-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:31:34 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 65983 invoked by alias); 19 Mar 2018 17:31: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 65832 invoked by uid 48); 19 Mar 2018 17:31:20 -0000 From: "dilyan.palauzov at aegee dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84934] Installing the lto plugin where binutils will look for it Date: Mon, 19 Mar 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: lto X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dilyan.palauzov at aegee 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-03/txt/msg02819.txt.bz2 Content-length: 283 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84934 --- Comment #3 from Дилян Палаузов --- For LLVM I filled the same request: https://bugs.llvm.org/show_bug.cgi?id=36802 . >From gcc-bugs-return-598232-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:35:02 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 92306 invoked by alias); 19 Mar 2018 17: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 92228 invoked by uid 48); 19 Mar 2018 17:34:57 -0000 From: "hjl.tools at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/84901] --dynamic-list=export is ignored in presence of -flto Date: Mon, 19 Mar 2018 17:35: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.2.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: hjl.tools at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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-03/txt/msg02820.txt.bz2 Content-length: 474 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84901 H.J. Lu changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #3 from H.J. Lu --- Moved to https://sourceware.org/bugzilla/show_bug.cgi?id=22983 >From gcc-bugs-return-598233-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:44:14 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 48425 invoked by alias); 19 Mar 2018 17:44: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 36782 invoked by uid 48); 19 Mar 2018 17:44:08 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 17: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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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-03/txt/msg02821.txt.bz2 Content-length: 375 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #1 from Andrew Pinski --- DEF_LIB_BUILTIN (BUILT_IN_STRPBRK, "strpbrk", BT_FN_STRING_CONST_STRING_CONST_STRING, ATTR_PURE_NOTHROW_NONNULL_LEAF) DEF_FUNCTION_TYPE_2 (BT_FN_STRING_CONST_STRING_CONST_STRING, BT_STRING, BT_CONST_STRING, BT_CONST_STRING) >From gcc-bugs-return-598234-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:47:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 83811 invoked by alias); 19 Mar 2018 17:47: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 83733 invoked by uid 48); 19 Mar 2018 17:47:39 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84615] [8 Regression] Executable Segfault for some tests compiled with -m32 after r256284 Date: Mon, 19 Mar 2018 17: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.0.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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.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-03/txt/msg02822.txt.bz2 Content-length: 1460 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84615 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #15 from kargl at gcc dot gnu.org --- (In reply to Janne Blomqvist from comment #12) > So to be clear, the problem seems to be that while the code generation for > the function itself appears Ok, it generates the interface wrong (i.e. uses > the declared charlen kind instead of C_SIZE_T), and thus calling it doesn't > work properly. > > I still have no idea where in the frontend code the error is. I haven't looked, but suspect that you can force a conversion to the correct charlen in trans-intrinsic.c:gfc_conv_intrinsic_function_args Well, for intrinsics, the above function has if (e->ts.type == BT_CHARACTER) { gfc_conv_expr (&argse, e); gfc_conv_string_parameter (&argse); argarray[curr_arg++] = argse.string_length; gcc_assert (curr_arg < nargs); } From trans-expr.c, one has /* Makes sure se is suitable for passing as a function string parameter. */ /* TODO: Need to check all callers of this function. It may be abused. */ void gfc_conv_string_parameter (gfc_se * se) I suspect you can do a fold_convert here or a conversion before the gfc_conv_expr. >From gcc-bugs-return-598235-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:54:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 91335 invoked by alias); 19 Mar 2018 17:54: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 91277 invoked by uid 48); 19 Mar 2018 17:54:47 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 17:54: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.1 X-Bugzilla-Keywords: 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 cf_reconfirmed_on cc 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-03/txt/msg02823.txt.bz2 Content-length: 563 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2018-03-19 CC| |jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 >From gcc-bugs-return-598236-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:55:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 94167 invoked by alias); 19 Mar 2018 17: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 94063 invoked by uid 48); 19 Mar 2018 17:55:34 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 17: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: 8.0.1 X-Bugzilla-Keywords: 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-03/txt/msg02824.txt.bz2 Content-length: 676 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #2 from Jakub Jelinek --- --- gcc/builtins.c.jj 2018-03-07 22:51:58.871478732 +0100 +++ gcc/builtins.c 2018-03-19 18:49:45.313898848 +0100 @@ -9573,7 +9573,7 @@ fold_builtin_strpbrk (location_t loc, tr if (p2[0] == '\0') /* strpbrk(x, "") == NULL. Evaluate and ignore s1 in case it had side-effects. */ - return omit_one_operand_loc (loc, TREE_TYPE (s1), integer_zero_node, s1); + return omit_one_operand_loc (loc, type, integer_zero_node, s1); if (p2[1] != '\0') return NULL_TREE; /* Really call strpbrk. */ >From gcc-bugs-return-598237-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 17:58:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99617 invoked by alias); 19 Mar 2018 17:58: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 99504 invoked by uid 48); 19 Mar 2018 17:58:03 -0000 From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/70359] [6/7/8 Regression] Code size increase for x86/ARM/others compared to gcc-5.3.0 Date: Mon, 19 Mar 2018 17: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: 6.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aldyh 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-03/txt/msg02825.txt.bz2 Content-length: 2031 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70359 --- Comment #42 from Aldy Hernandez --- (In reply to Jeffrey A. Law from comment #36) > WRT the division removal. That seems so profitable that a slight increase > in codesize is warranted. So if we fix the other issue and the source of > the remaining codesize regressions is the removal of the division, I would > consider this BZ resolved. Richi. Jeff. Limiting the single_use with optimize_size as well may give us the best of both worlds. Would you like me to post the [untested] patch below upstream? With this patch code size is even smaller than GCC 5.3. I really don't care. Actually, I'd prefer to do nothing and close the PR ;-). Up to y'all. diff --git a/gcc/match.pd b/gcc/match.pd index f61c4d7440a..5d29bf62dc9 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -1290,11 +1290,12 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) /* X / C1 op C2 into a simple range test. */ (for cmp (simple_comparison) (simplify - (cmp (trunc_div:s @0 INTEGER_CST@1) INTEGER_CST@2) + (cmp (trunc_div:s@3 @0 INTEGER_CST@1) INTEGER_CST@2) (if (INTEGRAL_TYPE_P (TREE_TYPE (@0)) && integer_nonzerop (@1) && !TREE_OVERFLOW (@1) - && !TREE_OVERFLOW (@2)) + && !TREE_OVERFLOW (@2) + && (!optimize_size || single_use (@3))) (with { tree lo, hi; bool neg_overflow; enum tree_code code = fold_div_compare (cmp, @1, @2, &lo, &hi, &neg_overflow); } @@ -1456,9 +1457,10 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) (for cmp (eq ne) ocmp (lt ge) (simplify - (cmp (trunc_div @0 @1) integer_zerop) + (cmp (trunc_div@2 @0 @1) integer_zerop) (if (TYPE_UNSIGNED (TREE_TYPE (@0)) - && (VECTOR_TYPE_P (type) || !VECTOR_TYPE_P (TREE_TYPE (@0)))) + && (VECTOR_TYPE_P (type) || !VECTOR_TYPE_P (TREE_TYPE (@0))) + && (!optimize_size || single_use (@2))) (ocmp @0 @1)))) /* X == C - X can never be true if C is odd. */ >From gcc-bugs-return-598238-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:09:03 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 43491 invoked by alias); 19 Mar 2018 18: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 43420 invoked by uid 55); 19 Mar 2018 18:08:58 -0000 From: "wilson at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84856] Bootstrap failure on riscv: comparison of integer expressions of different signedness Date: Mon, 19 Mar 2018 18:09: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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: wilson 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-03/txt/msg02826.txt.bz2 Content-length: 985 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84856 --- Comment #5 from Jim Wilson --- Author: wilson Date: Mon Mar 19 18:08:24 2018 New Revision: 258650 URL: https://gcc.gnu.org/viewcvs?rev=258650&root=gcc&view=rev Log: RISC-V: Fix bootstrap failure. gcc/ PR bootstrap/84856 * config/riscv/riscv.c (riscv_function_arg_boundary): Use PREFERRED_STACK_BOUNDARY instead of STACK_BOUNDARY. (riscv_first_stack_step): Likewise. (riscv_option_override): Use STACK_BOUNDARY instead of MIN_STACK_BOUNDARY. * config/riscv/riscv.h (STACK_BOUNDARY): Renamed from MIN_STACK_BOUNDARY. (BIGGEST_ALIGNMENT): Set to 128. (PREFERRED_STACK_BOUNDARY): Renamed from STACK_BOUNDARY. (RISCV_STACK_ALIGN): Use PREFERRED_STACK_BOUNDARY instead of STACK_BOUNDARY. Modified: trunk/gcc/ChangeLog trunk/gcc/config/riscv/riscv.c trunk/gcc/config/riscv/riscv.h >From gcc-bugs-return-598239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:10:56 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 55466 invoked by alias); 19 Mar 2018 18:10: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 55389 invoked by uid 48); 19 Mar 2018 18:10:52 -0000 From: "wilson at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84856] Bootstrap failure on riscv: comparison of integer expressions of different signedness Date: Mon, 19 Mar 2018 18:10: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: 8.0.1 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 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-03/txt/msg02827.txt.bz2 Content-length: 513 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84856 Jim Wilson changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Assignee|unassigned at gcc dot gnu.org |wilson at gcc dot gnu.org --- Comment #6 from Jim Wilson --- Patch committed. >From gcc-bugs-return-598240-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:11:49 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 60143 invoked by alias); 19 Mar 2018 18:11: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 60069 invoked by uid 48); 19 Mar 2018 18:11:44 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84826] ICE in extract_insn, at recog.c:2304 on arm-linux-gnueabi Date: Mon, 19 Mar 2018 18:11: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.0.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: sudi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sudi 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-03/txt/msg02828.txt.bz2 Content-length: 2691 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84826 sudi at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #3 from sudi at gcc dot gnu.org --- So I looked into this. Turns out the actual issue is that USE_RETURN_INSN (FALSE) changes its value and becomes false after pass ce3. According to what I can see, arm_r3_live_at_start_p() starts to return true after ce3. +static bool +arm_r3_live_at_start_p (void) +{ + /* Just look at cfg info, which is still close enough to correct at this + point. This gives false positives for broken functions that might use + uninitialized data that happens to be allocated in r3, but who cares? */ This particular test cares :P + return REGNO_REG_SET_P (df_get_live_out (ENTRY_BLOCK_PTR_FOR_FN (cfun)), 3); +} r3 in this test case is being allocated for b and after ifcvt, it becomes partially defined and thus the liveness does not get killed. (Look below for excerpt from ce3) ;; lr in 0 [r0] 3 [r3] 12 [ip] 13 [sp] 14 [lr] ;; lr use 0 [r0] 3 [r3] 12 [ip] 13 [sp] ;; lr def 100 [cc] ;; live in 0 [r0] 3 [r3] 12 [ip] 13 [sp] 14 [lr] ;; live gen 3 [r3] 100 [cc] ;; live kill (note 5 1 47 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (note 47 5 2 2 NOTE_INSN_PROLOGUE_END) (note 2 47 4 2 NOTE_INSN_DELETED) (note 4 2 7 2 NOTE_INSN_FUNCTION_BEG) (insn 7 4 10 2 (set (reg:CC 100 cc) (compare:CC (reg:SI 0 r0 [ cD.5556 ]) (const_int 0 [0]))) "ice.i":6 193 {*arm_cmpsi_insn} (expr_list:REG_DEAD (reg:SI 0 r0 [ cD.5556 ]) (nil))) (insn 10 7 11 2 (cond_exec (ne (reg:CC 100 cc) (const_int 0 [0])) (set (reg:SI 3 r3 [orig:115 CHAIN.1_5(D)->bD.5567 ] [115]) (mem/j:SI (reg/f:SI 12 ip [orig:113 CHAIN.1D.5566 ] [113]) [1 CHAIN.1_5(D)->bD.5567+0 S4 A32]))) "ice.i":7 4068 {*p *arm_movsi_vfp} (expr_list:REG_EQUIV (mem/j:SI (reg/f:SI 12 ip [orig:113 CHAIN.1D.5566 ] [113]) [1 CHAIN.1_5(D)->bD.5567+0 S4 A32]) (nil))) My question is: 1) Is there any easy way to avoid the false positives from arm_r3_live_at_start_p() 2) Why is r3 still live at IN of BB2 when there is no reaching definition of it? I mean also there will never be any reaching definition at IN of BB2. So shouldn't all the liveness (barring the artificially create ones for the prologues/stack requirements) be killed there? I know I may be over simplifying all the intricate details of liveness analysis when I ask this question, but I am looking for some help here! >From gcc-bugs-return-598241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:19:35 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 99537 invoked by alias); 19 Mar 2018 18:19: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 99481 invoked by uid 48); 19 Mar 2018 18:19:31 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 18: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.1 X-Bugzilla-Keywords: 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: 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-03/txt/msg02829.txt.bz2 Content-length: 253 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #3 from Jakub Jelinek --- Created attachment 43710 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43710&action=edit gcc8-pr84953.patch Untested fix. >From gcc-bugs-return-598242-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:25:32 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 107490 invoked by alias); 19 Mar 2018 18:25: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 106960 invoked by uid 48); 19 Mar 2018 18:25:22 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 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: c X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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-03/txt/msg02830.txt.bz2 Content-length: 668 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Target Milestone|--- |6.5 Summary|misleading warning from |[6/7/8 Regression] |strpbrk(x,"") |misleading warning from | |strpbrk(x,"") --- Comment #4 from Jakub Jelinek --- GCC 3.[234] didn't warn, but already r90000 warns here. >From gcc-bugs-return-598243-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:28:23 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 13261 invoked by alias); 19 Mar 2018 18:28: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 13223 invoked by uid 48); 19 Mar 2018 18:28:19 -0000 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84955] New: [7/8 Regression] ICE in substitute_and_fold_dom_walker, at tree-ssa-propagate.c:1089 Date: Mon, 19 Mar 2018 18:28: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.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 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-03/txt/msg02831.txt.bz2 Content-length: 1496 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84955 Bug ID: 84955 Summary: [7/8 Regression] ICE in substitute_and_fold_dom_walker, at tree-ssa-propagate.c:1089 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20170205 and 20170212 : $ cat z1.f90 subroutine s integer :: i, j !$acc parallel loop tile(2,3) do i = 1, 10 do j = 1, 10 do end do end do end do !$acc end parallel loop end $ gfortran-7-20170205 -c z1.f90 -O2 -fopenacc $ gfortran-8-20180318 -c z1.f90 -O0 -fopenacc $ $ gfortran-8-20180318 -c z1.f90 -O2 -fopenacc during GIMPLE pass: ccp z1.f90:11:0: end internal compiler error: Segmentation fault 0xb9bd5f crash_signal ../../gcc/toplev.c:325 0xcf35b2 substitute_and_fold_dom_walker::before_dom_children(basic_block_def*) ../../gcc/tree-ssa-propagate.c:1089 0x11dc6ef dom_walker::walk(basic_block_def*) ../../gcc/domwalk.c:353 0xcf2ac0 substitute_and_fold_engine::substitute_and_fold() ../../gcc/tree-ssa-propagate.c:1173 0xc73959 ccp_finalize ../../gcc/tree-ssa-ccp.c:992 0xc73959 do_ssa_ccp ../../gcc/tree-ssa-ccp.c:2475 0xc73959 execute ../../gcc/tree-ssa-ccp.c:2518 >From gcc-bugs-return-598244-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:28:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 14016 invoked by alias); 19 Mar 2018 18:28: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 13988 invoked by uid 48); 19 Mar 2018 18:28:40 -0000 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84955] [7/8 Regression] ICE in substitute_and_fold_dom_walker, at tree-ssa-propagate.c:1089 Date: Mon, 19 Mar 2018 18: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: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.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-03/txt/msg02832.txt.bz2 Content-length: 766 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84955 --- Comment #1 from G. Steinmetz --- Configured with --enable-checking=yes : $ gfortran-8-20180318 -c z1.f90 -O2 -fopenacc during GIMPLE pass: fixup_cfg z1.f90:11:0: end internal compiler error: in operator[], at vec.h:841 0xd2490f vec::operator[](unsigned int) ../../gcc/vec.h:841 0xd2490f extract_true_false_edges_from_block(basic_block_def*, edge_def**, edge_def**) ../../gcc/tree-cfg.c:9194 0xd29e5d gimple_verify_flow_info ../../gcc/tree-cfg.c:5740 0x87aeb3 verify_flow_info() ../../gcc/cfghooks.c:263 0xc09a71 execute_function_todo ../../gcc/passes.c:2006 0xc0a499 execute_todo ../../gcc/passes.c:2048 >From gcc-bugs-return-598245-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:29:08 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15349 invoked by alias); 19 Mar 2018 18:29: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 15311 invoked by uid 48); 19 Mar 2018 18:29:04 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub 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-03/txt/msg02833.txt.bz2 Content-length: 384 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #5 from Bernd Edlinger --- WOW! That was quick! Note that strpbrk(p, "") is certainly worth a warning: in the original context the second parameter was the result from a macro substitution, that was far from obvious to spot, and strpbrk does not make much sense with empty strings. >From gcc-bugs-return-598246-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:33:47 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 96539 invoked by alias); 19 Mar 2018 18:33: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 92509 invoked by uid 48); 19 Mar 2018 18:33:43 -0000 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84956] New: ICE in replace_block_by, at tree-ssa-tail-merge.c:1546 Date: Mon, 19 Mar 2018 18:33: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.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 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-03/txt/msg02834.txt.bz2 Content-length: 1243 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84956 Bug ID: 84956 Summary: ICE in replace_block_by, at tree-ssa-tail-merge.c:1546 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Derived from gcc/testsuite/gcc.dg/torture/pr82264.c ICEs at -O[s23] on x86_64/linux, gcc-4.8 compiles. $ cat z1.c char a; int c; unsigned b (); unsigned setjmp () { } static void d () { if (b ()) c = 3; } void e () { d (); a && ({ setjmp (); }); a && ({ setjmp (); }); a && ({ setjmp (); }); } $ gcc-4.8 -c z1.c -O2 $ gcc-8-20180318 -c z1.c -O1 $ $ gcc-8-20180318 -c z1.c -O2 during GIMPLE pass: pre z1.c: In function 'e': z1.c:15:1: internal compiler error: in replace_block_by, at tree-ssa-tail-merge.c:1546 e () ^ 0xc90c30 replace_block_by ../../gcc/tree-ssa-tail-merge.c:1546 0xc90c30 apply_clusters ../../gcc/tree-ss a-tail-merge.c:1637 0xc90c30 tail_merge_optimize(unsigned int) ../../gcc/tree-ssa-tail-merge.c:1755 0xc40997 execute ../../gcc/tree-ssa-pre.c:4209 >From gcc-bugs-return-598247-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:36:53 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 69405 invoked by alias); 19 Mar 2018 18:36: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 69358 invoked by uid 48); 19 Mar 2018 18:36:49 -0000 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84957] New: [8 Regression] ICE in gfc_sym_type, at fortran/trans-types.c:2255 Date: Mon, 19 Mar 2018 18:36: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.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 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-03/txt/msg02835.txt.bz2 Content-length: 1752 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84957 Bug ID: 84957 Summary: [8 Regression] ICE in gfc_sym_type, at fortran/trans-types.c:2255 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20171119 and 20171126 : $ cat z1.f90 function f() result(u) entry g() result(v) contains function v(x) result(z) character :: x(2) character(sum(len_trim(x))) :: z end end $ cat z2.f90 function f() result(u) entry g() result(v) contains function u(x) result(z) character :: x(2) character(sum(len_trim(x))) :: z end end $ gfortran-8-20171119 -c z1.f90 $ $ gfortran-8-20180318 -c z1.f90 z1.f90:2:0: entry g() result(v) internal compiler error: Segmentation fault 0xb9bd5f crash_signal ../../gcc/toplev.c:325 0x7c348b gfc_sym_type(gfc_symbol*) ../../gcc/fortran/trans-types.c:2255 0x7c18e3 gfc_get_function_type(gfc_symbol*) ../../gcc/fortran/trans-types.c:3031 0x766a9f build_function_decl ../../gcc/fortran/trans-decl.c:2233 0x768561 build_entry_thunks ../../gcc/fortran/trans-decl.c:2739 0x768561 gfc_create_function_decl(gfc_namespace*, bool) ../../gcc/fortran/trans-decl.c:2913 0x77284b gfc_generate_function_code(gfc_namespace*) ../../gcc/fortran/trans-decl.c:6398 0x7009c0 translate_all_program_units ../../gcc/fortran/parse.c:6121 0x7009c0 gfc_parse_file() ../../gcc/fortran/parse.c:6324 0x74755f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204 >From gcc-bugs-return-598248-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:37:05 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 70198 invoked by alias); 19 Mar 2018 18:37: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 70126 invoked by uid 55); 19 Mar 2018 18:37:01 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65453] ICE in build_function_decl, at fortran/trans-decl.c:2001 Date: Mon, 19 Mar 2018 18:37: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: diagnostic, error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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-03/txt/msg02836.txt.bz2 Content-length: 775 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65453 --- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon Mar 19 18:36:29 2018 New Revision: 258652 URL: https://gcc.gnu.org/viewcvs?rev=258652&root=gcc&view=rev Log: 2018-03-19 Steven G. Kargl PR fortran/65453 * decl.c (get_proc_name): Catch clash between a procedure statement and a contained subprogram 2018-03-19 Steven G. Kargl PR fortran/65453 * gfortran.dg/pr65453.f90: New test. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr65453.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog >From gcc-bugs-return-598249-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:46:25 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 88202 invoked by alias); 19 Mar 2018 18:46: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 88148 invoked by uid 48); 19 Mar 2018 18:46:21 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84958] New: int loads not eliminated against larger stores Date: Mon, 19 Mar 2018 18:46: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02837.txt.bz2 Content-length: 2169 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84958 Bug ID: 84958 Summary: int loads not eliminated against larger stores Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ As discussed here: https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00800.html ] This test-case: ... int foo() { int a[10]; for(int i = 0; i < 10; ++i) a[i] = i*i; int res = 0; for(int i = 0; i < 10; ++i) res += a[i]; return res; } ... compiled with -O3 results in this gimple at optimized: ... MEM[(int *)&a] = { 0, 1 }; MEM[(int *)&a + 8B] = { 4, 9 }; MEM[(int *)&a + 16B] = { 16, 25 }; MEM[(int *)&a + 24B] = { 36, 49 }; MEM[(int *)&a + 32B] = { 64, 81 }; _6 = a[0]; _28 = a[1]; res_29 = _6 + _28; _35 = a[2]; res_36 = res_29 + _35; _42 = a[3]; res_43 = res_36 + _42; _49 = a[4]; res_50 = res_43 + _49; _56 = a[5]; res_57 = res_50 + _56; _63 = a[6]; res_64 = res_57 + _63; _70 = a[7]; res_71 = res_64 + _70; _77 = a[8]; res_78 = res_71 + _77; _2 = a[9]; res_11 = _2 + res_78; a ={v} {CLOBBER}; return res_11; ... Loop vectorization has no effect, and the scalar loops are completely unrolled. Then slp vectorization vectorizes the stores. When disabling slp vectorization, we have instead: ... return 285; ... [ FWIW, adding an extra fre pass here also results in optimal gimple: ... diff --git a/gcc/passes.def b/gcc/passes.def index 3ebcfc30349..6b64f600c4a 100644 --- a/gcc/passes.def +++ b/gcc/passes.def @@ -325,6 +325,7 @@ along with GCC; see the file COPYING3. If not see NEXT_PASS (pass_tracer); NEXT_PASS (pass_thread_jumps); NEXT_PASS (pass_dominator, false /* may_peel_loop_headers_p */); + NEXT_PASS (pass_fre); NEXT_PASS (pass_strlen); NEXT_PASS (pass_thread_jumps); NEXT_PASS (pass_vrp, false /* warn_array_bounds_p */); ... ] >From gcc-bugs-return-598250-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:51:10 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 95009 invoked by alias); 19 Mar 2018 18:51:09 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 94941 invoked by uid 55); 19 Mar 2018 18:51:05 -0000 From: "sudi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/81647] inconsistent LTGT behavior at different optimization levels on AArch64. Date: Mon, 19 Mar 2018 18:51: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.0 X-Bugzilla-Keywords: wrong-code 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: sudi 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-03/txt/msg02838.txt.bz2 Content-length: 1889 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81647 --- Comment #9 from sudi at gcc dot gnu.org --- Author: sudi Date: Mon Mar 19 18:50:32 2018 New Revision: 258653 URL: https://gcc.gnu.org/viewcvs?rev=258653&root=gcc&view=rev Log: [PR81647][AARCH64] Fix handling of Unordered Comparisons in aarch64-simd.md This patch fixes the inconsistent behavior observed at -O3 for the unordered comparisons. According to the online docs (https://gcc.gnu.org/onlinedocs /gcc-7.2.0/gccint/Unary-and-Binary-Expressions.html), all of the following should not raise an FP exception: - UNGE_EXPR - UNGT_EXPR - UNLE_EXPR - UNLT_EXPR - UNEQ_EXPR Also ORDERED_EXPR and UNORDERED_EXPR should only return zero or one. The aarch64-simd.md handling of these were generating exception raising instructions such as fcmgt. This patch changes the instructions that are emitted in order to not give out the exceptions. We first check each operand for NaNs and force any elements containing NaN to zero before using them in the compare. Example: UN (a, b) -> UNORDERED (a, b) | (cm (isnan (a) ? 0.0 : a, isnan (b) ? 0.0 : b)) The ORDERED_EXPR is now handled as (cmeq (a, a) & cmeq (b, b)) and UNORDERED_EXPR as ~ORDERED_EXPR and UNEQ as (~ORDERED_EXPR | cmeq (a,b)). ChangeLog Entries: *** gcc/ChangeLog *** 2018-03-19 Sudakshina Das PR target/81647 * config/aarch64/aarch64-simd.md (vec_cmp): Modify instructions for UNLT, UNLE, UNGT, UNGE, UNEQ, UNORDERED and ORDERED. *** gcc/testsuite/ChangeLog *** 2018-03-19 Sudakshina Das PR target/81647 * gcc.target/aarch64/pr81647.c: New. Added: trunk/gcc/testsuite/gcc.target/aarch64/pr81647.c Modified: trunk/gcc/ChangeLog trunk/gcc/config/aarch64/aarch64-simd.md trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598251-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:55:06 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 106125 invoked by alias); 19 Mar 2018 18:55: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 106055 invoked by uid 55); 19 Mar 2018 18:55:01 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410 Date: Mon, 19 Mar 2018 18:55: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 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: kargl 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-03/txt/msg02839.txt.bz2 Content-length: 1057 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414 --- Comment #8 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon Mar 19 18:54:29 2018 New Revision: 258654 URL: https://gcc.gnu.org/viewcvs?rev=258654&root=gcc&view=rev Log: 2018-03-19 Steven G. Kargl PR fortran/77414 * decl.c (get_proc_name): Check for a subroutine re-defined in the contain portion of a subroutine. Change language of existing error message to better describe the issue. While here fix whitespace issues. 2018-03-19 Steven G. Kargl PR fortran/77414 * gfortran.dg/pr77414.f90: New test. * gfortran.dg/internal_references_1.f90: Adjust error message. Added: branches/gcc-7-branch/gcc/testsuite/gfortran.dg/pr77414.f90 Modified: branches/gcc-7-branch/gcc/fortran/ChangeLog branches/gcc-7-branch/gcc/fortran/decl.c branches/gcc-7-branch/gcc/testsuite/ChangeLog branches/gcc-7-branch/gcc/testsuite/gfortran.dg/internal_references_1.f90 >From gcc-bugs-return-598252-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:56:40 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 109088 invoked by alias); 19 Mar 2018 18:56: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 109041 invoked by uid 48); 19 Mar 2018 18:56:36 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84835] [8 Regression] ICE in add_method, at cp/class.c:996 Date: Mon, 19 Mar 2018 18: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: 8.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02840.txt.bz2 Content-length: 435 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84835 Nathan Sidwell changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Nathan Sidwell --- Fixed r258655. >From gcc-bugs-return-598254-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:57:20 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 112461 invoked by alias); 19 Mar 2018 18:57: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 112417 invoked by uid 48); 19 Mar 2018 18:57:16 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 18: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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub 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-03/txt/msg02842.txt.bz2 Content-length: 406 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #6 from Jakub Jelinek --- I disagree, it is a well documented behavior and user gets exactly what he asked for. There is no questionable or problematic behavior with those options. It is not any different from strchr ("abcd", 'e') and many other functions that can be determined at compile time to return NULL. >From gcc-bugs-return-598253-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:57:00 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 110614 invoked by alias); 19 Mar 2018 18: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 109982 invoked by uid 55); 19 Mar 2018 18:56:54 -0000 From: "nathan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84835] [8 Regression] ICE in add_method, at cp/class.c:996 Date: Mon, 19 Mar 2018 18: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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: nathan at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.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-03/txt/msg02841.txt.bz2 Content-length: 761 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84835 --- Comment #4 from Nathan Sidwell --- Author: nathan Date: Mon Mar 19 18:56:22 2018 New Revision: 258655 URL: https://gcc.gnu.org/viewcvs?rev=258655&root=gcc&view=rev Log: [PR c++/84835] ICE with generic lambda in extern "C" https://gcc.gnu.org/ml/gcc-patches/2018-03/msg00890.html PR c++/84835 * lambda.c (maybe_add_lambda_conv_op): Force C++ linkage. * pt.c (build_template_decl): Propagate language linkage. PR c++/84835 * g++.dg/cpp1y/pr84835.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp1y/pr84835.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/lambda.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog >From gcc-bugs-return-598255-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 18:59:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 114467 invoked by alias); 19 Mar 2018 18: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 114421 invoked by uid 48); 19 Mar 2018 18:59:52 -0000 From: "jason.vas.dias at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/84908] retpoline weirdness: 7.3.0-1 and 4.8.5-16: with -fPIC: R_X86_64_PC32 against undefined symbol `__x86_indirect_thunk_rax' Date: Mon, 19 Mar 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: target X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jason.vas.dias at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: MOVED 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-03/txt/msg02843.txt.bz2 Content-length: 4747 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84908 --- Comment #8 from Jason Vas Dias --- Thanks for the clarification, and I hope the kernel developers stop compiling the mainline vDSO with -mindirect-branch=thunk-extern -mindirect-branch-register . But there are still a few things I am trying to figure out : o Why is the thunk entry reference & relocation inserted for 6 switch clauses and not for 5 ? o So do I understand correctly: __x86_indirect_thunk_rax is resolved and jumped to save %rax , jump to the address in %rcx, and then restore %rax, and return ? it is normally A) generated for libraries / executable as required or B) is in libgcc ? If (A), then what triggers it and why is it not being generated for the vDSO? If (B), then where is the code in libgcc ? I can't find it. I'd also like more details on why it is wrong to compile the vDSO with these flags - it does work, and yes causes compilation problems like this one which can be worked around by declaring all 'notrace static inline' entry points in vclock_gettime.c to have the function attributes: static inline __attribute__(( indirect_branch("keep"), function_return("keep") )) int do_monotonic_raw( int clock, struct timespec *ts ); which effectively disables the effect of -mindirect-branch=thunk-extern -mindirect-branch-register for these functions ; also __vdso_clock_gettime itself MUST be then declared: __attribute__(( indirect_branch("keep"), function_return("keep") )) int __vdso_clock_gettime ( ... ) { ... But does it cause any other issues ? I did investigate changing the switch in __vdso_clock_gettime to : #define _GTOD_LABEL_PREFIX_ _vcg_ #define _SYMCAT_(_S1_,_S2_) _S1_##_S2_ #define _GTOD_CLK_LABEL_(_CLK_) _SYMCAT_(_GTOD_LABEL_PREFIX_,_CLK_) notrace int __vdso_clock_gettime(clockid_t clock, struct timespec *ts) { static const void * clk_jmp_tbl[ MAX_CLOCKS ] = { [ CLOCK_REALTIME ] = &&_GTOD_CLK_LABEL_(CLOCK_REALTIME) , [ CLOCK_MONOTONIC ] = &&_GTOD_CLK_LABEL_(CLOCK_MONOTONIC) , [ CLOCK_PROCESS_CPUTIME_ID ] = &&fallback , [ CLOCK_THREAD_CPUTIME_ID ] = &&fallback , [ CLOCK_MONOTONIC_RAW ] = &&_GTOD_CLK_LABEL_(CLOCK_MONOTONIC_RAW) , [ CLOCK_REALTIME_COARSE ] = &&_GTOD_CLK_LABEL_(CLOCK_REALTIME_COARSE) , [ CLOCK_MONOTONIC_COARSE ] = &&_GTOD_CLK_LABEL_(CLOCK_MONOTONIC_COARSE) , [ CLOCK_BOOTTIME ] = &&fallback , [ CLOCK_BOOTTIME_ALARM ] = &&fallback , [ CLOCK_SGI_CYCLE ] = &&fallback , [ CLOCK_TAI ] = &&fallback , // unused clocks [ 12 ] = &¬_supported , [ 13 ] = &¬_supported , [ 14 ] = &¬_supported , [ 15 ] = &¬_supported }; goto *clk_jmp_tbl [ clock & 0xf ] ; _GTOD_CLK_LABEL_(CLOCK_REALTIME) : if (do_realtime(ts) == VCLOCK_NONE) goto fallback; goto return_ok; _GTOD_CLK_LABEL_(CLOCK_MONOTONIC) : if (do_monotonic(ts) == VCLOCK_NONE) goto fallback; goto return_ok; _GTOD_CLK_LABEL_(CLOCK_MONOTONIC_RAW) : if (do_monotonic_raw(ts) == VCLOCK_NONE) goto fallback; goto return_ok; _GTOD_CLK_LABEL_(CLOCK_REALTIME_COARSE) : do_realtime_coarse(ts); goto return_ok; _GTOD_CLK_LABEL_(CLOCK_MONOTONIC_COARSE): do_monotonic_coarse(ts); goto return_ok; return_ok: return 0; not_supported: return -1; fallback: return vdso_fallback_gettime(clock, ts); } Results in 16 dynamic relocations, shown in objdump -R arch/x86/entry/vdso/vdso64.so.dbg output: DYNAMIC RELOCATION RECORDS OFFSET TYPE VALUE 00000000000004a0 R_X86_64_RELATIVE *ABS*+0x0000000000000c49 ... 000000000000518 R_X86_64_RELATIVE *ABS*+0x0000000000000b31 what's the problem with dyn relocs ? I can't understand why GCC decides to generate relocations here - it knows all the information before hand - why can't it insert code to compute ( ( LOAD_ADDRESS_OF(__vdso_clock_gettime) == %pc at entry) + label_offset ) and populate the clk_jmp_table in an initializer in the above version of the function rather than generate relocations ? Thanks & Best Regards, Jason >From gcc-bugs-return-598257-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:14:44 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79337 invoked by alias); 19 Mar 2018 19:14: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 78211 invoked by uid 55); 19 Mar 2018 19:14:40 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65453] ICE in build_function_decl, at fortran/trans-decl.c:2001 Date: Mon, 19 Mar 2018 19: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: 5.0 X-Bugzilla-Keywords: diagnostic, error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED 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-03/txt/msg02845.txt.bz2 Content-length: 775 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65453 --- Comment #5 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon Mar 19 19:14:06 2018 New Revision: 258657 URL: https://gcc.gnu.org/viewcvs?rev=258657&root=gcc&view=rev Log: 2018-03-19 Steven G. Kargl PR fortran/65453 * decl.c (get_proc_name): Catch clash between a procedure statement and a contained subprogram 2018-03-19 Steven G. Kargl PR fortran/65453 * gfortran.dg/pr65453.f90: New test. Added: branches/gcc-6-branch/gcc/testsuite/gfortran.dg/pr65453.f90 Modified: branches/gcc-6-branch/gcc/fortran/ChangeLog branches/gcc-6-branch/gcc/fortran/decl.c branches/gcc-6-branch/gcc/testsuite/ChangeLog >From gcc-bugs-return-598256-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:14:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 79099 invoked by alias); 19 Mar 2018 19:14: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 78146 invoked by uid 48); 19 Mar 2018 19:14:39 -0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84958] int loads not eliminated against larger stores Date: Mon, 19 Mar 2018 19:14: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.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: vries 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-03/txt/msg02844.txt.bz2 Content-length: 622 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84958 --- Comment #1 from Tom de Vries --- https://gcc.gnu.org/ml/gcc-cvs/2018-03/msg00566.html : Author: vries Date: Mon Mar 19 19:12:53 2018 New Revision: 258656 URL: https://gcc.gnu.org/viewcvs?rev=258656&root=gcc&view=rev Log: [testsuite] Add nvptx xfail to pr84512.c 2018-03-19 Tom de Vries * gcc.dg/tree-ssa/pr84512.c: Don't require effective target vect_int_mult. Add nvptx xfail for PR84958. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.dg/tree-ssa/pr84512.c >From gcc-bugs-return-598258-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:16:58 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 86410 invoked by alias); 19 Mar 2018 19:16: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 86360 invoked by uid 48); 19 Mar 2018 19:16:54 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/65453] ICE in build_function_decl, at fortran/trans-decl.c:2001 Date: Mon, 19 Mar 2018 19: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: 5.0 X-Bugzilla-Keywords: diagnostic, error-recovery, ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl 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: 6.5 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-03/txt/msg02846.txt.bz2 Content-length: 477 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65453 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |6.5 --- Comment #6 from kargl at gcc dot gnu.org --- Fixed on 6-branch, 7-branch, and trunk. >From gcc-bugs-return-598259-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:18:38 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 87945 invoked by alias); 19 Mar 2018 19:18: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 87888 invoked by uid 48); 19 Mar 2018 19:18:33 -0000 From: "kargl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/77414] ICE in create_function_arglist, at fortran/trans-decl.c:2410 Date: Mon, 19 Mar 2018 19: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: 7.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: kargl at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: kargl 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-03/txt/msg02847.txt.bz2 Content-length: 532 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77414 kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Target Milestone|--- |7.4 --- Comment #9 from kargl at gcc dot gnu.org --- Fixed on 7-branch and trunk. Thanks for bug report. Patch does not apply cleanly to 6-branch. >From gcc-bugs-return-598260-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:25:28 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 126255 invoked by alias); 19 Mar 2018 19:25: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 126098 invoked by uid 48); 19 Mar 2018 19:25:21 -0000 From: "bernd.edlinger at hotmail dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/84953] [6/7/8 Regression] misleading warning from strpbrk(x,"") Date: Mon, 19 Mar 2018 19:25: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.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bernd.edlinger at hotmail dot de X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: jakub 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-03/txt/msg02848.txt.bz2 Content-length: 156 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84953 --- Comment #7 from Bernd Edlinger --- Well, okay then... Thanks! >From gcc-bugs-return-598261-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:28:13 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 3479 invoked by alias); 19 Mar 2018 19:28: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 3445 invoked by uid 48); 19 Mar 2018 19:28:09 -0000 From: "vegard.nossum at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84959] New: internal compiler error: in store_binding, at cp/name-lookup.c:6549 (store_binding()/store_class_binding()) Date: Mon, 19 Mar 2018 19:28: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum at oracle 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 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-03/txt/msg02849.txt.bz2 Content-length: 2854 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84959 Bug ID: 84959 Summary: internal compiler error: in store_binding, at cp/name-lookup.c:6549 (store_binding()/store_class_binding()) Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: class { void a() { struct { virtual void b(); union b } } char b; }; Output: $ cc1plus void::a() :6:5: error: expected unqualified-id before '}' token :3:12: internal compiler error: in store_binding, at cp/name-lookup.c:6549 0xe2f887 store_binding /home/vegard/git/gcc/gcc/cp/name-lookup.c:6549 0xe2f887 store_class_bindings /home/vegard/git/gcc/gcc/cp/name-lookup.c:6611 0xe30189 do_push_to_top_level /home/vegard/git/gcc/gcc/cp/name-lookup.c:6657 0xe4cec0 do_push_nested_namespace /home/vegard/git/gcc/gcc/cp/name-lookup.c:6751 0xe4d654 push_nested_namespace(tree_node*) /home/vegard/git/gcc/gcc/cp/name-lookup.c:7037 0x120b92f push_abi_namespace /home/vegard/git/gcc/gcc/cp/rtti.c:149 0x120b92f get_tinfo_desc /home/vegard/git/gcc/gcc/cp/rtti.c:1449 0x120b552 get_tinfo_desc /home/vegard/git/gcc/gcc/cp/rtti.c:1330 0x121092e get_tinfo_decl(tree_node*) /home/vegard/git/gcc/gcc/cp/rtti.c:452 0x9ac8bf build_rtti_vtbl_entries /home/vegard/git/gcc/gcc/cp/class.c:9636 0x9ac8bf build_vtbl_initializer /home/vegard/git/gcc/gcc/cp/class.c:9151 0x9ac8bf dfs_accumulate_vtbl_inits /home/vegard/git/gcc/gcc/cp/class.c:9075 0x9ac8bf accumulate_vtbl_inits /home/vegard/git/gcc/gcc/cp/class.c:8978 0x9e45a1 finish_vtbls /home/vegard/git/gcc/gcc/cp/class.c:8609 0x9e45a1 finish_struct_1(tree_node*) /home/vegard/git/gcc/gcc/cp/class.c:6905 0x9ebe54 finish_struct(tree_node*, tree_node*) /home/vegard/git/gcc/gcc/cp/class.c:7065 0xf144c3 cp_parser_class_specifier_1 /home/vegard/git/gcc/gcc/cp/parser.c:22524 0xf231cb cp_parser_class_specifier /home/vegard/git/gcc/gcc/cp/parser.c:22768 0xf231cb cp_parser_type_specifier /home/vegard/git/gcc/gcc/cp/parser.c:16774 0xf8858a cp_parser_decl_specifier_seq /home/vegard/git/gcc/gcc/cp/parser.c:13629 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598262-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:30:57 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6523 invoked by alias); 19 Mar 2018 19:30: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 6483 invoked by uid 48); 19 Mar 2018 19:30:53 -0000 From: "vegard.nossum at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84960] New: internal compiler error: verify_flow_info failed Date: Mon, 19 Mar 2018 19:30: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum at oracle 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 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-03/txt/msg02850.txt.bz2 Content-length: 2220 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84960 Bug ID: 84960 Summary: internal compiler error: verify_flow_info failed Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: int a; float b; void c() { long d; e: if ((b - (a %= 0) < 1) * -1) ; else { decltype(d) f(a); __builtin_unreachable(); __builtin_prefetch(&&e); } goto *a; } Output: $ cc1plus -O2 -fno-strict-overflow void c() :6:15: warning: division by zero [-Wdiv-by-zero] Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> Assembling functions: void c() : In function 'void c()': :3:6: error: ENTRY_BLOCK has IL associated with it during GIMPLE pass: isolate-paths :3:6: internal compiler error: verify_flow_info failed 0x185ac87 verify_flow_info() /home/vegard/git/gcc/gcc/cfghooks.c:265 0x331048c checking_verify_flow_info /home/vegard/git/gcc/gcc/cfghooks.h:198 0x331048c cleanup_tree_cfg_noloop /home/vegard/git/gcc/gcc/tree-cfgcleanup.c:920 0x331048c cleanup_tree_cfg() /home/vegard/git/gcc/gcc/tree-cfgcleanup.c:971 0x2b66e84 execute_function_todo /home/vegard/git/gcc/gcc/passes.c:1947 0x2b700f6 do_per_function /home/vegard/git/gcc/gcc/passes.c:1659 0x2b700f6 execute_todo /home/vegard/git/gcc/gcc/passes.c:2048 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598263-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:32:24 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10763 invoked by alias); 19 Mar 2018 19:32: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 9097 invoked by uid 48); 19 Mar 2018 19:32:19 -0000 From: "vegard.nossum at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84961] New: internal compiler error: verify_ssa failed Date: Mon, 19 Mar 2018 19: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: 8.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum at oracle 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 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-03/txt/msg02851.txt.bz2 Content-length: 1543 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84961 Bug ID: 84961 Summary: internal compiler error: verify_ssa failed Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: short a; volatile double b; void c() { asm("" : "=a"(b = a)); } Output: $ cc1plus void c() Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> :3:35: error: SSA_NAME_DEF_STMT is wrong Expected definition statement: __asm__("" : "=a" _3); Actual definition statement: _3 = _2; during GIMPLE pass: ssa :3:35: internal compiler error: verify_ssa failed 0x3d61773 verify_ssa(bool, bool) /home/vegard/git/gcc/gcc/tree-ssa.c:1188 0x2b674cd execute_function_todo /home/vegard/git/gcc/gcc/passes.c:2001 0x2b700f6 do_per_function /home/vegard/git/gcc/gcc/passes.c:1659 0x2b700f6 execute_todo /home/vegard/git/gcc/gcc/passes.c:2048 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598264-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:35:51 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 47393 invoked by alias); 19 Mar 2018 19: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 47325 invoked by uid 48); 19 Mar 2018 19:35:46 -0000 From: "vegard.nossum at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84962] New: internal compiler error: in get_fns, at cp/tree.c:2505 Date: Mon, 19 Mar 2018 19:35: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum at oracle 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 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-03/txt/msg02852.txt.bz2 Content-length: 2828 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84962 Bug ID: 84962 Summary: internal compiler error: in get_fns, at cp/tree.c:2505 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct { struct { template void a(); }; : a } Output: $ cc1plus :4:17: internal compiler error: in get_fns, at cp/tree.c:2505 0x130ac07 get_fns(tree_node*) /home/vegard/git/gcc/gcc/cp/tree.c:2504 0x130adf0 get_first_fn(tree_node*) /home/vegard/git/gcc/gcc/cp/tree.c:2514 0x12ae65f finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*, bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int) /home/vegard/git/gcc/gcc/cp/semantics.c:3731 0xf33f42 cp_parser_primary_expression /home/vegard/git/gcc/gcc/cp/parser.c:5611 0xf7698b cp_parser_postfix_expression /home/vegard/git/gcc/gcc/cp/parser.c:7030 0xf2a4b7 cp_parser_unary_expression /home/vegard/git/gcc/gcc/cp/parser.c:8322 0xebfeca cp_parser_cast_expression /home/vegard/git/gcc/gcc/cp/parser.c:9090 0xec24f6 cp_parser_binary_expression /home/vegard/git/gcc/gcc/cp/parser.c:9191 0xecbd14 cp_parser_constant_expression /home/vegard/git/gcc/gcc/cp/parser.c:9762 0xfdec8d cp_parser_member_declaration /home/vegard/git/gcc/gcc/cp/parser.c:23684 0xf142ab cp_parser_member_specification_opt /home/vegard/git/gcc/gcc/cp/parser.c:23374 0xf142ab cp_parser_class_specifier_1 /home/vegard/git/gcc/gcc/cp/parser.c:22516 0xf231cb cp_parser_class_specifier /home/vegard/git/gcc/gcc/cp/parser.c:22768 0xf231cb cp_parser_type_specifier /home/vegard/git/gcc/gcc/cp/parser.c:16774 0xf8858a cp_parser_decl_specifier_seq /home/vegard/git/gcc/gcc/cp/parser.c:13629 0xfa3a70 cp_parser_simple_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12938 0xfab998 cp_parser_block_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12883 0xffead5 cp_parser_declaration /home/vegard/git/gcc/gcc/cp/parser.c:12780 0xff5b8b cp_parser_declaration_seq_opt /home/vegard/git/gcc/gcc/cp/parser.c:12656 0xff71b3 cp_parser_translation_unit /home/vegard/git/gcc/gcc/cp/parser.c:4561 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598265-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:42:43 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 32473 invoked by alias); 19 Mar 2018 19:42: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 32416 invoked by uid 48); 19 Mar 2018 19:42:40 -0000 From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/84963] New: [8 Regression] ICE in get_constraint_for_ssa_var, at tree-ssa-structalias.c:2955 Date: Mon, 19 Mar 2018 19:42: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.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.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 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-03/txt/msg02853.txt.bz2 Content-length: 1357 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84963 Bug ID: 84963 Summary: [8 Regression] ICE in get_constraint_for_ssa_var, at tree-ssa-structalias.c:2955 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Changed between 20180311 and 20180318, reappearance of pr70856 : $ cat z1.f90 program p print *, sin([1.0, 2.0]) print *, cos([1.0, 2.0]) end $ gfortran-8-20180311 -c z1.f90 -fopenacc -O2 $ gfortran-8-20180318 -c z1.f90 -fopenacc -O1 $ $ gfortran-8-20180318 -c z1.f90 -fopenacc -O2 during IPA pass: pta z1.f90:4:0: end internal compiler error: in get_constraint_for_ssa_var, at tree-ssa-structalias.c:2955 0xd2f3b0 get_constraint_for_ssa_var ../../gcc/tree-ssa-structalias.c:2952 0xd2f4de get_constraint_for_1 ../../gcc/tree-ssa-structalias.c:3559 0xd2f5c9 get_constraint_for_component_ref ../../gcc/tree-ssa-structalias.c:3237 0xd2f5c9 get_constraint_for_1 ../../gcc/tree-ssa-structalias.c:3514 0xd31bf7 find_func_aliases ../../gcc/tree-ssa-structalias.c:4911 0xd392e1 ipa_pta_execute ../../gcc/tree-ssa-structalias.c:7988 >From gcc-bugs-return-598267-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:43:55 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 37012 invoked by alias); 19 Mar 2018 19:43: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 36970 invoked by uid 48); 19 Mar 2018 19:43:51 -0000 From: "vegard.nossum at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/84964] New: internal compiler error: in expand_call, at calls.c:4540 Date: Mon, 19 Mar 2018 19:43: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.0.1 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: vegard.nossum at oracle 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 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-03/txt/msg02855.txt.bz2 Content-length: 2193 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84964 Bug ID: 84964 Summary: internal compiler error: in expand_call, at calls.c:4540 Product: gcc Version: 8.0.1 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vegard.nossum at oracle dot com CC: webrown.cpp at gmail dot com Target Milestone: --- Input: struct a { short b : -1ULL; }; void c(...) { c(a()); } Output: $ cc1plus :2:14: warning: width of 'a::b' exceeds its type void c(...) Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> Assembling functions: void c(...) : In function 'void c(...)': :4:16: sorry, unimplemented: passing too large argument on stack during RTL pass: expand :4:16: internal compiler error: in expand_call, at calls.c:4540 0x17b719f expand_call(tree_node*, rtx_def*, int) /home/vegard/git/gcc/gcc/calls.c:4537 0x1e78955 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /home/vegard/git/gcc/gcc/expr.c:11002 0x181e6d4 expand_expr /home/vegard/git/gcc/gcc/expr.h:276 0x181e6d4 expand_call_stmt /home/vegard/git/gcc/gcc/cfgexpand.c:2690 0x181e6d4 expand_gimple_stmt_1 /home/vegard/git/gcc/gcc/cfgexpand.c:3624 0x181e6d4 expand_gimple_stmt /home/vegard/git/gcc/gcc/cfgexpand.c:3790 0x1824c48 expand_gimple_basic_block /home/vegard/git/gcc/gcc/cfgexpand.c:5819 0x18443d7 execute /home/vegard/git/gcc/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. Version: GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu) >From gcc-bugs-return-598266-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 19 19:43:30 2018 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 33584 invoked by alias); 19 Mar 2018 19:43: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 33573 invoked by uid 89); 19 Mar 2018 19:43:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL,BAYES_50,DEAR_FRIEND,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD,USER_IN_DEF_SPF_WL autolearn=no version=3.3.2 spammy=UD:gstatic.com, questionnaire, google_forms_logo_lockup_white_2x.png, UD:google_forms_logo_lockup_white_2x.png X-HELO: mail-vk0-f69.google.com Received: from mail-vk0-f69.google.com (HELO mail-vk0-f69.google.com) (209.85.213.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 19 Mar 2018 19:43:28 +0000 Received: by mail-vk0-f69.google.com with SMTP id y184so12516531vky.6 for ; Mon, 19 Mar 2018 12:43:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d100.net; s 161025; h=x-gm-message-state:mime-version:reply-to:message-id:date:subject :from:to; bhJuVAMIg5xZrfArq7T3L4db+No3kpR1AZl+y18RuXo=; b=uT5YF8XnP0CdGTdXCioIiLyDZrBZtm6EZ2LDeHdGsEf1xqE9GUKXWH+re39G3R3Tpc NMwvo0dhC3TYpPCk8sQVfplVd+I6/kpKIOe5t7MZwjew2hwRZVjH1+bqVWYNrVlgxYh0 TBzPxOIN2K9TeiV5F0GL21U+QUN6wNPm3O/1b0hZeQb8Mx69pwJnBX8ccoI05ZXcDzs4 yTvYfj/PeW4rztMKNcbAEHdlCvDLH0PMtFb1YflRgvbfFOFJ/CyX8yjRSl5XMXn2L4cF LIG+se0v3bQWuwyTLx0kPcTkG7na+Sw/SkV8FZSCs9DSqd2jqtQSbPNZm82u3cAdKCOq dlXw=X-Gm-Message-State: AElRT7HTcwuN1q9Hhl4ImM0LE8EhOXMeBimggbV9ctCdVSkdFVeARUkJ wHO5EI56ddKvQCiHigHUlDCfyLcS7BN4BZWx2EtX X-Google-Smtp-Source: AG47ELtt00B/l/tmAB2m9l9T+z2h5MAQuGUPUijKJRJuf1MrhLL8EzCqyvZtUuOPNVU0/bBSDdV0dpTwSWCU6I0QZW/C MIME-Version: 1.0 X-Received: by 10.176.66.38 with SMTP id i35mr5977992uai.10.1521488606234; Mon, 19 Mar 2018 12:43:26 -0700 (PDT) Reply-To: amcgitirana@gmail.com X-No-Auto-Attachment: 1 Message-ID: <001a114fa3b6e78fc50567c92b33@google.com> Date: Mon, 19 Mar 2018 19:43:00 -0000 Subject: [Bug Duplication Problem] Survey Invite From: amcgitirana@gmail.com To: gcc-bugs@gcc.gnu.org Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg02854.txt.bz2 Content-length: 1210 I've invited you to fill out the following form: Professional Profile To fill it out, visit: https://docs.google.com/forms/d/e/1FAIpQLSfQTZkrylE1t49gjzewPQSPWHFnPtGCZfRujg_G8VTwqGrbHg/viewform?c=0&w=1&usp=mail_form_link Dear friend, I am a master's student in Computer Science at the Federal University of Bahia, Salvador, Brazil, under the advising of Dr. Eduardo Almeida. We chose you because you participated in one of the open source projects included in this study. All the information provided will be kept confidential. We have no intention to judge your work since we are merely interested in learning about some aspects of your work. We are investigating the bug report duplication problem, so based on your experience using bug-trackers, we would like to invite you to participate in a short 8-10 minute survey that our research group is conducting to get opinion about this subject. Please, return it until February 31st, 2018. We will offer a lottery ticket to compete for an Amazon $100 credit and the results of the study when we finished the analysis. We appreciate your time! Best Regards, Alexandre Gitirana Google Forms: Create and analyze surveys.