Re: [PATCH 3/5] Run profile feedback tests with autofdo

2016-05-21 Thread Andi Kleen
On Sat, May 21, 2016 at 10:55:21PM +0200, Bernhard Reutner-Fischer wrote: > >@@ -313,6 +332,7 @@ proc profopt-execute { src } { > > # valid, by running it after dg-additional-files-options. > > foreach ext $prof_ext { > > profopt-target-cleanup $tmpdir $base $ext > >+

Re: [PATCH 3/5] Run profile feedback tests with autofdo

2016-05-21 Thread Bernhard Reutner-Fischer
On May 21, 2016 6:36:24 PM GMT+02:00, Andi Kleen wrote: >From: Andi Kleen >diff --git a/gcc/testsuite/lib/profopt.exp >b/gcc/testsuite/lib/profopt.exp >index 0aea6c4..4ddb10a 100644 >--- a/gcc/testsuite/lib/profopt.exp >+++

Re: [PATCH 2/5] Don't cause ICEs when auto profile file is not found with checking

2016-05-21 Thread Bernhard Reutner-Fischer
On May 21, 2016 6:36:23 PM GMT+02:00, Andi Kleen wrote: >From: Andi Kleen > >Currently, on a checking enabled compiler when -fauto-profile does >not find the profile feedback file it errors out with assertation >failures. Add proper errors for this

Re: [PATCH 1/5] Add gcc-auto-profile script

2016-05-21 Thread Bernhard Reutner-Fischer
On May 21, 2016 6:36:22 PM GMT+02:00, Andi Kleen wrote: >From: Andi Kleen >+if [ "$1" = "--kernel" ] ; then >+ FLAGS=k >+ shift >+fi >+if [ "$1" == "--all" ] ; then == is legacy, s/==/=/ >+ FLAGS=uk >+ shift >+fi >+ >+if ! grep -q Intel

[PATCH] Fix up a few i386 tests

2016-05-21 Thread Jakub Jelinek
Hi! While trying to look for bugs using the https://sourceware.org/ml/binutils/2016-05/msg00328.html hacks, in order to achive more testing I've also turned all dg-do compile tests into dg-do assemble, so that they would be assembled and I could watch out diagnostics. There are about 2 tests

Updated autofdo bootstrap and testing patches

2016-05-21 Thread Andi Kleen
Here's an updated version of the patchkit to enable autofdo bootstrap and testing. It also fixes some autofdo issues. The last patch is more a workaround (to make autofdo bootstrap not ICE), but may need a better fix. The main motivation is to get better test coverage for autofdo and also an

[PATCH 5/5] workaround for PR70427

2016-05-21 Thread Andi Kleen
From: Andi Kleen This makes autofdo bootstrap not crash. This is probably not the right fix, but for now it works for me. Not for submission. --- gcc/ipa-profile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/ipa-profile.c b/gcc/ipa-profile.c index

[PATCH 1/5] Add gcc-auto-profile script

2016-05-21 Thread Andi Kleen
From: Andi Kleen Using autofdo is currently something difficult. It requires using the model specific branches taken event, which differs on different CPUs. The example shown in the manual requires a special patched version of perf that is non standard, and also will likely

[PATCH 3/5] Run profile feedback tests with autofdo

2016-05-21 Thread Andi Kleen
From: Andi Kleen Extend the existing bprob and tree-prof tests to also run with autofdo. The test runtimes are really a bit too short for autofdo, but it's a reasonable sanity check. This only works natively for now. dejagnu doesn't seem to support a wrapper for unix

[PATCH 2/5] Don't cause ICEs when auto profile file is not found with checking

2016-05-21 Thread Andi Kleen
From: Andi Kleen Currently, on a checking enabled compiler when -fauto-profile does not find the profile feedback file it errors out with assertation failures. Add proper errors for this case. gcc/: 2016-05-21 Andi Kleen * auto-profile.c

[PR other/70945] Handle function_glibc_finite_math in offloading

2016-05-21 Thread Thomas Schwinge
Hi! As discussed in "Offloading: compatibility of target and offloading toolchains", there are situations where we have to do more work to ensure compatibility between target and offloading toolchains. The first thing I'm working on is math functions usage in

Re: [Patch, avr] Include INCOMING_FRAME_SP_OFFSET when printing stack usage

2016-05-21 Thread Denis Chertykov
2016-05-19 16:10 GMT+03:00 Senthil Kumar Selvaraj : > Ping! > > Regards > Senthil > > Senthil Kumar Selvaraj writes: > >> Hi, >> >> This trivial patch adds INCOMING_FRAME_SP_OFFSET to >> current_function_static_stack_size, thus fixing the 2 (or 3, for >> 3

Re: Ping: [patch, avr] Fix unrecognizable insn ICE for avr (PR71103)

2016-05-21 Thread Denis Chertykov
2016-05-20 16:13 GMT+03:00 Pitchumani Sivanupandi : > Ping! > > Note: Removed the garbled characters and added ChangeLog > -- > avr-gcc crashes for following test as it couldn't recognize the > instruction

Re: [PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-21 Thread Andreas Schwab
David Malcolm writes: > diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > new file mode 100644 > index 000..c5504f8 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > @@ -0,0 +1,58 @@ >

Re: [PATCH 2/3] Implement CALL_EXPR_MUST_TAIL_CALL

2016-05-21 Thread Andreas Schwab
David Malcolm writes: > diff --git a/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > new file mode 100644 > index 000..c5504f8 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/plugin/must-tail-call-2.c > @@ -0,0 +1,58 @@ >

Re: [nios2, committed] fix bad assertion

2016-05-21 Thread Chung-Lin Tang
On 2015/6/30 1:01 AM, Sandra Loosemore wrote: > When I was preparing to regression-test something else in a nios2-linux-gnu > build, I discovered it was ICE'ing while building > shared libraries with -fpic (glibc, libgomp). I tracked this down to having > started with r224048, but on further

Re: [PATCH][Testsuite] Force testing of vectorized builtins rather than inlined i387 asm

2016-05-21 Thread Uros Bizjak
On Fri, May 20, 2016 at 8:01 PM, Ilya Verbin wrote: > Hi! > > In some cases the i387 version of a math function may be inlined from math.h, > and the testcase (like gcc.target/i386/sse4_1-ceil-vec.c) will actually test > inlined asm instead of vectorized builtin. To fix this

Re: [PATCH] Use flag_general_regs_only with -mgeneral-regs-only

2016-05-21 Thread Uros Bizjak
On Fri, May 20, 2016 at 7:49 PM, H.J. Lu wrote: > On Fri, May 20, 2016 at 10:15 AM, Rainer Orth > wrote: >> "H.J. Lu" writes: >> >>> On Thu, May 12, 2016 at 10:54 AM, H.J. Lu wrote: >> Here is a

Re: [PATCH][Testsuite] Fix mips dsp testsuite mistakes

2016-05-21 Thread Maciej W. Rozycki
On Sat, 21 May 2016, Paul Hua wrote: > There are some mistakes in mips dsp testsuite. > > This patch fixing it. Thank you for your contribution, however you need to be more explicit with patch descriptions, and explain in detail what problem your change addresses, in this case what mistakes

[PATCH][Testsuite] Fix mips dsp testsuite mistakes

2016-05-21 Thread Paul Hua
Hi, There are some mistakes in mips dsp testsuite. This patch fixing it. Ok to commit? [mips] Fix mips dsp testsuite mistake. gcc/testsuite/gcc.target/mips/ *mips32-dsp-run.c: Fix mistake. Index: gcc/testsuite/ChangeLog

Re: [PATCH] Fix PR tree-optimization/71170

2016-05-21 Thread Kugan Vivekanandarajah
On 20 May 2016 at 21:07, Richard Biener wrote: > On Fri, May 20, 2016 at 1:51 AM, Kugan Vivekanandarajah > wrote: >> Hi Richard, >> >>> I think it should have the same rank as op or op + 1 which is the current >>> behavior. Sth else