RE: [PATCH, GCC, stage1] Fallback to copy-prop if constant-prop not possible

2015-03-29 Thread Thomas Preud'homme
> From: gcc-patches-ow...@gcc.gnu.org [mailto:gcc-patches- > ow...@gcc.gnu.org] On Behalf Of Thomas Preud'homme > > FYI testing your patch with the one cprop_reg_p negated as said in my > previous email shows no regression on arm-none-eabi cross-compiler > targeting Cortex-M3. Testing for x86_64 i

[PING**2] [PATCH] Fix another wrong-code bug with -fstrict-volatile-bitfields

2015-03-29 Thread Bernd Edlinger
Ping again... it's a wrong code bug. Thanks Bernd. > Date: Mon, 23 Mar 2015 10:09:35 +0100 > > Hi, > > I'd like to ping for this patch, which I hope can still go in the gcc-5 > release: > See https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00817.html for the > patch files. > > > Thanks, > Bernd.

Silence merge warnings on artiical types

2015-03-29 Thread Jan Hubicka
Hi, when compiling C++ program that define different number of virtual method in different classes, we output warnings about their virtual tables being of different type. THese warnings looks ugly and we are able to diagnose the situation in more sensible way. This patch simply silences all warnin

Re: PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE

2015-03-29 Thread H.J. Lu
On Sun, Mar 29, 2015 at 7:34 PM, H.J. Lu wrote: > On Sun, Mar 29, 2015 at 7:25 PM, H.J. Lu wrote: >> We shouldn't call external function, __cpu_indicator_init, while an object >> is being relocated since its .got.plt section hasn't been updated. It >> works for non-PIE since no update on .got.pl

Re: PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE

2015-03-29 Thread H.J. Lu
On Sun, Mar 29, 2015 at 7:25 PM, H.J. Lu wrote: > We shouldn't call external function, __cpu_indicator_init, while an object > is being relocated since its .got.plt section hasn't been updated. It > works for non-PIE since no update on .got.plt section is required. This > patch hides __cpu_indic

PATCH] PR target/65612: Multiversioning doesn't work with DSO nor PIE

2015-03-29 Thread H.J. Lu
We shouldn't call external function, __cpu_indicator_init, while an object is being relocated since its .got.plt section hasn't been updated. It works for non-PIE since no update on .got.plt section is required. This patch hides __cpu_indicator_init/__cpu_model from linker to force linker to reso

[PATCH] Make maybe_cast_to_ptrmode function as static

