[PATCH 1/8] add default for NO_FUNCTION_CSE

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-26 Trevor Saunders tbsaunde+...@tbsaunde.org * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE. * cse.c (fold_rtx): Likewise. * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.

[PATCH 2/8] add default for HARD_REGNO_RENAME_OK

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-27 Trevor Saunders tbsaunde+...@tbsaunde.org * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to true. * regrename.c (check_new_reg_p): Remove check if HARD_REGNO_RENAME_OK is

[PATCH 01/12] add default definition of EH_RETURN_DATA_REGNO

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * defaults.h: New definition of EH_RETURN_DATA_REGNO. * except.c: Remove definition of EH_RETURN_DATA_REGNO. * builtins.c (expand_builtin): Remove check

[PATCH 04/12] always define HAVE_cc0

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * genconfig.c (main): Always define HAVE_cc0. * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if HAVE_cc0. * cfgcleanup.c

[PATCH 03/12] more removal of ifdef HAVE_cc0

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code that is trivially ded on non cc0 targets. (simplify_set): Likewise.

[PATCH 06/12] provide default for RETURN_ADDR_OFFSET

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * defaults.h (RETURN_ADDR_OFFSET): New definition. * except.c (expand_builtin_extract_return_addr): Remove ifdef RETURN_ADDR_OFFSET.

[PATCH 07/12] provide default for MASK_RETURN_ADDR

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * defaults.h (MASK_RETURN_ADDR): New definition. * except.c (expand_builtin_extract_return_addr): Remove ifdef MASK_RETURN_ADDR. --- gcc/defaults.h | 4

[PATCH 00/12] Reduce conditional compilation

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, This is a first round of patches to reduce the amount of code with in #if / #ifdef. This makes it incrementally easier to not break configs other than the one being built, and moves things slightly closer to using target hooks for everything.

[PATCH 02/12] remove some ifdef HAVE_cc0

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * conditions.h: Define macros even if HAVE_cc0 is undefined. * emit-rtl.c: Define functions even if HAVE_cc0 is undefined. * final.c: Likewise. *

[PATCH 05/12] make some HAVE_cc0 code always compiled

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0) (try_redirect_by_replacing_jump): Likewise. (rtl_tidy_fallthru_edge): Likewise.

[PATCH 08/12] reduce conditional compilation for HARD_FRAME_POINTER_IS_FRAME_POINTER

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * alias.c (init_alias_target): Remove ifdef * HARD_FRAME_POINTER_IS_FRAME_POINTER. * df-scan.c (df_insn_refs_collect): Likewise.

[PATCH 10/12] remove more ifdefs for HAVE_cc0

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0. * cfgcleanup.c (flow_find_cross_jump): Likewise. (flow_find_head_matching_sequence): Likewise.

[PATCH 09/12] remove #if for PIC_OFFSET_TABLE_REGNUM

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * df-scan.c (df_get_entry_block_def_set): Remove #ifdef PIC_OFFSET_TABLE_REGNUM. --- gcc/df-scan.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-)

[PATCH 11/12] provide default for INSN_SETS_ARE_DELAYED

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org gcc/ChangeLog: 2015-04-21 Trevor Saunders tbsaunde+...@tbsaunde.org * defaults.h (INSN_SETS_ARE_DELAYED): New definition. * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED. * resource.c (mark_set_resources):

[PATCH] remove need for store_values_directly

2015-04-16 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, Last stage 1 I introduced a second form of hash_table that stored elements of value_type in addition to the old form that stored elements of type value_type *. That lead to a fair bit of code dupplication in hash_table, but it simplified the

[PATCH] fix building for alpha-dec-vms

2015-03-27 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, Unfortunately when testing r217869 I didn't realize the modified code in alpha.c was only used for some alpha targets. So testing alpha-linux wasn't enough or even really useful :( I tested cc1 for alpha-dec-vms now builds as discussed before

[PATCH] sem_function::bb_dict_test should take a vecint *

2015-02-18 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org bb_dict_test () ment to operate on the callers vector, not a copy of it. Otherwise it either does nothing or crashes. approved by Honza off list committing to trunk (bootstrapped + regtested x86_64-linux-gnu). Trev gcc/ChangeLog: 2015-02-18

[PATCH] cap frequency in make_forwarder_block PR64326

2015-02-10 Thread tbsaunde+gcc
From: tbsaunde tbsaunde@138bc75d-0d04-0410-961f-82ee72b054a4 In the testcase the block with problematic frequency has to incoming edges. Each edge has probability 1. The first edge's source bb has frequency 873/1, and the second has a frequency of 9409/1. So at least one of those is

[PATCH] pr 61548 - tree-emutls needs to resolve the aliases it creates

2015-01-30 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, tree-emutls wasn't resolvingthe aliases it created which meant that the varpool node's ref_list said it didn't refer to anything which caused get_alias_target to crash. Then varpool_node::remove called varpool_node::ctor_useful_for_folding_p

[PATCH] pr 61889 - support gcov-tool without ftw.h

2015-01-30 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, given the glibc man page claims this is in POSIX.1-2001 and SUv1, and none of the people testing on normally odd systems other than mingw have complained it doesn't seem terribly likely there's many other hosts where this is an issue, so I just

[PATCH] pr 64047 - explicitly handle target_option_default_node in rs6000_set_current_function

2015-01-27 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, the compiler crashes on pr52429.c because this_target_ira_int gets initialized with null x_init_costs and x_op_costs. While I don't really understand this option handling mess r217659 made the analogous change to i386 when it broke this. So

[PATCH] pr 63325 - make fold ignore decl_with_vis.symtab_node

2015-01-22 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, fold calls symtab_node::get_create () which can change this field from NULL to point to a new object. It doesn't seem to really matter when the object gets created and I don't think it changes any properties of the tree object. So I think it

[PATCH] pr 64076 - tolerate different definitions of symbols in lto

2015-01-20 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, Same patch as before, but now with a test case. I checked this fails without the patch and passes with it, ok? Trev gcc/ * ipa-visibility.c (update_visibility_by_resolution_info): Only assert when not in lto mode. ---

[PATCH] pr 60211 - error out if ivdep pragma is outside a function

2015-01-19 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, not doing $subject caused ICES when we tried to parse statements outside of functions. Just copy the similar code for other pragmas that effect statements. bootstrapped + regtested x86_64-linux-gnu, ok? Trev diff --git a/gcc/cp/ChangeLog

[PATCH] pr 64076 - tolerate different definitions of symbols in lto

2015-01-19 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, when doing an lto link we can have some symbols be ir only and others be machine code, which trips the assert here. Just adjust the assert to handle that. bootstrapped + regtested x86_64-linux-gnu, ok? Trev gcc/ * ipa-visibility.c

[PATCH] pr31397 - implement -Wsuggest-override

2014-12-23 Thread tbsaunde+gcc
From: Trevor Saunders tbsaunde+...@tbsaunde.org Hi, comments fixed. bootstrapped on x86_64-linux, new test passes and regtest pending, ok? Trev c-family/ * c.opt (Wsuggest-override): New option. cp/ * class.c (check_for_override): Warn when a virtual function is an

<    1   2   3   4