Re: Rb_tree constructor optimization

2018-05-19 Thread H.J. Lu
On Fri, May 18, 2018 at 6:45 PM, Jonathan Wakely wrote: > On 17/05/18 16:10 +0100, Jonathan Wakely wrote: >> >> On 15/05/18 07:30 +0200, François Dumont wrote: >>> >>> Here it is again even more simplified. Should I backport the Debug mode >>> fix to 8 branch ? >> >> >> Yes, please do backport the

Re: [Patch, fortran] PR 49636 - [F03] ASSOCIATE construct confused with slightly complicated case

2018-05-19 Thread Steve Kargl
On Sat, May 19, 2018 at 04:42:35PM +0100, Paul Richard Thomas wrote: > This patch is a straightforward recycling of existing code to replace > an incomplete copy elsewhere. > > Bootstraps and regtests on FC27/x86_64 - OK for trunk down to 7-branch? > OK. -- Steve

Re: [Patch, fortran] PR82275 - gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector

2018-05-19 Thread Steve Kargl
On Sat, May 19, 2018 at 09:34:13AM +0100, Paul Richard Thomas wrote: > This patch is verging on 'obvious' since there was no attempt being > made to detect dimensions where the array reference of the selector is > an element. In fact, I made an attempt when the bug was first reported > to do this,

[Patch, fortran] PR 49636 - [F03] ASSOCIATE construct confused with slightly complicated case

2018-05-19 Thread Paul Richard Thomas
This patch is a straightforward recycling of existing code to replace an incomplete copy elsewhere. Bootstraps and regtests on FC27/x86_64 - OK for trunk down to 7-branch? Paul 2018-05-19 Paul Thomas PR fortran/49636 * trans-array.c (gfc_get_array_span): Renamed from 'get_array_s

[PATCH, i386]: Merge SSE conversion patterns using SWI48 attribute

2018-05-19 Thread Uros Bizjak
No functional changes. 2018-05-19 Uros Bizjak * config/i386/i386.md (rex64namesuffix): New mode attribute. * config/i386/sse.md (sse_cvtsi2ss): Merge insn pattern from sse_cvtsi2ss and sse_cvtsi2ssq using SWI48 mode iterator. (sse_cvtss2si): Merge insn pattern from sse_

Re: [C++ Patch] PR 84588 ("[8 Regression] internal compiler error: Segmentation fault (contains_struct_check())")​ (Take 2)

2018-05-19 Thread Jason Merrill
On Fri, May 18, 2018 at 8:27 PM, Paolo Carlini wrote: > On 19/05/2018 01:40, Jason Merrill wrote: >> On Fri, May 18, 2018 at 1:40 PM, Paolo Carlini >> wrote: >>> >>> Hi again, >>> >>> I'm playing with a wild, wild idea: would it make sense to try *first* an >>> expression? Because, a quickly hack

[wwwdocs] Buildstat update for 5.5

2018-05-19 Thread Tom G. Christensen
Here's an update covering gcc 5.5.0. -tgc Testresults for 5.5.0: hppa2.0w-hp-hpux11.11 hppa64-hp-hpux11.11 powerpc64le-unknown-linux-gnu x86_64-unknown-freebsd12.0 x86_64-w64-mingw32 --- /home/tgc/projects/gcc/wwwdocs/htdocs/gcc-5/buildstat.html 2018-05-18 22:01:00.361974882 +0200 +

RFA (symtab): PATCH to symtab_node::nonzero_address DECL_COMDAT handling for c++/80485

2018-05-19 Thread Jason Merrill
A comment earlier in in nonzero_address says, "Important case of WEAK we want to do well are comdats. Those are handled by later check for definition." But in this case we aren't handling this comdat function well, we return false because it is DECL_WEAK and DECL_EXTERNAL (because we aren't at EOF

[Patch, fortran] PR80657 - [7/8/9 Regression] Loop in character function declaration

2018-05-19 Thread Paul Richard Thomas
I intend to commit this as 'obvious' once the patches for PR82923 and 82275 are out of the way. Paul 2018-05-19 Paul Thomas PR fortran/80657 * resolve.c (flag_fn_result_spec): Use the 'sym' argument to test for self refs to the function result in the character len expression.

Re: O3 bootstraps fail on x86-64

