Re: [PATCH 0/6] Implement asm flag outputs for arm + aarch64

2019-11-13 Thread Richard Henderson
On 11/12/19 9:21 PM, Richard Sandiford wrote: > Apart from the vc/vs thing you mentioned in the follow-up for 4/6, > it looks like 4/6, 5/6 and 6/6 are missing "hs" and "lo". OK for > aarch64 with those added. Are those aliases for two of the other conditions? They're not in the list within the

Ping^1: [patch,avr] Add suport for devices from the 0-series.

2019-11-13 Thread Georg-Johann Lay
Ping ? Am 08.11.19 um 17:19 schrieb Georg-Johann Lay: Hi, this patch adds support for a few more AVR devices.  Because the offset where flash is seen in RAM deviates from the settings for the family (and hence also from the linker script defaults), a new field in avr_mcu_t is needed to

Re: [PATCH] Remove params for a specific optimization option.

2019-11-13 Thread Jan Hubicka
> Hello. > > The patch is about removal of special *-O2 parameters that Honza added some > time > ago. Right now, we have a better mechanism how to have a different default > value > for a parameter. I'm planning to send a patch that will decorate some params > with Optimization attribute and

[PATCH 3/5] Use func_checker::hash_operand for hashing of GIMPLE operands.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-11 Martin Liska * ipa-icf-gimple.h (func_checker::func_checker): Add default constructor. * ipa-icf.c (sem_function::init): Make operand_equal_p and hash_operand public. (sem_item::add_expr): Remove. (sem_item::add_type):

[PATCH 4/5] Handle FIELD_DECL in IPA ICF.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-11 Martin Liska * ipa-icf-gimple.c (func_checker::hash_operand): Improve func_checker::hash_operand by handling of FIELD_DECLs. --- gcc/ipa-icf-gimple.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/ipa-icf-gimple.c

[PATCH 1/5] Do not overuse push/pop_cfun in IPA ICF.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-11 Martin Liska * ipa-icf.c (sem_function::equals_private): Do not overuse push/pop_cfun functions. --- gcc/ipa-icf.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 10aa4b76463..53e387403c8

[PATCH 2/5] Update dump message in IPA ICF.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-11 Martin Liska * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update bail out reason. (func_checker::compare_gimple_assign): Likewise. --- gcc/ipa-icf-gimple.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git

[PATCH 0/5] IPA ICF: more clean up

2019-11-13 Thread Martin Liska
Hi. There's another series that brings yet another bunch of clean up patches: 1) push/pop_cfun is overused, it is not needed 2) make dump reason more precise 3) Do not use custom hashing (add_expr, add_type) and use proper func_checker::hash_operand that can be improved for the future. 4)

Re: Ping: [PATCH V6] Extend IPA-CP to support arithmetically-computed value-passing on by-ref argument (PR ipa/91682)

2019-11-13 Thread Feng Xue OS
Thanks. And for this issue, we can add a new tracker as a followup task. Feng From: Jan Hubicka Sent: Tuesday, November 12, 2019 8:34 PM To: Feng Xue OS Cc: Martin Jambor; gcc-patches@gcc.gnu.org Subject: Re: Ping: [PATCH V6] Extend IPA-CP to support

Re: [PATCH] rs6000: Use ULL on big hexadecimal literal

2019-11-13 Thread Segher Boessenkool
On Wed, Nov 13, 2019 at 09:15:38AM +0100, Richard Henderson wrote: > On 11/12/19 10:52 PM, Segher Boessenkool wrote: > > C++98 does not have long long int, and does not use (unsigned) long > > long int for hexadecimal literals. So let's use an ULL suffix here, > > which is still not strict C++98,

Re: [PATCH] Add if-chain to switch conversion pass.

2019-11-13 Thread Martin Liška
On 11/4/19 3:48 PM, Jakub Jelinek wrote: On Mon, Nov 04, 2019 at 03:23:20PM +0100, Martin Liška wrote: The patch adds a new pass that identifies a series of if-elseif statements and transform then into a GIMPLE switch (if possible). The pass runs right after tree-ssa pass and I decided to

Re: [PATCH] Free dominance info at the beginning of pass_jump_after_combine

