[PATCH] RISC-V: Add patterns to convert AND mask to two shifts.

2018-06-30 Thread Jim Wilson
This fixes a problem reported by Bruce Hoult on the RISC-V isa-dev mailing list. Given a testcase with two shifts, gcc canonicalizes to an AND with a mask, and then we get 3 instructions at the end when we should have two. This adds combiner patterns to convert AND mask back to two shifts when th

[PATCH] Remove -Wabi from libstdc++ build options

2018-06-30 Thread Bernd Edlinger
Hi, the -Wabi option prints a warning as follows: cc1plus: warning: -Wabi won't warn about anything [-Wabi] cc1plus: note: -Wabi warns about differences from the most up-to-date ABI, which is also used by default cc1plus: note: use e.g. -Wabi=11 to warn about changes from GCC 7 This happens man

[Patch, fortran] PR86242 [6/7/8/9 Regression] [OOP] ICE for derived type with allocatable component and proc-ptr component

2018-06-30 Thread Paul Richard Thomas
This patch is 'obvious' and I will commit to trunk tomorrow night if there are no objections. The other branches will follow next week. Bootstrapped and regtested on FC28/x86_64. Cheers Paul 2018-06-30 Paul Thomas PR fortran/82969 PR fortran/86242 * trans-array.c (structure_allo

Re: [Patch, fortran] PR45305 - Array-valued calls to elementals are not simplified

2018-06-30 Thread Paul Richard Thomas
Ok, thanks. I think that I will stick to trunk, since we do not seem to have been overwhelmed with demand to fix this! Regards Paul On Sat, 30 Jun 2018 at 15:37, Jerry DeLisle wrote: > > On 06/27/2018 06:48 AM, Paul Richard Thomas wrote: > > I posted a patch for this on the PR in August 2010. D

Re: [PATCH] Bump libgnat to 9.

2018-06-30 Thread Jeff Law
On 06/30/2018 07:52 AM, Martin Liška wrote: > Hi. > > Quite obvious change where I bumped version to 9. > > Ready for trunk? > Thanks, > Martin > > gcc/ada/ChangeLog: > > 2018-06-30  Martin Liska  > > * gnatvsn.ads: Bump Library_Version to 9. OK jeff

Re: [Patch, fortran] PR45305 - Array-valued calls to elementals are not simplified

2018-06-30 Thread Jerry DeLisle
On 06/27/2018 06:48 AM, Paul Richard Thomas wrote: I posted a patch for this on the PR in August 2010. Dominique pointed out that it caused repeated error messages in some testcases; eg. arithmetic_overflow_1.f90 As it happens, that seems to have crept in at some time even without the patch for

[PATCH] Bump libgnat to 9.

2018-06-30 Thread Martin Liška
Hi. Quite obvious change where I bumped version to 9. Ready for trunk? Thanks, Martin gcc/ada/ChangeLog: 2018-06-30 Martin Liska * gnatvsn.ads: Bump Library_Version to 9. --- gcc/ada/gnatvsn.ads | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/ada/gnatvsn.a

Re: [RFC PATCH] diagnose built-in declarations without prototype (PR 83656)

2018-06-30 Thread Bernd Edlinger
Hi Martin, really nice work. Just one minor nit: >--- a/gcc/doc/invoke.texi >+++ b/gcc/doc/invoke.texi >@@ -6568,8 +6568,13 @@ attributes. > @item -Wno-builtin-declaration-mismatch > @opindex Wno-builtin-declaration-mismatch > @opindex Wbuiltin-declaration-mismatch >-Warn if a built-in fu

Re: [PATCH] [ADA] Make install-gnatlib use the correct ranlib for cross-builds

2018-06-30 Thread Arnaud Charlet
> there is a minor glitch in the make install for TARGET!=HOST cross-builds, > which affects only Ada AFAICT. > > That is "make install" tries to use the wrong ranlib command here: > > cd rts; for file in *.a;do \ >/usr/bin/install -c -m 644 $file > /home/ed/gnu/arm-linux-gnueabihf-linux64

[PATCH] [ADA] Make install-gnatlib use the correct ranlib for cross-builds

2018-06-30 Thread Bernd Edlinger
Hi, there is a minor glitch in the make install for TARGET!=HOST cross-builds, which affects only Ada AFAICT. That is "make install" tries to use the wrong ranlib command here: cd rts; for file in *.a;do \ /usr/bin/install -c -m 644 $file /home/ed/gnu/arm-linux-gnueabihf-linux64/lib/gcc/arm