[c++-concepts] Fix inversion of -fconcepts

2014-10-18 Thread Braden Obrzut
Trivial patch to fix the inversion of -fconcepts and -fno-concepts. 2014-10-18 Braden Obrzut * gcc/c-family/c.opt (flag_concepts): The concepts option was inverted. diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index c1645ea..c165477 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-fa

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Xinliang David Li
On Sat, Oct 18, 2014 at 4:22 PM, Jan Hubicka wrote: >> >> The virtual functions will be emitted in some modules, right? If they >> are hot, they will be included with the auxiliary modules. Note that >> LIPO indirect call profile will point to the comdat copy that is >> picked by the linker in the

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Teresa Johnson
Hi Honza, As David says, we will do some more experiments with the change you suggest and speculative devirtualization, but we needed to make this change in part to get an internal release out. One of the issues was a recent change to cp/decl2.c to make virtual function decls needed under flag_dev

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Teresa Johnson
On Sat, Oct 18, 2014 at 4:26 PM, Jan Hubicka wrote: >> On Sat, Oct 18, 2014 at 3:27 PM, Jan Hubicka wrote: >> >> The difference in instrumentation runtime is huge -- as topn profiler >> >> is pretty expensive to run. >> >> >> >> With FDO, it is probably better to make early inlining more aggressi

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Xinliang David Li
On Sat, Oct 18, 2014 at 4:26 PM, Jan Hubicka wrote: >> On Sat, Oct 18, 2014 at 3:27 PM, Jan Hubicka wrote: >> >> The difference in instrumentation runtime is huge -- as topn profiler >> >> is pretty expensive to run. >> >> >> >> With FDO, it is probably better to make early inlining more aggressi

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Jan Hubicka
> On Sat, Oct 18, 2014 at 3:27 PM, Jan Hubicka wrote: > >> The difference in instrumentation runtime is huge -- as topn profiler > >> is pretty expensive to run. > >> > >> With FDO, it is probably better to make early inlining more aggressive > >> in order to get more context sensitive profiling.

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Jan Hubicka
> > The virtual functions will be emitted in some modules, right? If they > are hot, they will be included with the auxiliary modules. Note that > LIPO indirect call profile will point to the comdat copy that is > picked by the linker in the instrumentation build, so it guarantees to > exist. If

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Xinliang David Li
On Sat, Oct 18, 2014 at 3:27 PM, Jan Hubicka wrote: >> The difference in instrumentation runtime is huge -- as topn profiler >> is pretty expensive to run. >> >> With FDO, it is probably better to make early inlining more aggressive >> in order to get more context sensitive profiling. > > I agree

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Xinliang David Li
On Sat, Oct 18, 2014 at 3:23 PM, Jan Hubicka wrote: >> Devirtualization needs more tuning to be usable internally. We have >> seen 1.6% size increase on average, but unnoticable performance > > Does that happen with -fno-devirtualize-speculatively? > Not sure -- I will do some experiment. >> imp

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Jan Hubicka
> The difference in instrumentation runtime is huge -- as topn profiler > is pretty expensive to run. > > With FDO, it is probably better to make early inlining more aggressive > in order to get more context sensitive profiling. I agree with that, I just would like to understand where increasing

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Jan Hubicka
> Devirtualization needs more tuning to be usable internally. We have > seen 1.6% size increase on average, but unnoticable performance Does that happen with -fno-devirtualize-speculatively? > improvement with this option on. I would rather use the size budget to > make inliner more aggressive :)

Re: update address taken: don't drop clobbers

2014-10-18 Thread Marc Glisse
On Thu, 10 Jul 2014, Richard Biener wrote: On Sun, Jun 29, 2014 at 12:33 AM, Marc Glisse wrote: we currently drop clobbers on variables whose address is not taken anymore. However, rewrite_stmt has code to replace them with an SSA_NAME with a default definition (an uninitialized variable), an

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Xinliang David Li
ok. David On Sat, Oct 18, 2014 at 9:26 AM, Teresa Johnson wrote: > Increasing the number of early inliner iterations from 1 to 2 enables more > indirect calls to be promoted/inlined before instrumentation. This in turn > reduces the instrumentation overhead, particularly for more expensive indir

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Xinliang David Li
The difference in instrumentation runtime is huge -- as topn profiler is pretty expensive to run. With FDO, it is probably better to make early inlining more aggressive in order to get more context sensitive profiling. David On Sat, Oct 18, 2014 at 10:05 AM, Jan Hubicka wrote: >> Increasing the

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Xinliang David Li
Devirtualization needs more tuning to be usable internally. We have seen 1.6% size increase on average, but unnoticable performance improvement with this option on. I would rather use the size budget to make inliner more aggressive :) For instrumentation build, some of our builds will reach the bu

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Xinliang David Li
ok. David On Sat, Oct 18, 2014 at 9:25 AM, Teresa Johnson wrote: > Disabling devirtualization reduces code size, both for instrumentation > (because > many more virtual functions are kept longer and therefore instrumented) and > for > normal optimization. > > Patch attached. Passes internal te

