Re: [PATCH] Bump minimum MPFR version to 3.1.0

2019-11-10 Thread Thomas Koenig
Hi Janne, Bump the minimum MPFR version to 3.1.0, released 2011-10-03. With this requirement one can still build GCC with the operating system provided MPFR on old but still supported operating systems like SLES 12 (MPFR 3.1.2) or RHEL/CentOS 7.x (MPFR 3.1.1). OK for trunk. Can you also make

Re: [PATCH] Bump minimum MPFR version to 3.1.0

2019-11-10 Thread Janne Blomqvist
On Sun, Nov 10, 2019 at 11:43 AM Thomas Koenig wrote: > > Hi Janne, > > > Bump the minimum MPFR version to 3.1.0, released 2011-10-03. With this > > requirement one can still build GCC with the operating system provided > > MPFR on old but still supported operating systems like SLES 12 (MPFR > > 3

Remove ipa-prop node summaries for inline clones

2019-11-10 Thread Jan Hubicka
Hi, this patch makes creation of IPA_NODE_REF summaries explicit and fixes the fallout. It also removes the summaries after stuff is propagated into caller when function is inlined. Martin, I had to add flag ipcp_clone_p into cgraph_node since that was used while resolving cloned references. I do

[PATCH] rs6000: Allow any CC mode in movcc

2019-11-10 Thread Segher Boessenkool
Sometimes combine wants to do a move in CCFPmode, but we don't currently handle moves in any CC mode other than CCmode. Fix that oversight. Tested on powerpc64-linux {-m32,-m64}. Committing to trunk. Segher 2019-11-10 Segher Boessenkool * config/rs6000/rs6000.md (CC_any): New mod

[libstdc++,doc] doc/xml/manual/using.xml: Switch www.hboehm.info to https

2019-11-10 Thread Gerald Pfeifer
Committed. Gerald 2019-11-10 Gerald Pfeifer * doc/xml/manual/using.xml: Switch www.hboehm.info to https. Index: doc/xml/manual/using.xml === --- doc/xml/manual/using.xml(revision 278018) +++ doc/xml/manual/using.xml

Re: [PATCH] Bump minimum MPFR version to 3.1.0

2019-11-10 Thread Gerald Pfeifer
On Sun, 10 Nov 2019, Janne Blomqvist wrote: > Thanks, I'll take that as an Ok for the Fortran part. I believe I > still need an Ok by a global or build machinery reviewer for the > global and docs parts. For the docs parts, and in particular a change like this, only in the most pedantic of worlds

[wwwdocs] readings.html - "Porting GCC for Dunces" is gone

2019-11-10 Thread Gerald Pfeifer
Hi H-P, it appears this download is gone. Do you have an alternate location? For now I applied the patch below which disables that link in readings.html. Gerald - Log - commit c5f63c81361196993ea4fdbc3e77c1f2a35a6e15 Author: Geral

Free ipa args summary after inlining

2019-11-10 Thread Jan Hubicka
Hi, this patch adds removal of ipa_edge_args_sum for the inlined edges. It turns out that those are still needed for described uses (though I am not sure why described uses are counted across all inline duplicates rather than handled for each of them independently), so I keep those. Bootstrapped/r

Free ipcp transformation summaries for inline clones

2019-11-10 Thread Jan Hubicka
Hi, this patch implements freeing of transformation summaries for inline clones. It also cleans up how they are duplicated (via its own duplicate method rather then being budndled to duplication of indirect call infos) and adds destructor so we release the memory of vectors. I also noticed that ag

Avoid sreal in cgrpah_maybe_hot_p

2019-11-10 Thread Jan Hubicka
Hi, while looking into performance issues with too much of sreal use in inliner I nocited that in maybe_hot_p it is used just to hold a fraction which is easily done on profile_counters, too. This has also advantage that it will work with partially guessed static profiles which are there during ea

Another sreal micro optimization

2019-11-10 Thread Jan Hubicka
Hi, this is another case where we can save quite some sreal operations (because it is common that call frequency is the same as entry block bb frequency) Bootstrapped/regtested x86_64-linux, comitted. Honza * profile-count.c (profile_count::to_sreal_scale): Short circuit case whe

Avoid even more sreal calculations in inliner

2019-11-10 Thread Jan Hubicka
Hi, this patch manually CSEs sreal frequency calculations. Bootstrapped/regtested x86_64-linux, comitted. * ipa-inline.c (compute_uninlined_call_time, compute_inlined_call_time): Take edge frequency as parameter rather than computing it by itself. (big_speedup_p, e

Re: [committed] Handle POLY_INT_CST in copy_reference_ops_from_ref

2019-11-10 Thread Christophe Lyon
On Fri, 8 Nov 2019 at 10:44, Richard Sandiford wrote: > > Tested on aarch64-linux-gnu and x86_64-linux-gnu. Applied as obvious. > Hi Richard, The new deref_2.c test fails with -mabi=ilp32: FAIL: gcc.target/aarch64/sve/acle/general/deref_2.c -march=armv8.2-a+sve (test for excess errors) Excess e

Re: [PATCH] Handle gimple_clobber_p stmts in store-merging (PR target/92038)

2019-11-10 Thread Christophe Lyon
On Thu, 7 Nov 2019 at 16:28, Jakub Jelinek wrote: > > Hi! > > The following patch adds handling of clobbers in store-merging. The intent > is if we have a clobber followed by some stores into the clobbered area, > even if don't store all the bytes in the area, we can avoid masking, because > the

[C++] Implement D1957R0, T* to bool should be considered narrowing.

2019-11-10 Thread Jason Merrill
This paper was delayed until the February meeting in Prague so that we could get a better idea of what the impact on existing code would actually be. To that end, I'm implementing it now. Tested x86_64-pc-linux-gnu, applying to trunk. * typeck2.c (check_narrowing): Treat pointer->bool as

Re: [wwwdocs] readings.html - "Porting GCC for Dunces" is gone

2019-11-10 Thread David Malcolm
On Sun, 2019-11-10 at 14:53 +0100, Gerald Pfeifer wrote: > Hi H-P, > > it appears this download is gone. Do you have an alternate location? > > For now I applied the patch below which disables that link in > readings.html. > > Gerald FWIW archive.org seems to have a copy here: https://web.arc

[PATCH, committed] Don't print warning when moving to static with -fno-automatic

2019-11-10 Thread Janne Blomqvist
As part of PR 91413, GFortran now prints a warning when a variable is moved from the stack to static storage. However, when the user explicitly specifies that all local variables should be put in static storage with the -fno-automatic option, don't print this warning. Regtested on x86_64-pc-linux-

[Darwin, machopic 11/n, committed] A flag to indicate synbols should be linker-visible.

2019-11-10 Thread Iain Sandoe
Some of the solution to PR71767 is incomplete, and we need finer-grained control over whether symbols need to be made linker-visible. This is a preparation patch, providing the flag. tested on x86_64-darwin16, applied to mainline. thanks gcc/ChangeLog: 2019-11-10 Iain Sandoe * confi

Re: [PATCH V3] rs6000: Refine small loop unroll in loop_unroll_adjust hook

2019-11-10 Thread Jiufu Guo
Segher Boessenkool writes: > Hi Jiu Fu, > > On Thu, Nov 07, 2019 at 10:40:41PM +0800, Jiufu Guo wrote: >> gcc/ >> 2019-11-07 Jiufu Guo >> >> PR tree-optimization/88760 >> * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option. >> * gcc/common/config/rs6000/rs600

Re: [PATCH rs6000]Fix PR92132

2019-11-10 Thread Kewen.Lin
Hi Segher, on 2019/11/9 上午1:36, Segher Boessenkool wrote: > Hi! > > On Fri, Nov 08, 2019 at 10:38:13AM +0800, Kewen.Lin wrote: + [(set (match_operand: 0 "vint_operand") + (match_operator 1 "comparison_operator" >>> >>> If you make an iterator for this instead, it is simpler code (you

Re: [PATCH][vect]Account for epilogue's peeling for gaps when checking if we have enough niters for epilogue

2019-11-10 Thread Richard Biener
On Fri, 8 Nov 2019, Andre Vieira (lists) wrote: > Hi, > > As I mentioned in the patch to disable epilogue vectorization for loops with > SIMDUID set, there were still some aarch64 libgomp failures. This patch fixes > those. > > The problem was that we were vectorizing a reduction that was only u

Re: PC-relative TLS support

2019-11-10 Thread Alan Modra
On Wed, Aug 21, 2019 at 09:55:28PM +0930, Alan Modra wrote: > On Mon, Aug 19, 2019 at 07:45:19AM -0500, Segher Boessenkool wrote: > > But if you think we can remove the !TARGET_TLS_MARKERS everywhere it > > is relevant at all, now is the time, patches very welcome, it would be > > a nice cleanup :-

[PATCH 2/2] Add tests for the vartrace pass

2019-11-10 Thread Andi Kleen
From: Andi Kleen So far they are mostly i386 target specific. Later they could be moved up to architecture specific if some other architecture adds vartracing. This would need abstracing the scanning for the trace function. gcc/testsuite/: 2019-11-10 Andi Kleen * g++.dg/vartrace-3.C

[PATCH, rs6000] Refactor FP vector comparison operators

2019-11-10 Thread Kewen.Lin
Hi, This is a subsequent patch to refactor the existing float point vector comparison operator supports. The patch to fix PR92132 supplemented vector float point comparison by exposing the names for unordered/ordered/uneq/ltgt and adding ungt/unge/unlt/unle/ ne. As Segher pointed out, some patte

[PATCH 1/2] Add a pass to automatically add ptwrite instrumentation

2019-11-10 Thread Andi Kleen
From: Andi Kleen [v4: Rebased on current tree. Avoid some redundant log statements for locals and a few other fixes. Fix some comments. Improve documentation. Did some studies on the debug information quality, see below] Add a new pass to automatically instrument changes to variables with the n