2019-11-13 Thread Segher Boessenkool
Hi! On Tue, Nov 12, 2019 at 04:32:36PM +0100, Ilya Leoshkevich wrote: > > Am 12.11.2019 um 15:32 schrieb Segher Boessenkool > > : > > On Tue, Nov 12, 2019 at 03:11:05PM +0100, Ilya Leoshkevich wrote: > >> unsigned int > >> pass_jump_after_combine::execute (function *) > >> { > >> + /* Jump

Re: [PATCH 0/2] Introduce a new GCC option, --record-gcc-command-line

2019-11-13 Thread Martin Liška
On 11/7/19 3:50 PM, Egeyar Bagcioglu wrote: On 11/7/19 10:24 AM, Martin Liška wrote: On 11/6/19 6:21 PM, Egeyar Bagcioglu wrote: Hello, Hello. Thanks for your detailed reply Martin. You'll find my reply inline. Since you added Nick Clifton to your following reply, I am adding him to this

Re: [PATCH 0/2] Introduce a new GCC option, --record-gcc-command-line

2019-11-13 Thread Martin Liška
On 11/7/19 4:13 PM, Nick Clifton wrote: Hi Egeyar, Thanks for including me in this discussion. This option is similar to -frecord-gcc-switches. For the record I will also note that there is -fverbose-asm which does almost the same thing, but only records the options as comments in the

Re: Regression due to recent IPA changes

2019-11-13 Thread Jan Hubicka
> This patch: > > > ef0752d323b5a250caf1b972354f3749382c8dce is the first bad commit > > commit ef0752d323b5a250caf1b972354f3749382c8dce > > Author: hubicka > > Date: Mon Nov 4 14:07:09 2019 + > > > > * cgraphclones.c (cgraph_node::create_version_clone): Do not > >

Re: [Patch] PR fortran/92470 Fixes for CFI_address

2019-11-13 Thread Paul Richard Thomas
I too had some considerable difficulty on this point. I wasn't at all sure that the C world view was relevant here since the API includes CFI_address and, in principle, one could reference directly the elements pointed to by base_addr. However, I bow to the wisdom of your correspondents on the j3

[PATCH 2/3] Fix params.exp by parsing output of --help=params -Q.

2019-11-13 Thread Martin Liska
gcc/testsuite/ChangeLog: 2019-11-12 Martin Liska * gcc.dg/params/params.exp: Restore test by parsing output of --help=params -Q. --- gcc/testsuite/gcc.dg/params/params.exp | 42 -- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git

[PATCH 1/3] Remove leftover call to finalize_options_struct.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-12 Martin Liska * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): Remove call to finalize_options_struct. --- gcc/tree-streamer-in.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/tree-streamer-in.c b/gcc/tree-streamer-in.c index

Re: Free ipa-prop edge summaries for inline calls

2019-11-13 Thread Jan Hubicka
> On 11/12/19 11:07 PM, Martin Jambor wrote: > > Since ipa_node_params_sum->get might be a bit too long, perhaps we could > > use ipcp_node_sum->get or something similar. And similarly for edges. > > > > What do you think? > > I'm for the suggested change! Yes, I like it too (and was about to

Re: Ping: [PATCH V6] Extend IPA-CP to support arithmetically-computed value-passing on by-ref argument (PR ipa/91682)

2019-11-13 Thread Feng Xue OS
Please check the attachment, and this patch is based on the previous extended agg-jump-function patch. Thanks, Feng From: Jan Hubicka Sent: Tuesday, November 12, 2019 8:41 PM To: Feng Xue OS Subject: Re: Ping: [PATCH V6] Extend IPA-CP to support

Re: [PATCH 1/2] gdbinit.in: call a function with "call", not "set"

2019-11-13 Thread Segher Boessenkool
Hi! On Tue, Nov 12, 2019 at 02:47:33PM +0300, Konstantin Kharlamov wrote: > Last time a command that calls a function of debuggee with "set" was > added is 2013 year. Apparently something has changed since then, since > doing "set foo()" in gdb to call a "foo()" results in error. > Disregarding,

Re: [PATCH] PR90838: Support ctz idioms

2019-11-13 Thread Segher Boessenkool
Hi! On Tue, Nov 12, 2019 at 02:35:54PM +, Wilco Dijkstra wrote: > Support common idioms for count trailing zeroes using an array lookup. > The canonical form is array[((x & -x) * C) >> SHIFT] where C is a magic > constant which when multiplied by a power of 2 contains a unique value > in the

Re: [PATCH 4/7] Remove gcc/params.* files.

2019-11-13 Thread Martin Liška
On 11/12/19 10:13 PM, Rainer Orth wrote: Hi Martin, gcc/ChangeLog: 2019-11-06 Martin Liska * Makefile.in: Remove PARAMS_H and params.list and params.options. this has obviously not been tested properly: it completely broke gcc.dg/params/params.exp: Hello. Sorry for

Fix optimization options for -fprofile-generate ctors

2019-11-13 Thread Jan Hubicka
Hi, this patch fixes another ada lto profiledbootstrap issue uncovered by the summary allocation changes. -fprofile-generate produces cdtors after free_lang_data and those gets streamed without optimization/target option nodes which ends up in the options silently changing from compile time to

Re: [PATCH 2/2] gdbinit.in: fix wrong reference to function argument

2019-11-13 Thread Segher Boessenkool
On Tue, Nov 12, 2019 at 04:17:17PM +0300, Konstantin Kharlamov wrote: > On Вт, ноя 12, 2019 at 14:08, Andreas Schwab > wrote: > >On Nov 12 2019, Konstantin Kharlamov wrote: > >> I'm definitely missing something. Who are these users, and how can > >>they > >> make anything useful of these

[committed, amdgcn] Move gcn-run heap into GPU memory

2019-11-13 Thread Andrew Stubbs
I've just committed the attached patch. The patch adjusts the amdgcn-specific gcn-run tool such that it places the heap memory in actual GPU memory (previously it was accessing host memory via PCI). This is a performance optimization, of course, but also matches the conditions that offload

[PATCH] Remove params for a specific optimization option.

2019-11-13 Thread Martin Liška
Hello. The patch is about removal of special *-O2 parameters that Honza added some time ago. Right now, we have a better mechanism how to have a different default value for a parameter. I'm planning to send a patch that will decorate some params with Optimization attribute and so that one can

Re: Free ipa-prop edge summaries for inline calls

2019-11-13 Thread Martin Liška
On 11/12/19 11:07 PM, Martin Jambor wrote: Since ipa_node_params_sum->get might be a bit too long, perhaps we could use ipcp_node_sum->get or something similar. And similarly for edges. What do you think? I'm for the suggested change! Martin

Re: [PATCH] Remove params for a specific optimization option.

2019-11-13 Thread Martin Liška
On 11/13/19 9:20 AM, Jan Hubicka wrote: Hello. The patch is about removal of special *-O2 parameters that Honza added some time ago. Right now, we have a better mechanism how to have a different default value for a parameter. I'm planning to send a patch that will decorate some params with

Re: [PATCH] Enhance syntax of -fdbg-cnt.

2019-11-13 Thread Martin Liška
On 11/12/19 10:00 AM, Martin Liška wrote: There's one another version that I'm testing right now. It survives regression tests and bootstrap. Richi, may I install it the patch? Thanks, Martin

Re: [PATCH] PR90838: Support ctz idioms

2019-11-13 Thread Wilco Dijkstra
Hi Segher, > Out of interest, what uses this? I have never seen it before. It's used in sjeng in SPEC and gives a 2% speedup on Cortex-A57. Tricks like this used to be very common 20 years ago since a loop or binary search is way too slow and few CPUs supported fast clz/ctz instructions. It's

Re: [PATCH 4/7] Remove gcc/params.* files.

2019-11-13 Thread Rainer Orth
Hi Martin, >> Please fix and properly follow testing procedures in the future. Just >> looking for FAILs is not enough: e.g. comparing mail-report.log before >> and after the patch would have immediately shown this. > > Note that the patch set was very huge and I had to test very many targets >

[Ada] Fix -fdump-ada-spec issue with array field

2019-11-13 Thread Eric Botcazou
This is a regression present on mainline and 9 branch: if the component type of array type is a structure declared in another file, then the binding would contain a local declaration for this structure type. Tested on x86_64-suse-linux, applied on the mainline and 9 branch. 2019-11-13 Eric

Re: [PATCH, testsuite] Fix PR92464 by adjust test case loop bound

2019-11-13 Thread Segher Boessenkool
Hi! On Wed, Nov 13, 2019 at 03:31:11PM +0800, Kewen.Lin wrote: > As PR92464 shows, the recent vectorization cost adjustment on load > insns is responsible for this regression. It leads the profitable > min iteration count to change from 19 to 12. The case happens to > hit the threshold. By

[PATCH] Fix PR92473

2019-11-13 Thread Richard Biener
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2019-11-13 Richard Biener PR tree-optimization/92473 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform direct optab reduction in the correct type. Index: gcc/tree-vect-loop.c

[PATCH 0/3] Param conversion fallout

2019-11-13 Thread Martin Liska
Hi. The patch is about fixing some leftover from the conversion of parameters to option machinery. First patch removes a dead call in a OFFLOADING compiler conditional build. Second fixes params.exp tests and last is a small update of a comment in opts.c. Patch can bootstrap on x86_64-linux-gnu

[PATCH 3/3] Update comment in opts.c.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-13 Martin Liska * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY. --- gcc/opts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/opts.c b/gcc/opts.c index faf2eef082e..74f05f1b58d 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@

[Patch][committed][Fortran] Use proper type for hidden is-present argument

2019-11-13 Thread Tobias Burnus
I found this argument mismatch when looking into the issue of PR92305. For noncharacter per-VALUE optional arguments, the absent/present status is propagated using a hidden argument of type 'boolean_type_node' (which is a one-byte type). If the (actual) argument in the caller is also an

Re: [PATCH 0/6] Implement asm flag outputs for arm + aarch64

2019-11-13 Thread Richard Sandiford
Richard Henderson writes: > On 11/12/19 9:21 PM, Richard Sandiford wrote: >> Apart from the vc/vs thing you mentioned in the follow-up for 4/6, >> it looks like 4/6, 5/6 and 6/6 are missing "hs" and "lo". OK for >> aarch64 with those added. > > Are those aliases for two of the other conditions?

[AArch64] Use aarch64_sve_int_mode in SVE ACLE code

2019-11-13 Thread Richard Sandiford
This is a like-for-like change at the moment, but is a prerequisite for removing mode_for_int_vector. Tested on aarch64-linux-gnu and applied as r278120. Richard 2019-11-13 Richard Sandiford gcc/ * config/aarch64/aarch64-sve-builtins-functions.h (unary_count::expand): Use

Dump info about missing summaries in ipa-prop

2019-11-13 Thread Jan Hubicka
Hi, this patch makes ipa-prop to dump info about missing summaries which is better than just an ICE :) Bootstrapped/regtested x86_64-linux, comitted. * ipa-prop.c (ipa_print_node_jump_functions, ipa_print_node_params): Print info about missing summaries. Index: ipa-prop.c

[PATCH 5/5] Update statistics about needed symbols in IPA ICF.

2019-11-13 Thread Martin Liska
gcc/ChangeLog: 2019-11-11 Martin Liska * ipa-icf.c (sem_item_optimizer::execute): Save loaded_symbols. (sem_item_optimizer::parse_nonsingleton_classes): Return number of loaded symbols. (sem_item_optimizer::merge_classes): Print statistics

[PATCH] libsupc++: Implement comparison algorithms for C++20

2019-11-13 Thread Jonathan Wakely
This is incomplete because std::strong_order doesn't support floating-point types. The partial_order and weak_order tests use VERIFY instead of static_assert because of PR 92431. * libsupc++/compare (strong_order, weak_order, partial_order) (compare_strong_order_fallback,

[PATCH 0/2] Make C front end share the C++ tree representation of loops and switches

2019-11-13 Thread Sandra Loosemore
This patch series lays some groundwork for the project to redo the OpenACC "kernels" region support in GCC, described in Thomas Schwinge's recent talk at the GNU Cauldron: https://gcc.gnu.org/wiki/cauldron2019talks?action=AttachFile=view=OpenACC+kernels-cauldron2019.pdf Briefly, the larger goal

Re: [PATCH] libsupc++: Implement comparison algorithms for C++20

2019-11-13 Thread Daniel Krügler
Am Mi., 13. Nov. 2019 um 17:26 Uhr schrieb Jonathan Wakely : > > This is incomplete because std::strong_order doesn't support > floating-point types. I'm wondering whether the local __cat lambda expression at the beginning of __fp_weak_ordering is part of the incomplete code or just spurious? -

Re: [C++] Fix interaction between aka changes and DR1558 (PR92206)

2019-11-13 Thread Richard Sandiford
Jason Merrill writes: > On 10/25/19 2:53 PM, Richard Sandiford wrote: >> One of the changes in r277281 was to make the typedef variant >> handling in strip_typedefs pass the raw DECL_ORIGINAL_TYPE to the >> recursive call, instead of applying TYPE_MAIN_VARIANT first. >> This PR shows that that

Re: [PATCH] Free dominance info at the beginning of pass_jump_after_combine

2019-11-13 Thread Ilya Leoshkevich
> On Tue, Nov 12, 2019 at 04:32:36PM +0100, Ilya Leoshkevich wrote: >>> Am 12.11.2019 um 15:32 schrieb Segher Boessenkool >>> : >>> On Tue, Nov 12, 2019 at 03:11:05PM +0100, Ilya Leoshkevich wrote: unsigned int pass_jump_after_combine::execute (function *) { + /* Jump

[PATCH 2/2] Change C front end to emit structured loop and switch tree nodes.

2019-11-13 Thread Sandra Loosemore
2019-11-12 Sandra Loosemore gcc/c * c-decl.c (c_break_label, c_cont_label): Delete, and replace with... (in_statement): New. (start_function): Adjust for above change. (c_push_function_context, c_pop_function_context): Likewise. *

Re: extract independent value_range bits to value-range.cc

2019-11-13 Thread Andrew MacLeod
On 11/13/19 12:12 PM, Aldy Hernandez wrote: tree-vrp.* is large and difficult to follow, in part because it has a hodgepodge of different interdependent things (value ranges bits, equivalences stuff, actual value range propagation things, etc etc). This patch pulls out the value_range

[PATCH 1/2] Move loop and switch tree data structures from cp/ to c-family/.

2019-11-13 Thread Sandra Loosemore
This patch moves the definitions for DO_STMT, FOR_STMT, WHILE_STMT, SWITCH_STMT, BREAK_STMT, and CONTINUE_STMT from the C++ front end to c-family. This includes the genericizers, pretty-printers, and dump support as well as the tree definitions and accessors. Some related code for OMP_FOR and

Re: [PATCH] errno can't alias locals (PR 92412)

2019-11-13 Thread Martin Sebor
On 11/12/19 1:04 AM, Richard Biener wrote: On Mon, Nov 11, 2019 at 11:38 PM Martin Sebor wrote: The conditional in default_ref_may_alias_errno has the function return true even for local variables, implying that locals must be assumed not to have been changed across calls to errno-setting

Re: [PATCH 0/4] Eliminate cc0 from m68k

2019-11-13 Thread Segher Boessenkool
On Wed, Nov 13, 2019 at 02:04:59PM +0100, Bernd Schmidt wrote: > This is a set of patches to convert m68k so that it no longer uses cc0. I tried this out with a kernel build (just the defconfig). First problem was patch 4 doesn't apply, it has white-space damage. It's small, I fixed that up

Re: [PATCH 0/4] Eliminate cc0 from m68k

2019-11-13 Thread Bernd Schmidt
On 11/13/19 7:16 PM, Segher Boessenkool wrote: > I tried this out with a kernel build (just the defconfig). > during RTL pass: jump2 > /home/segher/src/kernel/fs/binfmt_elf.c: In function 'elf_core_dump': > /home/segher/src/kernel/fs/binfmt_elf.c:2409:1: internal compiler error: in >

extract independent value_range bits to value-range.cc

2019-11-13 Thread Aldy Hernandez
tree-vrp.* is large and difficult to follow, in part because it has a hodgepodge of different interdependent things (value ranges bits, equivalences stuff, actual value range propagation things, etc etc). This patch pulls out the value_range functionality into its own files: value-range.h and

[PATCH] implement pre-c++20 contracts

2019-11-13 Thread Jeff Chapman
Hello, Attached is a patch that implements pre-c++20 contracts. This comes from a long running development branch which included ChangeLog entries as we went, which are included in the patch itself. The repo and initial wiki are located here:

Re: [PATCH 0/7 libgomp,amdgcn] AMD GCN Offloading Support

2019-11-13 Thread Andrew Stubbs
These patches are now all committed. I've adjusted the changelogs to list all the proper authors (apologies if I missed anyone). Thank you for the quick reviews, Jakub. :-) Andrew On 12/11/2019 13:29, Andrew Stubbs wrote: Hi all, This patch series contributes initial OpenMP and OpenACC

[PATCH 0/4] Eliminate cc0 from m68k

2019-11-13 Thread Bernd Schmidt
This is a set of patches to convert m68k so that it no longer uses cc0. The approach is to combine cc0 setter/user pairs into cbranch and cstore patterns. It does not expose the flag register directly. Since m68k is a target that is not under active development, and probably receives very limited

[PATCH 3/4] Set costs for jumps in combine

2019-11-13 Thread Bernd Schmidt
The combiner is somewhat strange about how it uses costs. If any of the insns involved in a comparison have a cost of 0, it does not verify that the substitution is cheaper. Also, it does not compute costs for jump insns, so they are always set to zero. As a consequence, any possible substitution

Re: [PATCH] Enhance syntax of -fdbg-cnt.

2019-11-13 Thread Richard Biener
On Wed, Nov 13, 2019 at 10:15 AM Martin Liška wrote: > > On 11/12/19 10:00 AM, Martin Liška wrote: > > There's one another version that I'm testing right now. > > It survives regression tests and bootstrap. > > Richi, may I install it the patch? Yes. Thanks, Richard. > > Thanks, > Martin

Ping Re: Add C2x *_NORM_MAX constants to

2019-11-13 Thread Joseph Myers
Ping. This patch is pending review. -- Joseph S. Myers jos...@codesourcery.com

Re: [PATCH] Refactor tree-loop-distribution for thread safety

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 2:31 PM Giuliano Belinassi wrote: > > Hi, Richard. > > On 11/12, Richard Biener wrote: > > On Sat, Nov 9, 2019 at 3:26 PM Giuliano Belinassi > > wrote: > > > > > > Hi all, > > > > > > This patch refactors tree-loop-distribution.c for thread safety without > > > use of C11

Re: [PATCH][DOC] Document -fallocation-dce.

2019-11-13 Thread Sandra Loosemore
On 11/13/19 6:45 AM, Martin Liška wrote: Hi. The patch is about a documentation entry for a newly added option in GCC 10. Ready for trunk? I thought this would be OK, until I saw: +Enabled by default. At the beginning of invoke.texi where it is talking about options having both -foo and

[PATCH] Enable VPOPCNTDQ for icelake-{client,server} and tigerlake.

2019-11-13 Thread Martin Liška
Hi. The patch adds a missing feature for PTA_ICELAKE_CLIENT and inherited CPUs. One can see that: https://en.wikipedia.org/wiki/AVX-512#CPUs_with_AVX-512 Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to be installed? Thanks, Martin gcc/ChangeLog: 2019-11-13

Re: [PATCH 3/X] [libsanitizer] Add option to bootstrap using HWASAN

2019-11-13 Thread Matthew Malcomson
On 12/11/2019 12:08, Martin Liška wrote: > On 11/11/19 5:03 PM, Matthew Malcomson wrote: >> Ah! >> My apologies -- I sent up a series with a few documentation mistakes. >> (the others were wording problems so less noticeable) > > That's fine, I fixed that very easily. > > Right now, I can

Re: [8/n] Replace autovectorize_vector_sizes with autovectorize_vector_modes

2019-11-13 Thread Richard Sandiford
Richard Biener writes: > On Tue, Nov 12, 2019 at 6:54 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Oct 30, 2019 at 4:58 PM Richard Sandiford >> > wrote: >> >> >> >> Richard Biener writes: >> >> > On Fri, Oct 25, 2019 at 2:37 PM Richard Sandiford >> >> > wrote: >>

Re: [PATCH] include size and offset in -Wstringop-overflow

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 6:55 PM Jeff Law wrote: > > On 11/12/19 1:15 AM, Richard Biener wrote: > > On Tue, Nov 12, 2019 at 6:10 AM Jeff Law wrote: > >> > >> On 11/6/19 3:34 PM, Martin Sebor wrote: > >>> On 11/6/19 2:06 PM, Martin Sebor wrote: > On 11/6/19 1:39 PM, Jeff Law wrote: > > On

Re: [PATCH 2/2] gdbinit.in: fix wrong reference to function argument

2019-11-13 Thread Jason Merrill
On Wed, Nov 13, 2019 at 6:39 AM Segher Boessenkool < seg...@kernel.crashing.org> wrote: > On Tue, Nov 12, 2019 at 04:17:17PM +0300, Konstantin Kharlamov wrote: > > On Вт, ноя 12, 2019 at 14:08, Andreas Schwab > > wrote: > > >On Nov 12 2019, Konstantin Kharlamov wrote: > > >> I'm definitely

Re: [PATCH 1/5] Do not overuse push/pop_cfun in IPA ICF.

2019-11-13 Thread Richard Biener
On Wed, Nov 13, 2019 at 10:22 AM Martin Liska wrote: > OK. > gcc/ChangeLog: > > 2019-11-11 Martin Liska > > * ipa-icf.c (sem_function::equals_private): Do not overuse > push/pop_cfun functions. > --- > gcc/ipa-icf.c | 7 +-- > 1 file changed, 1 insertion(+), 6

Re: Ping: [PATCH V6] Extend IPA-CP to support arithmetically-computed value-passing on by-ref argument (PR ipa/91682)

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 2:27 PM Jan Hubicka wrote: > > > Hi, > > > > On Tue, Nov 12 2019, Jan Hubicka wrote: > > > Also note that there is a long standing problem with inlining ipacp > > > clones. This can be shown on the following example: > > > > > > struct a {int a;}; > > > static int foo

Re: [PATCH 2/2] [ARM] Add support for -mpure-code in thumb-1 (v6m)

2019-11-13 Thread Christophe Lyon
Hi Kyrill, On Tue, 12 Nov 2019 at 11:34, Kyrill Tkachov wrote: > > Hi Christophe, > > On 10/18/19 2:18 PM, Christophe Lyon wrote: > > Hi, > > > > This patch extends support for -mpure-code to all thumb-1 processors, > > by removing the need for MOVT. > > > > Symbol addresses are built using

Re: Ping: [PATCH V6] Extend IPA-CP to support arithmetically-computed value-passing on by-ref argument (PR ipa/91682)

2019-11-13 Thread Jan Hubicka
> On Tue, Nov 12, 2019 at 2:27 PM Jan Hubicka wrote: > > > > > Hi, > > > > > > On Tue, Nov 12 2019, Jan Hubicka wrote: > > > > Also note that there is a long standing problem with inlining ipacp > > > > clones. This can be shown on the following example: > > > > > > > > struct a {int a;}; > > >

Re: [PATCH] Enable VPOPCNTDQ for icelake-{client,server} and tigerlake.

2019-11-13 Thread Uros Bizjak
On Wed, Nov 13, 2019 at 4:25 PM Martin Liška wrote: > > Hi. > > The patch adds a missing feature for PTA_ICELAKE_CLIENT and > inherited CPUs. One can see that: > https://en.wikipedia.org/wiki/AVX-512#CPUs_with_AVX-512 > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > >

[PATCH] Diagnose hard errors during constraint satisfaction

2019-11-13 Thread Andrew Sutton
This changes the diagnostic of non-boolean constraints and rvalue conversion failures in constraint satisfaction into hard errors. I also cleaned up the satisfaction routines to reduce the number of functions involved. Jason, this is a squashed version of the patches I sent earlier today. This

Re: [PATCH] contrib/download_prerequisites: Use http instead of ftp

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 8:34 PM Janne Blomqvist wrote: > > Convert the download_prerequisites script to use http instead of > ftp. This works better with firewalls, proxies, and so on. It's also > faster, a quick test on my system before patch: > > time contrib/download_prerequisites

Re: handle VIEW_CONVERT_EXPR in debug_node

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 8:49 PM Ulrich Drepper wrote: > > I am using debug_node() to emit the tree of functions for later > processing. For this I need all the information to be present. So far > I came across one expression type that isn't handled correctly. For > VIEW_CONVERT_EXPR only the

Re: [PATCH] Sort debug counter names.

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 10:01 AM Martin Liška wrote: > > On 11/12/19 9:39 AM, Richard Biener wrote: > > On Tue, Nov 12, 2019 at 8:50 AM Martin Liška wrote: > >> > >> On 11/11/19 3:20 PM, Richard Biener wrote: > >>> On Mon, Nov 11, 2019 at 9:23 AM Martin Liška wrote: > > Hi. > >

[PATCH] PR c++/92403

2019-11-13 Thread Andrew Sutton
Suppress diagnostics when substituting into requires-expressions outside of concept definitions. This change broke one existing test, which I've updated to match the behavior of the current patch. Specifically, it changed the case below: template constexpr bool subst = true; template constexpr

Re: [PATCH] errno can't alias locals (PR 92412)

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 11:13 AM Andreas Schwab wrote: > > On Nov 12 2019, Richard Biener wrote: > > > This means a tentative definition for 'errno' is non-conforming? > > https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/errno.h.html > > If a macro definition is suppressed in order to

Re: [C++ PATCH] c++/89070 - bogus [[nodiscard]] warning in SFINAE.

2019-11-13 Thread Jason Merrill
OK. On Tue, Nov 12, 2019 at 11:45 AM Marek Polacek wrote: > This is a complaint that we issue a [[nodiscard]] warning even in SFINAE > contexts. Here 'complain' is tf_decltype, but not tf_warning so I guess > we can fix it as below. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? > >

Re: [PATCH] Remove params for a specific optimization option.

2019-11-13 Thread Richard Biener
On Wed, Nov 13, 2019 at 9:30 AM Martin Liška wrote: > > On 11/13/19 9:20 AM, Jan Hubicka wrote: > >> Hello. > >> > >> The patch is about removal of special *-O2 parameters that Honza added > >> some time > >> ago. Right now, we have a better mechanism how to have a different default > >> value

[committed] Add a few missing checks that IPA_NODE_REF is not NULL (PR 92454)

2019-11-13 Thread Martin Jambor
Hi, since IPA_NODE_REF does not create summaries now, IPA-CP's spread_undeadness can attempt to dereference a NULL one when a thunk is a part of an SCC in the call graph (because of speculative devirtualization edges). Fixed with checking that is not the case. Bootstrapped and tested on

Re: [PATCH 2/2] [ARM] Add support for -mpure-code in thumb-1 (v6m)

2019-11-13 Thread Christophe Lyon
On Tue, 12 Nov 2019 at 12:13, Richard Earnshaw (lists) wrote: > > On 18/10/2019 14:18, Christophe Lyon wrote: > > + bool not_supported = arm_arch_notm || flag_pic || TARGET_NEON; > > > > This is a poor name in the context of the function as a whole. What's > not supported. Please think of

Re: [C++ PATCH] Sorry about <=> on VECTOR_TYPE.

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 10:52 AM Jakub Jelinek wrote: > > On Tue, Nov 12, 2019 at 10:19:49AM +0100, Richard Biener wrote: > > On Tue, Nov 12, 2019 at 10:02 AM Jakub Jelinek wrote: > > > > > > On Tue, Nov 12, 2019 at 09:10:58AM +0100, Richard Biener wrote: > > > > On Tue, Nov 12, 2019 at 5:54 AM

Re: Ping: [PATCH V6] Extend IPA-CP to support arithmetically-computed value-passing on by-ref argument (PR ipa/91682)

2019-11-13 Thread Martin Jambor
On Wed, Nov 13 2019, Feng Xue OS wrote: > Thanks. > > And for this issue, we can add a new tracker as a followup task. It's now PR 92497. Thanks, Martin > > Feng > > > From: Jan Hubicka > Sent: Tuesday, November 12, 2019 8:34 PM > To: Feng Xue OS >

Re: [PATCH 2/2] [ARM] Add support for -mpure-code in thumb-1 (v6m)

2019-11-13 Thread Christophe Lyon
On Tue, 12 Nov 2019 at 12:17, Richard Earnshaw (lists) wrote: > > On 18/10/2019 14:18, Christophe Lyon wrote: > > +thumb1_gen_const_int (rtx op0, HOST_WIDE_INT op1) > > +{ > > + bool mov_done_p = false; > > + int i; > > + > > + /* Emit upper 3 bytes if needed. */ > > + for (i = 0; i < 3;

[committed] place value_range_kind at the end of value_range constructors

2019-11-13 Thread Aldy Hernandez
This patch rewrites the value_range constructors so that value_range_kind is at the end, and defaults to VR_RANGE. This reduces the constructors by 2, and simplifies a lot of the common cases to read: value_range foo(x, y); blah.set(x,y); instead of: value_range

[PATCH 2/4] The main m68k cc0 conversion

2019-11-13 Thread Bernd Schmidt
This achieves the conversion by using combined cbranch/cstore patterns, and using a mechanism similar to the cc_status tracking to elide certain comparisons. Unlike cc_status, this is opt-in and requires a flags_valid attribute to be set for suitable instructions. Due to lack of test hardware,

Re: [8/n] Replace autovectorize_vector_sizes with autovectorize_vector_modes

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 6:54 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Wed, Oct 30, 2019 at 4:58 PM Richard Sandiford > > wrote: > >> > >> Richard Biener writes: > >> > On Fri, Oct 25, 2019 at 2:37 PM Richard Sandiford > >> > wrote: > >> >> > >> >> This is another patch in

Re: [PATCH 1/4] Preliminary m68k patches

2019-11-13 Thread Bernd Schmidt
This tidies up a few spots in the m68k backend in preparation for the large patch to follow. This is purely for review purposes: this patch has not been tested independently, and will be committed together with the following one. Noteworthy changes: Some patterns and peepholes were unified

[PATCH 4/4] Fix autoinc cbranch

2019-11-13 Thread Bernd Schmidt
After the m68k cc0 conversion, there is one code quality regression that I can see: we no longer generate autoinc addressing modes in comparisons. This is because the parts of the compiler that generate autoinc are unwilling to substitute into jumps. If you look at the code in reload, you'll see

[PATCH][DOC] Document -fallocation-dce.

2019-11-13 Thread Martin Liška
Hi. The patch is about a documentation entry for a newly added option in GCC 10. Ready for trunk? Martin gcc/ChangeLog: 2019-11-13 Martin Liska PR other/92329 * doc/invoke.texi: Document -fallocation-dce. --- gcc/doc/invoke.texi | 8 +++- 1 file changed, 7

Re: [PATCH] PR90838: Support ctz idioms

2019-11-13 Thread Richard Biener
On Tue, Nov 12, 2019 at 3:36 PM Wilco Dijkstra wrote: > > Hi, > > Support common idioms for count trailing zeroes using an array lookup. > The canonical form is array[((x & -x) * C) >> SHIFT] where C is a magic > constant which when multiplied by a power of 2 contains a unique value > in the top

Re: Ping Re: Add C2x *_NORM_MAX constants to

2019-11-13 Thread Jakub Jelinek
On Wed, Nov 13, 2019 at 02:10:34PM +, Joseph Myers wrote: > Ping. This patch > is pending > review. Ok. Jakub

Re: [PATCH] Add if-chain to switch conversion pass.

2019-11-13 Thread Michael Matz
Hi, On Wed, 13 Nov 2019, Martin Liška wrote: > > Not a review, just a few questions: > > Hello. > > Thank you for it. > > > > > 1) what does it do if __builtin_expect* has been used, does it preserve > > the probabilities and if in the end decides to expand as ifs, are those > >

Re: [PATCH 3/4] Set costs for jumps in combine

2019-11-13 Thread Segher Boessenkool
Hi! On Wed, Nov 13, 2019 at 02:13:48PM +0100, Bernd Schmidt wrote: > The combiner is somewhat strange about how it uses costs. If any of the > insns involved in a comparison have a cost of 0, it does not verify that > the substitution is cheaper. "Cost 0" means "unknown cost". This isn't just

Re: [PATCH 0/4] Eliminate cc0 from m68k

2019-11-13 Thread Segher Boessenkool
On Wed, Nov 13, 2019 at 07:57:58PM +0100, Bernd Schmidt wrote: > On 11/13/19 7:16 PM, Segher Boessenkool wrote: > > I tried this out with a kernel build (just the defconfig). > > > during RTL pass: jump2 > > /home/segher/src/kernel/fs/binfmt_elf.c: In function 'elf_core_dump': > >

Re: [PATCH 0/2] Introduce a new GCC option, --record-gcc-command-line

2019-11-13 Thread Jeff Law
On 11/6/19 10:21 AM, Egeyar Bagcioglu wrote: > Hello, > > I would like to propose the following patches which introduce a compile > option --record-gcc-command-line. When passed to gcc, it saves the command > line option into the produced object file. The option makes it trivial to > trace

Re: [PATCH 0/4] Eliminate cc0 from m68k

2019-11-13 Thread Jeff Law
On 11/13/19 6:04 AM, Bernd Schmidt wrote: > This is a set of patches to convert m68k so that it no longer uses cc0. > The approach is to combine cc0 setter/user pairs into cbranch and cstore > patterns. It does not expose the flag register directly. Since m68k is a > target that is not under

Re: [PATCH 3/5] Use func_checker::hash_operand for hashing of GIMPLE operands.

2019-11-13 Thread Jeff Law
On 11/8/19 1:31 AM, Martin Liska wrote: > gcc/ChangeLog: > > 2019-11-11 Martin Liska > > * ipa-icf-gimple.h (func_checker::func_checker): Add > default constructor. > * ipa-icf.c (sem_function::init): Make operand_equal_p > and hash_operand public. >

Re: [PATCH 1/4] Preliminary m68k patches

2019-11-13 Thread Jeff Law
On 11/13/19 6:08 AM, Bernd Schmidt wrote: > This tidies up a few spots in the m68k backend in preparation for the > large patch to follow. This is purely for review purposes: this patch > has not been tested independently, and will be committed together with > the following one. > > Noteworthy

  1   2   >