[PATCH] Fix segfault in inliner with attribute flatten

2017-12-10 Thread Andi Kleen
From: Andi Kleen This fixes a segfault in gcc 7/8 when building turicreate. For some reason the node has no decl here, and there is a crash when checking for attribute flatten. gcc/: 2017-12-10 Andi Kleen PR ipa/83346 *

[PATCH] Fix stack overflow with autofdo (PR83355)

2017-12-10 Thread Andi Kleen
From: Andi Kleen g++.dg/bprob* is failing currently with autofdo. Running in gdb shows that there is a very deep recursion in get_index_by_decl until it overflows the stack. This patch seems to fix it (but not sure why the abstract origin would point to itself) Passes

[patch, libgfortran] Memory issues related to PR78549

2017-12-10 Thread Jerry DeLisle
Hi all, While doing addition testing for the subject mentioned PR I discovered numerous un-freed memory allocations. I reported the problem in comment 30 of the PR. The attached patch cleans this up by opening the internal unit structures during program initialization and allowing the automatic

Re: [patch, fortran] Implement Maxval in compile-time-constants

2017-12-10 Thread Jerry DeLisle
On 12/10/2017 12:31 PM, Thomas Koenig wrote: > Hello world, > > the attached patch allows for maxval in parameter statements > with DIM and MASK arguments. > > It does so by removing a function which does only a partial > job and using the machinery which is already in use for the > other

[patch, fortran] Implement Maxval in compile-time-constants

2017-12-10 Thread Thomas Koenig
Hello world, the attached patch allows for maxval in parameter statements with DIM and MASK arguments. It does so by removing a function which does only a partial job and using the machinery which is already in use for the other transformational intrinsics. Regression-tested. OK for trunk?

Re: PING [RFC gfortran] PR53478 - gfortran segfaults when module name clashes with C binding name of procedure

2017-12-10 Thread Dominique d'Humières
Committed as revision r255530. Thanks for the review. Dominique > Le 10 déc. 2017 à 17:22, Dominique d'Humières a écrit : > > Patch waiting for comment at > https://gcc.gnu.org/ml/fortran/2017-11/msg00067.html > > TIA > > Dominique >

Re: [PATCH] PR fortran/82934,83318 -- Enforce F2008:C631

2017-12-10 Thread Paul Richard Thomas
Yes - thanks Paul On 10 December 2017 at 17:48, Steve Kargl wrote: > On Sun, Dec 10, 2017 at 05:18:53PM +, Paul Richard Thomas wrote: >> Hi Steve, >> >> I see that the implementation of the standard is slightly more >> complicated than I thought. > > I

C PATCH for c/82679 (rejects-valid with _Atomic and arrays)

2017-12-10 Thread Marek Polacek
We were wrongly rejecting code in the attached test because the check in grokdeclarator is wrong: we only want to check whether the user is trying to apply _Atomic to an array type, i.e. this: typedef int T[10]; _Atomic T a; Bootstrapped/regtested on x86_64-linux, ok for trunk? 2017-12-10

Re: [PATCH] PR fortran/82934,83318 -- Enforce F2008:C631

2017-12-10 Thread Steve Kargl
On Sun, Dec 10, 2017 at 05:18:53PM +, Paul Richard Thomas wrote: > Hi Steve, > > I see that the implementation of the standard is slightly more > complicated than I thought. I haven't played with PDT, yet. My patch only deals with assumed length character. See below for a question. >

Re: PING [RFC gfortran] PR53478 - gfortran segfaults when module name clashes with C binding name of procedure

2017-12-10 Thread Thomas Koenig
Hi Dominique, Patch waiting for comment at https://gcc.gnu.org/ml/fortran/2017-11/msg00067.html OK. Thanks for the patch! Regards Thomas

Re: [PATCH] PR fortran/82934,83318 -- Enforce F2008:C631

2017-12-10 Thread Paul Richard Thomas
Hi Steve, I see that the implementation of the standard is slightly more complicated than I thought. type :: t(a,b) integer, kind :: a integer, len :: b integer(a) :: v(b) end type t type(t(4,:)), allocatable :: z1 type(t(4,10)), allocatable :: z2 allocate (t(4, :) :: z1)

PING [RFC gfortran] PR53478 - gfortran segfaults when module name clashes with C binding name of procedure

2017-12-10 Thread Dominique d'Humières
Patch waiting for comment at https://gcc.gnu.org/ml/fortran/2017-11/msg00067.html TIA Dominique

washing

2017-12-10 Thread graham stott
jj you going to do more washing?

Re: [PATCH, PR81844] Fix condition folding in c_parser_omp_for_loop

2017-12-10 Thread Jakub Jelinek
On Sun, Dec 10, 2017 at 03:00:24PM +0100, Tom de Vries wrote: > On 09/14/2017 12:55 PM, Jakub Jelinek wrote: > > Ok with those changes > > Hi, > > this PR has been fixed on trunk ( > https://gcc.gnu.org/viewcvs/gcc?view=revision=252873 ). > > We cannot count this PR as a 6/7 regression, because

WM

2017-12-10 Thread graham stott
finished

Re: [PATCH, PR81844] Fix condition folding in c_parser_omp_for_loop

2017-12-10 Thread Tom de Vries
On 09/14/2017 12:55 PM, Jakub Jelinek wrote: Ok with those changes Hi, this PR has been fixed on trunk ( https://gcc.gnu.org/viewcvs/gcc?view=revision=252873 ). We cannot count this PR as a 6/7 regression, because this test-case has been failing since fopenmp was introduced in 4.2. Still,

[PATCH] Fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly

2017-12-10 Thread Michele Pezzutti
Hi. This patch intends to fix Bug 83237 - Values returned by std::poisson_distribution are not distributed correctly. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83237for issue description and tests.     * include/bits/random.tcc (poisson_distribution<_IntType>::operator()): Value of

[wwwdocs] gcc-3.1/changes.html - adjust Ada Core link

2017-12-10 Thread Gerald Pfeifer
This is one of our older pages, but even there now and then a little bit of link maintenance is required (https, no trailing slash). ;-) Applied. Gerald Index: gcc-3.1/changes.html === RCS file:

Re: [wwwdocs,Fortran] Links to source code for the Stephen Chapman books

2017-12-10 Thread Gerald Pfeifer
On Sun, 29 Oct 2017, Gerald Pfeifer wrote: > We carry these two links in readings.html, however they now redirect > to a generic page of the institution. > > Does any of you have a better reference (Google did not give me one > easily)? > > Otherwise I plan on applying the patch below.

[wwwdocs] projects/ia64.html -- SGI kernprof link

2017-12-10 Thread Gerald Pfeifer
SGI's sites does not carry kernprof any longer (that I could find), and even Google did not provide a replacement link, so make this a textual reference for historic reference. Applied. Gerald Index: projects/ia64.html === RCS

[wwwdocs] search.html - remove link to htdig.org

2017-12-10 Thread Gerald Pfeifer
www.htdig.org appears gone, and this link did not serve a real function for us anyway. Commmitted. Gerald Index: search.html === RCS file: /cvs/gcc/wwwdocs/htdocs/search.html,v retrieving revision 1.191 diff -u -r1.191 search.html

[doc] doc/install.texi - tweak link to mkssoftware.com

2017-12-10 Thread Gerald Pfeifer
Committed. Gerald 2017-12-10 Gerald Pfeifer * doc/install.texi (Specific): Tweak link to mkssoftware.com. Index: doc/install.texi === --- doc/install.texi(revision 255528) +++ doc/install.texi