Re: [PATCH] Use new dump scheme to emit loop unroll/peel summary info (issue6941070)

2012-12-20 Thread Bernhard Reutner-Fischer
On Mon, Dec 17, 2012 at 10:44:59PM -0800, Teresa Johnson wrote: >Index: tree-ssa-loop-ivcanon.c >=== >--- tree-ssa-loop-ivcanon.c(revision 194516) >+++ tree-ssa-loop-ivcanon.c(working copy) >@@ -639,22 +639,24 @@ unloop_loops (

[PATCH][ARM][thumb1] Reduce lr save for leaf function with non-far jump

2012-12-20 Thread Joey Ye
Current GCC thumb1 has an annoying problem that always assuming far branch. So it forces to save lr, even when unnecessarily. The most extreme case complained by partner is: // compiled with "-mthumb -mcpu=cortex-m0 -Os". void foo() { for (;;); } => foo: push{lr} // Crazy!!! .L2:

Re: Patch to enable unlimited polymorphism to gfortran

2012-12-20 Thread Dominique Dhumieres
Dear Paul, Apparently you have forgotten to commit the update for same_type_as_1.f03. Dominique

[Patch, wwwdocs] Update Fortran part of the GCC 4.8 release notes

2012-12-20 Thread Tobias Burnus
The following patch updates the Fortran part of the GCC 4.8 release notes at http://gcc.gnu.org/gcc-4.8/changes.html#fortran It adds quips for - CLASS(*) - The new BACKTRACE intrinsic - A compatibility notice I would like if someone could comment on the latter. I think it is time to explicitly

Re: [PATCH] Fix PR gcov-profile/55734 for bootstrapping with older compilers (issue6980044)

2012-12-20 Thread Jakub Jelinek
On Wed, Dec 19, 2012 at 10:14:26PM -0800, Teresa Johnson wrote: > Merged this pair into an #elif, but left the outer one (from the IN_LIBGCOV > check) since it looks clearer. > > New patch: > > 2012-12-19 Teresa Johnson > Jakub Jelinek > > PR gcov-profile/55734 > * gcov-

*ping* [patch, libfortran] Fix PR 30162, write with pipes

2012-12-20 Thread Thomas Koenig
Ping? Thomas Hi Janus, Oops, right. Here is the correct one. Regards Thomas wrong patch attached? It contains a hunk in frontend-passes.c, which seems totally unrelated ... Cheers, Janus 2012/12/15 Thomas Koenig : Hello world, the attached patch fixes the regression and

RE: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread Melik-adamyan, Areg
We checked, no significant gains or losses. -Original Message- From: H.J. Lu [mailto:hjl.to...@gmail.com] Sent: Friday, December 14, 2012 1:03 AM To: Jan Hubicka Cc: Jakub Jelinek; Xinliang David Li; GCC Patches; Teresa Johnson; Melik-adamyan, Areg Subject: Re: [PATCH i386]: Enable push

[PATCH] Fix PR55740

2012-12-20 Thread Richard Biener
The following fixes a fixup for loops when merging two basic-blocks. We didn't handle merging two loop headers well which the following patch addresses. LTO bootstrapped (which was broken before this patch) and tested on x86_64-unknown-linux-gnu, applied. Richard. 2012-12-20 Richard Biener

Re: [PATCH] Fix PR55740

2012-12-20 Thread Steven Bosscher
On Thu, Dec 20, 2012 at 1:43 PM, Richard Biener wrote: > --- 724,746 > > cfg_hooks->merge_blocks (a, b); > > if (current_loops != NULL) > { > ! /* If the block we merge into is a loop header do nothing unless ... > */ > ! if (a->loop_father->header == a) > ! {

Re: [PATCH] Fix PR55740

2012-12-20 Thread Richard Biener
On Thu, 20 Dec 2012, Steven Bosscher wrote: > On Thu, Dec 20, 2012 at 1:43 PM, Richard Biener wrote: > > --- 724,746 > > > > cfg_hooks->merge_blocks (a, b); > > > > if (current_loops != NULL) > > { > > ! /* If the block we merge into is a loop header do nothing unless > >

Re: [Patch, wwwdocs] Update Fortran part of the GCC 4.8 release notes

2012-12-20 Thread Paul Richard Thomas
Dear Tobias, Could you note that class(*) is complete up to the restriction to fixed length character values only? Thanks Paul On 20 December 2012 10:55, Tobias Burnus wrote: > The following patch updates the Fortran part of the GCC 4.8 release notes at > http://gcc.gnu.org/gcc-4.8/changes.htm

[PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Richard Biener
In the PR we perform expression replacement of an FP operation across a builtin call that sets the FP control register. This patch restricts replacement across calls further, from allowing all builtins to only allowing those without side-effects. Allowing replacement over calls at all was to not

Re: [PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Jakub Jelinek
On Thu, Dec 20, 2012 at 02:51:55PM +0100, Richard Biener wrote: > In the PR we perform expression replacement of an FP operation > across a builtin call that sets the FP control register. This > patch restricts replacement across calls further, from allowing > all builtins to only allowing those w

Re: [PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Richard Biener
On Thu, 20 Dec 2012, Jakub Jelinek wrote: > On Thu, Dec 20, 2012 at 02:51:55PM +0100, Richard Biener wrote: > > In the PR we perform expression replacement of an FP operation > > across a builtin call that sets the FP control register. This > > patch restricts replacement across calls further, fr

Re: [PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Richard Biener
On Thu, 20 Dec 2012, Richard Biener wrote: > On Thu, 20 Dec 2012, Jakub Jelinek wrote: > > > On Thu, Dec 20, 2012 at 02:51:55PM +0100, Richard Biener wrote: > > > In the PR we perform expression replacement of an FP operation > > > across a builtin call that sets the FP control register. This >

Re: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread H.J. Lu
On Thu, Dec 20, 2012 at 4:13 AM, Melik-adamyan, Areg wrote: > We checked, no significant gains or losses. > > -Original Message- > From: H.J. Lu [mailto:hjl.to...@gmail.com] > Sent: Friday, December 14, 2012 1:03 AM > To: Jan Hubicka > Cc: Jakub Jelinek; Xinliang David Li; GCC Patches; Te

Re: [PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Richard Biener
On Thu, 20 Dec 2012, Richard Biener wrote: > On Thu, 20 Dec 2012, Jakub Jelinek wrote: > > > On Thu, Dec 20, 2012 at 02:51:55PM +0100, Richard Biener wrote: > > > In the PR we perform expression replacement of an FP operation > > > across a builtin call that sets the FP control register. This >

[patch] fix libstdc++/55741 - use Sleep on mingw

2012-12-20 Thread Jonathan Wakely
PR libstdc++/55741 * acinclude.m4 (GLIBCXX_ENABLE_LIBSTDCXX_TIME): Check for Sleep. * config.h.in: Regenerate. * configure: Regenerate. * src/c++11/thread.cc (__sleep_for): Use Sleep if available. Tested by Kai (thanks), committed to trunk. commit 1149c65a98

Re: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread Jan Hubicka
> Hi Areg, > > Did you mean inlined memcpy/memset are as fast as > the ones in libc.so on both ia32 and Intel64? I would be interested in output of the stringop script. > > Please keep in mind that memcpy/memset in libc.a > may not be optimized. You must not use -static for > linking. In my se

Re: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread Jan Hubicka
> > Hi Areg, > > > > Did you mean inlined memcpy/memset are as fast as > > the ones in libc.so on both ia32 and Intel64? > > I would be interested in output of the stringop script. Also as far as I can remember, none of spec2k6 benchmarks is really stringop bound. On Spec2k GCC was quite bound

Re: [PATCH] Further restrict TER replacing over calls (PR55752)

2012-12-20 Thread Richard Biener
On Thu, 20 Dec 2012, Richard Biener wrote: > On Thu, 20 Dec 2012, Richard Biener wrote: > > > On Thu, 20 Dec 2012, Jakub Jelinek wrote: > > > > > On Thu, Dec 20, 2012 at 02:51:55PM +0100, Richard Biener wrote: > > > > In the PR we perform expression replacement of an FP operation > > > > across

Re: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread H.J. Lu
On Thu, Dec 20, 2012 at 7:06 AM, Jan Hubicka wrote: >> > Hi Areg, >> > >> > Did you mean inlined memcpy/memset are as fast as >> > the ones in libc.so on both ia32 and Intel64? >> >> I would be interested in output of the stringop script. > > Also as far as I can remember, none of spec2k6 benchmar

Re: [Patch, wwwdocs] Update Fortran part of the GCC 4.8 release notes

2012-12-20 Thread Tobias Burnus
Dear Paul, Paul Richard Thomas wrote: Could you note that class(*) is complete up to the restriction to fixed length character values only? Done. See http://gcc.gnu.org/gcc-4.8/changes.html#fortran and http://gcc.gnu.org/wiki/GFortran#GCC4.8 I admit that the BACKTRACE announcement is sligh

Re: [PATCH] Fix combined tree for LTO

2012-12-20 Thread Thomas Schwinge
Hi! On Sat, 10 Nov 2012 10:32:07 -0800, Andrew Pinski wrote: > 2012-11-10 Andrew Pinski > > PR bootstrap/55202 > * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new" > or "collect-ld". > * configure: Regenerate. > Index: configure.ac > ===

Fix PR55761

2012-12-20 Thread Paulo Matos
2012-12-20 Paulo Matos PR tree-optimization/55761 * tree-tailcall.c (process_assignment): Use build_int_cst only for integral types, for every other type that managed to pass all conditions use fold_build1. pr55761.patch Description: pr55761.patch

Re: Fix PR55761

2012-12-20 Thread Richard Biener
On Thu, Dec 20, 2012 at 5:06 PM, Paulo Matos wrote: > 2012-12-20 Paulo Matos > > PR tree-optimization/55761 > * tree-tailcall.c (process_assignment): Use build_int_cst only for > integral types, > for every other type that managed to pass all conditions use > fold_build1

Re: [google 4.7] atomic update of profile counters (issue6965050)

2012-12-20 Thread Jan Hubicka
> On Wed, Dec 19, 2012 at 4:29 PM, Andrew Pinski wrote: > > > > On Wed, Dec 19, 2012 at 12:08 PM, Rong Xu wrote: > > > Hi, > > > > > > This patch adds the supprot of atomic update the profile counters. > > > Tested with google internal benchmarks and fdo kernel build. > > > > I think you should u

RE: Fix PR55761

2012-12-20 Thread Paulo Matos
> -Original Message- > From: Richard Biener [mailto:richard.guent...@gmail.com] > Sent: 20 December 2012 16:13 > To: Paulo Matos > Cc: gcc-patches@gcc.gnu.org > Subject: Re: Fix PR55761 > > On Thu, Dec 20, 2012 at 5:06 PM, Paulo Matos wrote: > > 2012-12-20 Paulo Matos > > > > PR

Re: [google 4.7] atomic update of profile counters (issue6965050)

2012-12-20 Thread Andrew Pinski
On Thu, Dec 20, 2012 at 8:20 AM, Jan Hubicka wrote: >> On Wed, Dec 19, 2012 at 4:29 PM, Andrew Pinski wrote: >> > >> > On Wed, Dec 19, 2012 at 12:08 PM, Rong Xu wrote: >> > > Hi, >> > > >> > > This patch adds the supprot of atomic update the profile counters. >> > > Tested with google internal b

[PATCH] Fix postincrement/decrement of a bitfield (PR middle-end/55750)

2012-12-20 Thread Jakub Jelinek
Hi! As the following testcase shows, the !is_gimple_min_lval code would for bit fields want to take address of those bitfields and dereference it, which of course leads to ICEs. As discussed with Richard on IRC, this code is not needed at all since PR48814 fix, so there is no need to teach it abo

Re: [Patch, wwwdocs] Update Fortran part of the GCC 4.8 release notes

2012-12-20 Thread Janus Weil
> I admit that the BACKTRACE announcement is slightly premature, but I assume > that Janus will commit the patch very soon. yes, it's only a matter of a few hours now ;) Cheers, Janus

Re: [PATCH] Use new dump scheme to emit loop unroll/peel summary info (issue6941070)

2012-12-20 Thread Teresa Johnson
On Thu, Dec 20, 2012 at 1:21 AM, Bernhard Reutner-Fischer wrote: Thanks for your comments. Responses inlined below, and new patch include below. > On Mon, Dec 17, 2012 at 10:44:59PM -0800, Teresa Johnson wrote: >>Index: tree-ssa-loop-ivcanon.c >>==

Re: [PATCH] Fix postincrement/decrement of a bitfield (PR middle-end/55750)

2012-12-20 Thread rguenther
Jakub Jelinek wrote: >Hi! > >As the following testcase shows, the !is_gimple_min_lval code would for >bit >fields want to take address of those bitfields and dereference it, >which of >course leads to ICEs. > >As discussed with Richard on IRC, this code is not needed at all since >PR48814 fix, so

[PATCH, ARM] Initial pipeline description for Cortex-A7

2012-12-20 Thread Greta Yorsh
Currently, GCC uses generic ARMv7-A tuning for Cortex-A7. This patch adds an initial pipeline description for Cortex-A7. Details: * integer/vfp is based on the pipeline description for Cortex-A5, * models dual issue in limited circumstances using simple_alu_imm and simple_alu_shift type attribute (

[patch] fix install dependencies for target libraries

2012-12-20 Thread Matthias Klose
This was seen with the libgo installation [1], but from my point of view can happen when the install target is called with -j >1, libtool seems to fall back to the system libraries if the library in the install location is not available (which is always the case if you install into an empty dir set

Re: [patch] fix install dependencies for target libraries

2012-12-20 Thread Ian Lance Taylor
On Thu, Dec 20, 2012 at 10:22 AM, Matthias Klose wrote: > This was seen with the libgo installation [1], but from my point of view can > happen when the install target is called with -j >1, libtool seems to fall > back > to the system libraries if the library in the install location is not > ava

Re: [patch] fix install dependencies for target libraries

2012-12-20 Thread Matthias Klose
Am 20.12.2012 20:11, schrieb Ian Lance Taylor: > On Thu, Dec 20, 2012 at 10:22 AM, Matthias Klose wrote: >> This was seen with the libgo installation [1], but from my point of view can >> happen when the install target is called with -j >1, libtool seems to fall >> back >> to the system libraries

Re: [google 4.7] fdo build for linux kernel (issue 6968046)

2012-12-20 Thread Rong Xu
On Wed, Dec 19, 2012 at 5:22 PM, Rong Xu wrote: > On Wed, Dec 19, 2012 at 5:04 PM, wrote: >> The change in gcov-io.h is from a different patch. > > sorry. here is the patch for gcov-io.h: > > Index: gcov-io.h > === > --- gcov-io.h

Re: [fortran, patch] Allow displaying backtraces from user code

2012-12-20 Thread Janus Weil
Attached is a new patch, which expands the documentation according to your proposal, and uses the name BACKTRACE. I hope that both Janne and Tobias can agree with this naming decision ... >>> >>> Looks fine from my side. >> >> Great, thanks. Janne? > > Yes, Ok for trunk. Thanks agai

Re: [google 4.7] atomic update of profile counters (issue6965050)

2012-12-20 Thread Rong Xu
we have this patch primarily for getting valid profile counts. we observe that for some high-threaded programs, we are getting poor counter due to data racing of counter update (like counter value is only 15% of what it supposed to be for a 10-thread program). In general, enabling atomic updates s

Re: [google 4.7] atomic update of profile counters (issue6965050)

2012-12-20 Thread Andrew Pinski
On Thu, Dec 20, 2012 at 11:35 AM, Rong Xu wrote: > we have this patch primarily for getting valid profile counts. we > observe that for some high-threaded programs, we are getting poor > counter due to data racing of counter update (like counter value is > only 15% of what it supposed to be for a

Re: [google 4.7] fdo build for linux kernel (issue 6968046)

2012-12-20 Thread Xinliang David Li
It depends on the value distribution . David On Thu, Dec 20, 2012 at 11:30 AM, Rong Xu wrote: > On Wed, Dec 19, 2012 at 5:22 PM, Rong Xu wrote: >> On Wed, Dec 19, 2012 at 5:04 PM, wrote: >>> The change in gcov-io.h is from a different patch. >> >> sorry. here is the patch for gcov-io.h: >> >

[patch] std::unique_ptr improvements

2012-12-20 Thread Jonathan Wakely
This patch started when I noticed that it's not possibly to construct a shared_ptr from unique_ptr, then I discovered we don't use D::pointer if it exists, and there were a number of other non-conformance issues with our std::unique_ptr. I ended up fixing them by implementing Geoffrey's proposed r

Re: [google 4.7] fdo build for linux kernel (issue 6968046)

2012-12-20 Thread Rong Xu
that's right. but there is no way to predict the pattern. what I meant was as far as it does not introduce major slow-down in dumping profile, I'd like to use the simpler version. what do you think? -Rong On Thu, Dec 20, 2012 at 11:54 AM, Xinliang David Li wrote: > It depends on the value distr

Re: [patch] fix install dependencies for target libraries

2012-12-20 Thread Tobias Burnus
Am 20.12.2012 19:22, schrieb Matthias Klose: This was seen with the libgo installation [1], but from my point of view can happen when the install target is called with -j >1, libtool seems to fall back to the system libraries if the library in the install location is not available (which is alway

Re: [Patch, fortran] PR55763 - Issues with some simpler CLASS(*) programs

2012-12-20 Thread Tobias Burnus
Paul Richard Thomas wrote: Thanks to Tobias for coming up so quickly with class(*) bugs! That was simple: I could mine Reinhold Bader's collection. Only the ICE-on-invalid part of the test case is mine. Please credit him in/for the test case. Bootstrapped and regtested on FC17/x86_64 - OK

Re: [wwwdocs,Java] Obsolete GCJ FAQ entry for Solaris?

2012-12-20 Thread Gerald Pfeifer
PING. On Fri, 2 Nov 2012, Gerald Pfeifer wrote: > Rainer (or others), > > the FAQ entry below seems obsolete to me (dates back more than a > decade). Shall we remove it, or is there something else we still > should document (in addition to gcc/doc/install.texi)? > > Gerald > > Index: faq.html

fix libquadmath build regression

2012-12-20 Thread Alexandre Oliva
Revision 193063 brought in calls to fraiseexcept() into libquadmath, which caused a build regression on Fedora 16 (BLAG 160k actually) x86_64 while building an i686-linux-gnu native toolchain. The problem is that glibc has an extern inline definition of fraiseexcept that is introduced by including

[PR libmudflap/53359] don't register symbols not emitted

2012-12-20 Thread Alexandre Oliva
libmudflap emits a global initializer that registers memory ranges for global data symbols. However, even if IPA decides not to emit a symbol because it's unused, we'd still emit registration sequences for them in some cases, which, in the PR testcase, would result in TOC references to the undefin

atomic update of profile counters (issue7000044)

2012-12-20 Thread Rong Xu
Hi, This patch adds support of atomic update of profiles counters. The goal is to improve the poor counter values for highly thread programs. The atomic update is under a new option -fprofile-gen-atomic= N=0: default, no atomic update N=1: atomic update edge counters. N=2: atomic update some of

Re: [PATCH i386]: Enable push/pop in pro/epilogue for modern CPUs

2012-12-20 Thread Xinliang David Li
Ahmad has helped doing some atom performance testing (ChromeOS benchmarks) with this patch. In summary, there is no statistically significant regression seen. There is one improvement of about +1.9% (v8 benchmark) which looks real. David On Wed, Dec 12, 2012 at 9:24 AM, Xinliang David Li wrote:

Re: [Patch, PR 54128] ira.c change to fix mips bootstrap

2012-12-20 Thread Jakub Jelinek
On Fri, Aug 31, 2012 at 10:58:51AM -0700, Steve Ellcey wrote: > Here is my patch to fix the bootstrap comparision failure (PR 54128) on > MIPS. The reason for the comparision failure was a difference in > register usage and I tracked it down to build_insn_chain which checked > all instructions fo