[PATCH] Fix PR preprocessor/42014

2014-10-18 Thread Krzesimir Nowak
gcc/Changelog: 2014-10-18 Krzesimir Nowak * diagnostic.c (diagnostic_report_from): New function. It prints one line from include chain. (diagnostic_report_current_module): Use the above function. gcc/testsuite/ChangeLog: 2014-10-18 Krzesimir Nowak * c-c++-common/cpp/pr42014.c: New. * c-c

[PATCH] PR preprocessor/42014

2014-10-18 Thread Krzesimir Nowak
Hello. This is my first patch for GCC. I already started a paperwork for copyright assignment (sent an email to fsf-records at gnu org) - waiting for response. So, about this patch - it basically removes column printing from "In file included from ..." lines, as the column information always retu

Re: [libstdc++ PATCH] More Fundamentals v1 variable templates

2014-10-18 Thread Ville Voutilainen
On 18 October 2014 23:18, Ville Voutilainen wrote: > Tested on Linux-x64. > > 2014-10-18 Ville Voutilainen > > Implement more Library Fundamentals v1 variable templates for > type traits. > * include/Makefile.am: Add ratio, chrono and system_error. > * include/experimental/chron

[libstdc++ PATCH] More Fundamentals v1 variable templates

2014-10-18 Thread Ville Voutilainen
Tested on Linux-x64. 2014-10-18 Ville Voutilainen Implement more Library Fundamentals v1 variable templates for type traits. * include/Makefile.am: Add ratio, chrono and system_error. * include/experimental/chrono: New. * include/experimental/ratio: Likewise. * include/

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Jan Hubicka
> Disabling devirtualization reduces code size, both for instrumentation > (because > many more virtual functions are kept longer and therefore instrumented) and > for > normal optimization. OK, with profile instrumentation (that you seem to try to minimize) i can see how you get noticeably more

