[PATCH 1/1] Remove ns32k leftover

2017-06-24 Thread Maya Rashish
Support for ns32k was removed in GCC4. --- include/longlong.h | 36 1 file changed, 36 deletions(-) diff --git a/include/longlong.h b/include/longlong.h index 9d3ab21be..c24568ace 100644 --- a/include/longlong.h +++ b/include/longlong.h @@ -858,42 +858,6 @@ ex

Re: [GCC][PATCH][mid-end] Optimize x * copysign (1.0, y) [Patch (1/2)]

2017-06-24 Thread Andrew Pinski
On Mon, Jun 12, 2017 at 12:56 AM, Tamar Christina wrote: > Hi All, > > this patch implements a optimization rewriting > > x * copysign (1.0, y) and > x * copysign (-1.0, y) This reminds me: copysign(-1.0, y) can be just optimized to: copysign(1.0, y) I did that in my patch here: https://gcc.gnu

[PATCH] Fold (a > 0 ? 1.0 : -1.0) into copysign (1.0, a) and a * copysign (1.0, a) into abs(a)

2017-06-24 Thread Andrew Pinski
Hi, I decided to split my previous patch into two different patches, one for floating point and one for integer. This is the floating point version as we can use copysign here which should allow for more cases to be optimized and even by a phiopt which uses match-and-simplify (I hope to be able

[patch, committed] Bug 81160 - arith.c:2009: bad statement order ?

2017-06-24 Thread Jerry DeLisle
Committed as obvious: Committing to svn+ssh://jvdeli...@gcc.gnu.org/svn/gcc/trunk ... M gcc/fortran/ChangeLog M gcc/fortran/arith.c Committed r249627 After regression testing. Jerry --- trunk/gcc/fortran/arith.c 2017/06/24 19:31:24 249626 +++ trunk/gcc/fortran

Re: [PATCH] fold a * (a > 0 ? 1 : -1) to abs(a) and related optimizations

2017-06-24 Thread Andrew Pinski
On Sat, Jun 24, 2017 at 12:47 PM, Marc Glisse wrote: > On Sat, 24 Jun 2017, Andrew Pinski wrote: > >>> * if X is NaN, we may get a qNaN with the wrong sign bit. We probably >>> don't >>> care much though... >> >> >> Ok, I changed it to when not honoring NANs. > > > Note that I have no idea what gu

Re: [PATCH] fold a * (a > 0 ? 1 : -1) to abs(a) and related optimizations

2017-06-24 Thread Marc Glisse
On Sat, 24 Jun 2017, Andrew Pinski wrote: * if X is NaN, we may get a qNaN with the wrong sign bit. We probably don't care much though... Ok, I changed it to when not honoring NANs. Note that I have no idea what guarantees we give in gcc. It is quite possible that your patch is fine without

Re: [PATCH] fold a * (a > 0 ? 1 : -1) to abs(a) and related optimizations

2017-06-24 Thread Andrew Pinski
On Fri, Jun 23, 2017 at 11:50 PM, Marc Glisse wrote: > On Fri, 23 Jun 2017, Andrew Pinski wrote: > >> Hi, >> I saw this on llvm's review site (https://reviews.llvm.org/D34579) >> and I thought why not add it to GCC. I expanded more than what was >> done on the LLVM patch. >> >> I added the follo

[PATCH] Add self as maintainer of D front-end and libphobos

2017-06-24 Thread Iain Buclaw
Hi, As per message on the D language being accepted, this adds myself as a maintainer of the D front-end and libphobos runtime library. David, should this wait until the rest has been approved? Thanks, Iain. --- ChangeLog: 2017-06-24 Iain Buclaw * MAINTAINERS: Add myself D front-end and l

[PATCH v2 11/13] D: GCC builtins and runtime support.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:17, Iain Buclaw wrote: > This patch adds GCC builtins and runtime support for GDC compiled code. > > - module __entrypoint defines the C main function. Its contents are > parsed and compiled in during compilation, but only if needed. > - module gcc.atomic is a deprecated

[PATCH v2 9/13] D: D2 Testsuite Dejagnu files.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:16, Iain Buclaw wrote: > This patch adds D language support to the GCC testsuite. > > As well as generating the DejaGNU options for compile and link tests, > handles the conversion from DMD-style compiler options to GDC. > > --- Added a few extra comments for procedures, alte

[PATCH v2 7/13] D: Add D language support to GCC targets.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:15, Iain Buclaw wrote: > This patch add D language support to targets of GCC itself. > > These are used to declare pre-defined version identifiers in the D > language that describe something about the target that the front-end > itself is unable to obtain. Version conditions

[PATCH v2 6/13] D: Add D language support to GCC proper.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:15, Iain Buclaw wrote: > This patch adds D language support to GCC itself. > Updates from the previous are: - Applied patch on rs6000/rs6000.c also to powerpcspe/powerpcspe.c. - Added d/dfrontend sources picked up by exgettext to list of EXCLUDES. --- --- gcc/ChangeLog

[PATCH v2 4/13] D: The front-end (GDC) config, makefile, and manpages.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:12, Iain Buclaw wrote: > This patch adds the D frontend language configure make files, as > described on the anatomy of a language front-end. > Only change since previous is adding D_TARGET_OBJS as per comments on use of targetdm. Regards, Iain. --- diff --git a/gcc/d/Make-

[PATCH v2 3/13] D: The front-end (GDC) changelogs.

2017-06-24 Thread Iain Buclaw
On 28 May 2017 at 23:11, Iain Buclaw wrote: > This patch just includes all changelogs for the D front-end (GDC), > going back to the dawn of time itself. > > Change logs for the DMD front-end and libraries are kept on the dlang site. > Updated changelogs following updates to [patch 2/13]. Regard

Re: Simplify 3*x == 3*y for wrapping types

2017-06-24 Thread Andrew Pinski
On Sat, Jun 24, 2017 at 5:34 AM, Marc Glisse wrote: > Hello, > > I remember wanting to add this when the undefined-overflow case was > introduced a while ago. > > It turns out the tree where I wrote this wasn't clean. Since the rest is > details, I am including it in this patch, hope it is ok. Yo

Simplify 3*x == 3*y for wrapping types

2017-06-24 Thread Marc Glisse
Hello, I remember wanting to add this when the undefined-overflow case was introduced a while ago. It turns out the tree where I wrote this wasn't clean. Since the rest is details, I am including it in this patch, hope it is ok. Bootstrap + testsuite on powerpc64le-unknown-linux-gnu. 2017-

[Patch, fortran] PR34640 - ICE when assigning item of a derived-component to a pointer

2017-06-24 Thread Paul Richard Thomas
Dear All, Please find attached a draft patch for the above PR, together with PRs 40737, 55763, 57019 and 57116. These PRs constitute problems associated with the last F95 feature that gfortran does not completely implement. I want to sound out if this is acceptable as the way to fix these problem

Re: libgo patch committed: Fix ptrace implementation on MIPS

2017-06-24 Thread Andreas Schwab
On Jun 23 2017, Ian Lance Taylor wrote: > Andreas, can we avoid the problem for earlier glibc versions with a > patch like the appended? > > Ian > > diff --git a/libgo/sysinfo.c b/libgo/sysinfo.c > index a1afc7d1..80407443 100644 > --- a/libgo/sysinfo.c > +++ b/libgo/sysinfo.c > @@ -38,7 +38,10 @