Re: [expand] Fix for PR rtl-optimization/79121 incorrect expansion of extend plus left shift

2017-01-18 Thread Jeff Law
On 01/18/2017 11:08 AM, Richard Earnshaw (lists) wrote: PR 79121 is a silent wrong code regression where, when generating a shift from an extended value moving from one to two machine registers, the type of the right shift is for the most significant word should be determined by the signedness of

[committed] Implement LANG_HOOKS_TYPE_FOR_SIZE for jit

2017-01-18 Thread David Malcolm
The jit testcase test-nested-loops.c was crashing. Root cause is that deep inside loop optimization we're now exposing this call within fold-const.c which wasn't being hit before: 4082 /* Compute the mask to access the bitfield. */ 4083 unsigned_type = lang_hooks.types.type_for_size (*

Re: [PATCH] Add AVX512 k-mask intrinsics

2017-01-18 Thread Uros Bizjak
On Wed, Jan 18, 2017 at 1:45 PM, Andrew Senkevich wrote: > 2017-01-17 16:51 GMT+03:00 Jakub Jelinek : >> On Tue, Jan 17, 2017 at 04:03:08PM +0300, Andrew Senkevich wrote: >>> > I've played a bit w/ SDE. And looks like operands are not early clobber: >>> > TID0: INS 0x004003ee A

Fortran, committed: Forall-with-temporary problems(pr 50069 and pr 55086).

2017-01-18 Thread Louis Krupp
Fixed in revision 244601.

Re: [committed] libitm: Disable TSX on processors on which it may be broken.

2017-01-18 Thread Uros Bizjak
Hello! > This fix follows the same approach that glibc uses to disable TSX on > processors on which it is broken. TSX can also be disabled through a > microcode update on these processors, but glibc consensus is that it > cannot be detected reliably whether the microcode update has been > applied

Re: [PATCH] [ARC] Clean up arc header file.

2017-01-18 Thread Claudiu Zissulescu
On 18/01/2017 18:43, Andrew Burgess wrote: * Mike Stump [2017-01-17 10:49:30 -0800]: On Jan 17, 2017, at 3:30 AM, Andrew Burgess wrote: This patch revamps the arc's header file by means of using separate headers for different tool targets. Each target header file holds the specific compile

Re: [committed] libitm: Disable TSX on processors on which it may be broken.

2017-01-18 Thread Uros Bizjak
On Wed, Jan 18, 2017 at 10:48 PM, Uros Bizjak wrote: > Hello! > >> This fix follows the same approach that glibc uses to disable TSX on >> processors on which it is broken. TSX can also be disabled through a >> microcode update on these processors, but glibc consensus is that it >> cannot be dete

[PATCH] C++: fix fix-it hints for misspellings within explicit namespaces (v2)

2017-01-18 Thread David Malcolm
On Sat, 2017-01-14 at 09:50 -0500, Jason Merrill wrote: > On Fri, Jan 13, 2017 at 5:05 PM, David Malcolm > wrote: > > On Wed, 2017-01-04 at 14:58 -0500, Jason Merrill wrote: > > > On Tue, Jan 3, 2017 at 8:28 PM, David Malcolm < > > > dmalc...@redhat.com> > > > wrote: > > > > PR c++/77829 and PR c+

Re: [committed] libitm: Disable TSX on processors on which it may be broken.

2017-01-18 Thread Jakub Jelinek
On Wed, Jan 18, 2017 at 10:48:28PM +0100, Uros Bizjak wrote: > Hello! > > > This fix follows the same approach that glibc uses to disable TSX on > > processors on which it is broken. TSX can also be disabled through a > > microcode update on these processors, but glibc consensus is that it > > ca

Re: [PATCH] Allow building GCC with PTX offloading even without CUDA being installed (gcc and nvptx-tools patches)

2017-01-18 Thread Jakub Jelinek
On Wed, Jan 18, 2017 at 10:52:32PM +0300, Alexander Monakov wrote: > Sorry for not noticing this earlier, but ... > > > +#ifdef __LP64__ > > +typedef unsigned long long CUdeviceptr; > > +#else > > +typedef unsigned CUdeviceptr; > > +#endif > > I think this #ifdef doesn't do the right thing on Min

Re: [committed] libitm: Disable TSX on processors on which it may be broken.

2017-01-18 Thread Uros Bizjak
On Wed, Jan 18, 2017 at 10:48 PM, Uros Bizjak wrote: > Hello! > >> This fix follows the same approach that glibc uses to disable TSX on >> processors on which it is broken. TSX can also be disabled through a >> microcode update on these processors, but glibc consensus is that it >> cannot be dete

Re: [PATCH] Fix IPA CP where it forgot to add a reference in cgraph

2017-01-18 Thread Jan Hubicka
> > 2016-12-19 Martin Liska > > * cgraphclones.c (cgraph_node::create_virtual_clone): > Create either IPA_REF_LOAD of IPA_REF_READ depending on > whether new_tree is a VAR_DECL or an ADDR_EXPR. > * ipa-cp.c (create_specialized_node): Add reference just for > ADDR_

[PATCH, rs6000, committed] Fix PR79040 (built-in typo)

2017-01-18 Thread Bill Schmidt
Hi, A previous patch mistakenly added a #define of vec_cntlz which should have been a #define of vec_cnttz. This patch fixes that. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions, committed as obvious. Thanks, Bill 2017-01-18 Bill Schmidt PR target/790

[PATCH, rs6000, committed] Fix "type" attribute for vbpermq instruction

2017-01-18 Thread Bill Schmidt
Hi, Pat Haugen pointed out that the vbpermq instruction should preferably have its "type" attribute set to vecperm, rather than vecsimple. This patch makes that change. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions, committed as obvious. Thanks, Bill 2017-01-18

Re: [PATCH, MIPS] Target flag and build option to disable indexed memory OPs.

2017-01-18 Thread Doug Gilmore
On 01/17/2017 05:41 AM, Moore, Catherine wrote: > > >> -Original Message- >> From: Matthew Fortune [mailto:matthew.fort...@imgtec.com] >> Sent: Tuesday, January 17, 2017 4:35 AM >> ... >> Thanks for the comments. >> >> Having thought further I agree we can safely ignore DSP indexed load >

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-18 Thread Jeff Law
On 01/18/2017 11:43 AM, Andreas Tobler wrote: Hi all, I have the following issue here on aarch64-*-freebsd: (sorry if the format is hardly readable) .. /export/devel/net/src/gcc/head/gcc/gcc/config/aarch64/aarch64.c: In function 'void aarch64_elf_asm_destructor(rtx, int)': /export/devel/ne

Re: [PATCH, rs6000] Update some Power9 latencies

2017-01-18 Thread Segher Boessenkool
On Wed, Jan 18, 2017 at 12:34:00PM -0600, Pat Haugen wrote: > The following patch updates a few latencies in the Power9 machine > description. Bootstrap/regtest on powerpc64le with no new regressions. Ok for > trunk? Okay, thanks! Segher > 2017-01-18 Pat Haugen > > * config/rs6000/

[PATCH], PowerPC ISA 3.0 defaults + IEEE 128-bit floating point test

2017-01-18 Thread Michael Meissner
This patch changes the default options enabled for the PowerPC -mcpu=power9 option to include the undocumented -mpower9-minmax option. This option enables MIN/MAX instructions that do not require -ffast-math or -fhonor-nans. I also changed the minimum option requirements for IEEE 128-bit floating

Re: [PATCH, GCC/x86 mingw32] Add configure option to force wildcard behavior on Windows

2017-01-18 Thread JonY
On 01/18/2017 09:48 AM, Thomas Preudhomme wrote: > By default, wildcard support on Windows for programs compiled with mingw > depends on how the mingw runtime was configured. This means if one wants > to build GCC for Windows with a consistent behavior with Wildcard > (enabled or disabled) the ming

Re: [PATCH, rs6000] Fix PR78516, broken spe.md constraints exposed by LRA.

2017-01-18 Thread Segher Boessenkool
On Wed, Jan 18, 2017 at 02:38:30PM -0600, Peter Bergner wrote: > This is a partial patch for PR78516. This patch fixes some broken constraints > in spe.md that were exposed by the rs6000 port's switch to using LRA. > In order to change some of the constraints to outputs from inout, I had > to chan

Re: [PATCH, rs6000] Fix PR78516, broken spe.md constraints exposed by LRA.

2017-01-18 Thread Peter Bergner
On 1/18/17 8:04 PM, Segher Boessenkool wrote: On Wed, Jan 18, 2017 at 02:38:30PM -0600, Peter Bergner wrote: Is this ok for trunk? This looks good, please apply. Thanks, Thanks, committed as revision 244609. Peter

[RFC][PATCH][PR 67336][PING] Verify pointers during stack unwind

2017-01-18 Thread Yuri Gribov
Hi all, Libgcc unwinder currently does not do any verification of pointers which it chases on stack. In practice this not so rarely causes segfaults when unwinding on corrupted stacks (e.g. when when trying to print diagnostic on fatal error) [1]. Ironically this usually happens in error reporting

Re: [PATCH] Introduce --with-gcc-major-version-only configure option

2017-01-18 Thread Andris Pavenis
Just one suggestion: What about configure option like --with-version-convert where one could specify actual conversion? I have used conversion sed -e 's:\.::2g' for DJGPP to leave only the first dot in version for complying with MS-DOS file name restrictions. The implementation of that was not

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-18 Thread Andreas Tobler
On 19.01.17 00:33, Jeff Law wrote: On 01/18/2017 11:43 AM, Andreas Tobler wrote: Hi all, I have the following issue here on aarch64-*-freebsd: (sorry if the format is hardly readable) .. /export/devel/net/src/gcc/head/gcc/gcc/config/aarch64/aarch64.c: In function 'void aarch64_elf_asm_des

<    1   2