Re: [GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Jan Hubicka
> Increasing the number of early inliner iterations from 1 to 2 enables more > indirect calls to be promoted/inlined before instrumentation. This in turn > reduces the instrumentation overhead, particularly for more expensive indirect > call topn profiling. How much difference you get here? One po

Re: [GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Jan Hubicka
> Disabling devirtualization reduces code size, both for instrumentation > (because > many more virtual functions are kept longer and therefore instrumented) and > for > normal optimization. Can you refer bit more on the problem? Full devirtualization should not increase code size, speculative d

Re: [PATCH doc] Explain options precedence and difference between -pedantic-errors and -Werror=pedantic

2014-10-18 Thread Manuel López-Ibáñez
On 18 October 2014 02:13, Joseph S. Myers wrote: > On Sat, 18 Oct 2014, Manuel López-Ibáñez wrote: > >> Can we make "possibly in some other cases" more concrete? Otherwise, > > Cases where something about the code is not defined by the base standard, > but a diagnostic is not required. -pedantic

[GOOGLE] Increase max-early-inliner-iterations to 2 for profile-gen and use

2014-10-18 Thread Teresa Johnson
Increasing the number of early inliner iterations from 1 to 2 enables more indirect calls to be promoted/inlined before instrumentation. This in turn reduces the instrumentation overhead, particularly for more expensive indirect call topn profiling. Passes internal testing and regression tests. Ok

[GOOGLE] Disable -fdevirtualize by default

2014-10-18 Thread Teresa Johnson
Disabling devirtualization reduces code size, both for instrumentation (because many more virtual functions are kept longer and therefore instrumented) and for normal optimization. Patch attached. Passes internal testing and regression tests. Ok for google/4_9? Thanks, Teresa -- Teresa Johnson

[committed] Remove hppa -mjump-in-delay option

2014-10-18 Thread John David Anglin
The attached change removes support for the hppa -mjump-in-delay option. The option was already overridden on PA 8000 and later hardware, and on ELF targets. It causes problems for debuggers and adds significant overhead for very little gain. I'm looking at updating the fast indirect call

Re: [PATH, libgfortran] PR 63589 Fix find_addr2line

2014-10-18 Thread Steve Kargl
On Sat, Oct 18, 2014 at 05:38:16PM +0300, Janne Blomqvist wrote: > > Benoit Lodej reported on the fortran list a bug in find_addr2line, > namely that if the PATH string does not end in ":", the last PATH > element is not tested. Rather than fixing the current implementation, > I rewrote it in a si

[PATH, libgfortran] PR 63589 Fix find_addr2line

2014-10-18 Thread Janne Blomqvist
Hi, Benoit Lodej reported on the fortran list a bug in find_addr2line, namely that if the PATH string does not end in ":", the last PATH element is not tested. Rather than fixing the current implementation, I rewrote it in a simpler fashion by using the strtok_r function. Tested that it fixes the

Re: [PATCH] PR36312

2014-10-18 Thread Anthony Brandon
I didn't start the paper work yet. I'll get started on it. For the changelog entry, I didn't change anything to that function, but mklog gives an entry for it. I think it's because the new function is added after it and at the end if the file. On Sat, Oct 18, 2014 at 3:15 PM, Marc Glisse wrote:

Re: [PATCH] PR36312

2014-10-18 Thread Marc Glisse
On Sat, 18 Oct 2014, Anthony Brandon wrote: I'm a new contributor Welcome! I don't yet have a copyright assignment Did you start the paperwork? * filename_cmp.c (filename_eq): No change. I didn't look at the patch, but that's a confusing ChangeLog entry. Did you change somethin

Re: [PATCH] PR36312

2014-10-18 Thread Anthony Brandon
Never mind about functions.texi. I figured out how to do it. Here is the new diff and changelog. libiberty/ChangeLog: 2014-10-18 Anthony Brandon * filename_cmp.c (filename_eq): No change. (canonical_filename_eq): New function to check if file names are the same. * func

Re: [SH][committed] Fix excess failures in SH tests caused by switch to GNU11

2014-10-18 Thread Oleg Endo
On Thu, 2014-10-16 at 23:42 +0200, Oleg Endo wrote: > Hi, > > Attached patch fixes warnings in some of the SH test cases which are > caused by the switch to GNU11. Committed as r216351. > ... and another one, which I missed. Committed as r216426. Cheers, Oleg gcc/testsuite/ChangeLog:

[x86, 2/n] Replace builtins with vector extensions

2014-10-18 Thread Marc Glisse
Hello, this time, +-* for 128 bit integer vectors. I am using an unsigned type so the compiler knows that we expect wrapping. I don't know why Intel's description of mullo insists that the multiplication is signed, that only matters for the high part... Next parts (waiting for approval for t

[testsuite][committed] Move gcc.dg/attr-isr.c to gcc.target/sh/attr-isr.c

2014-10-18 Thread Oleg Endo
Hi, The gcc.dg/attr-isr.c test case is pretty much SH specific. Thus, moved to gcc.target/sh via svn mv, hence no patch. Committed as r216425. Cheers, Oleg gcc/testsuite/ChangeLog: * gcc.dg/attr-isr.c: Move SH specific test to ... * gcc.target/sh/attr-isr.c: ... here.

[SH][committed] PR 53513 - Add __builtin_sh_get_fpscr, __builtin_sh_set_fpscr

2014-10-18 Thread Oleg Endo
Hi, As discussed in the PR, this adds two new SH built-in functions __builtin_sh_get_fpscr __builtin_sh_set_fpscr. Tested on r216173 with make -k check RUNTESTFLAGS="--target_board=sh-sim\{-m4/-ml,-m4/-mb}" and no new failures. Committed as r216424. Cheers, Oleg gcc/ChangeLog: PR t

[PATCH] PR36312

2014-10-18 Thread Anthony Brandon
Hi, I'm a new contributor and I don't yet have a copyright assignment or commit access. I took the patch from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36312 and made some changes. This patch makes GCC check if any of the input files is the same as the output file specified with -o, and if so gi

Re: [x86] Replace builtins with vector extensions

2014-10-18 Thread Marc Glisse
On Fri, 17 Oct 2014, Marc Glisse wrote: Thanks. I am testing the updated patch tonight and I'll commit. I am planning on making a branch: ^/branches/x86-intrinsics-ext if noone complains about the name. Committed patch attached. -- Marc GlisseIndex: gcc/testsuite/gcc.target/i386/intrinsics_o

Re: sort_heap complexity guarantee

2014-10-18 Thread Marc Glisse
On Mon, 6 Oct 2014, François Dumont wrote: * testsuite/25_algorithms/push_heap/complexity.cc: New. This test is randomly failing in about 1% to 2% of cases. -- Marc Glisse