[testsuite, committed] Make scan pattern more precise in vrp104.c

2018-03-24 Thread Tom de Vries
[ was: Re: [PATCH][RFC] Make expansion of balanced binary trees of switches on tree level. ] On 08/30/2017 01:10 PM, Martin Liška wrote: diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vrp104.c b/gcc/testsuite/gcc.dg/tree-ssa/vrp104.c index aa3b00a1204..0a952267b29 100644 --- a/gcc/testsuite/gcc.dg

[PATCH] i386: Insert ENDBR to trampoline for -fcf-protection=branch -mibt

2018-03-24 Thread H.J. Lu
When -fcf-protection=branch -mibt are used, we need to insert ENDBR to trampoline. TRAMPOLINE_SIZE is creased by 4 bytes to accommodate 4-byte ENDBR instruction. OK for trunk? H.J. gcc/ PR target/85044 * config/i386/i386.c (ix86_trampoline_init): Insert ENDBR for -f

Re: [patch,fortran] Bug 69497 - ICE in gfc_free_namespace

2018-03-24 Thread Jerry DeLisle
On 03/24/2018 02:56 PM, Steve Kargl wrote: On Sat, Mar 24, 2018 at 02:25:36PM -0700, Jerry DeLisle wrote: 2018-03-24 Jerry DeLisle Dominique d'Humieres PR fortran/84506 * symbol.c (gfc_free_namespace): Delete the assert and if refs count is less than ze

Re: [patch,fortran] Bug 69497 - ICE in gfc_free_namespace

2018-03-24 Thread Steve Kargl
On Sat, Mar 24, 2018 at 02:25:36PM -0700, Jerry DeLisle wrote: > > 2018-03-24 Jerry DeLisle > Dominique d'Humieres > > PR fortran/84506 > * symbol.c (gfc_free_namespace): Delete the assert and if refs > count is less than zero, free the namespece. Something is >

[patch,fortran] Bug 69497 - ICE in gfc_free_namespace

2018-03-24 Thread Jerry DeLisle
This one has been hanging around for a while. Dominique found this fix. I retested with the 30 cases provided in the PR. These are all invalid fortran. They give errors now and do not ICE. Regression tested on trunk. OK? Jerry PS I will use the first of the many test cases for the testsuite

Re: [PATCH]Correct comment for ADDR_EXPR tree code.

2018-03-24 Thread Renlin Li
Hi Jeff, On 23/03/18 23:19, Jeff Law wrote: On 03/23/2018 09:44 AM, Renlin Li wrote: Hi all, This is a simple patch to correct the comment for ADDR_EXPR tree code. The resulting expression of ADDR_EXPR is a tree with POINTER_TYPE. So the result mode should ptr_mode instead of Pmode. As far a

Re: [patch, fortran] Fix empty substrings when simplifying

2018-03-24 Thread Thomas Koenig
Am 24.03.2018 um 16:18 schrieb Jerry DeLisle: On 03/24/2018 05:46 AM, Thomas Koenig wrote: Hell world, the attached patch is fairly self-explanatory, it fixes an out-of-memory condition. Regression-tested. OK for trunk? Yes, and thanks for fix. Committed as r258835, with Steve's observati

Re: [PATCH] Fix PR84986

2018-03-24 Thread H.J. Lu
On Tue, Mar 20, 2018 at 3:08 AM, Richard Biener wrote: > > With the x86 vectorizer cost-model rewrite we ended up costing > scalar conversions as nothing. After my patch using the proper > target cost estimates for the scalar version this now exposes > underestimating scalar cost and thus no long

Re: [patch, fortran] Fix empty substrings when simplifying

2018-03-24 Thread Steve Kargl
On Sat, Mar 24, 2018 at 01:46:43PM +0100, Thomas Koenig wrote: > program p >integer :: i >character(3), parameter :: x(3) = ['abc', 'ijk', 'xyz'] >character(3) :: y(2) >character(99), parameter :: x2(2) = ' ' >character(99), parameter :: y2=x(2)(99:1) >y = [(x(i)(i:1), i=2,3

Re: [patch, fortran] Fix empty substrings when simplifying

2018-03-24 Thread Jerry DeLisle
On 03/24/2018 05:46 AM, Thomas Koenig wrote: Hell world, the attached patch is fairly self-explanatory, it fixes an out-of-memory condition. Regression-tested. OK for trunk? Yes, and thanks for fix. Jerry

[patch, fortran] Fix empty substrings when simplifying

2018-03-24 Thread Thomas Koenig
Hell world, the attached patch is fairly self-explanatory, it fixes an out-of-memory condition. Regression-tested. OK for trunk? Regards Thomas 2018-03-24 Thomas Koenig PR fortran/70068 * expr.c (find_substring_ref): Change types of start, end and length va

C++ PATCH for c++/85032, rejects-valid with if constexpr in template

2018-03-24 Thread Marek Polacek
Recently the code in finish_static_assert was changed to use perform_implicit_conversion_flags followed by fold_non_dependent_expr. That broke this test becase when in a template, p_i_c_f merely wraps the expr in an IMPLICIT_CONV_EXPR. fold_non_dependent_expr should be able to fold it to a consta

Re: Use SCEV information when aligning for vectorisation (PR 84005)

2018-03-24 Thread Richard Sandiford
Richard Biener writes: > On Tue, Mar 20, 2018 at 4:26 PM, Richard Sandiford > wrote: >> Richard Biener writes: >>> On Mon, Mar 19, 2018 at 10:27 PM, Richard Sandiford >>> wrote: Richard Biener writes: > On Sat, Mar 17, 2018 at 11:45 AM, Richard Sandiford > wrote: >> Index: gc

Re: RFC: Disable asan tests under ulimit -v

2018-03-24 Thread Andreas Schwab
On Mär 23 2018, Jason Merrill wrote: > diff --git a/gcc/testsuite/g++.dg/asan/asan.exp > b/gcc/testsuite/g++.dg/asan/asan.exp > index 4ee8dd98697..a22d2ac5e20 100644 > --- a/gcc/testsuite/g++.dg/asan/asan.exp > +++ b/gcc/testsuite/g++.dg/asan/asan.exp > @@ -24,6 +24,13 @@ load_lib asan-dg.exp >

[PATCH, wwwdocs] Update cxx-status.html

2018-03-24 Thread Jakub Jelinek
Hi! The following patch adds C++2a stuff to cxx-status.html (list of papers from clang table, filled in what has notes in cp/ChangeLog-2017 + __VA_OPT__). For C++17 features I've just added a couple of / markings and added the second deduction guides paper (P0512R0), plus mentioned that the standa