Re: [PATCH, rs6000] [v3] Folding of vector loads in GIMPLE

2017-09-15 Thread Segher Boessenkool
Hi Will, On Fri, Sep 15, 2017 at 09:59:54AM -0500, Will Schmidt wrote: > +/* Vector loads. */ > +case ALTIVEC_BUILTIN_LVX_V16QI: > +case ALTIVEC_BUILTIN_LVX_V8HI: > +case ALTIVEC_BUILTIN_LVX_V4SI: > +case ALTIVEC_BUILTIN_LVX_V4SF: > +case ALTIVEC_BUILTIN_LVX_V2DI: > +c

Go patch committed: return an error statement for fallthrough in last case

2017-09-15 Thread Ian Lance Taylor
This patch by Cherry Zhang changes the Go frontend to call error_statement when generating GIMPLE for a fallthrough in the last case in a switch. This avoids generating incorrect IR in an erroneous case. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index:

Re: [PATCH, rs6000] gimple folding vector load test variant

2017-09-15 Thread Segher Boessenkool
On Fri, Sep 15, 2017 at 10:06:40AM -0500, Will Schmidt wrote: > This is a test created during investigation of the feedback on > the rs6000 gimple vector folding code, regarding the handling of > arg1_type. Inspired by feedback from Richard and Bill. > > This was useful to illustrate the issue

RFA (hash-map): PATCH to support GTY((cache)) with hash_map

2017-09-15 Thread Jason Merrill
The hash_map interface is a lot more convenient than that of hash_table for cases where it makes sense, but there hasn't been a way to get the ggc_cache_remove behavior with a hash_map. In other words, not marking elements during the initial ggc marking phase, but maybe marking them during the cle

Backports to 6.x

2017-09-15 Thread Jakub Jelinek
Hi! I've backported 13 commits of mine and one from Richard. Bootstrapped/regtested on x86_64-linux and i686-linux, committed to gcc-6-branch. Jakub 2017-09-15 Jakub Jelinek Backported from mainline 2017-06-30 Jakub Jelinek PR target/81225 * config/

Re: [PATCH][RFC] Radically simplify emission of balanced tree for switch statements.

2017-09-15 Thread Jeff Law
On 09/14/2017 06:17 AM, Martin Liška wrote: > Hello. > > As mentioned at Cauldron 2017, second step in switch lowering should be > massive > simplification in code that does expansion of balanced tree. Basically it > includes > VRP and DCE, which we can for obvious reason do by our own. > > The

Re: libgo patch committed: Upgrade to Go 1.9 release

2017-09-15 Thread Ian Lance Taylor
On Fri, Sep 15, 2017 at 5:03 AM, Rainer Orth wrote: > the patch broke Solaris bootstrap: /vol/gcc/src/hg/trunk/local/libgo/go/syscall/exec_unix.go:240:11: error: reference to undefined name 'forkExecPipe' if err = forkExecPipe(p[:]); err != nil { ^

<    1   2