[PATCH, rs6000] Add support for lxvx and stxvx P9 instructions

2015-12-27 Thread Bill Schmidt
Hi, POWER9 adds endian-neutral load and store vector instructions that support unaligned accesses. This allows more efficient code generation than POWER8. With these new instructions, we no longer generate the load-swap and swap-store sequences, and we no longer need to perform swap optimization

[PATCH, RFC, v2] Use Levenshtein spelling suggestions in Fortran FE

2015-12-27 Thread Bernhard Reutner-Fischer
gcc/fortran/ChangeLog 2015-12-27 Bernhard Reutner-Fischer * gfortran.h (gfc_lookup_function_fuzzy): New declaration. (gfc_closest_fuzzy_match): New declaration. (vec_push): New definition. * misc.c (gfc_closest_fuzzy_match): New definition. * resolve.c:

[PATCH] Fix pr68917 ICE on __builtin_clz for tilegx

2015-12-27 Thread Bernd Edlinger
Hi, due to more thorough checks in the middle end the builtin clz instruction causes now an ICE on the tilegx target. I have built a tilegx-cross-comiler and inspected the generated code to verify that the patch works. Is is OK for trunk? Thanks Bernd.2015-12-27 Bernd Edlinger P

[PATCH] Fix pr69012 ICE on building libgfortran for mips

2015-12-27 Thread Bernd Edlinger
Hi, the build of libgfortran and glibc for mips currently fails because we now evaluate mips_compute_frame_info more often than before. If any instruction uses the predicate cprestore_save_slot_operand or cprestore_load_slot_operand the function mips_cprestore_address_p calls mips_get_cprestor

Re: [Patch, libgfortran] PR68987 [5/6 Regression] double free or corruption in _gfortran_st_write_done

2015-12-27 Thread Dominique d'Humières
Jerry, Do you remember why you have added the block you want to delete? Is there a way to do a test similar to if (!(dtp->common.flags & IOPARM_HAS_IOSTAT)) when using ERR? Thanks for the patch. Dominique

[PATCH] Fix PR c++/69056 (argument pack deduction failure during overload resolution)

2015-12-27 Thread Patrick Palka
In try_one_overload(), it should not be a deduction failure if we deduced more arguments of an argument pack than were explicitly specified (as long as the arguments are otherwise equivalent). This patch makes try_one_overload() manually check the argument packs, to permit such a case. Bootstrap

Re: [PATCH] Fix PR c++/69052 (argument pack deduction failure during overload resolution)

2015-12-27 Thread Patrick Palka
On Sun, Dec 27, 2015 at 12:05 PM, Patrick Palka wrote: > On Sun, Dec 27, 2015 at 12:02 PM, Patrick Palka wrote: >> In try_one_overload(), it should not be a deduction failure if we >> deduced more arguments of an argument pack than were explicitly >> specified (as long as the arguments are otherw

Re: [PATCH] Fix PR c++/69052 (argument pack deduction failure during overload resolution)

2015-12-27 Thread Patrick Palka
On Sun, Dec 27, 2015 at 12:02 PM, Patrick Palka wrote: > In try_one_overload(), it should not be a deduction failure if we > deduced more arguments of an argument pack than were explicitly > specified (as long as the arguments are otherwise equivalent). > > This patch makes try_one_overload() manu

[PATCH] Fix PR c++/69052 (argument pack deduction failure during overload resolution)

2015-12-27 Thread Patrick Palka
In try_one_overload(), it should not be a deduction failure if we deduced more arguments of an argument pack than were explicitly specified (as long as the arguments are otherwise equivalent). This patch makes try_one_overload() manually check the argument packs, to permit such a case. Bootstrap

Re: [Patch, libgfortran] PR68987 [5/6 Regression] double free or corruption in _gfortran_st_write_done

2015-12-27 Thread Thomas Koenig
Hi Jerry, Attached patch eliminate this problem by reverting a portion of the previous patch to pr65089. Regression tested on x86_64-Linux. I will add test case from the PR. OK for trunk and then back port to 5x? Both. Thanks a lot for the patch! Thomas

Re: Another C++11 experimental thing...

2015-12-27 Thread Jonathan Wakely
> I think we should change the language in the c++0x_warning.h: Agreed, OK for trunk and gcc-5-branch, thanks. N.B. s/Ramove/Remove/ in the changelog.

Fix lto-bootstrap ICE with decl merging disabled

2015-12-27 Thread Jan Hubicka
Hi, this seems to be last ICE I can reproduce with decl and tree merging disabled. ipa-visibility assumes that comdat groups are either all local or all external. With decl merging disabled we can have external aliases of comdat symbols. We should fix the visibility of transparent aliases, but that