2018-05-19 Thread graham stott via gcc-patches
Disabling asan the build works Original message From: graham stott via gcc-patches Date: 19/05/2018 10:30 (GMT+00:00) To: gcc-patches Subject: O3 bootstraps fail on x86-64 O3 bootstraps have started to fail to build since about Thursday.  Due to an internal compiler erro

Re: [patch AArch64] Do not perform a vector splat for vector initialisation if it is not useful

2018-05-19 Thread Richard Sandiford
"Richard Earnshaw (lists)" writes: > On 16/05/18 09:37, Kyrill Tkachov wrote: >> >> On 15/05/18 10:58, Richard Biener wrote: >>> On Tue, May 15, 2018 at 10:20 AM Kyrill Tkachov >>> >>> wrote: >>> Hi all, This is a respin of James's patch from: >>> https://gcc.gnu.org/ml/gcc-patches/201

Re: [PATCH 2/2][Aarch64] Improve FP to int conversions

2018-05-19 Thread Richard Sandiford
Michael Collison writes: > This patch improves additional cases of FP to integer conversions with > -ffast-math enabled. > > Example 1: > > double > f5 (int x) > { > return (double)(float) x; > } > > > At -O2 with -ffast-math > > Trunk generates: > > f5: > scvtf s0, w0 > fcvtd

[wwwdocs] Buildstat update for 7.x

2018-05-19 Thread Tom G. Christensen
Latest results for 7.x -tgc Testresults for 7.1.0: hppa2.0w-hp-hpux11.00 hppa64-hp-hpux11.00 i386-pc-solaris2.12 i686-pc-linux-gnu sparc-sun-solaris2.11 sparc-sun-solaris2.12 x86_64-apple-darwin11.4.2 x86_64-apple-darwin16.6.0 x86_64-pc-linux-gnu x86_64-w64-mingw32 Testresult

[wwwdocs] Buildstat update for 6.x

2018-05-19 Thread Tom G. Christensen
Latest results for 6.x Note I reformatted two of the existing entries to match the rest of the file. -tgc Testresults for 6.2.0: i686-pc-linux-gnu x86_64-pc-linux-gnu (3) x86_64-w64-mingw32 Testresults for 6.3.0: powerpc-apple-darwin9 x86_64-pc-linux-gnu (3) x86_64-w64-mingw32 Test

[wwwdocs] Buildstat update for 5.x

2018-05-19 Thread Tom G. Christensen
Going through the archives I found two results missing from the buildstat page. -tgc Testresults for 5.3.0: arm-unknown-linux-gnueabihf Testresults for 5.4.0: powerpc-apple-darwin9 Index: buildstat.html === RCS file: /cvs/gcc/ww

O3 bootstraps fail on x86-64

2018-05-19 Thread graham stott via gcc-patches
O3 bootstraps have started to fail to build since about Thursday.  Due to an internal compiler error when building asan.c in function asan_emit_stack_protectìon tree-ssa--sccan.c:3396 Graham

Re: [Patch, fortran] PR82923 - Automatic allocation of deferred length character using function result

2018-05-19 Thread Paul Richard Thomas
Thanks! I will take this as an OK to commit. Regards Paul On 19 May 2018 at 10:18, Dominique d'Humières wrote: > The patch works as expected and fixes also PRs 66694 and 82617. > > Thanks, > > Dominique > -- "If you can't explain it simply, you don't understand it well enough" - Albert Ein

Re: [PATCH 1/2][Aarch64] Improve FP to int conversions

2018-05-19 Thread Richard Sandiford
Michael Collison writes: > This patch improves additional cases of FP to integer conversions. > > Example 1: > > unsigned long > f7 (double x) > { > return (unsigned) y; > } > > > At -O2 > > Trunk generates: > > f7: > fcvtzu w0, d0 > uxtwx0, w0 > ret > > With the patch we

Re: [Patch, fortran] PR82923 - Automatic allocation of deferred length character using function result

2018-05-19 Thread Dominique d'Humières
The patch works as expected and fixes also PRs 66694 and 82617. Thanks, Dominique

[Patch, fortran] PR82275 - gfortran rejects valid & accepts invalid reference to dimension-remapped type SELECT TYPE selector

2018-05-19 Thread Paul Richard Thomas
This patch is verging on 'obvious' since there was no attempt being made to detect dimensions where the array reference of the selector is an element. In fact, I made an attempt when the bug was first reported to do this, Not realizing that the elements were coming through as DIMEN_UNKNOWN, the att