Re: Merge current set of OpenACC changes from gomp-4_0-branch

2015-01-26 Thread Thomas Schwinge
Hi! Sorry for the late answer -- I've been on sick leave, and just now returning to work. Julian, would you please have a look at the following issues? In r219682, I have committed to trunk our current set of OpenACC changes, which we had prepared on gomp-4_0-branch. Thanks to everyone

Re: [patch, build] Restore bootstrap in building libcc1 on darwin

2015-01-26 Thread Rainer Orth
FX fxcoud...@gmail.com writes: The default BOOT_CFLAGS are: -O2 -g -mdynamic-no-pic the libiberty pic build appends: -fno-common (and not even -fPIC) [NB -fPIC _won't_ override -mdynamic-no-pic, so that's not a simple way out] This means that the PIC library is being built with non-pic

Re: [[ARM/AArch64][testsuite] 13/36] Add vmla_n and vmls_n tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:28, Christophe Lyon christophe.l...@linaro.org wrote: On 16 January 2015 at 17:24, Tejas Belagod tejas.bela...@arm.com wrote: +VECT_VAR_DECL(expected,poly,8,8) [] = { 0x33, 0x33, 0x33, 0x33, + 0x33, 0x33, 0x33, 0x33 };

Re: [Patch, Fortran] PR63861 - fix OpenMP/ACC's gfc_has_alloc_comps

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 01:14:39PM +0100, Tobias Burnus wrote: The question is why I didn't see the nonsense in the test suite. It doesn't seem to be tested for in gcc/testsuite/gfortran.dg/; it might be tested in libgomp/testsuite/ - I don't recall whether I retested after the (incomplete)

Re: [PATCH] Update BBs in cleanup_barriers pass (PR rtl-optimization/61058)

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 01:11:01PM +0100, Richard Biener wrote: I agree that freeing the cfg and immediately computing it again doesn't make sense, but I just don't see this patch being incompatible with that. I wonder if handing over pass pipeline control to targets at machine_reorg time

