Re: [Patch, fortran] PR66079 - [6 Regression] memory leak with source allocation in internal subprogram

2015-05-27 Thread Paul Richard Thomas
Dear Andre, I am perfectly happy with renaming the rename to "source". I was attempting to distinguish "atmp" coming from trans-array.c from this temporary; just as an aid to any possible future debugging. The rework of the patch looks fine to me as well. Do you want to commit or should I do so?

Re: Teach gimple_canonical_types_compatible_p about incomplete types

2015-05-27 Thread Richard Biener
On Tue, 26 May 2015, Jan Hubicka wrote: > > > Now the change does not really translate to great increase of > > > disambiguations > > > for Firefox (it seems more in noise). The reason is the pointer_type > > > globbing > > > in alias.c. > > > > Yeah, we only get the improvement because of some

Re: Add few cases to operand_equal_p

2015-05-27 Thread Richard Biener
On Tue, 26 May 2015, Jan Hubicka wrote: > > > Will do if we agree on having this. > > > > > > I know you would like ipa-icf to keep original bodies and use them for > > > inlining declaring alias sets to be function local. This is wrong plan. > > > Consder: > > > > > > void t(int *ptr) > > >

Re: Do not compute alias sets for types that don't need them

2015-05-27 Thread Richard Biener
On Tue, 26 May 2015, Jan Hubicka wrote: > > Hi, > > > > On Fri, 22 May 2015, Jan Hubicka wrote: > > > > > Index: tree-streamer-out.c > > > === > > > --- tree-streamer-out.c (revision 223508) > > > +++ tree-streamer-out.c (workin

Re: [PATCH][ARM] Add debug dumping of cost table fields

2015-05-27 Thread Kyrill Tkachov
Ping. https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html Thanks, Kyrill On 01/05/15 15:31, Kyrill Tkachov wrote: Hi all, This patch adds a macro to wrap cost field accesses into a helpful debug dump, saying which field is being accessed at what line and with what values. This helped me tr

Re: [RFC] operand_equal_p with valueization

2015-05-27 Thread Richard Biener
On Tue, 26 May 2015, Jan Hubicka wrote: > > On Fri, 22 May 2015, Jan Hubicka wrote: > > > > > > > > > > And no, I'm hesitant to change operand_equal_p too much. It's > > > > very much deep-rooted into GENERIC. > > > > > > OK, as another option, i can bring relevant logic from operand_equal_p >

Re: [PATCH][ARM] Add debug dumping of cost table fields

2015-05-27 Thread Andrew Pinski
On Wed, May 27, 2015 at 4:38 PM, Kyrill Tkachov wrote: > Ping. > https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html This and the one in AARCH64 is too noisy. Can we have an option to turn this on and default to turning them off. Thanks, Andrew > > Thanks, > Kyrill > > On 01/05/15 15:31,

Re: Do not compute alias sets for types that don't need them

2015-05-27 Thread Richard Biener
On Wed, 27 May 2015, Jan Hubicka wrote: > > > > > > I am not sure if TYPE_MAIN_VARIANT is really needed here. What I know is > > > that > > > complete types may have incomplete variants. > > > > How can that be? TYPE_FIELDS is shared across variants and all variants > > should be layed out. >

Re: [PATCH][ARM] Add debug dumping of cost table fields

2015-05-27 Thread Bin.Cheng
On Wed, May 27, 2015 at 4:39 PM, Andrew Pinski wrote: > On Wed, May 27, 2015 at 4:38 PM, Kyrill Tkachov > wrote: >> Ping. >> https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html > > This and the one in AARCH64 is too noisy. Can we have an option to > turn this on and default to turning them

Re: PATCH to run autoconf tests with C++ compiler

2015-05-27 Thread Andreas Schwab
This breaks all checks for supported compiler options: configure:6382: checking whether gcc supports -Wnarrowing configure:6399: gcc -c -Wnarrowing conftest.c >&5 cc1: error: unrecognized command line option "-Wnarrowing" configure:6399: $? = 1 configure:6485: checking whether gcc supports -Wnar

Re: [Patch, fortran, pr65548, addendum] [5/6 Regression] gfc_conv_procedure_call

2015-05-27 Thread Andre Vehreschild
Hi Thomas, thanks for the review. Commited as r223738 with the changes (new testcase, double space in dg-do). Regards, Andre On Wed, 27 May 2015 08:38:07 +0200 Thomas Koenig wrote: > Hi Andre, > > > Because this patch is obvious I plan to commit it tomorrow if no one > > objects?! >

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Richard Biener
On Wed, 27 May 2015, Jan Hubicka wrote: > Hi, this patch makes it possible for non-LTO alias oracle to TBAA > disambiguate pointer types. It makes void * conflicting with all of them > and does not put it to alias set 0. It also preserves the property that > qualifiers of pointer-to type should

Re: [PATCH][ARM] Add debug dumping of cost table fields

2015-05-27 Thread Kyrill Tkachov
On 27/05/15 09:47, Bin.Cheng wrote: On Wed, May 27, 2015 at 4:39 PM, Andrew Pinski wrote: On Wed, May 27, 2015 at 4:38 PM, Kyrill Tkachov wrote: Ping. https://gcc.gnu.org/ml/gcc-patches/2015-05/msg00054.html This and the one in AARCH64 is too noisy. Can we have an option to turn this on an

[patch] Move generic tree functions from expr.h to tree.h

2015-05-27 Thread Eric Botcazou
Hi, a few functions manipulating generic trees from expr.c are useful for FEs too and some of them (array_ref_{low,up}_bound, get_inner_reference) are already declared in tree.h instead of expr.h. This patch moves 3 similar functions (array_ref_element_size, array_at_struct_end_p, component_re

Re: conditional lim

2015-05-27 Thread Richard Biener
On Tue, May 26, 2015 at 3:10 PM, Evgeniya Maenkova wrote: > Hi, Richard > > Thanks for review starting. > > Do you see any major issues with this patch (i.e. algorithms and ideas > that should be completely replaced, effectively causing the re-write > of most code)? > > To decide if there are majo

Re: [patch] Move generic tree functions from expr.h to tree.h

2015-05-27 Thread Richard Biener
On Wed, May 27, 2015 at 12:00 PM, Eric Botcazou wrote: > Hi, > > a few functions manipulating generic trees from expr.c are useful for FEs too > and some of them (array_ref_{low,up}_bound, get_inner_reference) are already > declared in tree.h instead of expr.h. This patch moves 3 similar function

[PATCH] Fix last SLP analysis refactoring

2015-05-27 Thread Richard Biener
This fixes the last SLP analysis refactoring to _really_ pass the SLP node to the analysis functions. It also moves the premature out in the loop analysis code (it fails to consider pattern stmts for one). Finally this properly implements the slp_perm check for strided loads in vectorizable_load

Re: [PATCH][ARM] Restrict MAX_CONDITIONAL_EXECUTE when -mrestrict-it is in place

2015-05-27 Thread Kyrill Tkachov
Ping. Here is the rebased (and retested) patch after Christian's series. Thanks, Kyrill On 18/05/15 11:26, Kyrill Tkachov wrote: Hi all, When using the short Thumb2 IT blocks we want to also restrict ifcvt so that it will not end up generating a number of back-to-back cond_execs that will la

Re: [patch] Move generic tree functions from expr.h to tree.h

2015-05-27 Thread Eric Botcazou
> No. Prototypes of functions defined in A.c should be in A.h, not in some > other header. We've been (slowly) moving to that. You should have moved > them all to expr.h instead, or move the implementations to tree.c. The former is simply not possible since expr.h is poisoned for FEs... I can

Re: ping**3 [PATCH, ARM] Cortex-A9 MPCore volatile load workaround

2015-05-27 Thread Kyrill Tkachov
Hi Sandra, Chung-Lin, A couple of comments from me, On 26/05/15 20:10, Sandra Loosemore wrote: Chung-Lin posted this patch last year but it seems never to have been reviewed: https://gcc.gnu.org/ml/gcc-patches/2014-06/msg00714.html I've just re-applied and re-tested it and it still seems to b

Re: [patch] libstdc++/66017 Avoid bad casts and fix alignment of _Rb_tree_node::_M_storage

2015-05-27 Thread Jonathan Wakely
On 26/05/15 15:46 +0100, Jonathan Wakely wrote: On 22/05/15 18:48 +0100, Jonathan Wakely wrote: On 22/05/15 16:21 +0100, Jonathan Wakely wrote: On 22/05/15 17:13 +0200, Jakub Jelinek wrote: On Fri, May 22, 2015 at 03:59:47PM +0100, Jonathan Wakely wrote: + alignas(alignof(_Tp2)) unsigned

Re: [C++/66270] another may_alias crash

2015-05-27 Thread Nathan Sidwell
On 05/26/15 15:00, Nathan Sidwell wrote: On 05/25/15 21:18, Jason Merrill wrote: Hmm, are you seeing a case where TYPE_CANONICAL (to_type) has the may_alias attribute? Yes. This occurs when the newly created TRCAA pointer is to a self-canonical type. The else if (TYPE_CANONICAL (to_type)

Re: [patch] Move generic tree functions from expr.h to tree.h

2015-05-27 Thread Richard Biener
On Wed, May 27, 2015 at 12:50 PM, Eric Botcazou wrote: >> No. Prototypes of functions defined in A.c should be in A.h, not in some >> other header. We've been (slowly) moving to that. You should have moved >> them all to expr.h instead, or move the implementations to tree.c. > > The former is s

Re: [patch 10/10] debug-early merge: compiler proper

2015-05-27 Thread Jason Merrill
On 05/20/2015 11:50 AM, Aldy Hernandez wrote: + determine anscestry later. */ ancestry +static bool early_dwarf_dumping; Sorry for the late bikeshedding, but "dumping" suddently strikes me as odd, since there is no output as with other dumping in the compiler. Can we change that to "

Re: [PATCH] Fix duplicated warning with __attribute__((format)) (PR c/64223)

2015-05-27 Thread Jeff Law
On 05/26/2015 05:06 AM, Marek Polacek wrote: Ping. On Tue, May 19, 2015 at 04:07:53PM +0200, Marek Polacek wrote: This PR points out that we output same -Wformat warning twice when using __attribute__ ((format)). The problem was that attribute_value_equal (called when processing merge_attribut

Re: GIMPLE syntax highlighting for vim

2015-05-27 Thread Jeff Law
On 05/24/2015 01:48 PM, Mikhail Maltsev wrote: Hi all! The attached vim script can be used to highlight syntax in GIMPLE dumps making them somewhat easier to read. I would like to add this script to gcc/contrib directory. Is that OK? Sure, that's fine. jeff

Re: [patch 10/10] debug-early merge: compiler proper

2015-05-27 Thread Richard Biener
On Fri, May 22, 2015 at 4:12 PM, Aldy Hernandez wrote: > On 05/22/2015 07:23 AM, Richard Biener wrote: >> >> On Wed, May 20, 2015 at 5:50 PM, Aldy Hernandez wrote: >>> >>> On 05/18/2015 06:56 AM, Richard Biener wrote: > > diff --git a/gcc/tree-core.h b/gcc/tree-core.h index ad1bb23..2a9

Re: [PATCH] LTO balanced map: add stats about insns and symbols.

2015-05-27 Thread Richard Biener
On Tue, May 26, 2015 at 4:13 PM, Martin Liška wrote: > Hello. > > Following patch enhanced dump output for LTO balanced map. > Sample output: > > Partition sizes: > partition 0 contains 2413 (13.33%) symbols and 56646 (3.62%) insns > partition 1 contains 2006 (11.08%) symbols and 55901 (3.57%) ins

Re: PATCH to run autoconf tests with C++ compiler

2015-05-27 Thread Richard Biener
On Wed, May 27, 2015 at 10:49 AM, Andreas Schwab wrote: > This breaks all checks for supported compiler options: > > configure:6382: checking whether gcc supports -Wnarrowing > configure:6399: gcc -c -Wnarrowing conftest.c >&5 > cc1: error: unrecognized command line option "-Wnarrowing" > configu

Re: conditional lim

2015-05-27 Thread Evgeniya Maenkova
On Wed, May 27, 2015 at 2:11 PM, Richard Biener wrote: > On Tue, May 26, 2015 at 3:10 PM, Evgeniya Maenkova > wrote: >> Hi, Richard >> >> Thanks for review starting. >> >> Do you see any major issues with this patch (i.e. algorithms and ideas >> that should be completely replaced, effectively cau

Re: [PATCH 4/13] arm musl support

2015-05-27 Thread Kyrill Tkachov
Hi Szabolcs, On 20/04/15 19:53, Szabolcs Nagy wrote: Set up dynamic linker name for arm. gcc/Changelog: 2015-04-16 Gregor Richards * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define. This is ok. The #if TARGET_BIG_ENDIAN_DEFAULT logic looks ok to me. I've committed this as

[Ada] Remove propagation of atomicity from object to type

2015-05-27 Thread Arnaud Charlet
This change removes an old trick which was propagating the Atomic (and now Volatile_Full_Access) setting from an object to a locally-defined type, in order to coax gigi into accepting more atomic objects. This trick is now obsolete since gigi should be able to rewrite the type of the objects to me

Re: [PATCH][expr.c] PR 65358 Avoid clobbering partial argument during sibcall

2015-05-27 Thread Kyrill Tkachov
Hi Jeff, On 12/05/15 23:04, Jeff Law wrote: On 05/11/2015 03:28 AM, Kyrill Tkachov wrote: The more I think about this, the more I think it's an ugly can of worms and maybe we should just disable sibcalls for partial arguments. I doubt it's a big performance issue in general. We already have

Re: [Patch]: libbacktrace - add support of PE/COFF

2015-05-27 Thread Jeff Law
On 05/21/2015 06:41 AM, Tristan Gingold wrote: Hello, this patch adds basic support to libbacktrace for PE32 and PE32+ (Windows and Windows64 object formats). Support is ‘basic’ because neither DLL nor PIE (if that exists) are handled. Furthermore, there is no windows versions of mmapio.c and

[PATCH 03/35] Change use to type-based pool allocator in lra-lives.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * lra-lives.c (free_live_range): Use new type-based pool allocator. (free_live_range_list) Likewise. (create_live_range) Likewise. (copy_live_range) Likewise. (lra_merge_live_ranges) Likewise. (remove_some_p

[PATCH 01/35] Introduce new type-based pool allocator.

2015-05-27 Thread mliska
Hello. Following patch set attempts to replace old-style pool allocator to a type-based one. Moreover, as we utilize classes and structs that are used just by a pool allocator, these types have overwritten ctors and dtors. Thus, using the allocator is much easier and we shouldn't cast types back

[PATCH 04/35] Change use to type-based pool allocator in lra.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * lra.c (init_insn_regs): Use new type-based pool allocator. (new_insn_reg) Likewise. (free_insn_reg) Likewise. (free_insn_regs) Likewise. (finish_insn_regs) Likewise. (init_insn_recog_data) Likewise.

[PATCH 02/35] Change use to type-based pool allocator in et-forest.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * et-forest.c (et_new_occ): Use new type-based pool allocator. (et_new_tree): Likewise. (et_free_tree): Likewise. (et_free_tree_force): Likewise. (et_free_pools): Likewise. (et_split): Likewise. --- gcc/dom

[PATCH 19/35] Change use to type-based pool allocator in sel-sched-ir.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * sel-sched-ir.c (alloc_sched_pools): Use new type-based pool allocator. (free_sched_pools): Likewise. * sel-sched-ir.h (_list_alloc): Likewise. (_list_remove): Likewise. --- gcc/sel-sched-ir.c | 7 ++- gcc/sel-sched-i

[PATCH 05/35] Change use to type-based pool allocator in ira-color.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-color.c (init_update_cost_records):Use new type-based pool allocator. (get_update_cost_record) Likewise. (free_update_cost_record_list) Likewise. (finish_update_cost_records) Likewise. (initiate_cost_update)

[PATCH 09/35] Change use to type-based pool allocator in c-format.c.

2015-05-27 Thread mliska
gcc/c-family/ChangeLog: 2015-04-30 Martin Liska * c-format.c (check_format_arg):Use new type-based pool allocator. (check_format_info_main) Likewise. --- gcc/c-family/c-format.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/gcc/c-family/c-f

[PATCH 06/35] Change use to type-based pool allocator in ira-color.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-color.c (init_update_cost_records):Use new type-based pool allocator. (get_update_cost_record) Likewise. (free_update_cost_record_list) Likewise. (finish_update_cost_records) Likewise. (initiate_cost_update)

[PATCH 12/35] Change use to type-based pool allocator in cselib.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * cselib.c (new_elt_list):Use new type-based pool allocator. (new_elt_loc_list) Likewise. (unchain_one_elt_list) Likewise. (unchain_one_elt_loc_list) Likewise. (unchain_one_value) Likewise. (new_cselib_val)

[PATCH 10/35] Change use to type-based pool allocator in cfg.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * cfg.c (initialize_original_copy_tables):Use new type-based pool allocator. (free_original_copy_tables) Likewise. (copy_original_table_clear) Likewise. (copy_original_table_set) Likewise. --- gcc/cfg.c | 17 +++--

[PATCH] New SLP reduction testcase

2015-05-27 Thread Richard Biener
To cover the case where we need two vectors. Tested on x86_64-unknown-linux-gnu, applied. Richard. 2015-05-27 Richard Biener * gcc.dg/vect/slp-reduc-7.c: New testcase. Index: gcc/testsuite/gcc.dg/vect/slp-reduc-7.c ===

Re: [Patch, fortran] PR66079 - [6 Regression] memory leak with source allocation in internal subprogram

2015-05-27 Thread Andre Vehreschild
Hi Paul, hi Mikael, about renaming the identifier emitted: I would like to keep it short. Remember, there is always a number attached to it, which makes it unique. Furthermore does "alloc_source_tmp" sound unnecessarily long to me. It tastes like we do not trust the unique identifier mechanism est

Re: [PATCH 09/35] Change use to type-based pool allocator in c-format.c.

2015-05-27 Thread Jakub Jelinek
On Wed, May 27, 2015 at 03:56:47PM +0200, mliska wrote: > gcc/c-family/ChangeLog: > > 2015-04-30 Martin Liska > > * c-format.c (check_format_arg):Use new type-based pool allocator. > (check_format_info_main) Likewise. Please watch your ChangeLog entries. Missing space after : in

[PATCH] Fix PR66272

2015-05-27 Thread Richard Biener
The following fixes PR66272. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk sofar. Richard. 2015-05-27 Richard Biener PR tree-optimization/66272 Revert parts of 2014-08-15 Richard Biener PR tree-optimization/62031 * tree-dat

[PATCH 28/35] Change use to type-based pool allocator in ipa-profile.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ipa-profile.c (account_time_size): Use new type-based pool allocator. (ipa_profile_generate_summary): Likewise. (ipa_profile_read_summary): Likewise. (ipa_profile): Likewise. --- gcc/ipa-profile.c | 11 --- 1 fil

[PATCH 34/35] Change use to type-based pool allocator in ira-build.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-build.c (initiate_allocnos): Use new type-based pool allocator. (ira_create_object): Likewise. (ira_create_allocno): Likewise. (ira_create_live_range): Likewise. (copy_live_range): Likewise. (ira_finis

[PATCH 31/35] Change use to type-based pool allocator in ipa-prop.c and ipa-cp.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator. (allocate_and_init_ipcp_value): Likewise. (ipcp_lattice::add_value): Likewise. (merge_agg_lats_step): Likewise. (ipcp_driver): Likewise.

[PATCH 21/35] Change use to type-based pool allocator in regcprop.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * regcprop.c (free_debug_insn_changes): Use new type-based pool allocator. (replace_oldest_value_reg): Likewise. (pass_cprop_hardreg::execute): Likewise. --- gcc/regcprop.c | 31 +-- 1 file changed, 21

[PATCH 23/35] Change use to type-based pool allocator in tree-ssa-pre.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based pool allocator. (bitmap_set_new): Likewise. (get_or_alloc_expr_for_constant): Likewise. (get_or_alloc_expr_for): Likewise. (phi_translate_1): Likewi

[PATCH 16/35] Change use to type-based pool allocator in tree-sra.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-sra.c (sra_initialize): Use new type-based pool allocator. (sra_deinitialize) Likewise. (create_access_1) Likewise. (build_accesses_from_assign) Likewise. (create_artificial_child_access) Likewise. --- gcc/t

[PATCH 29/35] Change use to type-based pool allocator in ipa-prop.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator. (ipa_edge_duplication_hook): Likewise. (ipa_free_all_structures_after_ipa_cp): Likewise. (ipa_free_all_structures_after_iinln): Likewise. --- gcc/ipa-p

[PATCH 32/35] Change use to type-based pool allocator in ira-build.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-build.c (finish_allocnos): Use new type-based pool allocator. (finish_prefs): Likewise. (finish_copies): Likewise. --- gcc/ira-build.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/ira-bu

[PATCH 35/35] Remove old pool allocator.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * alloc-pool.c (create_alloc_pool): Remove. (empty_alloc_pool): Likewise. (free_alloc_pool): Likewise. (free_alloc_pool_if_empty): Likewise. (pool_alloc): Likewise. (pool_free): Likewise. * alloc-poo

[PATCH 27/35] Change use to type-based pool allocator in tree-ssa-structalias.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-structalias.c (new_var_info): Use new type-based pool allocator. (new_constraint): Likewise. (init_alias_vars): Likewise. (delete_points_to_sets): Likewise. --- gcc/tree-ssa-structalias.c | 17 +++--

[PATCH 14/35] Change use to type-based pool allocator in df-scan.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * df-scan.c (struct df_scan_problem_data):Use new type-based pool allocator. (df_scan_free_internal) Likewise. (df_scan_alloc) Likewise. (df_grow_reg_info) Likewise. (df_free_ref) Likewise. (df_insn_create_

[PATCH 11/35] Change use to type-based pool allocator in sh.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * config/sh/sh.c (add_constant):Use new type-based pool allocator. (sh_reorg) Likewise. --- gcc/config/sh/sh.c | 30 ++ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/gcc/config/sh/sh.c b/gcc/co

[PATCH 24/35] Change use to type-based pool allocator in tree-ssa-reassoc.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based pool allocator. (add_repeat_to_ops_vec): Likewise. (get_ops): Likewise. (maybe_optimize_range_tests): Likewise. (init_reassoc): Likewise. (fini_reas

[PATCH 30/35] Change use to type-based pool allocator in ipa-inline-analysis.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ipa-inline-analysis.c (edge_set_predicate): Use new type-based pool allocator. (set_hint_predicate): Likewise. (inline_summary_alloc): Likewise. (reset_inline_edge_summary): Likewise. (reset_inline_summary): Like

[PATCH 25/35] Change use to type-based pool allocator in tree-ssa-sccvn.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based pool allocator. (vn_reference_insert_pieces): Likewise. (vn_phi_insert): Likewise. (visit_reference_op_call): Likewise. (copy_phi): Likewise. (co

[PATCH 22/35] Change use to type-based pool allocator in sched-deps.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * sched-deps.c (create_dep_node): Use new type-based pool allocator. (delete_dep_node): Likewise. (create_deps_list): Likewise. (free_deps_list): Likewise. (sched_deps_init): Likewise. (sched_deps_finish): L

[PATCH 33/35] Change use to type-based pool allocator in ira-color.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-color.c (init_update_cost_records): Use new type-based pool allocator. (get_update_cost_record): Likewise. (free_update_cost_record_list): Likewise. (finish_update_cost_records): Likewise. (initiate_cost_upda

[PATCH 26/35] Change use to type-based pool allocator in tree-ssa-strlen.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator. (free_strinfo): Likewise. (pass_strlen::execute): Likewise. --- gcc/tree-ssa-strlen.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --g

[PATCH 13/35] Change use to type-based pool allocator in df-problems.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * df-problems.c (df_chain_create):Use new type-based pool allocator. (df_chain_unlink_1) Likewise. (df_chain_unlink) Likewise. (df_chain_remove_problem) Likewise. (df_chain_alloc) Likewise. (df_chain_free) L

[PATCH 17/35] Change use to type-based pool allocator in tree-ssa-math-opts.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator. (free_bb): Likewise. (pass_cse_reciprocals::execute): Likewise. --- gcc/tree-ssa-math-opts.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-)

[PATCH 07/35] Change use to type-based pool allocator in var-tracking.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * var-tracking.c (variable_htab_free):Use new type-based pool allocator. (attrs_list_clear) Likewise. (attrs_list_insert) Likewise. (attrs_list_copy) Likewise. (shared_hash_unshare) Likewise. (shared_hash_de

[PATCH 20/35] Change use to type-based pool allocator in ira-build.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * ira-build.c (initiate_cost_vectors): Use new type-based pool allocator. (ira_allocate_cost_vector): Likewise. (ira_free_cost_vector): Likewise. (finish_cost_vectors): Likewise. --- gcc/ira-build.c | 15 +++

[PATCH 15/35] Change use to type-based pool allocator in dse.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * dse.c (get_group_info):Use new type-based pool allocator. (dse_step0) Likewise. (free_store_info) Likewise. (delete_dead_store_insn) Likewise. (free_read_records) Likewise. (record_store) Likewise.

[Patch MIPS] Enable TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS hook

2015-05-27 Thread Robert Suchanek
Hi, The patch enables the hook for MIPS as a result of the discussion: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65862 Tested on mips-mti-linux-gnu and mips-img-linux-gnu. Ok to apply? Regards, Robert gcc/ChangeLog: * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New

[PATCH 18/35] Change use to type-based pool allocator in stmt.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * stmt.c (add_case_node): Use new type-based pool allocator. (expand_case): Likewise. (expand_sjlj_dispatch_table): Likewise. --- gcc/stmt.c | 16 +--- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/gcc

[PATCH 08/35] Change use to type-based pool allocator in asan.c.

2015-05-27 Thread mliska
gcc/ChangeLog: 2015-04-30 Martin Liska * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based pool allocator. (asan_mem_ref_new) Likewise. (free_mem_ref_resources) Likewise. --- gcc/asan.c | 44 1 file changed, 20 insert

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Jan Hubicka
> > Hi, this patch makes it possible for non-LTO alias oracle to TBAA > > disambiguate pointer types. It makes void * conflicting with all of them > > and does not put it to alias set 0. It also preserves the property that > > qualifiers of pointer-to type should not matter to determine the alia

[gomp4.1] Support C++ references in privatization clauses

2015-05-27 Thread Jakub Jelinek
Hi! In OpenMP 4.1, C++ references are allowed in {,first,last}private and linear clauses (previously it has been only allowed in reduction), but most of the support code in the middle-end has long been there for invisible references and fortran already. 2015-05-27 Jakub Jelinek * omp-

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Jan Hubicka
> Yes, so is > > struct foo {struct bar a;}; > > a.a = ... > ... = a; > > and > > a = ... > ... = a.a; > > this is why conflict is symmetrization of the subset relation. OK the statement above is true, but subsets alone are not quite right for use in aliasing_component_refs_p void

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Jan Hubicka
> > Yes, so is > > > > struct foo {struct bar a;}; > > > > a.a = ... > > ... = a; > > > > and > > > > a = ... > > ... = a.a; > > > > this is why conflict is symmetrization of the subset relation. > > > OK the statement above is true, but subsets alone are not quite right for use > in

Re: [PATCH] Break when has_sample is true

2015-05-27 Thread Jeff Law
On 05/26/2015 08:32 AM, Aditya K wrote: I don't have commit access. I would appreciate if someone does that for me. Thanks, -Aditya Date: Tue, 26 May 2015 08:14:41 -0600 From: l...@redhat.com To: hiradi...@msn.com; gcc-patches@gcc.gnu.org Subject: Re:

Re: [PATCH] Print Pass Names

2015-05-27 Thread Jeff Law
On 05/26/2015 08:32 AM, Aditya K wrote: I don't have commit access. I would appreciate if someone does that for me. Thanks, -Aditya Date: Fri, 22 May 2015 14:52:29 -0600 From: l...@redhat.com To: hiradi...@msn.com; richard.guent...@gmail.com; gcc-patche

Re: [PATCH, libmpx, i386, PR driver/65444] Pass '-z bndplt' when building dynamic objects with MPX

2015-05-27 Thread Jeff Law
On 05/26/2015 03:13 AM, Ilya Enkovich wrote: On 06 Apr 09:28, Jeff Law wrote: On 04/06/2015 09:17 AM, Ilya Enkovich wrote: To tell the truth, I can't figure out what this means from a user perspective. How does a user know whether the linker option is being ignored, or if they have a new enou

Re: [PATCH] Fix PR66168: ICE due to incorrect invariant register info

2015-05-27 Thread Jeff Law
On 05/24/2015 07:26 PM, Thomas Preud'homme wrote: From: Jeff Law [mailto:l...@redhat.com] Sent: Saturday, May 23, 2015 6:54 AM - if (!can_move_invariant_reg (loop, inv, reg)) + if (!can_move_invariant_reg (loop, inv, dest)) Won't this run into into the same problem if DEST is a SUBRE

Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option

2015-05-27 Thread Peter Bergner
On Tue, 2015-05-26 at 16:40 -0500, Bill Schmidt wrote: > Ah, never mind. I guess I need to run automake first. I ran the patch on powerpc64-linux (ie, Big Endian) both with and without --enable-default-pie. Both bootstraps completed with no errors and the without --enable-default-pie regtested w

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Richard Biener
On May 27, 2015 5:04:13 PM GMT+02:00, Jan Hubicka wrote: >> > Yes, so is >> > >> > struct foo {struct bar a;}; >> > >> > a.a = ... >> > ... = a; >> > >> > and >> > >> > a = ... >> > ... = a.a; >> > >> > this is why conflict is symmetrization of the subset relation. >> >> >> OK the s

Re: [PATCH] Fixes combined gcc-binutils builds.

2015-05-27 Thread Jeff Law
On 05/24/2015 01:56 PM, Michael Darling wrote: Combined builds has been broken for about 10 months, because some binutils configure.in files were renamed to configure.ac, but gcc's references to them were not updated. There is a corresponding patch submitted to binutils-gdb, which renames its fe

Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option

2015-05-27 Thread H.J. Lu
On Wed, May 27, 2015 at 8:24 AM, Peter Bergner wrote: > On Tue, 2015-05-26 at 16:40 -0500, Bill Schmidt wrote: >> Ah, never mind. I guess I need to run automake first. > > I ran the patch on powerpc64-linux (ie, Big Endian) both with and > without --enable-default-pie. Both bootstraps completed

Re: Do less generous pointer globbing in alias.c

2015-05-27 Thread Jan Hubicka
> >Hmm, what about > > > >union t {int a; char b;}; > > > >int a; > >uniont t *ptr=&a; > >*ptr = ... > > > >If we want to define this, aliasing_component_refs_p would IMO need to > >be symmetrized, too. > >I am happy leaving this undefined. > > Globbing all pointers was soo simple... :) Indeed,

Re: [PATCH PR65447]Improve IV handling by grouping address type uses with same base and step

2015-05-27 Thread Kyrill Tkachov
Hi Bin, On 08/05/15 11:47, Bin Cheng wrote: Hi, GCC's IVO currently handles every IV use independently, which is not right by learning from cases reported in PR65447. The rationale is: 1) Lots of address type IVs refer to the same memory object, share similar base and have same step. We should

Re: [PATCH/RFC] Make loop-header-copying more aggressive, rerun before tree-if-conversion

2015-05-27 Thread Jeff Law
On 05/22/2015 09:42 AM, Alan Lawrence wrote: This patch does so (and makes slightly less conservative, to tackle the example above). I found I had to make this a separate pass, so that the phi nodes were cleaned up at the end of the pass before running tree_if_conversion. Also at this stage in t

[PATCH] hppa-linux: add missing cpp specs

2015-05-27 Thread Mike Frysinger
Define CPP_SPEC for parisc linux targets so that -posix & -pthread work like on all other linux targets. 2015-05-27 Mike Frysinger * config/pa/pa-linux.h (CPP_SPEC): Define. --- gcc/config/pa/pa-linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/pa/

[PATCH] microblaze-linux: add missing cpp specs

2015-05-27 Thread Mike Frysinger
Define CPP_SPEC for microblaze linux targets so that -posix & -pthread work like on all other linux targets. 2015-05-27 Mike Frysinger * config/microblaze/linux.h (CPP_SPEC): Define. --- gcc/config/microblaze/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/mi

[PATCH] nios2-linux: add missing cpp specs

2015-05-27 Thread Mike Frysinger
Define CPP_SPEC for nios2 linux targets so that -posix & -pthread work like on all other linux targets. 2015-05-27 Mike Frysinger * config/nios2/linux.h (CPP_SPEC): Define. --- gcc/config/nios2/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/nios2/linux.h b/g

Re: [PATCH] Fix PR66142

2015-05-27 Thread Kyrill Tkachov
Hi Richard, On 26/05/15 14:54, Richard Biener wrote: The following fixes the testcase in PR66142 Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk. Richard. 2015-05-26 Richard Biener PR tree-optimization/66142 * tree-ssa-sccvn.c (vn_reference_lookup_3):

Re: [PATCH] microblaze-linux: add missing cpp specs

2015-05-27 Thread Andreas Schwab
Mike Frysinger writes: > diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h > index a7faa7d..655a70f 100644 > --- a/gcc/config/microblaze/linux.h > +++ b/gcc/config/microblaze/linux.h > @@ -22,6 +22,9 @@ > #undef TARGET_SUPPORTS_PIC > #define TARGET_SUPPORTS_PIC 1 > >

Re: [PATCH] PR 62173, re-shuffle insns for RTL loop invariant hoisting

2015-05-27 Thread Jeff Law
On 05/21/2015 02:46 PM, Jiong Wang wrote: Thanks for these thoughts. I tried but still can't prove this transformation will not introduce extra pointer overflow even given it's reassociation with vfp, although my first impression is it do will not introduce extra risk in real application. Have

Re: Fwd: PING^3: [PATCH]: New configure options that make the compiler use -fPIE and -pie as default option

2015-05-27 Thread Peter Bergner
On Wed, 2015-05-27 at 08:36 -0700, H.J. Lu wrote: > On Wed, May 27, 2015 at 8:24 AM, Peter Bergner wrote: > > On Tue, 2015-05-26 at 16:40 -0500, Bill Schmidt wrote: > >> Ah, never mind. I guess I need to run automake first. > > > > I ran the patch on powerpc64-linux (ie, Big Endian) both with and

Re: [PATCH] microblaze-linux: add missing cpp specs

2015-05-27 Thread Jeff Law
On 05/27/2015 10:03 AM, Andreas Schwab wrote: Mike Frysinger writes: diff --git a/gcc/config/microblaze/linux.h b/gcc/config/microblaze/linux.h index a7faa7d..655a70f 100644 --- a/gcc/config/microblaze/linux.h +++ b/gcc/config/microblaze/linux.h @@ -22,6 +22,9 @@ #undef TARGET_SUPPORTS_PIC

Re: PATCH to run autoconf tests with C++ compiler

2015-05-27 Thread Jason Merrill
On 05/27/2015 08:54 AM, Richard Biener wrote: On Wed, May 27, 2015 at 10:49 AM, Andreas Schwab wrote: This breaks all checks for supported compiler options: configure:6382: checking whether gcc supports -Wnarrowing configure:6399: gcc -c -Wnarrowing conftest.c >&5 cc1: error: unrecognized com

Re: Do not compute alias sets for types that don't need them

2015-05-27 Thread Jan Hubicka
> On Tue, 26 May 2015, Jan Hubicka wrote: > > > > Hi, > > > > > > On Fri, 22 May 2015, Jan Hubicka wrote: > > > > > > > Index: tree-streamer-out.c > > > > === > > > > --- tree-streamer-out.c (revision 223508) > > > > +++ tree-stream

Re: [PATCH] Contribute FreeBSD unwind support (x86_64 and x86)

2015-05-27 Thread Jeff Law
On 05/20/2015 01:49 PM, John Marino wrote: I have maintained unwind support for FreeBSD i386 and x86_64 in my "gnat-aux" repository for many years (I created it). I've always intended on contributing it back to GCC, but I never got around to "proving" it worked until now. Happens. I can't count

  1   2   3   >