- 28 Aug, 2014 20 commits
-
-
gcc/ * dse.c: Include rtl-iter.h. (check_mem_read_rtx): Change void * parameter to real type. Remove return value. (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx. Don't handle null rtxes. From-SVN: r214635
Richard Sandiford committed -
gcc/ * df-problems.c: Include rtl-iter.h. (find_memory): Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. Continue to look for volatile references even after a nonvolatile one has been found. (can_move_insns_across): Update calls accordingly. From-SVN: r214634
Richard Sandiford committed -
gcc/ * ddg.c (walk_mems_2, walk_mems_1): Delete. (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx to iterate over subrtxes. Return a bool rather than an int. From-SVN: r214633
Richard Sandiford committed -
gcc/ * ddg.c: Include rtl-iter.h. (mark_mem_use_1): Rename to... (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX instead of for_each_rtx. (mem_read_insn_p): Update accordingly. From-SVN: r214632
Richard Sandiford committed -
gcc/ * cse.c (change_cc_mode_args): Delete. (cse_change_cc_mode): Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. Take the fields of change_cc_mode_args as argument and return void. (cse_change_cc_mode_insn): Update calls accordingly. From-SVN: r214631
Richard Sandiford committed -
gcc/ * cse.c (is_dead_reg): Change argument to const_rtx. (dead_debug_insn_data): Delete. (is_dead_debug_insn): Expand commentary. Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. Take the fields of dead_debug_insn_data as argument. (delete_trivially_dead_insns): Update call accordingly. From-SVN: r214630
Richard Sandiford committed -
gcc/ * cse.c (check_for_label_ref): Move earlier in file. Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. (cse_extended_basic_block): Update call accordingly. From-SVN: r214629
Richard Sandiford committed -
gcc/ * cse.c (check_dependence_data): Delete. (check_dependence): Change from being a for_each_rtx callback to being a function that examines all subrtxes itself. Don't handle null rtxes. (invalidate): Update call accordingly. From-SVN: r214628
Richard Sandiford committed -
gcc/ * cse.c: Include rtl-iter.h. (approx_reg_cost_1): Delete. (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx. Don't handle null rtxes. From-SVN: r214627
Richard Sandiford committed -
gcc/ * cfgcleanup.c: Include rtl-iter.h. (mentions_nonequal_regs): Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. (thread_jump): Update accordingly. From-SVN: r214626
Richard Sandiford committed -
gcc/ * combine-stack-adj.c: Include rtl-iter.h. (record_stack_refs_data): Delete. (record_stack_refs): Turn from being a for_each_rtx callback to being a function that examines each subrtx itself. Take a pointer to the reflist. Invert sense of return value so that true means success and false means failure. Don't handle null rtxes. (combine_stack_adjustments_for_block): Update accordingly. From-SVN: r214625
Richard Sandiford committed -
combine.c (record_truncated_value): Turn from being a for_each_rtx callback to a function that takes an rtx and... gcc/ * combine.c (record_truncated_value): Turn from being a for_each_rtx callback to a function that takes an rtx and returns a bool (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of for_each_rtx. From-SVN: r214624
Richard Sandiford committed -
gcc/ * combine.c: Include rtl-iter.h. (unmentioned_reg_p_1): Delete. (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx. Don't handle null rtxes. From-SVN: r214623
Richard Sandiford committed -
gcc/ * calls.c: Include rtl-iter.h. (internal_arg_pointer_based_exp_1): Delete. (internal_arg_pointer_based_exp): Take a const_rtx. Use FOR_EACH_SUBRTX to iterate over subrtxes. From-SVN: r214622
Richard Sandiford committed -
gcc/ * caller-save.c: Include rtl-iter.h. (add_used_regs_1): Delete. (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx to iterate over subrtxes. Assert that any remaining pseudos have been spilled. From-SVN: r214621
Richard Sandiford committed -
gcc/ * bt-load.c: Include rtl-iter.h. (btr_reference_found, find_btr_reference, btr_referenced_p): Delete. (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR to iterate over subrtxes. (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use find_btr_use rather than btr_referenced_p. From-SVN: r214620
Richard Sandiford committed -
gcc/ * alias.c: Include rtl-iter.h. (refs_newer_value_cb): Delete. (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx. From-SVN: r214619
Richard Sandiford committed -
gcc/ * rtl-iter.h: New file. * rtlanal.c: Include it. (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables. (generic_subrtx_iterator <T>::add_single_to_queue) (generic_subrtx_iterator <T>::add_subrtxes_to_queue) (generic_subrtx_iterator <T>::free_array): New functions. (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define. (generic_subrtx_iterator <const_rtx_accessor>) (generic_subrtx_iterator <rtx_var_accessor> (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate. (setup_reg_subrtx_bounds): New function. (init_rtlanal): Call it. From-SVN: r214618
Richard Sandiford committed -
libcpp/ 2014-08-27 Edward Smith-Rowland <3dw4rd@verizon.net> PR cpp/23827 - standard C++ should not have hex float preprocessor tokens * libcpp/init.c (lang_flags): Change CXX98 flag for extended numbers from 1 to 0. * libcpp/expr.c (cpp_classify_number): Weite error message for improper use of hex floating literal. gcc/testsuite/ 2014-08-27 Edward Smith-Rowland <3dw4rd@verizon.net> PR cpp/23827 - standard C++ should not have hex float preprocessor tokens * g++.dg/cpp/pr23827_cxx11.C: New. * g++.dg/cpp/pr23827_cxx98.C: New. * g++.dg/cpp/pr23827_cxx98_neg.C: New. * gcc.dg/cpp/pr23827_c90.c: New. * gcc.dg/cpp/pr23827_c90_neg.c: New. * gcc.dg/cpp/pr23827_c99.c: New. From-SVN: r214616
Edward Smith-Rowland committed -
From-SVN: r214615
GCC Administrator committed
-
- 27 Aug, 2014 20 commits
-
-
PR target/62261 * config/sh/sh.md (ashlsi3): Handle negative shift count for TARGET_SHMEDIA. (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise. From-SVN: r214612
Kaz Kojima committed -
gcc/ * emit-rtl.c (set_unique_reg_note): Discard notes with side effects. From-SVN: r214609
Richard Sandiford committed -
2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, with using HOST_WIDE_INT without truncation to 'int' From-SVN: r214608
Chen Gang committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * rtl.h (JUMP_LABEL_AS_INSN): New. From-SVN: r214607
David Malcolm committed -
/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * rtx-classes-status.txt: Phase 5 (additional rtx_def subclasses) is done; begin phase 6 (use extra rtx_def subclasses). From-SVN: r214606
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to rtx_expr_list **. (alloc_EXPR_LIST): Strengthen return type from rtx to rtx_expr_list *. (remove_free_EXPR_LIST_node): Likewise for param. * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list" from rtx to rtx_expr_list *. * sched-int.h (struct deps_desc): Strengthen fields "pending_read_mems" and "pending_write_mems" from rtx to rtx_expr_list *. * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from rtx to rtx_expr_list *. * lists.c (alloc_INSN_LIST): Likewise, also for local "r". (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to rtx_expr_list **. (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node" from rtx to rtx_expr_list *. * loop-iv.c (simplify_using_initial_values): Strengthen local "cond_list" from rtx to rtx_expr_list *, and locals "pnode", "pnote_next" from rtx * to rtx_expr_list **. * sched-deps.c (remove_from_both_dependence_lists): Strengthen param "exprp" from rtx * to rtx_expr_list **. (add_insn_mem_dependence): Strengthen local "mem_list" from rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx to rtx_expr_list *. * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems" and local "new_mems" from rtx to rtx_expr_list *. Strengthen param "old_mems_p" from rtx * to rtx_expr_list **. * var-tracking.c (struct adjust_mem_data): Strengthen field "side_effects" from rtx to rtx_expr_list *. (adjust_insn): Replace NULL_RTX with NULL when assigning to rtx_expr_list *. (prepare_call_arguments): Likewise. From-SVN: r214605
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * function.h (struct rtl_data): Strengthen field "x_stack_slot_list" from rtx to rtx_expr_list *. * emit-rtl.c (unshare_all_rtl_1): Add a checked cast when assigning to stack_slot_list. From-SVN: r214604
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * function.h (struct rtl_data): Strengthen field x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *. * rtl.h (remove_node_from_expr_list): Strengthen second param from rtx * to rtx_expr_list **. * cfgbuild.c (make_edges): In loop over nonlocal_goto_handler_labels, strengthen local "x" from rtx to rtx_expr_list *, and use methods of the latter class to clarify the code. * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to rtx_expr_list *, and use methods of the latter class to clarify the code. * dwarf2cfi.c (create_trace_edges): Likewise for local "lab". * reload1.c (set_initial_label_offsets): Likewise for local "x". * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp" from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx to rtx_expr_list *. Use methods of the latter class to clarify the code. From-SVN: r214603
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * function.h (struct expr_status): Strengthen field "x_forced_labels" from rtx to rtx_expr_list *. * cfgbuild.c (make_edges): Split local "x" into two locals, strengthening one from rtx to rtx_expr_list *, and using methods of said class. * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within loop over forced_labels, introduce strengthen it from rtx to rtx_expr_list *, using methods to clarify the code. * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx to rtx_expr_list *, using methods of said class to clarify the code. * reload1.c (set_initial_label_offsets): Split local "x" into two per-loop variables, strengthening the first from rtx to rtx_expr_list * and using methods. From-SVN: r214602
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * coretypes.h (class rtx_expr_list): Add forward declaration. * emit-rtl.c (gen_rtx_EXPR_LIST): New. * gengenrtl.c (special_rtx): Add EXPR_LIST. * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding invariant: GET_CODE (X) == EXPR_LIST. (is_a_helper <rtx_expr_list *>::test): New. (rtx_expr_list::next): New. (rtx_expr_list::element): New. (gen_rtx_EXPR_LIST): New. From-SVN: r214601
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * varasm.c (mark_constants): Convert a GET_CODE check into a dyn_cast, strengthening local "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence to clarify the code. From-SVN: r214600
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a local "seq" via a checked cast, and use methods of rtx_sequence to simplify the code. From-SVN: r214599
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * resource.c (mark_referenced_resources): Strengthen local "sequence" from rtx to rtx_sequence *, adding a checked cast, and using methods of rtx_sequence to clarify the code. (find_dead_or_set_registers): Within the switch statement, convert a GET_CODE check to a dyn_cast, introducing local "seq". Within the JUMP_P handling, introduce another local "seq", adding a checked cast to rtx_sequence *. In both cases, use methods of rtx_sequence to clarify the code. (mark_set_resources): Within SEQUENCE case, introduce local "seq" via a checked cast, and use methods of rtx_sequence to simplify the code. From-SVN: r214598
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * reorg.c (redundant_insn): In two places in the function, replace a check of GET_CODE with a dyn_cast, introducing local "seq", and usings methods of rtx_sequence to clarify the code. From-SVN: r214597
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce local "seq" with a checked cast, and use methods of rtx_sequence to clarify the code. From-SVN: r214596
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * function.c (contains): Introduce local "seq" for PATTERN (insn), with a checked cast, in the region for where we know it's a SEQUENCE. Use methods of rtx_sequence. From-SVN: r214595
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * final.c (get_attr_length_1): Replace GET_CODE check with a dyn_cast, introducing local "seq" and the use of methods of rtx_sequence. (shorten_branches): Likewise, introducing local "body_seq". Strengthen local "inner_insn" from rtx to rtx_insn *. (reemit_insn_block_notes): Replace GET_CODE check with a dyn_cast, strengthening local "body" from rtx to rtx_sequence *. Use methods of rtx_sequence. (final_scan_insn): Likewise, introducing local "seq" for when "body" is known to be a SEQUENCE, using its methods. From-SVN: r214594
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * except.c (can_throw_external): Strengthen local "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence. (insn_nothrow_p): Likewise. From-SVN: r214593
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a dyn_cast, strengthening local "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence. (scan_trace): Likewise for local "pat". From-SVN: r214592
David Malcolm committed -
gcc/ 2014-08-27 David Malcolm <dmalcolm@redhat.com> * coretypes.h (class rtx_sequence): Add forward declaration. * rtl.h (class rtx_sequence): New subclass of rtx_def, adding invariant: GET_CODE (X) == SEQUENCE. (is_a_helper <rtx_sequence *>::test): New. (is_a_helper <const rtx_sequence *>::test): New. (rtx_sequence::len): New. (rtx_sequence::element): New. (rtx_sequence::insn): New. From-SVN: r214591
David Malcolm committed
-