Re: [[ARM/AArch64][testsuite] 29/36] Add vpadal tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:34, Christophe Lyon christophe.l...@linaro.org wrote: On 16 January 2015 at 19:29, Tejas Belagod tejas.bela...@arm.com wrote: +VECT_VAR_DECL(expected,poly,8,16) [] = { 0x33, 0x33, 0x33, 0x33, +0x33, 0x33, 0x33, 0x33, +

Re: [PATCH][AARCH64]Fix TLS local exec model addressing code generation inconsistency.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 14:57, Renlin Li renlin...@arm.com wrote: gcc/ChangeLog: 2015-01-20 Renlin Li renlin...@arm.com * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct the comment. * config/aarch64/aarch64.md (tlsle_small_mode): Add left shift 12-bit

Re: [patch, build] Restore bootstrap in building libcc1 on darwin

2015-01-26 Thread Iain Sandoe
On 26 Jan 2015, at 14:13, Rainer Orth wrote: FX fxcoud...@gmail.com writes: The default BOOT_CFLAGS are: -O2 -g -mdynamic-no-pic the libiberty pic build appends: -fno-common (and not even -fPIC) [NB -fPIC _won't_ override -mdynamic-no-pic, so that's not a simple way out] This means that

Re: [COMMITTED] Merge libffi with upstream

2015-01-26 Thread Rainer Orth
H.J. Lu hjl.to...@gmail.com writes: On Fri, Jan 16, 2015 at 5:38 AM, Rainer Orth r...@cebitec.uni-bielefeld.de wrote: Jakub Jelinek ja...@redhat.com writes: @@ -311,7 +312,8 @@ proc run-many-tests { testcases extra_fl set targetabis { } if [string match $compiler_vendor gnu] {

Re: [PATCH, i386] Remove EBX usage from asm code

2015-01-26 Thread Rainer Orth
Uros Bizjak ubiz...@gmail.com writes: Yes, the name is better. It would also fit with Solaris. Bootstrap and regression test was OK. Committed with following ChangeLogs: libgcc/ChangeLog: 2015-01-23 Uros Bizjak ubiz...@gmail.com * config/i386/elf-lib.h: New file.

Re: [[ARM/AArch64][testsuite] 03/36] Add vmax, vmin, vhadd, vhsub and vrhadd tests.

2015-01-26 Thread Christophe Lyon
On 26 January 2015 at 13:10, Tejas Belagod tejas.bela...@arm.com wrote: On 25/01/15 21:05, Christophe Lyon wrote: On 23 January 2015 at 14:44, Christophe Lyon christophe.l...@linaro.org wrote: On 23 January 2015 at 12:42, Christophe Lyon christophe.l...@linaro.org wrote: On 23 January

Re: [[ARM/AArch64][testsuite] 09/36] Add vsubhn, vraddhn and vrsubhn tests. Split vaddhn.c into vXXXhn.inc and vaddhn.c to share code with other new tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:24, Christophe Lyon christophe.l...@linaro.org wrote: Here is an updated version, where I have removed a few more useless variables than you noticed: the [u]int64x1 as well as the 128 bits ones. OK /Marcus

[gomp4] Merge trunk r219681 (2015-01-15) into gomp-4_0-branch

2015-01-26 Thread Thomas Schwinge
Hi! In r220110, I have committed a merge from trunk r219681 (2015-01-15) into gomp-4_0-branch. This is the last trunk revision before the »Merge current set of OpenACC changes from gomp-4_0-branch« commit. Grüße, Thomas pgpFT6G9VIhcG.pgp Description: PGP signature

Re: [[ARM/AArch64][testsuite] 30/36] Add vpaddl tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:35, Christophe Lyon christophe.l...@linaro.org wrote: Hmm changed my mind: vpaddl takes only one vector as input, although it does add 2 vector elements. Here is an updated version, removing poly, float and int8 variants. OK /Marcus

RE: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Hale Wang
-Original Message- From: Andrew Pinski [mailto:pins...@gmail.com] Sent: Monday, January 26, 2015 6:03 PM To: Hale Wang Cc: GCC Patches Subject: Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained. I think it is allowed to the second

Re: [patch, libbacktrace/libsanitizer/libquadmath/libcilkrts] fix multilib builds

2015-01-26 Thread Tobias Burnus
Matthias Klose wrote: However for the libbacktrace and the libsanitizer builds, the AM_ENABLE_MULTILIB macro is included way too late. Scan the generated configure file for cross_compiling and see that the above snippet is added after the failing checks. The fix seems to be simple,

RE: [PATCH, RFC] LRA subreg handling

2015-01-26 Thread Robert Suchanek
Here we do have a hard register, but it isn't valid to form the subreg on that hard register. Reload had to cope with that case too. Since the subreg on the original hard register is invalid, we can't use it to decide whether the intention was to write to only a part of the inner

Re: [[ARM/AArch64][testsuite] 28/36] Add vmnv tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:33, Christophe Lyon christophe.l...@linaro.org wrote: On 16 January 2015 at 19:27, Tejas Belagod tejas.bela...@arm.com wrote: +VECT_VAR_DECL(expected,poly,16,8) [] = { 0x, 0x, 0x, 0x, +0x, 0x, 0x,

Re: [[ARM/AArch64][testsuite] 21/36] Add vmovl tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:32, Christophe Lyon christophe.l...@linaro.org wrote: No poly or float for vmovl. Here is a new version, with more cleanup: only 16x8, 32x4 and 64x2 variants are necessary. This version is OK /Marcus

Re: [PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Richard Biener
On Mon, 26 Jan 2015, Jakub Jelinek wrote: On Mon, Jan 26, 2015 at 04:06:11PM +0100, Richard Biener wrote: This is the 2nd thing I came up with after looking at PR64277. VRP does a poor job computing value-ranges of unrolled loop IVs thus a very simple thing to do is to factor in

Re: [PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 04:28:02PM +0100, Richard Biener wrote: Sure - but for unrolling int a[2]; for (int i = 0; i 5; i++) a[i] = i; I'd like to see warnings and we only warn if we unroll this because the value-range of i includes indexes that are valid. Don't we warn here for

[PATCH][1/2] Improve array bound warnings

2015-01-26 Thread Richard Biener
I've looked at PR64277 and noticed we haven't been applying TLC to the array-bound warning code for a long time. I noticed we don't warn for out-of-bound return a[11]; - fixed with the simplifications. I also noticed that anti-range handling has off-by-one errors (well, always applied

Re: [PATCH][1/2] Improve array bound warnings

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 03:57:20PM +0100, Richard Biener wrote: I've looked at PR64277 and noticed we haven't been applying TLC to the array-bound warning code for a long time. I noticed we don't warn for out-of-bound return a[11]; - fixed with the simplifications. I also noticed that

RE: [PATCH MIPS RFA] Regression cleanup for nan2008 toolchain

2015-01-26 Thread Moore, Catherine
-Original Message- From: Robert Suchanek [mailto:robert.sucha...@imgtec.com] Sent: Monday, January 26, 2015 6:48 AM To: gcc-patches@gcc.gnu.org Cc: Matthew Fortune; Moore, Catherine Subject: [PATCH MIPS RFA] Regression cleanup for nan2008 toolchain Hi, Here is a patch to

[PATCH RFC] Running auto-vectorization tests multiple times

2015-01-26 Thread Robert Suchanek
Hi, I'm trying to lift the restriction to run auto-vectorization tests more than once and would like to check if I'm going in the right direction. I attached a draft patch. Currently, auto-vectorization tests are enabled by a call to check_vect_support_and_set_flags procedure and if there is

Re: [PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Richard Biener
On Mon, 26 Jan 2015, Jakub Jelinek wrote: On Mon, Jan 26, 2015 at 04:18:32PM +0100, Richard Biener wrote: Ok for trunk? Or should I delay this to GCC 6? Does this work even without the other patch? Yes, I've actually developed 2/2 first. The other patch only ever emits more

[PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Richard Biener
This is the 2nd thing I came up with after looking at PR64277. VRP does a poor job computing value-ranges of unrolled loop IVs thus a very simple thing to do is to factor in previous VRP results by intersecting what VRP2 computes with recorded SSA name range infos (that also makes errors in those

Re: [Patch, Fortran, OOP] PR 64230: [4.9/5 Regression] Invalid memory reference in a compiler-generated finalizer for allocatable component

2015-01-26 Thread Janus Weil
2015-01-24 18:18 GMT+01:00 Tobias Burnus bur...@net-b.de: this is a second patch dealing with finalization-related regressions, [...] This patch fixes an invalid memory reference inside the finalizer routine (at runtime), which apparently was caused by dereferencing a pointer without checking

RE: [PATCH][4.9] PR 64569 - Backport support for MIPS binutils 2.25

2015-01-26 Thread Matthew Fortune
This is a minimal backport of features added to GCC 5 to enable use of binutils 2.25 with GCC 4.9 for MIPS soft-float builds. Further details in the PR: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64569 The commits which are being backported are listed below (the last one is posted but

Re: [PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 04:06:11PM +0100, Richard Biener wrote: This is the 2nd thing I came up with after looking at PR64277. VRP does a poor job computing value-ranges of unrolled loop IVs thus a very simple thing to do is to factor in previous VRP results by intersecting what VRP2

Re: [PATCH][2/2] Improve array-bound warnings and VRP

2015-01-26 Thread Jakub Jelinek
On Mon, Jan 26, 2015 at 04:18:32PM +0100, Richard Biener wrote: Ok for trunk? Or should I delay this to GCC 6? Does this work even without the other patch? Yes, I've actually developed 2/2 first. The other patch only ever emits more warnings... Then it probably should be ok. I'm

Retracted: [PATCH 0/4][ARM Intrinsics][RFTesting] Add missing float16x8_t type, and float16x[48] intrinsics

2015-01-26 Thread Alan Lawrence
There are still bugs in these patches, they should not go in. Hope to have something ready, with tests, in the next stage 1. Cheers, Alan Alan Lawrence wrote: These add all the V[48]HFmode insns and corresponding intrinsics for ARM. Depends on the two patches at

Re: [RFC] POWER8 default for PPC64LE

2015-01-26 Thread David Edelsohn
On Mon, Jan 26, 2015 at 4:46 AM, Jakub Jelinek ja...@redhat.com wrote: On Sat, Jan 17, 2015 at 09:18:14PM -0500, David Edelsohn wrote: Thanks, David * config/rs6000/default64.h: Include rs6000-cpus.def. (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8). *

Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Segher Boessenkool
On Mon, Jan 26, 2015 at 05:55:52PM +0800, Hale Wang wrote: The GCC combine pass combines the insns even though they contain volatile registers. Local register variable, register asm. This doesn't make sence. On the contrary, it makes a lot of sense: you *want* insns 41+43 to be combined in

Re: [doc, committed] copy-edit documentation for -fisolate-erroneous-paths-*

2015-01-26 Thread Joseph Myers
On Mon, 26 Jan 2015, Gerald Pfeifer wrote: On Saturday 2015-01-03 17:59, Sandra Loosemore wrote: * most places in the manual use null or more rarely @code{NULL} rather than NULL So, should this be documented in gcc.gnu.org/codingconventions.html? Expanding / revising where it says NULL

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
On Mon, Jan 26, 2015 at 11:08 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: On Monday 26 January 2015, H.J. Lu wrote: On Mon, Jan 26, 2015 at 10:53 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: Committed with a bunch of fixes (e.g. missing fold_builtin_cpu part in

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Allan Sandfeld Jensen
On Monday 26 January 2015, H.J. Lu wrote: On Mon, Jan 26, 2015 at 11:08 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: On Monday 26 January 2015, H.J. Lu wrote: On Mon, Jan 26, 2015 at 10:53 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: Committed with a bunch of fixes

Re: #pragma GCC unroll support

2015-01-26 Thread Mike Stump
Jason, Joseph, this is stage 1 material (unless someone else wants to try and make an argument for it sooner), if you could review the parser (frontend) bits, that would be wonderful. The mid-end, and back-end bits Richard was reviewing. On Jan 8, 2015, at 4:45 AM, Richard Biener

Re: [[ARM/AArch64][testsuite] 17/36] Add vpadd, vpmax and vpmin tests.

2015-01-26 Thread Marcus Shawcroft
On 20 January 2015 at 15:30, Christophe Lyon christophe.l...@linaro.org wrote: + /* Apply a unary operator named INSN_NAME. */ Unary op? Hmm cut paste issue. Thanks Here is an updated versoin, also renaming VPADD into VPXXX, since it's in a template. Updated version is OK /Marcus

Re: Merge current set of OpenACC changes from gomp-4_0-branch

2015-01-26 Thread Ilya Verbin
On 26 Jan 14:44, Thomas Schwinge wrote: On 17 Jan 02:16, Ilya Verbin wrote: Such things are not covered by the testsuite, that's why you missed this issue. Here is a simple testcase: http://news.gmane.org/find-root.php?message_id=%3C20150116231632.GB48380%40msticlxl57.ims.intel.com%3E

[PATCH] Fix PR64764

2015-01-26 Thread Richard Biener
The following fixes PR64764. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2015-01-26 Richard Biener rguent...@suse.de PR middle-end/64764 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle combining two BIT_AND_EXPR predicates.

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
On Mon, Jan 26, 2015 at 10:53 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: Committed with a bunch of fixes (e.g. missing fold_builtin_cpu part in gcc/config/i386/i386.c, and mv17.C test didn't compile at all due to missing parenthesis). ... and now with committed ChangeLog

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Uros Bizjak
On Mon, Jan 26, 2015 at 8:15 PM, H.J. Lu hjl.to...@gmail.com wrote: On Mon, Jan 26, 2015 at 11:08 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: On Monday 26 January 2015, H.J. Lu wrote: On Mon, Jan 26, 2015 at 10:53 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: Committed with

Re: RFA: patch to fix a bad code generation for PR64110 -- new constraints addition

2015-01-26 Thread Jeff Law
On 01/24/15 04:29, Richard Sandiford wrote: Yeah. I expect in practice most people who used ? and ! attached them to a particular operand for a reason. From a quick scan through 386.exp it looked like almost all uses would either want this behaviour or wouldn't care. An interesting exception

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Allan Sandfeld Jensen
On Monday 26 January 2015, you wrote: On Mon, Jan 26, 2015 at 10:38 AM, Allan Sandfeld Jensen al...@carewolf.com wrote: On Monday 26 January 2015, H.J. Lu wrote: On Sun, Jan 25, 2015 at 10:37 AM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Jan 25, 2015 at 7:23 PM, Uros Bizjak

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Allan Sandfeld Jensen
On Monday 26 January 2015, H.J. Lu wrote: On Mon, Jan 26, 2015 at 10:53 AM, Allan Sandfeld Jensen carew...@gmail.com wrote: Committed with a bunch of fixes (e.g. missing fold_builtin_cpu part in gcc/config/i386/i386.c, and mv17.C test didn't compile at all due to missing

[PATCH, i386]: Fix PR64795, too many memor references for 'lea'

2015-01-26 Thread Uros Bizjak
Hello! Attached patch tightens the condition for TYPE_LEA instructions. 2015-01-26 Uros Bizjak ubiz...@gmail.com PR target/64795 * config/i386/i386.md (*movdi_internal): Also check operand 0 to determine TYPE_LEA operand. (*movsi_internal): Ditto. Bootstrapped and

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Uros Bizjak
On Mon, Jan 26, 2015 at 8:22 PM, Allan Sandfeld Jensen carew...@gmail.com wrote: I guess since they represent the exact same effective ISA, they would have equal priority, so that it would likely chose whatever comes last. I have no strong opinion on this. But this is a user visible

Re: #pragma GCC unroll support

2015-01-26 Thread Mike Stump
I missed including the documentation patch in the last set. :-( Here it is: Index: extend.texi === --- extend.texi (revision 220084) +++ extend.texi (working copy) @@ -17881,6 +17881,17 @@ void ignore_vec_dep (int *a, int k, int

Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Segher Boessenkool
On Mon, Jan 26, 2015 at 05:55:52PM +0800, Hale Wang wrote: diff --git a/gcc/combine.c b/gcc/combine.c index 5c763b4..cf48666 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -2004,6 +2004,13 @@ can_combine_p (rtx_insn *insn, rtx_insn *i3, rtx_insn *pred ATTRIBUTE_UNUSED, return

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
---On Mon, Jan 26, 2015 at 11:25 AM, Uros Bizjak ubiz...@gmail.com wrote: On Mon, Jan 26, 2015 at 8:22 PM, Allan Sandfeld Jensen carew...@gmail.com wrote: I guess since they represent the exact same effective ISA, they would have equal priority, so that it would likely chose whatever comes

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread Allan Sandfeld Jensen
On Monday 26 January 2015, H.J. Lu wrote: On Sun, Jan 25, 2015 at 10:37 AM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Jan 25, 2015 at 7:23 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sat, Jan 24, 2015 at 11:49 AM, Allan Sandfeld Jensen al...@carewolf.com wrote: On Saturday 24

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
On Mon, Jan 26, 2015 at 10:04 AM, H.J. Lu hjl.to...@gmail.com wrote: On Sun, Jan 25, 2015 at 10:37 AM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Jan 25, 2015 at 7:23 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sat, Jan 24, 2015 at 11:49 AM, Allan Sandfeld Jensen al...@carewolf.com wrote:

[PATCH, CHKP] Fix bounds return check for calls

2015-01-26 Thread Ilya Enkovich
Hi, Currently chkp_call_returns_bounds_p works incorrectly for bounds narrowing. Also it doesn't reflect recent changes in calls instrumentation. This patch fixes the problem. Bootstrapped and checked on x86_64-unknown-linux-gnu. OK for trunk? Thanks, Ilya -- 2015-01-26 Ilya Enkovich

RFA: RL78: Add assembler versions of some libgcc functions.

2015-01-26 Thread Nick Clifton
Hi DJ, The attached patch provides some enhancements to libgcc for the RL78. It includes faster and smaller versions of the bit counting and simple floating point functions, and a version of the integer multiply support function designed to work on the G10. Tested on an rl78-elf

Re: [COMMITTED] Merge libffi with upstream

2015-01-26 Thread Richard Henderson
On 01/26/2015 06:19 AM, Rainer Orth wrote: 2015-01-16 Rainer Orth r...@cebitec.uni-bielefeld.de * testsuite/lib/libffi.exp: Load target-supports.exp. (run-many-tests): Only set targetabis for ia32. Ok. r~

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
On Mon, Jan 26, 2015 at 10:38 AM, Allan Sandfeld Jensen al...@carewolf.com wrote: On Monday 26 January 2015, H.J. Lu wrote: On Sun, Jan 25, 2015 at 10:37 AM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Jan 25, 2015 at 7:23 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sat, Jan 24, 2015 at

Re: [PATCH] update_web_docs_svn: support the JIT docs (PR jit/64257)

2015-01-26 Thread David Malcolm
On Mon, 2015-01-26 at 12:43 +0100, Gerald Pfeifer wrote: On Friday 2015-01-23 17:44, David Malcolm wrote: The following patch builds and installs the JIT documentation for the website (just HTML for now). It's tricky to test (I don't have a copy of /www/gcc/bin/preprocess), but I was

[PATCH][AArch64] Remove an unused reload hook.

2015-01-26 Thread Matthew Wahab
Hello, The LEGITIMIZE_RELOAD_ADDRESS macro is only needed for reload. Since the Aarch64 backend no longer supports reload, this macro is not needed and this patch removes it. Tested aarch64-none-linux-gnu with gcc-check. No new failures. Ok for trunk? Matthew gcc/ 2015-01-26 Matthew Wahab

RFA: RL78: Minor prologue and epilogue enhancements

2015-01-26 Thread Nick Clifton
Hi DJ, The patch below contains two minor enhancements for the RL78 prologue and epilogue code. The first is for when a large amount of local stack space needs to be allocated. Rather than generating a long sequence of SUB SP, #byte instructions, the patched codes moves SP into AX,

Re: [Patch, i386] Support BMI and BMI2 targets in multiversioning

2015-01-26 Thread H.J. Lu
On Sun, Jan 25, 2015 at 10:37 AM, Uros Bizjak ubiz...@gmail.com wrote: On Sun, Jan 25, 2015 at 7:23 PM, Uros Bizjak ubiz...@gmail.com wrote: On Sat, Jan 24, 2015 at 11:49 AM, Allan Sandfeld Jensen al...@carewolf.com wrote: On Saturday 24 January 2015, Uros Bizjak wrote: On Mon, Jan 12, 2015

Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Segher Boessenkool
The test case listed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46164 shows the expected asm command mov r1, r1 is not generated.r1 is defined as a volatile register, and there are three insns related to r1: (insn 98 97 40 3 (set (reg/v:SI 1 r1 [ b ]) (reg:SI 154 [ b ]))

Re: [PATCH] update_web_docs_svn: support the JIT docs (PR jit/64257)

2015-01-26 Thread Mike Stump
On Jan 26, 2015, at 3:43 AM, Gerald Pfeifer ger...@pfeifer.com wrote: +# Again, the jit is a special case, with nested subdirectories +# below jit, and with some non-HTML files (.png images from us, +# plus .js and .css supplied by sphinx). +for file in $(find jit \ +-name

Re: [PATCH] Update BBs in cleanup_barriers pass (PR rtl-optimization/61058)

2015-01-26 Thread Jeff Law
On 01/26/15 06:34, Jakub Jelinek wrote: On Mon, Jan 26, 2015 at 01:11:01PM +0100, Richard Biener wrote: I agree that freeing the cfg and immediately computing it again doesn't make sense, but I just don't see this patch being incompatible with that. I wonder if handing over pass pipeline

[PATCH] Fix ICE during ipa dumping (PR ipa/64730)

2015-01-26 Thread Jakub Jelinek
Hi! On various targets, %s in fprintf can't handle NULL arguments, and even when edge-call_stmt is non-NULL, it still might have UNKNOWN_LOCATION or BUILTINS_LOCATION, which have NULL filename. In this particular case it is a fnsplit created call. Fixed thusly, bootstrapped/regtested on

Re: [Patch, Fortran, OOP] PR 64230: [4.9/5 Regression] Invalid memory reference in a compiler-generated finalizer for allocatable component

2015-01-26 Thread Paul Richard Thomas
Hi Janus, The testcase has a dependence on libubsan.so, which my LD_LIBRARY_PATH does not seem to be able to resolve. It therefore fails in the regression test. When I point to ~/lib64, I get the message: /svn/trunk/gcc/testsuite/gfortran.dg/class_allocate_18.f90:8: runtime error: signed integer

[PATCH] Fix ICE due to invalid thunk (PR ipa/64776)

2015-01-26 Thread Jakub Jelinek
Hi! On x86_64-darwin, we ICE on one of the pr64307.c testcase, because expand_thunk doesn't load non-gimple_val arguments into registers for the first argument, only for all the other ones. Supposedly normally thunks were meant to have this argument as pointer first and thus it wasn't an issue,

[PATCH] wide-int division fix (PR tree-optimization/64807)

2015-01-26 Thread Jakub Jelinek
Hi! On the following testcase we generate wrong code, because apparently divmod_internal_2 relies on 0 being the topmost element (at b_dividend[m]): algorithm. M is the number of significant elements of U however there needs to be at least one extra element of B_DIVIDEND allocated, N is

[committed] Fix #pragma omp declare simd mangling (PR middle-end/64421)

2015-01-26 Thread Jakub Jelinek
Hi! If #pragma omp declare simd function has a name set using __asm, DECL_ASSEMBLER_NAME starts with *. We certainly don't want to put that * as part of the mangled name, if not anything else because most of the assemblers don't handle it as part of identifiers. Fixed thusly, committed to trunk

Re: [PATCH, CHKP] Fix bounds return check for calls

2015-01-26 Thread Jeff Law
On 01/26/15 09:45, Ilya Enkovich wrote: Hi, Currently chkp_call_returns_bounds_p works incorrectly for bounds narrowing. Also it doesn't reflect recent changes in calls instrumentation. This patch fixes the problem. Bootstrapped and checked on x86_64-unknown-linux-gnu. OK for trunk?

Re: [Patch, fortran] PR62044 ICE when loading use-renamed extended derived type

2015-01-26 Thread Paul Richard Thomas
Dear All, The fix for the failing testcases in comments #6 and #7 in this PR have been fixed as 'obvious' in r220140. Thanks to Mikael for reopening the PR as a placeholder. This is such an embarrassing bug that I intend to commit to 4.9 as well even if it is not a regression, unless there are

Re: [C PATCH] Fix ICE with invalid function call (PR c/64778)

2015-01-26 Thread Marek Polacek
On Mon, Jan 26, 2015 at 10:10:56PM +0100, Jakub Jelinek wrote: Hi! On the following testcase we ICE, because we end up with a CALL_EXPR with error_mark_node argument and gimplification can't cope with that. Normally, if one or more arguments are error_mark_node we return -1 and drop the

Re: [PATCH] Fix ICE during ipa dumping (PR ipa/64730)

2015-01-26 Thread Jan Hubicka
Hi! On various targets, %s in fprintf can't handle NULL arguments, and even when edge-call_stmt is non-NULL, it still might have UNKNOWN_LOCATION or BUILTINS_LOCATION, which have NULL filename. In this particular case it is a fnsplit created call. Fixed thusly, bootstrapped/regtested on

[PATCH, committed] PR jit/64708: remove libgccjit.so from COMPILERS

2015-01-26 Thread David Malcolm
libgccjit.so is installed by jit/Make-lang.in's jit.install-common, into $(DESTDIR)/$(libdir). jit/config-lang.in listed compilers as libgccjit.so, leading to the makefile variable COMPILERS containing libgccjit.so. This in turn led to gcc/Makefile's install-common installing a redundant copy of

[C PATCH] Fix ICE with assignment to FUNCTION_DECL (PR c/64766)

2015-01-26 Thread Jakub Jelinek
Hi! On the following testcase we ICE during error recovery. Setting DECL_INITIAL of a FUNCTION_DECL to error_mark_node can't be possibly helpful, the error must have been diagnosed already; DECL_INITIAL on the FUNCTION_DECL should be kept as BLOCK. Bootstrapped/regtested on x86_64-linux and

Re: [PATCH] toplev.c: Process the failure when read fails for random_seed

2015-01-26 Thread Jeff Law
On 01/22/15 13:50, Chen Gang S wrote: On 01/23/2015 03:53 AM, Jeff Law wrote: On 01/22/15 12:42, Chen Gang S wrote: Thank you very much for your help applying the 3 patches. :-) No problem. After finish the assignment working flow, I guess, I may have the write access, then can finish

Re: [C PATCH] Fix ICE with assignment to FUNCTION_DECL (PR c/64766)

2015-01-26 Thread Jeff Law
On 01/26/15 14:13, Jakub Jelinek wrote: Hi! On the following testcase we ICE during error recovery. Setting DECL_INITIAL of a FUNCTION_DECL to error_mark_node can't be possibly helpful, the error must have been diagnosed already; DECL_INITIAL on the FUNCTION_DECL should be kept as BLOCK.

Re: [patch, libbacktrace/libsanitizer/libquadmath/libcilkrts] fix multilib builds

2015-01-26 Thread Jeff Law
On 01/26/15 07:30, Tobias Burnus wrote: Matthias Klose wrote: However for the libbacktrace and the libsanitizer builds, the AM_ENABLE_MULTILIB macro is included way too late. Scan the generated configure file for cross_compiling and see that the above snippet is added after the failing checks.

Add a blurb about __has_cpp_attribute and __has_attribute to gcc-5/changes.

2015-01-26 Thread Ed Smith-Rowland
Gerald, Could I get a hand on checking in this last addition? -m 'Add a blurb to htdocs/gcc-5/changes.html to explain the __has_cpp_attribute and the equivalent __has_attribute macros.' Thanks, Ed Sorry, I forgot to add gcc-patches. Index: htdocs/gcc-5/changes.html

Re: [PATCH] Workaround -Wmaybe-uninitialized false positives during profiledbootstrap

2015-01-26 Thread DJ Delorie
+/* Workaround -Wstrict-overflow false positive during profiledbootstrap. */ + +# if GCC_VERSION = 4004 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored -Wstrict-overflow +#endif + #pragma diagnostic ignored was added in 4.4 but #pragma diagnostic push/pop wasn't added until

RE: [PATCH, ARM, ping1] Fix PR64453: live high register not saved in function prolog with -Os

2015-01-26 Thread Thomas Preud'homme
Ping? -Original Message- From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- ow...@gcc.gnu.org] On Behalf Of Thomas Preud'homme Sent: Friday, January 23, 2015 4:23 PM To: Ramana Radhakrishnan Cc: gcc-patches Subject: RE: [PATCH, ARM] Fix PR64453: live high register not saved

RE: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Hale Wang
-Original Message- From: Segher Boessenkool [mailto:seg...@kernel.crashing.org] Sent: Tuesday, January 27, 2015 3:07 AM To: Hale Wang Cc: GCC Patches Subject: Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained. On Mon, Jan 26, 2015 at

RE: [PATCH 2/3, ARM, libgcc, ping6] Code size optimization for the fmul/fdiv and dmul/ddiv function in libgcc

2015-01-26 Thread Thomas Preud'homme
From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- ow...@gcc.gnu.org] On Behalf Of Thomas Preud'homme Secondly, in a shared library environment you need to ensure that these names remain private to the instance linked into the library, so that you don't end up going through the

[PATCH] Fix for PR64741 (UBSan/ASan integration)

2015-01-26 Thread Yury Gribov
Hi all, As described in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64741 , ASan may currently report false positives for UBSan internal variables due to their incomplete type information. This patch fixes this. Bootstrapped and regtested on Linux x64. Ok to commit? -Y commit

[PATCH][RFA][PR target/15184] Partial fix for direct byte access on x86

2015-01-26 Thread Jeff Law
Segher: I know you're not officially noted as a maintainer or reviewer for combine.c, but that's something I'd like to change if you're interested in a larger role. In the mean time, any feedback you have would be appreciated. So the issue mentioned in the BZ is that fairly obvious code

Re: [PATCH][RFA][PR target/15184] Partial fix for direct byte access on x86

2015-01-26 Thread Segher Boessenkool
On Mon, Jan 26, 2015 at 08:07:29PM -0700, Jeff Law wrote: The second change we need is an additional simplification. If we have (subreg:M1 (zero_extend:M2 (x)) Where M1 M2 and both are scalar integer modes. It's advantageous to strip the SUBREG and instead have a wider extension.

RE: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Hale Wang
-Original Message- From: Segher Boessenkool [mailto:seg...@kernel.crashing.org] Sent: Tuesday, January 27, 2015 12:52 PM To: Hale Wang Cc: GCC Patches Subject: Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained. On Tue, Jan 27, 2015

Re: [PATCH] [gcc, combine] PR46164: Don't combine the insns if a volatile register is contained.

2015-01-26 Thread Segher Boessenkool
On Tue, Jan 27, 2015 at 11:49:55AM +0800, Hale Wang wrote: Hi Hale, diff --git a/gcc/testsuite/gcc.target/arm/pr46164.c b/gcc/testsuite/gcc.target/arm/pr46164.c new file mode 100644 index 000..ad3b7cb --- /dev/null +++ b/gcc/testsuite/gcc.target/arm/pr46164.c @@ -0,0

RE: [PATCH 2/3, ARM, libgcc, ping6] Code size optimization for the fmul/fdiv and dmul/ddiv function in libgcc

2015-01-26 Thread Thomas Preud'homme
From: Richard Earnshaw Sent: Wednesday, January 14, 2015 10:49 PM Sorry, not ok. These symbols pollute the global namespace, yet do not use reserved names. Are you referring to the Lml_* symbols? They appear with local binding in my environment which is expected since the single float and

Re: [ping] Re: proper name of i386/x86-64/etc targets

2015-01-26 Thread Sandra Loosemore
On 01/20/2015 12:02 PM, H.J. Lu wrote: On Tue, Jan 20, 2015 at 10:51 AM, Eric Botcazou ebotca...@adacore.com wrote: Ping? Any thoughts? x86 for the family and x86-32/x86-64 for the 2 architectures? Works for me. [redirecting from gcc@ to gcc-patches@] OK, here is a patch that attempts

Re: [Patch, Fortran, OOP] PR 64230: [4.9/5 Regression] Invalid memory reference in a compiler-generated finalizer for allocatable component

2015-01-26 Thread Paul Richard Thomas
Dear Janus, I know somewhat less than nothing about such matters. I suggest that you contact the authors of the testcases that use libubsan that you mention. Sorry Paul On 26 January 2015 at 22:20, Janus Weil ja...@gcc.gnu.org wrote: Hi Paul, The testcase has a dependence on libubsan.so,

Re: [Patch, Fortran] PR63861 - fix OpenMP/ACC's gfc_has_alloc_comps

2015-01-26 Thread Tobias Burnus
Updated patch below. Jakub Jelinek wrote: On Mon, Jan 26, 2015 at 01:14:39PM +0100, Tobias Burnus wrote: The question is why I didn't see the nonsense in the test suite. It doesn't seem to be tested for in gcc/testsuite/gfortran.dg/; it might be tested in libgomp/testsuite/ - I don't recall

[PATCH 3/3] Fix dbr_schedule for -freorder-blocks-and-partition

2015-01-26 Thread Kaz Kojima
This patch is to fix 2 issues found in dbr_schedule when trying to fix PR target/64761. The first is relax_delay_slots removes the jump insn in the insns like below: (jump_insn/j 74 58 59 (set (pc) (label_ref:SI 29)) ...) (barrier 59 74 105) (note 105 59 29 NOTE_INSN_SWITCH_TEXT_SECTIONS)

[PATCH 0/3] Fix PR target/64761

2015-01-26 Thread Kaz Kojima
[i'd like to add Joern to CC list because this is based on his patch.] Hi, This patch series is to fix PR target/64761 which is formally a 4.9/5 regression. The fix is splitted into 3 pieces: [PATCH 1/3] Replace MD_REDIRECT_BRANCH with TARGET_CAN_FOLLOW_JUMP [PATCH 2/3] [SH] Add jump insn for

[PATCH 2/3] [SH] Add jump insn for -freorder-blocks-and-partition

2015-01-26 Thread Kaz Kojima
This patch adds a new jump insn for the jump crossing between hot/cold pertitions and reenables -freorder-blocks-and-partition on SH in some cases. -- PR target/64761 * config/sh/sh.c (sh_option_override): Don't change -freorder-blocks-and-partition to -freorder-blocks

Re: [SH] Introduce treg_set_expr

2015-01-26 Thread Oleg Endo
On Thu, 2015-01-22 at 23:46 +0100, Oleg Endo wrote: I will install this the patch from https://gcc.gnu.org/ml/gcc-patches/2015-01/msg01743.html in 24h if there are no further objections. The above mentioned patch has been committed as r220081. This is a small follow up patch that fixes two

[PATCH, committed] Fix gcc_jit_context_get_last_error docs

2015-01-26 Thread David Malcolm
gcc_jit_context_get_last_error was documented as returning a string that's valid for the rest of the lifetime of the context. In fact, the buffer becomes invalid if any other errors occur on the context. Fix the docs and header file comments to reflect this. Also, fix a couple of other minor jit

[rl78] avoid move-elim on volatile mems

2015-01-26 Thread DJ Delorie
See $subj. Committed. * config/rl78/rl78.c (move_elim_pass): Don't optimize away volatile memory references. Index: config/rl78/rl78.c === --- config/rl78/rl78.c (revision 220150) +++ config/rl78/rl78.c (working

Re: [RFC] POWER8 default for PPC64LE

2015-01-26 Thread Jakub Jelinek
On Sat, Jan 17, 2015 at 09:18:14PM -0500, David Edelsohn wrote: Thanks, David * config/rs6000/default64.h: Include rs6000-cpus.def. (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8). * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7. *

Fix PR testsuite/64712

2015-01-26 Thread Eric Botcazou
It's an uninitialized variable in a testcase I added back in 2008 that had been silent until we started to generate overflow checks by default. Tested on x86_64-suse-linux, applied on the mainline and 4.9 branch. 2015-01-26 Eric Botcazou ebotca...@adacore.com PR testsuite/64712

  1   2   >