[PATCH] pr 65702 - error out for invalid register asms earlier

2016-01-25 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject. To avoid regressions I kept the checks when generating rtl, but I believe its impossible for those to trigger now and we can remove the checks. bootstrapped + regtested on x86_64-linux-gnu, ok? Trev gcc/c/ChangeLog: 2016-01-25 Trevor Saunders

[PATCH] obsolete the deprecated rtems targets

2016-02-03 Thread tbsaunde+gcc
From: Trevor Saunders hi, Joel said in http://gcc.gnu.org/ml/gcc/2016-01/msg00016.html we should drop support for these targets because rtems has stopped supporting them, so this marks them as obsolete and we can remove them in gcc 7. tested building for {avr,h8300,m32r}-rtems without --enable-

[PATCH] add basic .gitattributes files to notice whitespace issues

2016-02-04 Thread tbsaunde+gcc
From: Trevor Saunders Hi, We can tell git to highlight whitespace errors in diffs, and if you enable the default pre-commit hook git won't allow you to make a commit with a whitespace error violating the rules you told it about. These files as are could be improved some, they don't enforce whi

[PATCH] teach mklog to look in the current directory for ChangeLog files

2016-02-28 Thread tbsaunde+gcc
From: Trevor Saunders when run in repos other than gcc mklog fails to find ChangeLog files because it looks for $0/../$dir/ChangeLog, but of course if the diff is for a project other than gcc that might not exist. It should be fine to also look for $cwd/$dir/ChangeLog, and use that if we find i

[PATCH] remove some usage of expr_list from read_rtx

2015-07-12 Thread tbsaunde+gcc
From: Trevor Saunders Hi, It seems much simpler for read_rtx to just add rtxs to a vector than to deal with a bunch of expr list rtxen. bootstrapped + regtested on x86_64-linux-gnu, ok? Trev gcc/ChangeLog: 2015-07-12 Trevor Saunders * gensupport.c (rtx_handle_directive): Adjust.

[PATCH] fix compilation of vmsdbgout.c

2015-07-18 Thread tbsaunde+gcc
From: Trevor Saunders The debug-early branch renamed vmsdbgout_decl to vmsdbgout_function_decl, but didn't update its prototype. checked that the alpha and ia64 vms targets in config-list.mk can now build all-gcc, and committing to trunk as obvious. Trev gcc/ChangeLog: 2015-07-18 Trevor Saun

[PATCH 3/4] remove unused TARGET_DEFERRED_OUTPUT_DEFS

2015-07-24 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-24 Trevor Saunders * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Remove. * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Likewise. * doc/tm.texi: Regenerate. * doc/tm.texi.in (TARGET_DEFERRED_OUTPUT_DEFS): Remo

[PATCH 1/4] convert ASM_OUTPUT_ASCII to a hook

2015-07-24 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-25 Trevor Saunders * defaults.h (ASM_OUTPUT_ASCII): Remove default definition. *doc/tm.texi: Regenerate. * doc/tm.texi.in (ASM_OUTPUT_ASCII): Remove documentation of removed macro. *

[PATCH 0/4] misc work to get rid of target macros

2015-07-24 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject, this gets rid of 3 macros, and moves one more closer to being a hook. each patch bootstrapped + regtested on x86_64-linux-gnu, and the series was run through config-list.mk, ok? thanks! Trev Trevor Saunders (4): convert ASM_OUTPUT_ASCII to a hook mak

[PATCH 4/4] define ASM_OUTPUT_LABEL to the name of a function

2015-07-24 Thread tbsaunde+gcc
From: Trevor Saunders * config/arc/arc.h, config/bfin/bfin.h, config/frv/frv.h, config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h, config/lm32/lm32.h, config/mep/mep.h, config/mmix/mmix.h, config/rs6000/rs6000.c, config/rs6000/xcoff.h, config/spu/sp

[PATCH 2/4] make TLS_COMMON_ASM_OP a hook