2015-03-29 Thread Honggyu Kim
Hi, This patch makes maybe_cast_to_ptrmode function in asan.c as static because the function is not called outside of the file. Is it okay for trunk? Honggyu 2015-03-30 Honggyu Kim * asan.c (maybe_cast_to_ptrmode): Make static. --- gcc/asan.c |2 +- 1 file changed, 1 insertion(+

Inliner badness metric tweak

2015-03-29 Thread Jan Hubicka
Hi, this patch makes inline metric to be estimate_speedup (over) edge_growth^2*overall_growth This is intended to make stronger push on inliner to preffer functions with smaller growth and do not take overall growth (that is expected unit growth after inlini

Re: Optimize lto location stremaing

2015-03-29 Thread Jan Hubicka
> On Sun, Mar 29, 2015 at 07:47:18AM +0200, Jan Hubicka wrote: > > Hi, > > I actually got idea how to make partitioning safe for named labels w/o > > going the difficult > > route of makeing them part of symbol table. Will look into that tonight or > > tomorrow. > > > Also there's a juicy ICE wi

Re: Optimize lto location stremaing

2015-03-29 Thread Jan Hubicka
> > Unfortunately the proper fix did not make it to the mainlie (it probably > > will > > next stage1). Building kernel is however important. Can you please fill it > > in > > and mark it as a regression? I think I will implement a hack and track > > everything > > that refers user named labels

Re: [RFC] Dynamically aligning the stack

2015-03-29 Thread Mike Stump
On Mar 26, 2015, at 4:28 PM, Steve Ellcey wrote: > I am looking at ways of dynamically realigning the runtime stack in GCC. Ick, sorry to hear it. The best approach is to just tell the powers that be that an abi roll is the best, cheapest and most reliable way to fix it. [ ducks ]

Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list

2015-03-29 Thread John David Anglin
On 2015-03-29, at 4:02 PM, Andreas Tobler wrote: > From the testsuite pov. ok, but I do not have a picture of the trunk > check in restrictions regarding the next release. Regression and documentation fixes are still okay. I believe this change fixes a regression in testsuite behavior. I'm wil

Re: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Arnaud Charlet
> So, FAOD, you're OK with my applying the patch to trunk for gcc-5? Yes, that's fine.

Re: [PATCH] libffi testsuite: Use split to ensure valid tcl list

2015-03-29 Thread Andreas Tobler
On 28.03.15 18:59, John David Anglin wrote: The attached change fixes tcl errors that occur running the complex.exp and go.exp test sets. See: . Tested on hppa2.0w-hp-hpux11.11. Okay for trunk? From the testsuite pov. ok, but I do not have

Re: [PATCH] libffi testsuite: Don't run testsuite/libffi.call/float2.c on hppa*-*-hpux*

2015-03-29 Thread Andreas Tobler
On 28.03.15 20:25, John David Anglin wrote: The libffi.call/float2.c test uses fabsl which was introduced in c99 and isn't available on hppa*-*-hpux*. In order to use the target selector with dg-run, I need to load target-supports-dg.exp in lib/libffi.exp. Tested on hppa2.0w-hp-hpux11.11. Oka

[rfc, stage 1] default to -fno-delete-null-pointer-checks on nios2-elf

2015-03-29 Thread Sandra Loosemore
As the outcome of this discussion last month about unexpected behavior of -fisolate-erroneous-paths-dereference https://gcc.gnu.org/ml/gcc/2015-02/msg00163.html Altera has asked us to turn off -fdelete-null-pointer-checks on nios2-elf targets. Presently, the AVR and CR16 back ends completely

Re: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Iain Sandoe
On 29 Mar 2015, at 20:01, Arnaud Charlet wrote: >> (cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo sinfo.h ) >> raised PROGRAM_ERROR : s-atocou.adb:57 explicit raise >> >> Looking at this code, it indicates that it is a dummy implementation for >> platforms without an atomic increment supp

Re: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Arnaud Charlet
> (cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo sinfo.h ) > raised PROGRAM_ERROR : s-atocou.adb:57 explicit raise > > Looking at this code, it indicates that it is a dummy implementation for > platforms without an atomic increment support. > > hence, I concluded (possibly erroneously) tha

Re: Optimize lto location stremaing

2015-03-29 Thread Andi Kleen
On Sun, Mar 29, 2015 at 07:47:18AM +0200, Jan Hubicka wrote: > Hi, > I actually got idea how to make partitioning safe for named labels w/o going > the difficult > route of makeing them part of symbol table. Will look into that tonight or > tomorrow. > > Also there's a juicy ICE with that worked

Re: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Iain Sandoe
Hi Arnaud, On 29 Mar 2015, at 19:43, Arnaud Charlet wrote: >> Currently Ada bootstrap is broken for bootstrap compiler == gcc-trunk, and >> platform == powerpc-darwin9 (although it is possible to bootstrap with >> gcc-4.9). >> >> The reason is that generations of sinfo.h appears now to _require_

Re: [PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Arnaud Charlet
> Currently Ada bootstrap is broken for bootstrap compiler == gcc-trunk, and > platform == powerpc-darwin9 (although it is possible to bootstrap with > gcc-4.9). > > The reason is that generations of sinfo.h appears now to _require_ support > for atomics (I assume that's intended). No, that's def

[PATCH, Ada] Fix powerpc-darwin bootstrap with gcc-trunk.

2015-03-29 Thread Iain Sandoe
Hi Arnaud, Currently Ada bootstrap is broken for bootstrap compiler == gcc-trunk, and platform == powerpc-darwin9 (although it is possible to bootstrap with gcc-4.9). The reason is that generations of sinfo.h appears now to _require_ support for atomics (I assume that's intended). In fact, w.r

Re: Optimize lto location stremaing

2015-03-29 Thread Andi Kleen
> Unfortunately the proper fix did not make it to the mainlie (it probably will > next stage1). Building kernel is however important. Can you please fill it in > and mark it as a regression? I think I will implement a hack and track > everything > that refers user named labels and force it to par

[PATCH, rs6000, testsuite, PR65456] Changes for unaligned vector load/store support on POWER8

2015-03-29 Thread Bill Schmidt
Hi, This is a follow-up to https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00103.html, which adds support for faster unaligned vector memory accesses on POWER8. As pointed out in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65456, there was a piece missing here. The target macro SLOW_UNALIGNED_ACC

Re: [PATCH] fortran/65429 -- don't dereference a null pointer

2015-03-29 Thread Steve Kargl
On Sat, Mar 28, 2015 at 01:01:57AM +0100, Dominique Dhumieres wrote: > > AFAICT your test succeeds without your patch and does not test that the ICE > reported by FX is gone (indeed it is with your patch). > New patch and testcase. The ChangeLog entries are in the original email. Built and te

ipa-cp heuristic tweek

2015-03-29 Thread Jan Hubicka
Hi, this patch improve crafty performance by avoiding ipa-cp clonning of Search function that specializes the first iteration of the recursion. The patch is by Martin, I only tested it and cleaned up code in count_callers and set_single_call_flag Bootstrapped/regtested x86_64-linux, comitted.

[committed, fortran] Test case for PR 65563

2015-03-29 Thread Thomas Koenig
I have committed the test case from PR 65563 as obvious, since the bug appears to have been fixed some time ago. 2015-03-29 Thomas Koenig PR libgfortran/65563 * gfortran.dg/open_errors_2.f90: New test. Regards Thomas ! { dg-do run } ! { dg-shouldfail "runtime error" } ! { d

Re: [PATCH v2] New testcase to check parameter passing bug

2015-03-29 Thread Honggyu Kim
On Wed, Mar 25, 2015 at 02:05:37PM -, Kyrill Tkachov wrote: > > > > -Original Message- > > From: Jeff Law [mailto:l...@redhat.com] > > Sent: 25 March 2015 12:27 > > To: Honggyu Kim; gcc-patches@gcc.gnu.org > > Cc: Kyrylo Tkachov; seg...@kernel.crashing.org; christophe.l...@st.com > >

Re: [PATCH][expr.c] PR 65358 Avoid clobbering partial argument during sibcall

2015-03-29 Thread Honggyu Kim
On Thu, Mar 19, 2015 at 02:39:11PM +, Kyrill Tkachov wrote: > Hi all, > > This patch fixes PR 65358. For details look at the excellent write-up > by Honggyu in bugzilla. The problem is that we're trying to pass a struct > partially on the stack and partially in regs during a tail-call optimisa