Move some complex simplifications to match.pd

2015-08-30 Thread Marc Glisse
Hello, just trying to shrink fold-const.c a bit more. The tests "if (TREE_CODE (TREE_TYPE (arg0)) != COMPLEX_TYPE)" seem useless, I did one bootstrap+testsuite with asserts there to make sure, so I am dropping them. The CONJ_EXPR simplifications don't seem very useful, as far as I can tell CO

Move some comparison simplifications to match.pd

2015-08-30 Thread Marc Glisse
Hello, just trying to shrink fold-const.c a bit more. initializer_zerop is close to what I was looking for with zerop, but I wasn't sure if it would be safe (it accepts some CONSTRUCTOR and STRING_CST). At some point I tried using sign_bit_p, but using the return of that function in the simpl

Re: [PATCH] fix --with-cpu for sh targets

2015-08-30 Thread Kaz Kojima
Rich Felker wrote: > A missing * in the pattern for sh targets prevents the --with-cpu > configure option from being accepted for certain targets (e.g. ones > with explicit endianness, like sh2eb). Looks good to me, though we need the trunk patch first with the appropriate ChangeLog entry. Oleg,

Re: [Patch] Add to the libgfortran/newlib bodge to "detect" ftruncate support in ARM/AArch64/SH

2015-08-30 Thread Hans-Peter Nilsson
(Pruned the CC list a bit as lists are included anyway) On Fri, 28 Aug 2015, James Greenhalgh wrote: > On Fri, Aug 28, 2015 at 10:40:31AM +0100, James Greenhalgh wrote: > > On Tue, Aug 25, 2015 at 03:44:05PM +0100, FX wrote: > > > > 2015-08-25 James Greenhalgh > > > > > > > > * configur

Re: [PATCH] fix --with-cpu for sh targets

2015-08-30 Thread Oleg Endo
On 30 Aug 2015, at 19:41, Kaz Kojima wrote: > Rich Felker wrote: >> A missing * in the pattern for sh targets prevents the --with-cpu >> configure option from being accepted for certain targets (e.g. ones >> with explicit endianness, like sh2eb). > > Looks good to me, though we need the trunk

[PATCH, rs6000] Improve swap optimization to modify general xxpermdi patterns

2015-08-30 Thread Bill Schmidt
Hi, The VSX swap optimization currently misses opportunities to optimize loops when expressions corresponding to xxpermdi instructions are present (other than xxswapd instructions associated with loads and stores). These occur commonly when interleaving vector double or vector unsigned long opera

Re: [PATCH, rs6000] Improve swap optimization to modify general xxpermdi patterns

2015-08-30 Thread David Edelsohn
On Sun, Aug 30, 2015 at 7:19 PM, Bill Schmidt wrote: > Hi, > > The VSX swap optimization currently misses opportunities to optimize > loops when expressions corresponding to xxpermdi instructions are > present (other than xxswapd instructions associated with loads and > stores). These occur commo

Re: [PATCH] fix --with-cpu for sh targets

2015-08-30 Thread Kaz Kojima
I've committed the patch with the attached ChangeLog entry after testing on sh-elf and i686-pc-linux-gnu. I'd like to backport it to the 5-branch after a week or so. Rich, thanks for the patch. Regards, kaz -- 2015-08-30 Rich Felker * config.gcc (supported_defaults): Handle sh[

Go patch committed: check for invalid UTF-8 in line comments

2015-08-30 Thread Ian Lance Taylor
This patch by Chris Manghane fixes the Go compiler to check for invalid UTF-8 in line comments. Otherwise the compiler might pass a file that it shouldn't. This fixes https://golang.org/issue/11527 . Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline. Ian Index:

[PING][PATCH, PR 57195] Allow mode iterators inside angle brackets

2015-08-30 Thread Michael Collison
Ping. Originally posted here: https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01475.html Regards, Michael Collison

Re: [PATCH] [gomp] Simplify thread pool initialization

2015-08-30 Thread Sebastian Huber
Ping. On 28/07/15 13:06, Sebastian Huber wrote: Ping. This is a pre-requisite for: https://gcc.gnu.org/ml/gcc-patches/2015-07/msg02347.html On 22/07/15 14:56, Sebastian Huber wrote: Move the thread pool initialization from the team start to the team creation. This eliminates one conditional

[PING^2][PATCH] Use single shared memory block pool for all pool allocators

2015-08-30 Thread Mikhail Maltsev
Ping. On 08/03/2015 11:40 AM, Mikhail Maltsev wrote: > On Jul 26, 2015, at 11:50 AM, Andi Kleen wrote: >> I've been compiling gcc with tcmalloc to do a similar speedup. It would be >> interesting to compare that to your patch. > I repeated the test with TCMalloc and jemalloc. TCMalloc shows nice