2015-07-24 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-24 Trevor Saunders * config/i386/sol2.h: Adjust. * defaults.h: Likewise. * doc/tm.texi: Regenerate. * doc/tm.texi.in: Remove documentation of removed TLS_COMMON_ASM_OP macro. * target.def (tls_common

[PATCH 3/9] target.h: change to use targetm.pointer_size instead of POINTER_SIZE

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * target.h (pointer_size_units): Call targetm.pointer_size (). --- gcc/target.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/target.h b/gcc/target.h index 6715b07..435bc7e 100644 --- a/gcc/tar

[PATCH 1/9] remove POINTER_SIZE_UNITS macro

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/lto/ChangeLog: 2015-07-26 Trevor Saunders * lto-object.c (lto_obj_begin_section): Call pointer_size_units (). gcc/c-family/ChangeLog: 2015-07-26 Trevor Saunders * c-cppbuiltin.c (cpp_atomic_builtins): Call pointer_size_units (). gcc/ChangeLog:

[PATCH 5/9] ubsan.c: switch from POINTER_SIZE to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * ubsan.c (ubsan_encode_value): Call targetm.pointer_size (). --- gcc/ubsan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/ubsan.c b/gcc/ubsan.c index d75c4ee..55d9440 100644 --- a/gcc/ubsan

[PATCH 2/9] add pointer_size target hook

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * doc/tm.texi: Regenerate. * doc/tm.texi.in: Adjust. * target.def (pointer_size): New hook. * targhooks.c (default_pointer_size): New function. * targhooks.h (default_pointer_size): New fu

[PATCH 0/9] start converting POINTER_SIZE to a hook

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject. patches individually bootstrapped + regtested on x86_64-linux-gnu, and run through config-list.mk with more patches removing usage of the macro. Ok? Trev Trevor Saunders (9): remove POINTER_SIZE_UNITS macro add pointer_size target hook target.h: chan

[PATCH 9/9] emit-rtl.c: switch to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * emit-rtl.c (init_derived_machine_modes): Call targetm.pointer_size (). --- gcc/emit-rtl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index ed2b30b.

[PATCH 8/9] tree.c: switch to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * tree.c (build_common_tree_nodes): Call targetm.pointer_size (). --- gcc/tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree.c b/gcc/tree.c index 94263af..02cbda8 100644 --- a/gcc/tree

[PATCH 4/9] varasm.c: switch from POINTER_SIZE to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * varasm.c (assemble_addr_to_section): Call targetm.pointer_size (). (dump_tm_clone_pairs): Likewise. --- gcc/varasm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gcc/varasm.c

[PATCH 7/9] stor-layout.c: switch to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * stor-layout.c (layout_type): Call targetm.pointer_size (). --- gcc/stor-layout.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 160ffe2..6043398

[PATCH 6/9] tree-chkp.c: switch to targetm.pointer_size ()

2015-07-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-07-26 Trevor Saunders * tree-chkp.c (chkp_build_array_ref): Call targetm.pointer_size (). (chkp_find_bounds_for_elem): Likewise. (chkp_find_bound_slots_1): Likewise. (chkp_add_bounds_to_call_stmt): Likewise. (c

[PATCH] update a few places for the change from gimple_statement_base to gimple

2015-09-23 Thread tbsaunde+gcc
From: Trevor Saunders Hi, This fixes up a few remaining references to gimple_statement_base that were just brought up. bootstrapped on x86_64-linux-gnu, but the only non comment / doc change is gdbhooks.py, ok? Trev gcc/ChangeLog: 2015-09-23 Trevor Saunders * doc/gimple.texi: U

[PATCH 0/4] gimple accessor const correctness fixes

2015-10-04 Thread tbsaunde+gcc
From: Trevor Saunders Hi, the first patch is just some cleanup I ran into along the way, but the rest of this series fixes const correctness for all of the gimple_x_ptr () functions. I was able to just remove a couple of them, but unfortunately most ar needed for either tree walking, or the use

[PATCH 1/4] make build_uses store tree * instead of tree

2015-10-04 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-04 Trevor Saunders * tree-ssa-operands.c (build_uses): store tree * instead of tree. (finalize_ssa_uses): Adjust. (append_use): Likewise. (verify_ssa_operands): Likewise. --- gcc/tree-ssa-operands.c | 30 ++

[PATCH 2/4] remove gimple_location_ptr ()

2015-10-04 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-04 Trevor Saunders * gimple.h (gimple_location_ptr): Remove. * tree-vrp.c (check_all_array_refs): Adjust. --- gcc/gimple.h | 9 - gcc/tree-vrp.c | 5 +++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/

[PATCH 3/4] remove unused gasm accessors

2015-10-04 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-04 Trevor Saunders * gimple.h (gimple_asm_input_op_ptr): Remove. (gimple_asm_output_op_ptr): Likewise. --- gcc/gimple.h | 20 1 file changed, 20 deletions(-) diff --git a/gcc/gimple.h b/gcc/gimple.h index cfd

[PATCH 4/4] make more gimple_x_ptr accessors const correct

2015-10-04 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-04 Trevor Saunders * gimple.h (gimple_op_ptr): Require a non const gimple *. (gimple_assign_lhs_ptr): Likewise. (gimple_assign_rhs1_ptr): Likewise. (gimple_assign_rhs2_ptr): Likewise. (gimple_assign_rhs3_ptr

[PATCH] reorg.c: use vec instead of rtx_insn_list for the delay insn list

2015-10-06 Thread tbsaunde+gcc
From: Trevor Saunders Hi, This seems a bit cleaner, and should involve less allocation. I tested there was no regressions for sh-sim with all languages accept ada,lto,fortran, ok? Trev gcc/ChangeLog: 2015-10-06 Trevor Saunders * reorg.c (emit_delay_sequence): store list of delay

[PATCH] remove an unneeded as_a ()

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders Hi, obvious clean up, bootstrapped + regtested x86_64-linux-gnu, committed. Trev gcc/ChangeLog: 2015-10-10 Trevor Saunders * function.c (stack_protect_epilogue): Remove as_a () call that isn't needed. --- gcc/ChangeLog | 5 + gcc/function.c | 6

[PATCH 0/6] more ifdef removal

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders Hi, more of the same sort of ifdef removal adding defaults. patches individually bootstrapped + regtested on x86_64-linux-gnu, committing as preapproved. Trev Trevor Saunders (6): always define INITIAL_FRAME_ADDRESS_RTX always define SETUP_FRAME_ADDRESSES always d

[PATCH 2/6] always define SETUP_FRAME_ADDRESSES

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * defaults.h (SETUP_FRAME_ADDRESSES): New default definition. * builtins.c (expand_builtin_return_addr): Adjust. * doc/tm.texi: Likewise. * doc/tm.texi.in: Likewise. * except.c (expand_bui

[PATCH 4/6] always define FRAME_ADDR_RTX

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * defaults.h (FRAME_ADDR_RTX): New default definition. * builtins.c (expand_builtin_return_addr): Adjust. --- gcc/builtins.c | 4 gcc/defaults.h | 4 2 files changed, 4 insertions(+), 4 deletions(-) d

[PATCH 1/6] always define INITIAL_FRAME_ADDRESS_RTX

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * builtins.c (expand_builtin_return_addr): Adjust. * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition. --- gcc/builtins.c | 41 +++-- gcc/defaults.h | 4 2

[PATCH 3/6] always define DYNAMIC_CHAIN_ADDRESS

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition. * builtins.c (expand_builtin_return_addr): Adjust. --- gcc/builtins.c | 2 -- gcc/defaults.h | 4 2 files changed, 4 insertions(+), 2 deletions(

[PATCH 5/6] remove unneeded #if for HARD_FRAME_POINTER_IS_ARG_POINTER

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to check HARD_FRAME_POINTER_IS_ARG_POINTER. --- gcc/builtins.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gcc/builtins.c b

[PATCH 6/6] always define REVERSE_CONDITION

2015-10-10 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-10-10 Trevor Saunders * defaults.h (REVERSE_CONDITION): New default definition. * jump.c (reversed_comparison_code_parts): Adjust. --- gcc/defaults.h | 4 gcc/jump.c | 8 +--- 2 files changed, 5 insertions(+), 7 deletion

[PATCH] change a function argument from rtx to rtx_insn *

2015-10-16 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject, just a small improvement to rtx_insn type safety I happened to notice. bootstrapped + regtested x86_64-linux-gnu, committing to trunk. Trev gcc/ChangeLog: 2015-10-16 Trevor Saunders * lra-constraints.c (add_next_usage_insn): Change argument t

[PATCH] unconditionally compile most of the delay slot code

2015-10-21 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject bootstrapped+ regtested x86_64-linux-gnu, I wouldn't mind a second pair of eyes on this one given its not totally trivial. Trev gcc/ChangeLog: 2015-10-20 Trevor Saunders * cfgrtl.c (pass_free_cfg::execute): Adjust. * final.c (dbr_sequenc

[PATCH] replace BITS_PER_UNIT with __CHAR_BIT__ in target libs

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject as far as I am aware these are the same on all supported targets. Trev libgcc/ChangeLog: 2015-10-30 Trevor Saunders * config/visium/lib2funcs.c (__set_trampoline_parity): Use __CHAR_BIT__ instead of BITS_PER_UNIT. * fixed-bit.h: L

[PATCH 0/5] remove tm.h from encoding.c

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders Hi, Its not the nicest code in the world, and there's definitely room for cleanups, however it seems like an improvement. After this series the only usage of tm.h in libobjc is thr.c which only uses tm.h so it can include gthr.h which uses SUPPORTS_WEAK and possibly other

[PATCH 2/5] remove usage of ROUND_TYPE_SIZE from encoding.c

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders gcc got rid of this target macro in 2003, so it seems safe to assume the alternate path works fine on all targets. libobjc/ChangeLog: 2015-10-30 Trevor Saunders PR libobjc/24775 * encoding.c (objc_layout_finish_structure): Remove usage of ROUND_

[PATCH 1/5] 2015-01-25 Paul Thomas

2015-10-30 Thread tbsaunde+gcc
From: pault PR fortran/67171 * trans-array.c (structure_alloc_comps): On deallocation of class components, reset the vptr to the declared type vtable and reset the _len field of unlimited polymorphic components. *trans-expr.c (gfc_find_and_cut_at_last_class

[PATCH 3/5] stop using ROUND_TYPE_ALIGN in libobjc/

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders Given the layering violation that using ROUND_TYPE_ALIGN in target libs is, and the hacks needed to make it work just coppying the relevant code into encoding.c seems to make sense as an incremental improvement. The epiphany version of this macro called a function that does

[PATCH 4/5] remove usage of BIGGEST_FIELD_ALIGNMENT in encoding.c

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders Similar to ROUND_TYPE_ALIGN it seems to make sense to copy the information in the target macros to libobjc as an incremental step. Its worth noting a large portion of the definitions of this macro only exist to work around ADJUST_FIELD_ALIGN being used in target libs, so on

[PATCH 5/5] remove usage of ADJUST_FIELD_ALIGN in encoding.c

2015-10-30 Thread tbsaunde+gcc
From: Trevor Saunders Not many targets define this macro in ways that do something in libojc, so it seems to make sense to just inline the few definitions that do do something. libobjc/ChangeLog: 2015-10-30 Trevor Saunders PR libobjc/24775 * encoding.c (objc_layout_structure

[PATCH] remove unused config/arm/coff.h

2015-11-03 Thread tbsaunde+gcc
From: Trevor Saunders Hi, $subject, nothing refers to this header so we might as well remove it. tested I can still build on x86_64-linux-gnu, not that I would expect anything else or that it is particularly relevent, ok? Trev gcc/ChangeLog: 2015-11-03 Trevor Saunders * config/ar

[PATCH 00/12] misc conditional compilation work

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders Hi, basically $subject, making some code unconditionally compiled, and changing other things from #ifdef to #if so they can be made unconditional incrementally. patches individually bootstrapped + regtested on x86_64-linux-gnu, and a slightly earlier version of the series

[PATCH 01/12] reduce conditional compilation for HARD_FRAME_POINTER_IS_ARG_POINTER

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * dbxout.c (dbxout_symbol_location): Remove #if for HARD_FRAME_POINTER_IS_ARG_POINTER. (dbxout_parms): Likewise. * dwarf2out.c (rtl_for_decl_location): Likewise. * emit-rtl.c (gen_rtx_REG)

[PATCH 02/12] remove EXTENDED_SDB_BASIC_TYPES

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders The last target using this was i960, which was removed many years ago, so there's no reason to keep it. gcc/ChangeLog: 2015-11-09 Trevor Saunders * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES. (enum sdb_masks): Likewise.

[PATCH 05/12] always define VMS_DEBUGGING_INFO

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * defaults.h (VMS_DEBUGGING_INFO): New default definition. * doc/tm.texi: Regenerate. * doc/tm.texi.in: Adjust. * dwarf2out.c (output_file_names): Likewise. (add_name_and_src_coords_attrib

[PATCH 08/12] always define DWARF2_LINENO_DEBUGGING_INFO

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * defaults.h (DWARF2_LINENO_DEBUGGING_INFO): new default definition. * dwarf2out.c (dwarf2out_init): Adjust. * opts.c (set_debug_level): Likewise. * toplev.c (process_options): Likewise. -

[PATCH 03/12] remove conditional compilation of sdb debug info

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders We need to include gsyms.h before tm.h because some targets (rl78 iirc) define macros that conflict with identifiers in gsyms.h. This means sdbout.c won't produce correct output for those targets, but it previously couldn't either because it wasn't compiled at all. gcc/Cha

[PATCH 04/12] always define XCOFF_DEBUGGING_INFO

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * collect2.c (scan_prog_file): Remove check if XCOFF_DEBUGGING_INFO is defined. * config/rs6000/rs6000.c (macho_branch_islands): Likewise. * dbxout.c (struct dbx_file): Likewise. (default_

[PATCH 06/12] always define DWARF2_DEBUGGING_INFO

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * config/arc/arc.h: Define DWARF2_DEBUGGING_INFO to 1. * config/microblaze/microblaze.h: Likewise. * defaults.h (DWARF2_DEBUGGING_INFO): New default definition. * doc/tm.texi: Regenerate.

[PATCH 10/12] always define EH_RETURN_HANDLER_RTX

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * defaults.h (EH_RETURN_HANDLER_RTX): New default definition. * df-scan.c (df_get_exit_block_use_set): Adjust. * except.c (expand_eh_return): Likewise. --- gcc/defaults.h | 4 gcc/df-scan.c | 2 --

[PATCH 12/12] always define ENABLE_OFFLOADING

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/cp/ChangeLog: 2015-11-09 Trevor Saunders * parser.c (cp_parser_omp_declare_target): Adjust. gcc/ChangeLog: 2015-11-09 Trevor Saunders * configure: Regenerate. * configure.ac: Always define ENABLE_OFFLOADING. * cgraph.c (cgraph_n

[PATCH 09/12] always define TARGET_PECOFF

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * config/i386/i386.h (TARGET_PECOFF): Remove define. * defaults.h (TARGET_PECOFF): New default definition. * varasm.c (handle_vtv_comdat_section): Adjust. gcc/cp/ChangeLog: 2015-11-09 Trevor Saunders

[PATCH 11/12] always define HAVE_AS_LEB128

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * acinclude.m4: Always define HAVE_AS_LEB128. * configure: Regenerate. * configure.ac: Adjust. * dwarf2asm.c (dw2_asm_output_data_uleb128): Likewise. (dw2_asm_output_data_sleb128): Likewis

[PATCH 07/12] always define DBX_DEBUGGING_INFO

2015-11-09 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-11-09 Trevor Saunders * config/arc/arc.h: Define DBX_DEBUGGING_INFO to 1. * config/pdp11/pdp11.h: Likewise. * defaults.h (DBX_DEBUGGING_INFO): New default definition. * config/rs6000/rs6000.c (macho_branch_islands): Ad

[PATCH] PR 68366 - include emit-rtl.h in sdbout.c

2015-11-15 Thread tbsaunde+gcc
From: Trevor Saunders Some of the pa target macros rely on macros in emit-rtl.h and sdbout.c uses some of those macros, which means that sdbout.c needs to include emit-rtl.h. this seems obvious, bootstrapped on x86_64-linux-gnu, and checked that a cross to hppa-linux now builds so committing to

[PATCH 2/2] remove val_ssa_equiv_hash_traits

2015-11-23 Thread tbsaunde+gcc
From: Trevor Saunders Hi, this is pretty trivial cleanup after the previous patch, but could wait for next stage 1 if people don't like the very small risk. boostrappped + regtested on x86_64-linux-gnu, ok? Trev gcc/ChangeLog: 2015-11-20 Trevor Saunders * tree-ssa-uncprop.c (stru

[PATCH 1/2] destroy values as well as keys when removing them from hash maps

2015-11-23 Thread tbsaunde+gcc
From: Trevor Saunders Hi, This fixes several leaks where a hash_map user expected deleting the map to destruct the value part of entries as well as the key. A couple of these bugs have already been fixed, but there are more of them for example some of the sanitizer code, and tree-if-conv.c). T

[PATCH] fixup hash table descriptor in winnt.c

2015-05-19 Thread tbsaunde+gcc
From: Trevor Saunders Hi, This is a straight forward fixup of the hash table descriptor in winnt.c causing the PR. Tested a cross to i686-cygwin now builds, and committing to trunk. Trev gcc/ChangeLog: 2015-05-19 Trevor Saunders PR c++/65835 * config/i386/winnt.c (struct

[PATCH 0/7] Some ifdef removal

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders Hi, Another week and more patches to remove conditional compilation ;-) each patch individually bootstrapped + regtested on x86_64-unknown-linux-gnu, and run through config-list.mk with a couple more patches I'll commit when I finish writing ChangeLogs. Committing to trun

[PATCH 2/7] remove most ifdef STACK_GROWS_DOWNWARD

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/c-family/ChangeLog: 2015-05-20 Trevor Saunders * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with STACK_GROWS_DOWNWARD. gcc/ChangeLog: 2015-05-20 Trevor Saunders * *.c: Use if instead of preprocessor checks with STACK

[PATCH 3/7] move default for STACK_PUSH_CODE to defaults.h

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-20 Trevor Saunders * defaults.h: Add default for STACK_PUSH_CODE. * expr.c: Don't redefine STACK_PUSH_CODE. * recog.c: Likewise. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 8 gcc/expr.c | 8 gcc/

[PATCH 1/7] always define STACK_GROWS_DOWNWARD

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/c-family/ChangeLog: 2015-05-20 Trevor Saunders * c-cppbuiltin.c (c_cpp_builtins): Check the value of STACK_GROWS_DOWNWARD rather than if it is defined. gcc/ChangeLog: 2015-05-20 Trevor Saunders * *.c: Check the value of STACK_GROWS_DOWN

[PATCH 4/7] don't compare ARG_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM with the preprocessor

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-20 Trevor Saunders * *.c: Remove comparison of ARG_FRAME_POINTER_REGNUM and FRAME_POINTER_REGNUM with the preprocessor. --- gcc/ChangeLog | 5 + gcc/combine.c | 18 +++--- gcc/df-problems.c | 5 ++--- gcc

[PATCH 7/7] always define HAVE_peephole

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-20 Trevor Saunders * final.c (final_scan_insn): Don't check HAVE_peephole with the preprocessor. * output.h: Likewise. * genconfig.c (main): Alwways define HAVE_peephole. * genpeep.c: Don't emit checks of HA

[PATCH 5/7] always define HAVE_conditional_move

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-20 Trevor Saunders * genconfig.c (main): Always define HAVE_conditional_move. * *.c: Don't check if HAVE_conditional_move is defined. --- gcc/ChangeLog | 4 gcc/combine.c | 2 +- gcc/expmed.c | 4 ++-- gcc

[PATCH 6/7] remove #if HAVE_conditional_move

2015-05-20 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-20 Trevor Saunders * *.c, *.h: DOn't check HAVE_conditional_move with the preprocessor. --- gcc/ChangeLog | 4 gcc/combine.c | 5 ++--- gcc/expmed.c | 13 + gcc/expr.c| 10 ++ gcc/optabs.c | 30 +++

[PATCH 1/7] always define HAVE_lo_sum

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * combine.c (find_split_point): Check the value of HAVE_lo_sum instead of if it is defined. (combine_simplify_rtx): Likewise. * lra-constraints.c (process_address_1): Likewise. * config/da

[PATCH 3/7] always define HAVE_memory_barrier

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_memory_barrier): New function. (HAVE_memory_barrier): Add default value. * optabs.c: Adjust. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 10 ++ gcc/optabs.c | 5 - 3

[PATCH 0/7] More ifdef reduction

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders Hi, yet more of the same. each individually bootstrapped + regtested on x86_64-linux-gnu, and made sure config-list.mk was fine at the end. I expect this stuff is all still preapproved so committing to trunk. Trev Trevor Saunders (7): always define HAVE_lo_sum provi

[PATCH 2/7] provide default for HAVE_mem_thread_fence

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_mem_thread_fence): New function. (HAVE_mem_thread_fence): Add default definition. * optabs.c: Adjust. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 10 ++ gcc/optabs.c | 4

[PATCH 7/7] add default for HAVE_tablejump

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_tablejump): New function. (HAVE_tablejump): Add default value. * expr.c: Adjust. * stmt.c: Likewise. --- gcc/ChangeLog | 7 +++ gcc/defaults.h | 10 ++ gcc/expr.c

[PATCH 6/7] add default for HAVE_store_multiple

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_store_multiple): New function. (HAVE_store_multiple): Add default value. * expr.c (move_block_from_reg): Adjust. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 10 ++ gcc/expr

[PATCH 4/7] provide default for HAVE_mem_signal_fence

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_mem_signal_fence): New function. (HAVE_mem_signal_fence): Add default value. * optabs.c: Adjust. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 10 ++ gcc/optabs.c | 5

[PATCH 5/7] add default for HAVE_load_multiple

2015-05-23 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-05-23 Trevor Saunders * defaults.h (gen_load_multiple): New function. (HAVE_load_multiple): Add default value. * expr.c (move_block_to_reg): Adjust. --- gcc/ChangeLog | 6 ++ gcc/defaults.h | 10 ++ gcc/expr.c

[PATCH] remove need for store_values_directly

2015-04-16 Thread tbsaunde+gcc
From: Trevor Saunders 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 transition by allowing it t

[PATCH 01/12] add default definition of EH_RETURN_DATA_REGNO

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

[PATCH 00/12] Reduce conditional compilation

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders 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. each commit bootstrapped

[PATCH 02/12] remove some ifdef HAVE_cc0

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

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

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

[PATCH 04/12] always define HAVE_cc0

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

[PATCH 03/12] more removal of ifdef HAVE_cc0

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

[PATCH 06/12] provide default for RETURN_ADDR_OFFSET

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

[PATCH 07/12] provide default for MASK_RETURN_ADDR

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-21 Trevor Saunders * defaults.h (MASK_RETURN_ADDR): New definition. * except.c (expand_builtin_extract_return_addr): Remove ifdef MASK_RETURN_ADDR. --- gcc/defaults.h | 4 gcc/except.c | 6 +++--- 2 files changed, 7

[PATCH 08/12] reduce conditional compilation for HARD_FRAME_POINTER_IS_FRAME_POINTER

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

[PATCH 10/12] remove more ifdefs for HAVE_cc0

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

[PATCH 09/12] remove #if for PIC_OFFSET_TABLE_REGNUM

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-21 Trevor Saunders * 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(-) diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 69

[PATCH 12/12] add default for INSN_REFERENCES_ARE_DELAYED

2015-04-21 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-21 Trevor Saunders * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition. * reorg.c (redundant_insn): Remove ifdef INSN_REFERENCES_ARE_DELAYED. * resource.c (mark_referenced_resources): Likewise. --- gcc/defau

[PATCH 11/12] provide default for INSN_SETS_ARE_DELAYED

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

[PATCH 0/8] remove more conditional compilation

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders Hi, Here's another series to remove some conditional compilation. each patch was bootstrapped and regtested on x86_64-linux-gnu, and the series was run through config-list.mk. I think this all falls within Jeff's preapproval so I'll commit it tomorrow (today actually) nig

[PATCH 1/8] add default for NO_FUNCTION_CSE

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-26 Trevor Saunders * 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. * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.

[PATCH 2/8] add default for HARD_REGNO_RENAME_OK

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-27 Trevor Saunders * 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 defined. * sel-sched.c (sel_hard_regno_rename_

[PATCH 3/8] add default for PCC_BITFIELD_TYPE_MATTERS

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-27 Trevor Saunders * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition to false. * dwarf2out.c (field_byte_offset): REmove check if PCC_BITFIELD_TYPE_MATTERS is defined. * stor-layout.c (layout_

[PATCH 4/8] add default for EPILOGUE_USES

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-27 Trevor Saunders * defaults.h (EPILOGUE_USES): Add default definition of false. * df-scan.c (EPILOGUE_USES): Remove check if its undefined. * resource.c (init_resource_info): Likewise. --- gcc/defaults.h | 4 gcc/df

[PATCH 5/8] always define HAVE_simple_return and HAVE_return

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-27 Trevor Saunders * bb-reorder.c (HAVE_return): Don't check if its undefined. * defaults.h (gen_simple_return): New function. (gen_simple_return): Likewise. (HAVE_return): Add default definition to false. (

[PATCH 6/8] always define HAVE_epilogue

2015-04-26 Thread tbsaunde+gcc
From: Trevor Saunders gcc/ChangeLog: 2015-04-27 Trevor Saunders * defaults.h (gen_epilogue): New function. (HAVE_epilogue): Add default definition to false. * alias.c (init_alias_analysis): don't check if HAVE_epilogue is defined. * cfgrtl.c (cfg_layout_finali

  1   2   3   4   >