* gcc-interface/gigi.h (ref_filename): Delete.
[official-gcc.git] / gcc / ChangeLog
blob5a8fa311d8a7d16b15c56e8f12c30c3c5eb934f9
1 2015-09-13  Olivier Hainque  <hainque@adacore.com>
2             Eric Botcazou  <ebotcazou@adacore.com>
4         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
6         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
7         (TARGET_CPU_gr5): Likewise.
8         (TARGET_CPU_gr6): Likewise.
9         (MULTILIB_DEFAULTS): Likewise.
10         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
11         for mcpu=gr5 and mcpu=gr6.
12         (MULTILIB_DIRNAMES): Adjust accordingly.
14 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
17         (mem_ref_p): Likewise.
18         (outermost_indep_loop): Adjust.
19         (mem_ref_in_stmt): Likewise.
20         (determine_max_movement): Likewise.
21         (mem_ref_alloc): Likewise.
22         (record_mem_ref_loc): Likewise.
23         (set_ref_stored_in_loop): Likewise.
24         (mark_ref_stored): Likewise.
25         (gather_mem_refs_stmt): Likewise.
26         (mem_refs_may_alias_p): Likewise.
27         (for_all_locs_in_loop): Likewise.
28         (struct rewrite_mem_ref_loc): Likewise.
29         (rewrite_mem_refs): Likewise.
30         (struct first_mem_ref_loc_1): Likewise.
31         (first_mem_ref_loc): Likewise.
32         (struct sm_set_flag_if_changed): Likewise.
33         (execute_sm_if_changed_flag_set): Likewise.
34         (execute_sm): Likewise.
35         (hoist_memory_references):
36         (struct ref_always_accessed): Likewise.
37         (ref_always_accessed_p): Likewise.
38         (refs_independent_p): Likewise.
39         (record_dep_loop): Likewise.
40         (ref_indep_loop_p_1): Likewise.
41         (ref_indep_loop_p_2): Likewise.
42         (ref_indep_loop_p): Likewise.
43         (can_sm_ref_p): Likewise.
44         (find_refs_for_sm): Likewise.
45         (tree_ssa_lim_finalize): Likewise.
47 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
49         * dwarf2out.c (dw_attr_ref): Remove typedef.
50         (dw_line_info_ref): Likewise.
51         (pubname_ref): Likewise.
52         (dw_ranges_ref): Likewise.
53         (dw_ranges_by_label_ref): Likewise.
54         (comdat_type_node_ref): Likewise.
55         (get_AT): Adjust.
56         (get_AT_low_pc): Likewise.
57         (get_AT_hi_pc): Likewise.
58         (get_AT_string): Likewise.
59         (get_AT_flag): Likewise.
60         (get_AT_unsigned): Likewise.
61         (get_AT_ref): Likewise.
62         (get_AT_file): Likewise.
63         (remove_AT): Likewise.
64         (print_die): Likewise.
65         (check_die): Likewise.
66         (die_checksum): Likewise.
67         (attr_checksum_ordered): Likewise.
68         (struct checksum_attributes): Likewise.
69         (collect_checksum_attributes): Likewise.
70         (die_checksum_ordered): Likewise.
71                         (same_die_p): Likewise.
72                         (is_declaration_die): Likewise.
73         (clone_die): Likewise.
74         (clone_as_declaration): Likewise.
75         (copy_declaration_context): Likewise.
76         (break_out_comdat_types): Likewise.
77         (copy_decls_walk): Likewise.
78         (output_location_lists): Likewise.
79         (external_ref_hasher::hash): Likewise.
80         (optimize_external_refs_1): Likewise.
81         (build_abbrev_table): Likewise.
82         (size_of_die): Likewise.
83         (unmark_all_dies): Likewise.
84         (size_of_pubnames): Likewise.
85         (output_die_abbrevs): Likewise.
86         (output_die): Likewise.
87         (output_pubnames): Likewise.
88         (add_ranges_num): Likewise.
89         (add_ranges_by_labels): Likewise.
90         (add_high_low_attributes): Likewise.
91         (gen_producer_string): Likewise.
92         (dwarf2out_set_name): Likewise.
93         (new_line_info_table): Likewise.
94         (prune_unused_types_walk_attribs): Likewise.
95         (prune_unused_types_update_strings): Likewise.
96         (prune_unused_types): Likewise.
97         (resolve_addr): Likewise.
98         (optimize_location_lists_1): Likewise.
99         (index_location_lists): Likewise.
100         (dwarf2out_finish): Likewise.
102 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
104         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
106 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
108         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
109         (dump_asserts_for): Adjust.
110         (register_new_assert_for): Likewise.
111         (process_assert_insertions): Likewise.
112         (insert_range_assertions): Likewise.
114 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
116         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
117         and remove typedef.
118         (new_temp_expr_table): Adjust.
119         (free_temp_expr_table): Likewise.
120         (version_to_be_replaced_p): Likewise.
121         (make_dependent_on_partition): Likewise.
122         (add_to_partition_kill_list): Likewise.
123         (remove_from_partition_kill_list): Likewise.
124         (add_dependence): Likewise.
125         (finished_with_expr): Likewise.
126         (process_replaceable): Likewise.
127         (kill_expr): Likewise.
128         (kill_virtual_exprs): Likewise.
129         (mark_replaceable): Likewise.
130         (find_replaceable_in_bb): Likewise.
131         (find_replaceable_exprs): Likewise.
132         (debug_ter): Likewise.
134 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
136         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
137         (struct btr_user): Rename from btr_user_s.
138         (struct btr_def): Rename from btr_def_s.
139         (find_btr_def_group): Adjust.
140         (add_btr_def): Likewise.
141         (new_btr_user): Likewise.
142         (note_other_use_this_block): Likewise.
143         (compute_defs_uses_and_gen): Likewise.
144         (link_btr_uses): Likewise.
145         (build_btr_def_use_webs): Likewise.
146         (block_at_edge_of_live_range_p): Likewise.
147         (btr_def_live_range): Likewise.
148         (combine_btr_defs): Likewise.
149         (move_btr_def): Likewise.
150         (migrate_btr_def): Likewise.
151         (migrate_btr_defs): Likewise.
153 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
155         * var-tracking.c (shared_hash_def): Rename to shared_hash.
156         (shared_hash): Remove typedef.
157         (struct dataflow_set): Adjust.
158         (shared_hash_unshare): Likewise.
159         (dataflow_set_merge): Likewise.
160         (vt_initialize): Likewise.
161         (vt_finalize): Likewise.
163 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
165         * var-tracking.c (struct location_chain): Rename from
166         location_chain_def.
167         (struct variable_part): Adjust.
168         (variable_htab_free): Likewise.
169         (unshare_variable): Likewise.
170         (get_init_value): Likewise.
171         (get_addr_from_local_cache): Likewise.
172         (drop_overlapping_mem_locs): Likewise.
173         (val_reset): Likewise.
174         (struct variable_union_info): Likewise.
175         (variable_union): Likewise.
176         (find_loc_in_1pdv): Likewise.
177         (insert_into_intersection): Likewise.
178         (intersect_loc_chains): Likewise.
179         (canonicalize_loc_order_check): Likewise.
180         (canonicalize_values_mark): Likewise.
181         (canonicalize_values_star): Likewise.
182         (canonicalize_vars_star): Likewise.
183         (variable_merge_over_cur): Likewise.
184         (remove_duplicate_values): Likewise.
185         (variable_post_merge_new_vals): Likewise.
186         (variable_post_merge_perm_vals): Likewise.
187         (find_mem_expr_in_1pdv): Likewise.
188         (dataflow_set_preserve_mem_locs): Likewise.
189         (dataflow_set_remove_mem_locs): Likewise.
190         (variable_part_different_p): Likewise.
191         (onepart_variable_different_p): Likewise.
192         (find_src_set_src): Likewise.
193         (dump_var): Likewise.
194         (set_slot_part): Likewise.
195         (clobber_slot_part): Likewise.
196         (delete_slot_part): Likewise.
197         (vt_expand_var_loc_chain): Likewise.
198         (emit_note_insn_var_location): Likewise.
199         (vt_finalize): Likewise.
201 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
203         * dse.c (store_info_t): Remove typedef.
204         (group_info_t): Likewise.
205         (const_group_info_t): Likewise.
206         (deferred_change_t): Likewise.
207         (get_group_info): Adjust.
208         (free_store_info): Likewise.
209         (canon_address): Likewise.
210         (clear_rhs_from_active_local_stores): Likewise.
211         (record_store): Likewise.
212         (replace_read): Likewise.
213         (check_mem_read_rtx): Likewise.
214         (scan_insn): Likewise.
215         (remove_useless_values): Likewise.
216         (dse_step1): Likewise.
217         (dse_step2_init): Likewise.
218         (dse_step2_nospill): Likewise.
219         (scan_stores_nospill): Likewise.
220         (scan_reads_nospill): Likewise.
221         (dse_step3_exit_block_scan): Likewise.
222         (dse_step3): Likewise.
223         (dse_step5_nospill): Likewise.
224         (dse_step6): Likewise.
226 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
228         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
229         (alias_set_entry): Remove typedef.
230         (alias_set_subset_of): Adjust.
231         (alias_sets_conflict_p): Likewise.
232         (init_alias_set_entry): Likewise.
233         (get_alias_set): Likewise.
234         (new_alias_set): Likewise.
235         (record_alias_subset): Likewise.
237 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
239         * doc/install.texi (Downloading the source): Mark up
240         contrib/download_prerequisites properly and drop leading "./".
242 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
244         * config/arc/arc.h: Remove define of STRUCT_VALUE.
245         * config/lm32/lm32.h: Likewise.
246         * config/mep/mep.h: Likewise.
247         * config/visium/visium.h: Likewise.
248         * system.h: Poison STRUCT_VALUE macro.
250 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
252         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
253         CONSTANT_P operands.
255 2015-09-11  David S. Miller  <davem@davemloft.net>
257         * config/sparc/constraints.md: Make "U" constraint a real register
258         constraint.
259         * config/sparc/sparc.c (TARGET_LRA_P): Define.
260         (D_MODES, DF_MODES): Add missing cast.
261         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
262         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
263         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
264         cost to 8.
265         * config/sparc/sparc.h (PROMOTE_MODE): Define.
266         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
267         provide these insn when flag_pic.
269 2015-09-11  Jeff Law  <law@redhat.com>
271         PR tree-optimization/47679
272         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
273         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
274         member with m_.  Update inline member functions as necessary.  Add
275         toplevel comment.
276         * tree-ssa-scopedtables.c: Update const_and_copies's member
277         functions to use m_ prefix to access the stack.
279 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
281         * graphite-optimize-isl.c (disable_tiling): Remove.
282         (get_schedule_for_band): Do not use disable_tiling.
283         (get_prevector_map): Delete function.
284         (enable_polly_vector): Remove.
285         (get_schedule_for_band_list): Remove dead code.
287 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
289         * graphite-optimize-isl.c (get_tile_map): Refactor.
290         (get_schedule_for_band): Same.
291         (getScheduleForBand): Same.
292         (get_prevector_map): Same.
293         (get_schedule_for_band_list): Same.
294         (get_schedule_map): Same.
295         (get_single_map): Same.
296         (apply_schedule_map_to_scop): Same.
297         (optimize_isl): Same.
299 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
301         PR target/63304
302         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
303         (movtf): Delete.
304         * config/aarch64/iterators.md (GPF_TF_F16): New.
305         (GPF_F16): Delete.
307 2015-09-10  Nathan Sidwell  <nathan@acm.org>
309         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
310         (nvptx_reorg): Adjust comments.
312 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
314         PR bootstrap/67363
315         * configure.ac: Check if setenv and unsetenv are declared.
316         * configure: Rebuild.
317         * config.in: Rebuild.
318         * system.h: Declare setenv and unsetenv if not declared.
320 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
322         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
323         commentary to simplify permute mask adjustment equation.
324         (special_handling_values): Add SH_VPERM.
325         (const_load_sequence_p): New function.
326         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
327         the mask loaded from the constant pool.
328         (adjust_vperm): New function.
329         (handle_special_swappables): Call adjust_vperm.
330         (dump_swap_insn_table): Handle SH_VPERM.
332 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
334         * shrink-wrap.c (requires_stack_frame_p): Remove static.
335         * shrink-wrap.h (requires_stack_frame_p): Put back.
337 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
339         * reload1.c (elimination_costs_in_insn): Locally turn
340         -Wmaybe-uninitialized into a warning.
342 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
344         * shrink-wrap.c (requires_stack_frame_p): Make static.
345         (prepare_shrink_wrap): Likewise.
346         (dup_block_and_redirect): Likewise.
347         * shrink-wrap.h: Remove declarations of those functions.
349 2015-09-10  Mark Wielaard  <mjw@redhat.com>
351         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
353 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
355         PR target/67506
356         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
357         missing simplify_gen_subreg.
359 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
361         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
362         the vector element is bigger than 64 bit.
364 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
366         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
367         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
369 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
371         * config/s390/s390.c: Add V1TImode to constant pool modes.
373 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
375         PR target/67439
376         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
377         predicate.  Set predicable_short_it attr to "no".
379 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
381         PR rtl-optimization/67421
382         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
383         left wide shift tranformation.
385 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
387         * common/config/arc/arc-common.c: Remove references to A5.
388         * config/arc/arc-opts.h: Likewise.
389         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
390         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
391         * config/arc/t-arc-newlib: Likewise.
393 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
395         * config/arc/arc.md (length): Fix attribute length for conditional
396         executed instructions with long immediate.
398 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
400         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
401         type for second alternative.
403 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
405         * doc/invoke.texi (Downloading GCC): Mention
406         contrib/download_prerequisites script.
408 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
410         PR c++/67523
411         * gimplify.c (gimplify_omp_for): If inner stmt is not found
412         for combined loop, assert seen_error () and return GS_ERROR.
414         PR middle-end/67521
415         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
416         if decl is already in outer->variables.
418         PR middle-end/67517
419         * gimplify.c (gimplify_scan_omp_clauses): Instead of
420         asserting that decl is not specified in octx->variables,
421         break out of the loop if it is.
423         PR c++/67514
424         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
425         iterator is not explicitly determined, but is defined inside
426         of the combined workshare region, handle it like if it has
427         DECL_EXPR in OMP_FOR_PRE_BODY.
429 2015-09-09  Nathan Sidwell  <nathan@acm.org>
431         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
432         (*cmp<mode>): Add assembler spacing.
433         (setcc_int<mode>, set_cc_float<mode>): Likewise.
434         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
435         level.
436         (write_func_decl_from_insn): Refactor argument loops & comma emission.
437         (nvptx_expand_call): Likewise.
438         (nvptx_output_call_insn): Likewise.
439         (nvptx_reorg_subreg): Add spacing.
441 2015-09-09  Marek Polacek  <polacek@redhat.com>
443         PR middle-end/67512
444         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
445         for comparisons.
447 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
449         PR c++/53184
450         * doc/invoke.texi ([Wsubobject-linkage]): Document.
452 2015-09-09  Tom de Vries  <tom@codesourcery.com>
454         * params-list.h: Add missing copyright notice.
456 2015-09-09  Nathan Sidwell  <nathan@acm.org>
458         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
459         sel_truesi, not andsi.
461 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
463         * config/arm/arm.md (*subsi3_compare0): Rename to...
464         (subsi3_compare0): ... This.
465         (modsi3): New define_expand.
466         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
467         when operand is power of 2.
469 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
471         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
472         (*neg<mode>2_compare0): Rename to...
473         (neg<mode>2_compare0): ... This.
474         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
475         Move check for speed inside the if-then-elses.  Reflect
476         CSNEG sequence in MOD by power of 2 case.
478 2015-09-09  Alan Modra  <amodra@gmail.com>
480         PR target/67378
481         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
482         reload replacement for PRE_MODIFY address reg.
484 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
486         PR tree-optimization/53852
487         * config.in: Regenerate.
488         * configure: Regenerate.
489         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
490         * graphite-optimize-isl.c (optimize_isl): Stop computation when
491         PARAM_MAX_ISL_OPERATIONS is reached.
492         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
493         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
494         result equal to isl_stat_ok as the status now can be isl_error_quota.
495         (subtract_commutative_associative_deps): Same.
496         (compute_deps): Same.
498 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
499             Sebastian Pop  <s.pop@samsung.com>
501         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
502         Return the parameter if it was saved in corresponding
503         parameter_rename_map of the region.
504         (copy_def): Copy def from sese region to the newly created region.
505         (copy_internal_parameters): Copy all the internal parameters defined
506         within a region to the newly created region.
507         (graphite_regenerate_ast_isl): Copy parameters to the new region before
508         translating isl to gimple.
509         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
510         the loop-nest does not have any data-references.
511         (build_graphite_scops): Create a scop only when there is at least one
512         loop inside it.
513         (contains_only_close_phi_nodes): Deleted.
514         (print_graphite_scop_statistics): Deleted
515         (print_graphite_statistics): Deleted
516         (limit_scops): Deleted.
517         (build_scops): Removed call to limit_scops.
518         * sese.c (new_sese): Construct.
519         (free_sese): Destruct.
520         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
521         added.
522         (set_rename): Pass sese region so that parameters inside the region can
523         be added to its parameter_rename_map.
524         (rename_uses): Pass sese region.
525         (graphite_copy_stmts_from_block): Do not copy parameters that have been
526         generated in the header of the scop. For each SSA_NAME in the
527         parameter_rename_map rename its usage.
528         (invariant_in_sese_p_rec): Return false if tree t is defined outside
529         sese region.
530         (scalar_evolution_in_region): If the tree t is invariant just return t.
531         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
532         struct sese to keep track of all the parameters which need renaming.
533         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
534         any data-refs.
535         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
537 2015-09-08  Tom de Vries  <tom@codesourcery.com>
539         * Makefile.in (generated_files): Add params.list.
540         (params.list, s-params.list): Add rule.
541         * params.h (enum compiler_param): Include params-list.h.  Move define
542         DEFPARAM, include params.def and undef DEFPARAM ...
543         * params-list.h: ... here.  New file.
545 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
547         * pretty-print.h (printer_fn): Fix typo in comment.
549 2015-09-07  Jeff Law  <law@redhat.com>
551         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
553 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
555         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
556         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
557         (arm_neon_fp16_hw): New.
559 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
561         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
562         UNITS_PER_WORD >= 4.
564 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
566         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
567         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
568         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
569         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
570         (aarch64_float_extend_lo_v2df): Rename to...
571         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
573         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
574         (float_extend_lo): Add v4sf.
576         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
577         * config/aarch64/iterators.md (VQ_HSF): New iterator.
578         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
579         (Vwide): New mode_attr.
581 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
583         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
584         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
585         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
586         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
587         V4HF and V8HF variants to iterator.
589         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
591         * config/aarch64/iterators.md (VDQF_F16): New.
592         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
594 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
596         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
597         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
598         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
599         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
600         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
601         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
602         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
603         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
604         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
605         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
606         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
607         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
608         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
609         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
610         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
611         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
612         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
613         vld1q_dup_f16): New.
615 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
617         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
618         Reparameterize to...
619         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
620         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
621         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
623         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
624         v8hf variant.
625         (float_truncate_lo_): Use BUILTIN_VDF iterator.
627         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
629         * config/aarch64/iterators.md (VDF, Vdtype): New.
630         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
632 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
634         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
635         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
636         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
637         Add __builtin_aarch64_simd_hf.
638         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
639         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
640         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
641         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
642         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
643         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
644         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
645         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
646         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
648         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
649         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
650         (VDC, Vdbl): Add V4HF.
652 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
654         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
655         V4HFmode and V8HFmode.
656         (aarch64_split_simd_move): Add case for V8HFmode.
657         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
658         (aarch64_simd_builtin_std_type): Handle HFmode.
659         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
661         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
662         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
663         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
665         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
666         Float16x8_t.
668         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
669         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
670         New typedefs.
671         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
672         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
673         vst1q_lane_f16): New.
674         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
675         (VALLDI_F16, VALL_F16): New.
676         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
677         Add cases for V4HF and V8HF.
678         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
680 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
682         * config/arm/arm-builtins.c (VAR11, VAR12): New.
683         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
684         vld4_dup): Add v4hf variant.
685         (vget_high, vget_low): Add v8hf variant.
686         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
687         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
688         v4hf and v8hf variants.
690         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
691         (VDX): Add V4HF.
692         (V_DOUBLE): Add case for V4HF.
693         (VQX): Add V8HF.
694         (V_HALF): Add case for V8HF.
695         (VDQX): Add V4HF, V8HF.
696         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
697         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
699         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
700         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
701         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
702         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
703         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
704         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
705         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
706         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
707         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
709         (neon_vcreate, neon_vreinterpretv8qi<mode>,
710         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
711         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
712         Change VDX to VD_RE.
714         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
715         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
716         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
718         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
719         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
720         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
721         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
722         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
723         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
724         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
725         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
726         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
728 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
730         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
731         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
732         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
733         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
734         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
735         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
736         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
737         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
738         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
739         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
740         New.
742 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
744         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
746         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
748         * config/arm/arm-builtins.c (v8hf_UP): New.
749         (arm_init_simd_builtin_types): Initialise Float16x8_t.
751         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
753         * config/arm/arm_neon.h (float16x8_t): New typedef.
755 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
757         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
758         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
759         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
760         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
761         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
762         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
763         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
764         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
765         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
766         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
768 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
770         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
771         non-alphanumeric characters in the symbol name.
773 2015-09-07  Marek Polacek  <polacek@redhat.com>
775         PR inline-asm/67448
776         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
777         a memory input.
779 2015-09-07  Marek Polacek  <polacek@redhat.com>
781         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
783 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
785         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
786         not warn.
788 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
790         PR middle-end/67452
791         * tree-ssa-live.c: Include cfgloop.h.
792         (remove_unused_locals): Clear loop->simduid if simduid is about
793         to be removed from cfun->local_decls.
795 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
797         PR target/65210
798         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
799         attribute as well.
801 2015-09-04  Tom de Vries  <tom@codesourcery.com>
803         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
805 2015-09-04  Jeff Law  <law@redhat.com>
807         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
808         unnecessary constructor.  It's now trivial and implemented inside...
809         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
810         constructor.  Add comments to various methods.  Remove unused
811         private fields.
812         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
813         * tree-vrp.c (identify_jump_threads): Likewise.
814         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
815         indentation issues.
816         (thread_across_edge): Similarly.
817         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
818         arguments in constructor call.
820 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
822         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
823         temp path contains a '-'.
825 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
826             Petr Murzin  <petr.murzin@intel.com>
827             Kirill Yukhin <kirill.yukhin@intel.com>
829         * config/i386/i386-builtin-types.def
830         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
831         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
832         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
833         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
834         * config/i386/i386.c
835         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
836         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
837         IX86_BUILTIN_SCATTERALTDIV16SI.
838         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
839         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
840         __builtin_ia32_scatteraltdiv8si.
841         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
842         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
843         IX86_BUILTIN_SCATTERALTDIV16SI.
844         (ix86_vectorize_builtin_scatter): New.
845         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
846         ix86_vectorize_builtin_scatter.
848 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
849             Petr Murzin  <petr.murzin@intel.com>
850             Kirill Yukhin <kirill.yukhin@intel.com>
852         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
853         * doc/tm.texi: Regenerate.
854         * target.def: Add scatter builtin.
855         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
856         for loads/stores in case of gather/scatter accordingly.
857         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
858         (vect_check_gather): Rename to ...
859         (vect_check_gather_scatter): this.
860         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
861         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
862         (vect_check_gather_scatter): Use it instead of vect_check_gather.
863         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter variable
864         and new checkings for it accordingly.
865         * tree-vect-stmts.c
866         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of STMT_VINFO_GATHER_P(S).
867         (vect_check_gather_scatter): Use it instead of vect_check_gather.
868         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
870 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
872         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
873         define_insn.
874         (mulv16qi3): New define_expand.
876 2015-09-03  Martin Sebor  <msebor@redhat.com>
878         PR c/66516
879         * doc/extend.texi (Other Builtins): Document when the address
880         of a built-in function can be taken.
882 2015-09-03  Richard Biener  <rguenther@suse.de>
884         * dwarf2out.c (flush_limbo_die_list): Split out from ...
885         (dwarf2out_early_finish): ... here.
886         (dwarf2out_finish): Do not call dwarf2out_early_finish but
887         flush_limbo_die_list.  Assert we have no deferred asm names.
889 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
891         * optabs.c (expand_binop): Don't create a broadcast vector with a
892         source element wider than the inner mode.
894 2015-09-03  Richard Biener  <rguenther@suse.de>
896         * varasm.c (output_constant): Use fold_convert instead of
897         wide_int_to_tree.
899 2015-09-03  Tom de Vries  <tom@codesourcery.com>
901         PR tree-optimization/65637
902         * omp-low.c (expand_omp_for_static_chunk): Handle case that fin_bb has 2
903         predecessors.
905 2015-09-03  Tom de Vries  <tom@codesourcery.com>
907         PR tree-optimization/65637
908         * omp-low.c (find_phi_with_arg_on_edge): New function.
909         (expand_omp_for_static_chunk): Fix inner loop phi.
911 2015-09-03  Tom de Vries  <tom@codesourcery.com>
913         PR tree-optimization/65637
914         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
915         that head is NULL.
917 2015-09-03  Tom de Vries  <tom@codesourcery.com>
919         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
921 2015-09-03  Tom de Vries  <tom@codesourcery.com>
923         * doc/invoke.texi (parloops-chunk-size): Add item.
924         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
925         * tree-parloops.c: Include params.h.
926         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
927         param parloops-chunk-size is used.
929 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
931         PR middle-end/67351
932         * fold-const.c (fold_binary_loc) : Move 
933         Transform (x >> c) << c into x & (-1<<c) or
934         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
935         types using simplify and match.
936         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
937         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
939 2015-09-03  Richard Biener  <rguenther@suse.de>
941         PR ipa/66705
942         * tree-ssa-structalias.c (ctor_for_analysis): New function.
943         (create_variable_info_for_1): Use ctor_for_analysis instead
944         of get_constructor.
945         (create_variable_info_for): Likewise.
947 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
949         PR ipa/67280
950         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
951         in new callgraph edge.
953 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
955         PR target/59810
956         PR target/63652
957         PR target/63653
958         * config/aarch64/aarch64-simd.md
959         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
960         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
961         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
962         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
964 2015-09-02  Alan Modra  <amodra@gmail.com>
966         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
967         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
968         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
970 2015-09-02  Alan Modra  <amodra@gmail.com>
972         PR target/67417
973         * config/rs6000/predicates.md (current_file_function_operand): Don't
974         return true for weak symbols.
975         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
977 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
978             Andrew Bennett  <andrew.bennett@imgtec.com>
980         * config/mips/mips-opts.h (mips_cb_setting): New enum.
981         * config/mips/mips-protos.h: Add definitions for
982         mips_output_jump and mips_output_equal_conditional_branch
983         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
984         JIC instruction.
985         (mips_emit_compare): Add support for the MIPS R6 conditional
986         compact branches.
987         (mips_process_sync_loop): Likewise.
988         (mips_output_order_conditional_branch): Likewise.
989         (mips16_build_call_stub): Change MIPS_CALL to
990         mips_output_jump.
991         (mips_print_operand_punctuation): Update 's' case to only
992         apply to micromips r2.
993         (mips_adjust_insn_length): Add support for forbidden slot
994         hazards.
995         (mips_avoid_hazard): Likewise.
996         (mips_reorg_process_insns): Likewise.
997         (mips_output_jump): New function.
998         (mips_output_equal_conditional_branch): Likewise.
999         (mips_output_conditional_branch): Use jrc/bc if compact
1000         branch support is enabled.  Ensure the forbidden slots
1001         between the two branch instructions is filled with a nop.
1002         (mips_option_override): Add support to process the compact
1003         branch option and set the correct defaults.  Prevent
1004         non-explict relocs being using for MIPS R6.
1005         (mips_trampoline_init): Add compact branch support.
1006         (mips_mult_zero_zero_cost): Allow zero initialisation of
1007         accumulators with TARGET_DSP.
1008         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
1009         (TARGET_CB_MAYBE): New define.
1010         (TARGET_CB_ALWAYS): New define.
1011         (ISA_HAS_DELAY_SLOTS): New define.
1012         (ISA_HAS_COMPACT_BRANCHES): New define.
1013         (ISA_HAS_JRC): New define.
1014         (MIPS_BRANCH_C): New define.
1015         (MIPS_CALL): Removed.
1016         (MICROMIPS_J): Removed.
1017         * config/mips/mips.md (compact_form): New attr.
1018         (hazard): Add support for forbidden slots.
1019         (define_delay): Add support for compact branches.
1020         (*branch_order<mode>): Likewise.
1021         (*branch_order<mode>_inverted): Likewise.
1022         (*branch_equality<mode>): Likewise.
1023         (*branch_equality<mode>_inverted): Likewise.
1024         (*jump_absolute): Likewise.
1025         (*jump_pic): Likewise.
1026         (indirect_jump): Use mips_output_jump to produce assembly output.
1027         (tablejump_<mode>"): Likewise.
1028         (*<optab>"): Likewise.
1029         (<optab>_internal): Likewise.
1030         (sibcall_internal): Likewise.
1031         (sibcall_value_internal): Likewise.
1032         (sibcall_value_multiple_internal): Likewise.
1033         (call_internal): Likewise.
1034         (call_split): Likewise.
1035         (call_internal_direct): Likewise.
1036         (call_direct_split): Likewise.
1037         (call_value_internal): Likewise.
1038         (call_value_split): Likewise.
1039         (call_value_internal_direct): Likewise.
1040         (call_value_direct_split): Likewise.
1041         (call_value_multiple_internal): Likewise.
1042         (call_value_multiple_split): Likewise.
1043         (mips_get_fcsr_mips16_<mode>): Likewise.
1044         (mips_set_fcsr_mips16_<mode>): Likewise.
1045         (tls_get_tp_mips16_<mode>): Likewise.
1046         * config/mips/mips.opt: Add -mcompact-branches option.
1047         * config/mips/predicates.md (order_operator): Ensure the
1048         conditional compact branches are only used if the ISA them.
1049         * doc/invoke.texi: Document -mcompact-branches option.
1051 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
1053         PR target/61578
1054         * lra-lives.c (process_bb_lives): Process move pseudos with the
1055         same value for copies and preferences
1056         * lra-constraints.c (match_reload): Create match reload pseudo
1057         with the same value from single dying input pseudo.
1059 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
1061         PR target/67405
1062         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
1064 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
1066         * trans-mem.c: Add contributed-by.
1067         * trans-mem.h: Same.
1069 2015-09-01  Richard Biener  <rguenther@suse.de>
1071         * expr.c (expand_expr_real_1): For expanding TERed defs
1072         set the current location to that of the def if not UNKNOWN.
1074 2015-09-01  David Sherwood  <david.sherwood@arm.com>
1076         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
1078 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1080         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
1081         then_cost, else_cost fields.  Change branch_cost field to unsigned
1082         int.
1083         (end_ifcvt_sequence): Call set_used_flags on each insn in the
1084         sequence.
1085         Include rtl-iter.h.
1086         (noce_simple_bbs): New function.
1087         (noce_try_move): Bail if basic blocks are not simple.
1088         (noce_try_store_flag): Likewise.
1089         (noce_try_store_flag_constants): Likewise.
1090         (noce_try_addcc): Likewise.
1091         (noce_try_store_flag_mask): Likewise.
1092         (noce_try_cmove): Likewise.
1093         (noce_try_minmax): Likewise.
1094         (noce_try_abs): Likewise.
1095         (noce_try_sign_mask): Likewise.
1096         (noce_try_bitop): Likewise.
1097         (bbs_ok_for_cmove_arith): New function.
1098         (noce_emit_all_but_last): Likewise.
1099         (noce_emit_insn): Likewise.
1100         (noce_emit_bb): Likewise.
1101         (noce_try_cmove_arith): Handle non-simple basic blocks.
1102         (insn_valid_noce_process_p): New function.
1103         (contains_mem_rtx_p): Likewise.
1104         (bb_valid_for_noce_process_p): Likewise.
1105         (noce_process_if_block): Allow non-simple basic blocks
1106         where appropriate.
1108 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
1110         * tree-ssa-dom.c (record_equivalences_from_phis,
1111         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
1112         (lookup_avail_expr): Likewise, and remove comment and unused temp.
1114 2015-09-01  Nick Clifton  <nickc@redhat.com>
1116         * config/msp430/msp430.opt (mcpu): Fix typo.
1118 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1120         * config/aarch64/aarch64.c (aarch64_set_current_function):
1121         Re-layout any vector parameters have non-simd layout.
1122         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
1123         Delete.
1124         (aarch64_simd_expand_args): Delete call to the above.
1126 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
1128         * doc/invoke.texi (asan-stack): Add space before option.
1130 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
1132         * tree.h (zerop): New function.
1133         * tree.c (zerop): Likewise.
1134         (element_precision): Handle expressions.
1135         * match.pd (define_predicates): Add zerop.
1136         (x <= +Inf): Fix comment.
1137         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
1138         * fold-const.c (fold_binary_loc): ... here. Remove.
1140 2015-08-31  Richard Biener  <rguenther@suse.de>
1142         PR middle-end/67381
1143         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
1145 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
1147         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
1148         (CEXPI): New operator list.
1149         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
1150         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
1151         Converted from ...
1152         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
1154 2015-08-31  Tom de Vries  <tom@codesourcery.com>
1156         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
1157         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
1158         parameter.
1159         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
1160         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
1161         (rewrite_into_loop_closed_ssa): ... here.
1162         (replace_uses_in_dominated_bbs): Remove function.
1163         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
1164         rewrite_into_loop_closed_ssa_1.
1166 2015-08-31  Michael Matz  <matz@suse.de>
1168         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
1169         enter entry and exit blocks for reverse post order.
1171 2015-08-31  Richard Biener  <rguenther@suse.de>
1173         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
1174         (lto_location_cache::current_sysp): Likewise.
1175         (output_block::current_sysp): Likewise.
1176         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
1177         (lto_location_cache::apply_location_cache): Properly record
1178         system header locations.
1179         (lto_location_cache::input_location): Input whether a file
1180         is a system header.
1181         * lto-streamer-out.c (lto_output_location): Stream whether a file
1182         is a system header.
1184 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1186         PR bootstrap/67363
1187         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
1189 2015-08-31  Tom de Vries  <tom@codesourcery.com>
1191         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
1192         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
1193         Improve function header comments.
1195 2015-08-30  Michael Collison  <michael.collison@linaro.org>
1197         PR other/67320
1198         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
1199         standard names
1201 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1203         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
1204         special_handling bitfield.
1205         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
1206         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
1207         that represents a general xxpermdi.
1208         (insn_is_swappable_p): Add handling for vec_concat of two
1209         doublewords, which maps to a specific xxpermdi.
1210         (adjust_xxpermdi): New function.
1211         (adjust_concat): Likewise.
1212         (handle_special_swappables): Call adjust_xxpermdi and
1213         adjust_concat.
1214         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
1216 2015-08-30  Rich Felker <dalias@libc.org>
1218         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
1219         case instead of sh[123456ble]-*-*.
1221 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
1223         * ira.c (print_unform_and_important_classes,
1224         print_translated_classes): Remove reg_class_names static array.
1225         (print_unform_and_important_classes): Rename to ...
1226         (print_uniform_and_important_classes): ... this.
1227         (ira_debug_allocno_classes): Update accordingly.
1229 2015-08-29  Tom de Vries  <tom@codesourcery.com>
1231         PR tree-optimization/46193
1232         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
1233         clause.
1235 2015-08-28  Jeff Law  <law@redhat.com>
1237         PR lto/66752
1238         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1239         unable to find X NE 0 in the tables, return X as the simplified
1240         condition.
1241         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1242         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
1243         to VISISTED_BBS.
1244         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1245         after removing the control flow statement and unnecessary edges.
1247 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
1249         Revert:
1250         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
1251                 PR tree-optimization/67283
1252                 * tree-sra.c (type_consists_of_records_p): Rename to...
1253                 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1255                 (completely_scalarize_record): Rename to...
1256                 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
1257                  code to:
1258                 (scalarize_elem): New.
1260 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
1262         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
1263         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
1264         (aarch64_symbol_type): Likewise.
1265         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1266         Likewise.
1267         (aarch64_expand_mov_immediate): Likewise.
1268         (aarch64_print_operand): Likewise.
1269         (aarch64_classify_tls_symbol): Likewise.
1271 2015-08-28  Richard Biener  <rguenther@suse.de>
1273         * cgraphunit.c (symbol_table::compile): Move early debug generation
1274         and finish...
1275         (symbol_table::finalize_compilation_unit): ... back here and
1276         add a !seen_error () guard.
1278 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
1280         * toplev.c (process_options): Do not use flag_loop_block,
1281         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
1282         flag_loop_optimize_isl.
1284 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
1286         * Makefile.in (OBJS): Remove graphite-blocking.o and
1287         graphite-interchange.o.
1288         * common.opt (floop-strip-mine, floop-interchange, floop-block):
1289         Alias of floop-nest-optimize.
1290         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
1291         Document as alias of -floop-nest-optimize.
1292         * graphite-blocking.c: Remove.
1293         * graphite-interchange.c: Remove.
1294         * graphite-optimize-isl.c: Include dumpfile.h.
1295         (getScheduleForBand): Add dump for tiled loops.  Use
1296         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
1297         * graphite-poly.c (scop_max_loop_depth): Remove.
1298         (print_scattering_function_1): Remove.
1299         (print_scattering_function): Remove.
1300         (print_scattering_functions): Remove.
1301         (debug_scattering_function): Remove.
1302         (debug_scattering_functions): Remove.
1303         (apply_poly_transforms): Remove use of flag_loop_block,
1304         flag_loop_strip_mine, and flag_loop_interchange.
1305         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
1306         PBB_ORIGINAL.
1307         (print_pdr_access_layout): Remove.
1308         (print_pdr): Print ISL representation.
1309         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
1310         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1311         (free_scop): Same.
1312         (openscop_print_pbb_domain): Remove.
1313         (print_pbb): Remove call to print_scattering_function.
1314         (openscop_print_scop_context): Remove.
1315         (print_scop_context): Do not print matrices anymore.
1316         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
1317         SCOP_TRANSFORMED_SCHEDULE.
1318         (print_isl_set): Add printing of a new line.
1319         (print_isl_map): Same.
1320         (print_isl_aff): Same.
1321         (print_isl_constraint): Same.
1322         (loop_to_lst): Remove.
1323         (scop_to_lst): Remove.
1324         (lst_indent_to): Remove.
1325         (print_lst): Remove.
1326         (debug_lst): Remove.
1327         (dot_lst_1): Remove.
1328         (dot_lst): Remove.
1329         (reverse_loop_at_level): Remove.
1330         (reverse_loop_for_pbbs): Remove.
1331         * graphite-poly.h (pdr_dim_iter_domain): Remove.
1332         (pdr_nb_params): Remove.
1333         (pdr_alias_set_dim): Remove.
1334         (pdr_subscript_dim): Remove.
1335         (pdr_iterator_dim): Remove.
1336         (pdr_parameter_dim): Remove.
1337         (same_pdr_p): Remove.
1338         (struct poly_scattering): Remove.
1339         (struct poly_bb): Remove _original, _transformed, _saved.
1340         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
1341         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
1342         (PBB_NB_LOCAL_VARIABLES): Remove.
1343         (PBB_NB_SCATTERING_TRANSFORM): Remove.
1344         (schedule_to_scattering): Remove.
1345         (number_of_write_pdrs): Remove.
1346         (pbb_dim_iter_domain): Remove.
1347         (pbb_nb_params): Remove.
1348         (pbb_nb_scattering_orig): Remove.
1349         (pbb_nb_scattering_transform): Remove.
1350         (pbb_nb_dynamic_scattering_transform): Remove.
1351         (pbb_nb_local_vars): Remove.
1352         (pbb_iterator_dim): Remove.
1353         (pbb_parameter_dim): Remove.
1354         (psco_scattering_dim): Remove.
1355         (psct_scattering_dim): Remove.
1356         (psct_local_var_dim): Remove.
1357         (psco_iterator_dim): Remove.
1358         (psct_iterator_dim): Remove.
1359         (psco_parameter_dim): Remove.
1360         (psct_parameter_dim): Remove.
1361         (psct_dynamic_dim): Remove.
1362         (psct_static_dim): Remove.
1363         (psct_add_local_variable): Remove.
1364         (new_lst_loop): Remove.
1365         (new_lst_stmt): Remove.
1366         (free_lst): Remove.
1367         (copy_lst): Remove.
1368         (lst_add_loop_under_loop): Remove.
1369         (lst_depth): Remove.
1370         (lst_dewey_number): Remove.
1371         (lst_dewey_number_at_depth): Remove.
1372         (lst_pred): Remove.
1373         (lst_succ): Remove.
1374         (lst_find_pbb): Remove.
1375         (find_lst_loop): Remove.
1376         (lst_find_first_pbb): Remove.
1377         (lst_empty_p): Remove.
1378         (lst_find_last_pbb): Remove.
1379         (lst_contains_p): Remove.
1380         (lst_contains_pbb): Remove.
1381         (lst_create_nest): Remove.
1382         (lst_remove_from_sequence): Remove.
1383         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
1384         (lst_niter_for_loop): Remove.
1385         (pbb_update_scattering): Remove.
1386         (lst_update_scattering_under): Remove.
1387         (lst_update_scattering): Remove.
1388         (lst_insert_in_sequence): Remove.
1389         (lst_replace): Remove.
1390         (lst_substitute_3): Remove.
1391         (lst_distribute_lst): Remove.
1392         (lst_remove_all_before_including_pbb): Remove.
1393         (lst_remove_all_before_excluding_pbb): Remove.
1394         (struct scop): Remove original_schedule, transformed_schedule, and
1395         saved_schedule.
1396         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
1397         (SCOP_SAVED_SCHEDULE): Remove.
1398         (poly_scattering_new): Remove.
1399         (poly_scattering_free): Remove.
1400         (poly_scattering_copy): Remove.
1401         (store_scattering_pbb): Remove.
1402         (store_lst_schedule): Remove.
1403         (restore_lst_schedule): Remove.
1404         (store_scattering): Remove.
1405         (restore_scattering_pbb): Remove.
1406         (restore_scattering): Remove.
1407         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1408         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
1409         compute the scattering polyhedron dimension from the dimension of
1410         pbb->domain.
1411         (build_scop_scattering): Update call to
1412         build_pbb_scattering_polyhedrons.
1413         (build_poly_scop): Remove call to scop_to_lst.
1414         * graphite.c (graphite_transform_loops): Add call to print_scop.
1415         (gate_graphite_transforms): Remove use of flag_loop_block,
1416         flag_loop_interchange, and flag_loop_strip_mine.
1418 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
1420         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
1421         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
1422         -floop-nest-optimize.
1423         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
1424         (generate_luj_sepclass): Remove.
1425         (generate_luj_options): Remove.
1426         (set_options): Remove opt_luj.
1427         (scop_to_isl_ast): Remove opt_luj.
1428         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
1429         flag_loop_unroll_jam.
1430         (getPrevectorMap_full): Remove.
1431         (getScheduleForBandList): Remove map_sepcl.
1432         (getScheduleMap): Same.
1433         (apply_schedule_map_to_scop): Remove sepcl.
1434         (optimize_isl): Same.
1435         * graphite-poly.c (apply_poly_transforms): Remove check for
1436         flag_loop_unroll_jam.
1437         (new_poly_bb): Remove map_sepclass.
1438         * graphite-poly.h (struct poly_bb): Same.
1439         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
1440         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
1441         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
1442         * toplev.c (process_options): Remove flag_loop_unroll_jam.
1444 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
1446         PR target/67317
1447         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
1448         (addqi3_cc): Ditto.
1449         (UNSPEC_ADD_CARRY): Remove.
1450         (addqi3_cconly_overflow): New expander.
1451         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
1452         Adjust for changed add<mode>3_carry.
1453         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
1454         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
1455         (<plusminus_insn><mode>3_carry): Remove expander.
1456         (*<plusminus_insn><mode>3_carry): Split insn pattern to
1457         add<mode>3_carry and sub<mode>3_carry.
1458         (plusminus_carry_mnemonic): Remove code attribute.
1459         (add<mode>3_carry): Canonicalize insn pattern.
1460         (*addsi3_carry_zext): Ditto.
1461         (sub<mode>3_carry): Ditto.
1462         (*subsi3_carry_zext): Ditto.
1463         (adcx<mode>3): Remove insn pattern.
1464         (addcarry<mode>): New insn pattern.
1465         (subborrow<mode>): Ditto.
1466         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
1467         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
1468         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
1469         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
1470         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
1471         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
1472         Rewrite expander to not clobber carry flag chains.
1474 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
1476         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
1477         instead of a rotate.
1479 2015-08-27  Marek Polacek  <polacek@redhat.com>
1481         PR middle-end/67005
1482         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
1483         an entry into an irreducible region.
1485 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1487         * configure: Regenerate.
1489 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
1491         PR tree-optimization/67283
1492         * tree-sra.c (type_consists_of_records_p): Rename to...
1493         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
1495         (completely_scalarize_record): Rename to...
1496         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
1497         (scalarize_elem): New.
1499 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
1501         * tree-sra.c (completely_scalarize_var): Rename to...
1502         (create_total_scalarization_access): ... Here. Drop call to
1503         completely_scalarize_record.
1505         (analyze_all_variable_accesses): Replace completely_scalarize_var
1506         with create_total_scalarization_access and completely_scalarize_record.
1508 2015-08-27  Alan Modra  <amodra@gmail.com>
1510         PR target/67356
1511         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
1512         for operand 1.
1514 2015-08-27  Richard Biener  <rguenther@suse.de>
1516         * passes.c (rest_of_decl_compilation): Guard early_global_decl
1517         call with !seen_error ().
1518         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
1519         early debug generation and finish...
1520         (symbol_table::compile): ... here to put it after a !seen_error ()
1521         guard.
1523 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1525         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
1526         Solaris 12+.
1528 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1529             Andre Vieira  <andre.simoesdiasvieira@arm.com>
1531         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
1532         (*cb<optab><mode>1): Likewise.
1533         (*tb<optab><mode>1): Likewise.
1534         (*cb<optab><mode>1): Likewise.
1535         * config/aarch64/iterators.md (inv_cb): New code attribute.
1536         (inv_tb): Likewise.
1537         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
1538         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
1540 2015-08-27  Richard Biener  <rguenther@suse.de>
1542         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
1544 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
1546         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
1547         trap to fix ICE.
1549 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
1551         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
1552         Add declaration.
1554         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
1555         comment.
1556         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
1557         floating point in VSX registers.
1558         (rs6000_output_move_128bit): Always print out the set insn if we
1559         can't generate an appropriate 128-bit move.
1560         (rs6000_generate_compare): Add support for IEEE 128-bit floating
1561         point in VSX registers comparisons.
1562         (rs6000_expand_float128_convert): Likewise.
1564         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
1565         predicate for only GPR hard registers.
1567         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
1568         modes to iterators. Add new iterators for moving 128-bit values in
1569         scalar FPR registers and VSX registers.
1570         (FMOVE128): Likewise.
1571         (FMOVE128_FPR): Likewise.
1572         (FMOVE128_GPR): Likewise.
1573         (FMOVE128_VSX): Likewise.
1574         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
1575         in VSX registers.
1576         (IFKF): Likewise.
1577         (IBM128): Likewise.
1578         (TFIFKF): Likewise.
1579         (RELOAD): Add IEEE 128-bit floating point modes.
1580         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
1581         floating point in VSX registers modes.
1582         (signbit<mode>2, IBM128 iterator): Likewise.
1583         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
1584         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
1585         (negtf2): Likewise.
1586         (neg<mode>2, TFIFKF iterator): Likewise.
1587         (negtf2_internal): Likewise.
1588         (abstf2): Likewise.
1589         (abs<mode>2, TFIFKF iterator): Likewise.
1590         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
1591         VSX insn support for negate, absolute value, and negative absolute
1592         value.
1593         (ieee_128bit_vsx_neg<mode>2): Likewise.
1594         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
1595         (ieee_128bit_vsx_abs<mode>2): Likewise.
1596         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
1597         (ieee_128bit_vsx_nabs<mode>2): Likewise.
1598         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
1599         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
1600         floating point in VSX registers.
1601         (unpack<mode>_dm): Likewise.
1602         (unpack<mode>_nodm): Likewise.
1603         (pack<mode>): Likewise.
1604         (unpackv1ti): Likewise.
1605         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
1606         (packv1ti): Likewise.
1607         (pack<mode>, FMOVE128_VSX iterator): Likewise.
1608         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
1609         registers.
1610         (extenddftf2_internal): Likewise.
1611         (trunctfdf2): Likewise.
1612         (trunctfdf2_internal2): Likewise.
1613         (fix_trunc_helper): Likewise.
1614         (fix_trunctfdi2"): Likewise.
1615         (floatditf2): Likewise.
1616         (floatuns<mode>tf2): Likewise.
1617         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
1618         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
1619         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
1620         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
1621         (float<SDI:mode><IFKF:mode>2): Likewise.
1622         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
1624 2015-08-26  Renlin Li  <renlin.li@arm.com>
1626         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
1628 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1629             Jiong Wang  <jiong.wang@arm.com>
1631         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
1632         (tlsie_tiny_<mode>): New define_insn.
1633         (tlsie_tiny_sidi): Likewise.
1634         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1635         SYMBOL_TINY_TLSIE.
1636         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
1637         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
1638         SYMBOL_TINY_TLSIE.
1639         (aarch64_expand_mov_immediate): Likewise.
1640         (aarch64_print_operand): Likewise.
1641         (arch64_classify_tls_symbol): Likewise.
1643 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
1645         * config/arm/arm-arches.def: Replace single value flags with
1646         an initializer built from ARM_FSET_MAKE_CPU1.
1647         * config/arm/arm-cores.def: Likewise.
1648         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
1649         derivation from the ARM_CORE macro definition, use the given value
1650         instead.
1651         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
1652         ARM_ARCH macro definition, use the given value instead.
1654 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
1656         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
1657         feature set.
1658         (struct builtin_description): Replace field mask with field
1659         features.
1660         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
1661         (IWMMXT2_BUILTIN): Likewise.
1662         (IWMMXT2_BUILTIN2): Likewise.
1663         (FP_BUILTIN): Likewise.
1664         (CRC32_BUILTIN): Likewise.
1665         (CRYPTO_BUILTIN): Likewise.
1666         (iwmmx_mbuiltin): Likewise.
1667         (iwmmx2_mbuiltin): Likewise.
1668         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
1669         struct builtin_description.
1671 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
1673         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
1674         (struct builtin_description): Change type of mask to unsigned
1675         long.
1676         * config/arm/arm-protos.h (insn_flags): Declare as type
1677         arm_feature_set.
1678         (tune_flags): Likewise.
1679         * config/arm/arm.c (feature_count): New.
1680         (insn_flags): Define as type arm_feature_set.
1681         (tune_flags): Likewise.
1682         (struct processors): Define field flags as type arm_feature_set.
1683         (all_cores): Update for change to struct processors.
1684         (all_architectures): Likewise.
1685         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
1686         macros.
1687         (arm_option_override_internal): Likewise.
1688         (arm_option_override): Likewise.
1690 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1691             Jiong Wang  <jiong.wang@arm.com>
1693         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
1694         tls size for tiny, small, large memory model.
1695         (aarch64_load_symref_appropriately): Support new symbol types.
1696         (aarch64_expand_mov_immediate): Likewise.
1697         (aarch64_print_operand): Likewise.
1698         (aarch64_classify_tls_symbol): Likewise.
1699         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
1700         (aarch64_symbol_type): Likewise.
1701         * config/aarch64/aarch64.md (tlsle): Deleted.
1702         (tlsle12_<mode>): New define_insn.
1703         (tlsle24_<mode>): Likewise.
1704         (tlsle32_<mode>): Likewise.
1705         (tlsle48_<mode>): Likewise.
1706         * doc/sourcebuild.texi (AArch64-specific attributes): Document
1707         "aarch64_tlsle32".
1709 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
1711         * config/arm/arm-protos.h (FL_NONE): New.
1712         (FL_ANY): New.
1713         (arm_feature_set): New.
1714         (ARM_FSET_MAKE): New.
1715         (ARM_FSET_MAKE_CPU1): New.
1716         (ARM_FSET_MAKE_CPU2): New.
1717         (ARM_FSET_CPU1): New.
1718         (ARM_FSET_CPU2): New.
1719         (ARM_FSET_EMPTY): New.
1720         (ARM_FSET_ANY): New.
1721         (ARM_FSET_HAS_CPU1): New.
1722         (ARM_FSET_HAS_CPU2): New.
1723         (ARM_FSET_HAS_CPU): New.
1724         (ARM_FSET_ADD_CPU1): New.
1725         (ARM_FSET_ADD_CPU2): New.
1726         (ARM_FSET_DEL_CPU1): New.
1727         (ARM_FSET_DEL_CPU2): New.
1728         (ARM_FSET_UNION): New.
1729         (ARM_FSET_INTER): New.
1730         (ARM_FSET_XOR): New.
1731         (ARM_FSET_EXCLUDE): New.
1732         (AFM_FSET_IS_EMPTY): New.
1733         (ARM_FSET_CPU_SUBSET): New.
1735 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
1737         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
1738         SYMBOL_TLSLE to SYMBOL_TLSLE24.
1739         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1740         Likewise.
1741         (aarch64_expand_mov_immediate): Likewise.
1742         (aarch64_print_operand): Likewise.
1743         (aarch64_classify_symbol): Likewise.
1745 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
1747         * config/aarch64/aarch64.opt (mtls-size): New entry.
1748         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
1749         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
1750         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
1752 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
1754         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
1755         ARM_CORE entry.  Fix some white-space.
1756         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
1757         ARM_CORE definition.
1759 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1761         * fold-const.c (fold_binary_loc) : Move Optimize 
1762         root(x)*root(y) as root(x*y) to match.pd.
1763         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
1764         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
1765         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
1766         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
1767         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
1768         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
1769         (mult (exps:s @0) (exps:s @1)) : New simplifier.
1770         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
1771         (rdiv @0 (exps:s @1)) : New simplifier.
1773 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
1775         * gcc.c (driver::finalize): Only assign to extra_specs if
1776         [EXTRA_SPECS].
1778 2015-08-25  Marek Polacek  <polacek@redhat.com>
1780         PR middle-end/67330
1781         * varasm.c (declare_weak): Return after giving an error.
1783 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
1785         * gcc-main.c (main): Add params to driver ctor.
1786         * gcc.c (class env_manager): New.
1787         (env): New global.
1788         (env_manager::init): New.
1789         (env_manager::get): New.
1790         (env_manager::xput): New.
1791         (env_manager::restore): New.
1792         Poison getenv and putenv.
1793         (DEFAULT_TARGET_SYSTEM_ROOT): New.
1794         (target_system_root): Update initialization to use
1795         DEFAULT_TARGET_SYSTEM_ROOT.
1796         (struct spec_list): Add field "default_ptr".
1797         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
1798         (init_spec): Likewise.
1799         (set_spec): Clear field "default_ptr".
1800         (read_specs): Free "spec" and "buffer".
1801         (xputenv): Reimplement in terms of env_manager.
1802         (process_command): Replace ::getenv calls with calls to the
1803         env_manager singleton.
1804         (process_brace_body): Free string in three places.
1805         (driver::driver): New.
1806         (driver::~driver): New.
1807         (used_arg): Convert from a function to...
1808         (class used_arg_t): ...this class, and...
1809         (used_arg): ...this new global instance.
1810         (used_arg_t::finalize): New function.
1811         (getenv_spec_function): Add "const" to local "value".  Replace
1812         ::getenv call with call to the env_manager singleton.
1813         (path_prefix_reset): New function.
1814         (driver::finalize): New function.
1815         * gcc.h (driver::driver): New.
1816         (driver::~driver): New.
1817         (driver::finalize): New.
1819 2015-08-25  Nathan Sidwell  <nathan@acm.org>
1821         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
1822         target doesn't have one.
1824 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
1826         PR target/67346
1827         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
1829 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
1831         PR target/67344
1832         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
1833         a define_insn, remove second alternative.
1835 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
1836             Joseph Myers  <joseph@codesourcery.com>
1838         * gcc.c (struct switchstr): Expand comment.
1840 2015-08-25  Nathan Sidwell  <nathan@acm.org>
1842         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
1843         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
1845 2015-08-25  Richard Biener  <rguenther@suse.de>
1847         PR middle-end/67306
1848         * genmatch.c (expr::gen_transform): Verify the result of
1849         builtin_decl_implicit.
1850         (dt_simplify::gen_1): Likewise.
1852 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1854         * config/arm/constraints.md: Also list Cs and US ARM-specific
1855         constraints as used.
1857 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
1859         PR target/66609
1860         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
1861         UNSPEC_PCREL.
1862         (nonpic_symbol_mentioned_p): Likewise.
1863         (sh_delegitimize_address): Likewise.
1864         (sh_function_ok_for_sibcall): Take into account weak symbols.
1865         (sh_expand_sym_label2reg): New.
1866         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
1867         * config/sh/sh.md (UNSPEC_PCREL): New enum.
1868         (call_pcrel): Use sh_expand_sym_label2reg.
1869         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
1870         (symPCREL_label2reg) New expand.
1872 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1874         * graphite-poly.c: Change type of region from void* to sese.
1875         * graphite-poly.h (struct scop): Changing the type of scop::region
1876         from void* to sese. Change accessor macro accordingly.
1877         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
1879 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
1881         * graphite-scop-detection.c (stmt_simple_for_scop_p):
1882         Constrain only on INTEGER_TYPE.
1884 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
1886         PR target/67211
1887         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
1888         -mefficient-unaligned-vsx on ISA 2.7.
1890         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
1891         option to a masked option.
1893         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
1894         logic for -mefficient-unaligned-vsx so that it is set via an arch
1895         ISA option, instead of being set if -mtune=power8 is set. Move
1896         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
1897         near other default option handling.
1899 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1901         * genflags.c (gen_macro): Delete.
1902         (gen_proto): Don't create GEN.*CALL.* macros.
1903         * gensupport.h (get_file_location): Declare.
1904         * gensupport.c (rtx_locs): New variable.
1905         (read_md_rtx): Record rtx locations.
1906         (get_file_location): New function.
1907         * target-insns.def (call, call_pop, call_value, call_value_pop)
1908         (sibcall, sibcall_value): New patterns.
1909         * gentarget-def.c (parse_argument): New function.
1910         (def_target_insn): Use it.  Handle optional operands.  Raise an
1911         error if an .md pattern has the wrong number of operands for the
1912         pattern name.  Remove the names of unused operands from the prototype.
1913         * builtins.c (expand_builtin_apply): Use targetm functions
1914         instead of HAVE_call_value and GEN_CALL_VALUE.
1915         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
1916         and sibcall_value_pop.
1917         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
1918         of GEN_CALL.
1919         * config/alpha/alpha.md (untyped_call): Likewise.
1920         * config/iq2000/iq2000.md (untyped_call): Likewise.
1921         * config/m68k/m68k.md (untyped_call): Likewise.
1922         * config/mips/mips.md (untyped_call): Likewise.
1923         * config/pa/pa.md (untyped_call): Likewise.
1924         * config/rs6000/rs6000.md (untyped_call): Likewise.
1925         * config/sparc/sparc.md (untyped_call): Likewise.
1926         * config/tilegx/tilegx.md (untyped_call): Likewise.
1927         * config/tilepro/tilepro.md (untyped_call): Likewise.
1928         * config/visium/visium.md (untyped_call): Likewise.
1929         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
1930         gen_call_value instead of GEN_CALL_VALUE.
1931         * config/arm/arm.md (untyped_call): Likewise.
1932         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
1933         GEN_CALL.
1935 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1937         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
1938         (have_cbranchcc4): New variable.
1939         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
1940         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
1941         (if_convert): Initialize have_cbranchcc4.
1943 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1945         * builtins.c (expand_cmpstrn): Rename to...
1946         (expand_cmpstrn_or_cmpmem): ...this.
1947         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
1948         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
1949         Remove mode argument.
1950         (expand_builtin): Update accordingly.
1952 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1954         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
1955         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
1956         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
1957         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
1958         Add predicates for operands 0 and 3.
1959         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
1960         operand.
1961         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
1962         immediate_operand to nonmemory_operand.
1964 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
1966         * df-scan.c (df_insn_info_init_fields): New function, split out
1967         from...
1968         (df_insn_create_insn_record): ...here.
1969         (df_insn_info_free_fields): New function, split out from...
1970         (df_insn_info_delete): ...here.
1971         (df_insn_rescan): Use the new functions instead of freeing and
1972         reallocating the df_insn_info.
1974 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1976         * doc/install.texi (Binaries): Remove links no longer valid.
1978 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
1980         * config/nvptx/mkoffload.c (process): Replace
1981         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
1983 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
1985         PR target/67329
1986         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
1988 2015-08-24  Renlin Li  <renlin.li@arm.com>
1990         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
1991         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
1992         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
1993         * config/arm/constraints.md ("j"): Add check for high code.
1995 2015-08-24  Tom de Vries  <tom@codesourcery.com>
1997         PR tree-optimization/65468
1998         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
1999         chunk_size is one.
2001 2015-08-24  Nathan Sidwell  <nathan@acm.org>
2003         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
2004         change to nvptx_type_from_mode call. Use arg_promotion for both
2005         split and non-split args.
2007 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2009         * target-insns.def (movstr): New pattern.
2010         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
2011         (expand_movstr): Use targetm rather than HAVE_movstr/
2012         CODE_FOR_movstr.
2014 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
2016         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
2017         cast syntax.
2019 2015-08-24  Andrew Pinski  <apinski@cavium.com>
2021         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
2022         AARCH64_EXTRA_TUNING_OPTION.
2023         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index): New enum.
2024         (aarch64_extra_tuning_flags): Base the shifted value on the index instead
2025         of the argument to AARCH64_EXTRA_TUNING_OPTION.
2026         * config/aarch64/aarch64.c: Remove the last argument to
2027         AARCH64_EXTRA_TUNING_OPTION.
2029 2015-08-23  Nathan Sidwell  <nathan@acm.org>
2031         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
2032         decls.
2033         (nvptx_declare_function_name): Insert formatting tabs for
2034         consistency.
2036 2015-08-23  Tom de Vries  <tom@codesourcery.com>
2038         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
2039         parm_decl, rather than generating a dummy default def in cfun.
2040         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
2041         ssa_name from cfun and child_fn do not share a stmt as def stmt.
2042         (move_stmt_op): Handle PARM_DECl.
2043         (gather_ssa_name_hash_map_from): New function.
2044         (move_sese_region_to_fn): Add default defs for function params, and add
2045         them to vars_map.  Release copied ssa names.
2046         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
2048 2015-08-23  Tom de Vries  <tom@codesourcery.com>
2050         * doc/sourcebuild.texi: Rename vect_no_int_max with
2051         vect_no_int_min_max.  Update description.
2053 2015-08-22  Andrew Pinski  <apinski@cavium.com>
2055          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
2056         * config/aarch64/aarch64-protos.h
2057         (aarch64_fusion_pairs_index): New enum.
2058         (aarch64_fusion_pairs): Base the shifted value on the index instead
2059         Rewrite AARCH64_FUSE_ALL to be based on the end index.
2060         of the argument to AARCH64_FUSION_PAIR.
2061         * config/aarch64/aarch64.c: Remove the last argument to
2062         AARCH64_FUSION_PAIR.
2064 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
2066         * dominance.c (new_zero_array): Define.
2067         (dom_info): Redefine as class with proper encapsulation.
2068         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
2069         Add new members.
2070         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
2071         allocations/deallocations.  Pass function as parameter (instead of
2072         using cfun).
2073         (dom_info::get_idom): Define accessor method.
2074         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
2075         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
2076         (calculate_dominance_info): Adjust to use dom_info class.
2077         (verify_dominators): Likewise.
2079 2015-08-21  Alexandre Oliva <aoliva@redhat.com>
2081         * print-rtl.c (print_rtx): Check the correct range for
2082         flag_dump_unnumbered_links to behave as documented.
2084         PR rtl-optimization/67227
2085         PR rtl-optimization/64164
2086         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
2087         (nonoverlapping_memrefs_p): Test offsets and sizes when given
2088         identical gimple_reg exprs.
2090 2015-08-21  Nathan Sidwell  <nathan@acm.org>
2092         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
2093         expansion.
2094         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
2095         crtl->stack_alignment_needed to determine alignment.
2096         (nvptx_get_drap_rtx): New.
2097         (TARGET_GET_DRAP_RTX): Override.
2098         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
2100 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2102         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
2104 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2106         * configure.ac: Remove uwin* cases.
2107         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
2108         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
2109         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
2110         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
2111         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
2112         i[34567]86-*-uwin*, powerpc-*-beos*.
2114 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
2116         * gencodes.c (gencodes): Print the comma for the preceding
2117         enum value rather than the current one.  Use aliased enum values
2118         rather than #defines for compiled-out patterns.
2119         (main): Update accordingly.  Replace LAST_INSN_CODE with
2120         NUM_INSN_CODES.
2121         * lra.c (insn_code_data): Update accordingly.
2122         (finish_insn_code_data_once, get_static_insn_data): Likewise.
2123         * recog.h (target_recog): Likewise.
2124         (preprocess_insn_constraints): Change parameter to unsigned int.
2125         * recog.c (preprocess_insn_constraints): Likewise.
2126         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
2127         * tree-vect-stmts.c (vectorizable_operation): Simplify.
2129 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
2131         PR rtl-optimization/61657
2132         * loop-iv.c (iv_number_of_iterations): Declare up and down as
2133         unsigned.  Remove superflous uint64_t cast.
2135 2014-08-21  Felix Yang  <felix.yang@huawei.com>
2136             Jiji Jiang  <jiangjiji@huawei.com>
2138         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL argument
2139         and get builtin function code directly from CALL.
2140         (gimple_stringop_fixed_value): Modified accordingly.
2141         (gimple_stringops_transform, gimple_stringops_values_to_profile): Modified
2142         accordingly and only accept BUILT_IN_NORMAL string operations.
2144 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2146         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
2148 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2150         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
2151         to match.pd.
2152         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
2153         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
2154         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
2155         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
2156         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
2157         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
2158         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
2159         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
2160         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
2161         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
2163         * match.pd (SIN ) : New Operator.
2164         (TAN) : New Operator.
2165         (mult (SQRT@1 @0) @1) : New simplifier.
2166         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
2167         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2168         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
2169         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
2170         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
2171         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
2172         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
2173         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
2174         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
2175         (rdiv @0 (POW:s @1 @2)) : New simplifier.
2177 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
2179         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
2180         loop if EXPR is simplified to const value.
2182 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
2184         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
2185         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
2187 2015-08-21  Richard Biener  <rguenther@suse.de>
2189         PR middle-end/67285
2190         * gimple-fold.c (replace_stmt_with_simplification): Assert
2191         seq is empty when replacing a call with itself but different
2192         arguments.
2193         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
2194         a call require that it is const.
2196 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2198         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
2199         * builtins.c (get_object_alignment_2): Adjust.
2200         * varasm.c (align_variable): Likewise.
2201         (get_variable_align): Likewise.
2202         (build_constant_desc): Likewise.
2203         (force_const_mem): Likewise.
2204         * doc/tm.texi.in: Likewise.
2205         * doc/tm.texi: Regenerate.
2207 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2209         * genconfig.c (main): Always define HAVE_cc0.
2210         * recog.c (rest_of_handle_peephole2): Adjust.
2212 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2214         * reorg.c (relax_delay_slots): Don't use #if to check value of
2215         HAVE_cc0.
2217 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2219         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
2220         * targhooks.c (default_have_conditional_execution): Adjust.
2222 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
2224         * rtl.h (rtvec_all_equal_p): Declare.
2225         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
2226         * rtl.c (rtvec_all_equal_p): New function.
2227         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
2228         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
2229         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
2230         * config/arm/arm.c (neon_vdup_constant): Likewise.
2231         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
2232         * config/tilegx/constraints.md (W, Y): Likewise.
2233         * config/tilepro/constraints.md (W, Y): Likewise.
2234         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
2235         (classify_immediate): Use unwrap_const_vec_duplicate.
2236         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
2237         (reg_or_v2s8bit_operand): Likewise.
2238         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
2239         (reg_or_v4s8bit_operand): Likewise.
2241 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2243         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
2244         (vec_shasigma_be): New #define.
2245         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
2246         (VPMSUMH): Likewise.
2247         (VPMSUMW): Likewise.
2248         (VPMSUMD): Likewise.
2249         (VPMSUM): New BU_P8V_OVERLOAD_2.
2250         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
2251         entries for VEC_MADD and VEC_VPMSUM.
2253 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
2255         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
2256         Multiply argument avr_n_flash by 64 to match unit of "KiB".
2257         (avr_pgm_check_var_decl): Same.
2259 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
2261         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
2262         initialization of HFmode scalar type (float16_t) to...
2263         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
2264         code.
2266         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
2268         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
2269         having an -mfp16-format.
2271 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
2273         * config/i386/predicates.md (vector_all_ones_operand): Use
2274         CONSTM1_RTX to simplify definition.
2276 2015-08-20  Richard Biener  <rguenther@suse.de>
2278         * toplev.c (compile_file): Remove loop calling late_global_decl
2279         on all symbols.
2280         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
2281         on decls we assembled.
2283 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
2285         * common/config/aarch64/aarch64-common.c
2286         (AARCH64_CPU_NAME_LENGTH): Delete.
2287         (aarch64_option_extension): New.
2288         (all_extensions): Likewise.
2289         (processor_name_to_arch): Likewise.
2290         (arch_to_arch_name): Likewise.
2291         (all_cores): New.
2292         (all_architectures): Likewise.
2293         (aarch64_get_extension_string_for_isa_flags): Likewise.
2294         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
2295         architecture names.
2296         * config/aarch64/aarch64-protos.h
2297         (aarch64_get_extension_string_for_isa_flags): New.
2298         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
2299         (aarch64_option_print): Get the string to print from
2300         aarch64_get_extension_string_for_isa_flags.
2301         (aarch64_declare_function_name): Likewise.
2302         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
2303         (MCPU_TO_MARCH_SPEC): This.
2304         (ASM_CPU_SPEC): Use it.
2305         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
2306         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
2307         (EXTRA_SPEC_FUNCTIONS): Use it.
2309 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
2311         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
2312         expansion when !ISA_HAS_LWL_LWR.
2313         (mips_block_move_straight): Update the size of elements copied to
2314         account for alignment when !ISA_HAS_LWL_LWR.
2315         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
2317 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
2319         * expr.c (expand_expr_real_2): Check gimple statement during
2320         LSHIFT_EXPR expand.
2322 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
2324         * common.opt (fstack-protector): Initialize to -1.
2325         (fstack-protector-all): Likewise.
2326         (fstack-protector-strong): Likewise.
2327         (fstack-protector-explicit): Likewise.
2328         * configure.ac: Add --enable-default-ssp.
2329         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
2330         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
2331         -1.
2332         * doc/install.texi: Document --enable-default-ssp.
2333         * config.in: Regenerated.
2334         * configure: Likewise.
2336 2015-08-19  Alexandre Oliva <aoliva@redhat.com>
2338         PR rtl-optimization/64164
2339         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
2340         (parm_in_stack_slot_p): ... this.  Disregard mode, what
2341         matters is whether the parm will live in a pseudo or a stack
2342         slot.
2343         (expand_one_ssa_partition): Deal with params without a default
2344         def.  Disregard mode.
2345         * cfgexpand.h: Renamed function declaration.
2346         * tree-ssa-coalesce.c: Adjust.
2347         * function.c (split_complex_args): Allocate stack slot for
2348         unassigned parms before splitting.
2349         (parm_in_unassigned_mem_p): New.  Use it instead of
2350         parm_maybe_byref_p throughout this file.
2351         (assign_parm_setup_block): Use it.  Accept pseudos in the
2352         expand-assigned rtl.
2353         (assign_parm_setup_reg): Drop BLKmode requirement.
2354         (assign_parm_setup_stack): Allocate and fill in the address of
2355         unassigned MEM parms.
2357 2015-08-19  David Sherwood  <david.sherwood@arm.com>
2359         * genmodes.c (emit_mode_unit_size_inline): New function.
2360         (emit_mode_unit_precision_inline): New function.
2361         (emit_insn_modes_h): Emit new #define.  Emit new functions.
2362         (emit_mode_unit_size): New function.
2363         (emit_mode_unit_precision): New function.
2364         (emit_mode_adjustments): Add mode_unit_size adjustments.
2365         (emit_insn_modes_c): Emit new arrays.
2366         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
2367         use new inline methods.
2369 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2371         * config/aarch64/aarch64.c (bit_count): Delete prototype
2372         and definition.
2373         (aarch64_print_operand): Use popcount_hwi instead of the above.
2375 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2377         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
2378         comment.
2380 2015-08-19  Marek Polacek  <polacek@redhat.com>
2382         PR middle-end/67133
2383         * gimple-ssa-isolate-paths.c
2384         (insert_trap_and_remove_trailing_statements): Rename to ...
2385         (insert_trap): ... this.  Don't remove trailing statements; split
2386         block instead.
2387         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
2389 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
2391         PR other/67042
2392         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
2393         conditionalize the whole on __GNUC__.  Add fallback code
2394         depending neither on undefined nor implementation-defined behaviour.
2396 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
2398         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
2399         whitespaces with tab.
2401 2015-08-19  Florian Weimer  <fweimer@redhat.com>
2403         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
2404         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
2405         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
2406         Move Name_Ids instantiation to the Prj.Proc package, to avoid
2407         trampolines.
2409 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2411         * config/arm/arm.c (bounds_check): Use %wd print format
2412         for HOST_WIDE_INT arguments.
2414 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
2416         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
2417         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
2418         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
2419         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
2420         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
2421         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
2422         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
2423         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
2424         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
2425         typedefs.
2427 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
2429         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
2430         function.c, graphite-scop-detection.c, haifa-sched.c,
2431         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
2432         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
2433         varasm.c: Remove typedefs of structs.
2435 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
2437         * config/rs6000/altivec.h (vec_adde): New define.
2438         (vec_addec): Likewise.
2439         (vec_double): Likewise.
2440         (vec_bperm): Likewise.
2441         (vec_gb): Likewise.
2442         * config/rs6000/rs6000-builtin.def (ADDE): New
2443         BU_ALTIVEC_OVERLOAD_3.
2444         (ADDEC): Likewise.
2445         (DOUBLE): New BU_VSX_OVERLOAD_1.
2446         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
2447         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
2448         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
2449         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
2450         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
2451         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
2452         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
2453         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
2454         and P8V_BUILTIN_VEC_VBPERMQ.
2456 2015-08-18  Jason Merrill  <jason@redhat.com>
2458         * print-tree.c (print_node): Handle TREE_BINFO.
2460 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2462         PR middle-end/36757
2463         * builtins.c (expand_builtin_signbit): Add asserts to make sure
2464         we can expand BUILT_IN_SIGNBIT inline.
2465         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
2466         * doc/extend.texi: Document the type-generic __builtin_signbit.
2468 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
2470         PR rtl-optimization/67218
2471         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
2472         (simplify_unary_operation_1): Use it.
2474 2015-08-18  Marek Polacek  <polacek@redhat.com>
2476         PR middle-end/67222
2477         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
2478         if the call isn't valid.
2479         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
2480         gimple_call_builtin_p.
2481         (call_may_clobber_ref_p_1): Likewise.
2482         (stmt_kills_ref_p): Likewise.
2484 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
2486         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
2487         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
2488         (mips_hard_regno_scratch_ok): Likewise.
2489         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
2490         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
2492 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
2494         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
2495         (determine_value_range): Call refine_value_range_using_guard for
2496         each loop initial condition to improve value range.
2498 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
2500         * config/i386/i386.c: Remove include of fibheap.h.
2502 2015-08-17  Richard Biener  <rguenther@suse.de>
2504         PR tree-optimization/67221
2505         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
2506         (sccvn_dom_walker::before_dom_children): Mark backedges of
2507         non-executable blocks as not executable.
2509 2015-08-17  David Sherwood  <david.sherwood@arm.com>
2511         * config/arm/arm.c (neon_element_bits): Replace call to
2512         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
2513         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
2514         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
2515         (neon_vdup_lane<mode>): Likewise.
2516         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
2517         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
2518         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
2519         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
2520         * config/spu/spu.c (arith_immediate_p): Likewise.
2521         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2522         * expr.c (expand_expr_real_2): Likewise.
2523         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
2524         * simplify-rtx.c (simplify_immed_subreg): Likewise.
2525         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
2526         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
2527         New variable.
2528         * fold-const.c (fold_binary_loc): Replace call to
2529         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
2530         GET_MODE_UNIT_PRECISION (m).
2532 2015-08-17  Mike Stump  <mikestump@comcast.net>
2534         * config/arm/arm.c (arm_block_move_unaligned_straight):
2535         Emit normal move instead of unaligned load when source or destination
2536         are appropriately aligned.
2538 2015-08-17  Richard Biener  <rguenther@suse.de>
2539             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2541         PR middle-end/16107
2542         * match.pd (div (coss (op @0) : New simplifier.
2544 2015-08-14  Alexandre Oliva <aoliva@redhat.com>
2546         PR rtl-optimization/64164
2547         PR bootstrap/66978
2548         PR middle-end/66983
2549         PR rtl-optimization/67000
2550         PR middle-end/67034
2551         PR middle-end/67035
2552         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2553         * tree-ssa-copyrename.c: Removed.
2554         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
2555         -ftree-coalesce-vars.
2556         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2557         * common.opt (ftree-copyrename): Ignore.
2558         (ftree-coalesce-inlined-vars): Likewise.
2559         * doc/invoke.texi: Remove the ignored options above.
2560         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2561         * tree-ssa-coalesce.h: ... here.
2562         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2563         headers required by it.
2564         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2565         across variables when flag_tree_coalesce_vars.  Check register
2566         use and promoted modes to allow coalescing.  Do not coalesce
2567         maybe-byref parms with SSA_NAMEs of other variables, or
2568         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
2569         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2570         with its member functions to tree-ssa-coalesce.c.
2571         (var_map_base_init): Likewise.  Renamed to
2572         compute_samebase_partition_bases.
2573         (partition_view_normal): Drop want_bases parameter.
2574         (partition_view_bitmap): Likewise.
2575         * tree-ssa-live.h: Adjust declarations.
2576         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
2577         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2578         default defs at the entry point.
2579         (dump_part_var_map): New.
2580         (compute_optimized_partition_bases): New, called by...
2581         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2582         of compute_samebase_partition_bases.  Adjust.
2583         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2584         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
2585         (ssa_default_def_partition): New.
2586         (get_rtl_for_parm_ssa_default_def): New.
2587         (align_local_variable, add_stack_var): Support anonymous SSA
2588         names.
2589         (defer_stack_allocation): Likewise.  Declare earlier.
2590         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2591         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2592         Do no record deferred-allocation marker in
2593         SA.partition_to_pseudo.
2594         (expand_stack_vars): Adjust check for the marker in it.
2595         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
2596         redundant MEM attr setting.
2597         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
2598         from...
2599         (expand_one_stack_var): ... this.  New wrapper to check and
2600         skip already expanded SSA partitions.
2601         (record_alignment_for_reg_var): New, factored out of...
2602         (expand_one_var): ... this.
2603         (expand_one_ssa_partition): New.
2604         (adjust_one_expanded_partition_var): New.
2605         (expand_one_register_var): Check and skip already expanded SSA
2606         partitions.
2607         (expand_used_vars): Don't create DECLs for anonymous SSA
2608         names.  Expand all SSA partitions, then adjust all SSA names.
2609         (pass::execute): Replace the loops that set
2610         SA.partition_to_pseudo from partition leaders and cleared
2611         DECL_RTL for multi-location variables, and that which used to
2612         rename vars and set attrs, with one that clears DECL_RTL and
2613         checks that PARMs and RESULTs default_defs match DECL_RTL.
2614         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2615         * emit-rtl.c: Include stor-layout.h.
2616         (set_reg_attrs_for_parm): Handle NULL decl.
2617         (set_reg_attrs_for_decl_rtl): Take mode from expression if
2618         it's not a DECL.
2619         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
2620         rather than its possibly-NULL DECL.
2621         * explow.c (promote_ssa_mode): New.
2622         * explow.h (promote_ssa_mode): Declare.
2623         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2624         (read_complex_part): Export.
2625         * expr.h (read_complex_part): Declare.
2626         * cfgexpand.h (parm_maybe_byref_p): Declare.
2627         * function.c: Include cfgexpand.h.
2628         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2629         (use_register_for_parm_decl): Wrapper for the above to
2630         special-case the result_ptr.
2631         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2632         (split_complex_args): Take assign_parm_data_all argument.
2633         Pass it to rtl_for_parm.  Set up rtl and context for split
2634         args.  Reset complex parm before fetching its default decl
2635         rtl.
2636         (assign_parms_unsplit_complex): Use the default-def complex
2637         parm rtl if it matches the components.
2638         (assign_parms_augmented_arg_list): Adjust.
2639         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2640         multiple locations.  Recognize split complex args.
2641         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2642         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
2643         (assign_parm_setup_block): Prefer SSA-assigned location, and
2644         fill in its address if the memory location of a maybe-byref
2645         parm was not assigned by cfgexpand.
2646         (assign_parm_setup_reg): Likewise.  Adjust its mode as
2647         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
2648         sure passed_pointer parms don't need conversion.  Copy address
2649         or value as needed.
2650         (assign_parm_setup_stack): Prefer SSA-assigned location.
2651         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
2652         rtl before testing for pointer bounds.  Special-case result_ptr.
2653         (expand_function_start): Maybe reset DECL_RTL of result.
2654         Prefer SSA-assigned location for result and static chain.
2655         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
2656         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
2657         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2658         anonymous SSA names.  Use promote_ssa_mode.
2659         (get_temp_reg): Likewise.
2660         (remove_ssa_form): Adjust.
2661         * stor-layout.c (layout_decl): Don't set mem attributes of
2662         non-MEMs.
2663         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2664         and get its reg_usage for reg invalidation.
2665         (compute_bb_dataflow): Pass it insn.
2666         (emit_notes_in_bb): Likewise.
2668 2015-08-14  Marek Polacek  <polacek@redhat.com>
2670         * tree-core.h (tree_base): Fix typo.
2672 2015-08-14  Marek Polacek  <polacek@redhat.com>
2674         PR middle-end/67133
2675         * gimple.c (infer_nonnull_range_by_attribute): Check that the
2676         nonnull argument position is not outside function arguments.
2678 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
2680         PR target/67143
2681         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
2682         'lconst_atomic' with 'const_atomic'.
2683         (atomic_fetch_<optab><mode>): Likewise.
2684         (atomic_<optab>_fetch<mode>): Likewise.
2685         * config/aarch64/iterators.md (lconst-atomic): Move below
2686         'const_atomic'.
2687         (const_atomic): New.
2689 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
2690             Bernd Schmidt  <bernds@codesourcery.com>
2692         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
2693         debug options.
2694         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
2695         (DWARF2_DEBUGGING_INFO): Don't define.
2696         * debug.h (dwarf2_lineno_debug_hooks): Declare.
2697         * toplev.c (process_options): Add a case for it.
2698         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
2699         (dwarf2out_init): Skip most initializations if
2700         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
2701         case.
2702         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
2703         DWARF2_LINENO_DEBUGGING_INFO.
2704         * opts.c (set_debug_level): Likewise.
2706 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
2708         * config/arm/types.md (is_neon_type): Add missing types.
2710 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
2712         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
2713         for skylake.
2714         * config/i386/i386.c (PTA_SKYLAKE): New macros.
2715         (processor_alias_table): Add skylake description.
2716         (enum processor_model): Add skylake processor.
2717         (arch_names_table): Add skylake record.
2718         * doc/invoke.texi: Add skylake item.
2720 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
2722         * ira-int.h: Include recog.h.
2723         * ira-build.c: Don't include recog.h.
2724         * ira-color.c: Likewise.
2725         * ira-conflicts.c: Likewise.
2726         * ira-costs.c: Likewise.
2727         * ira-emit.c: Likewise.
2728         * ira-lives.c: Likewise.
2729         * ira.c: Likewise.
2730         * sched-deps.c: Likewise.
2731         * sel-sched.c: Likewise.
2732         * target-globals.c: Likewise.
2734 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
2736         PR bootstrap/55035
2737         * reload1.c (elimination_costs_in_insn): Make it obvious to the
2738         compiler that the n_dups and n_operands loop bounds are invariant.
2740 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2742         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
2743         expressions in A and B.
2745 2015-08-13  Richard Biener  <rguenther@suse.de>
2747         * tree.c (nonnull_arg_p): Move from ...
2748         * tree-vrp.c (nonnull_arg_p): ... here.
2749         * tree.h (nonnull_arg_p): Declare.
2750         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
2751         here, register ptr != 0 for nonnull_arg_p pointer arguments.
2752         Properly initialize static chain and by-reference result pointer.
2753         (run_scc_vn): Adjust.
2755 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
2757         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
2758         TUNE_I6400.
2760 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
2762         * config/aarch64/aarch64-protos.h
2763         (aarch64_gen_atomic_cas): Declare.
2764         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
2765         Choose appropriate instruction pattern for the target.
2766         (aarch64_gen_atomic_cas): New.
2767         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
2768         (atomic_compare_and_swap<mode>_1): Rename to
2769         aarch64_compare_and_swap<mode>.  Fix some indentation.
2770         (aarch64_compare_and_swap<mode>_lse): New.
2771         (aarch64_atomic_cas<mode>): New.
2773 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
2775         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
2776         (TARGET_LSE): New.
2778 2015-08-13  Richard Biener  <rguenther@suse.de>
2780         PR tree-optimization/67191
2781         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
2782         assert we value-numbered last stmts operand because it can validly
2783         trigger for unreachable code.
2785 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2787         PR rtl-optimization/67103
2788         * ifcvt.c (noce_try_store_flag_constants): Move
2789         x = (-(test != 0) & (b - a)) + a transformation to...
2790         (noce_try_cmove): ... Here.  Try it if normal conditional
2791         move fails.
2793 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
2795         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
2796         pseudo-processors.
2797         * config/mips/mips.md (processor): Remove w32 and w64.
2799 2015-08-13  Richard Biener  <rguenther@suse.de>
2801         PR tree-optimization/66502
2802         PR tree-optimization/67167
2803         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
2804         backedge arguments.
2805         (vn_phi_lookup): Adjust.
2806         (vn_phi_insert): Likewise.
2807         (visit_phi): Prefer to value-number to another PHI node
2808         over value-numbering to a PHI argument.
2809         (init_scc_vn): Mark DFS back edges.
2811 2015-08-13  Richard Biener  <rguenther@suse.de>
2813         * gimple.h (gcall::code_): New constant static member.
2814         (gcond::code_): Likewise.
2815         * gimple.c (gcall::code_): Define.
2816         (gcond::code_): Likewise.
2817         (is_a_helper <const gcond *>): Add.
2818         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
2819         and forward to a new gcall overload with less checking and a
2820         cheaper way to access the operand.
2821         (gimple_call_lhs_ptr): Likewise.
2822         (gimple_call_set_lhs): Likewise.
2823         (gimple_call_internal_p): Likewise.
2824         (gimple_call_with_bounds_p): Likewise.
2825         (gimple_call_set_with_bounds): Likewise.
2826         (gimple_call_internal_fn): Likewise.
2827         (gimple_call_set_ctrl_altering): Likewise.
2828         (gimple_call_ctrl_altering_p): Likewise.
2829         (gimple_call_fntype): Likewise.
2830         (gimple_call_fn): Likewise.
2831         (gimple_call_fn_ptr): Likewise.
2832         (gimple_call_set_fndecl): Likewise.
2833         (gimple_call_fndecl): Likewise.
2834         (gimple_call_chain): Likewise.
2835         (gimple_call_num_args): Likewise.
2836         (gimple_call_arg): Likewise.
2837         (gimple_call_arg_ptr): Likewise.
2838         (gimple_call_set_arg): Likewise.
2839         (gimple_call_noreturn_p): Likewise.
2840         (gimple_cond_code): Likewise.
2841         (gimple_cond_lhs): Likewise.
2842         (gimple_cond_rhs): Likewise.
2843         (gimple_has_lhs): Reduce checking.
2845 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
2847         PR middle-end/25529
2848         * match.pd (div (mult @0 @1) @1) : New simplifier.
2850 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2852         PR target/67071
2853         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
2854         predicate to allow construction of vector constants using the
2855         VSLDOI vector shift instruction.
2857         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
2858         declaration.
2860         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
2861         the number of bytes to be shifted left and filled in with either
2862         all zero or all one bits.
2863         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
2864         methods exist.
2865         (output_vec_const_move): On power8, generate XXLORC to generate
2866         a vector constant with all 1's. Do a split if we need to use a
2867         VSLDOI instruction.
2869         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
2870         properly test for the MSB.
2872         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
2873         vector constants that can be created with VSLDOI.
2875 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
2877         revert:
2878         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
2879         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
2880         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
2881         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
2882         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
2883         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
2884         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
2885         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
2886         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
2888 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
2890         * config/xtensa/constraints.md (define_constraint "Y"): New
2891         constraint.
2892         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
2893         * config/xtensa/linux.h (ASM_SPEC): Likewise.
2894         * config/xtensa/predicates.md (move_operand): Match constants
2895         and symbols in the presence of TARGET_AUTO_LITPOOLS.
2896         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
2897         immediate references to TLS data.
2898         (xtensa_emit_move_sequence): Don't force constants to memory in
2899         the presence of TARGET_AUTO_LITPOOLS.
2900         (print_operand): Add 'y' format, same as default, but capable of
2901         printing SF mode constants as well.
2902         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
2903         (movsf_internal): Add movi pattern that loads literal.
2904         (movsf, movdf): Don't force constants to memory in the presence
2905         of TARGET_AUTO_LITPOOLS.
2906         (movdf_internal): Add 'Y' constraint.
2907         * config/xtensa/xtensa.opt (mauto-litpools): New option.
2908         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
2910 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2912         * config/arm/arm-fpus.def: Replace booleans with feature flags.
2913         Update comment.
2914         * config/arm/arm.c (ARM_FPU): Update macro.
2915         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
2916         (TARGET_FP16): Likewise.
2917         (TARGET_CRYPTO): Likewise.
2918         (TARGET_NEON): Likewise.
2919         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
2920         field features.
2922 2015-08-12  Tom de Vries  <tom@codesourcery.com>
2924         PR other/67092
2925         PR other/67098
2926         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
2927         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
2928         accordingly.  Mention default for --with-stage1-ldflags.
2930 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
2932         * config/arm/arm.h (arm_fpu_feature_set): New.
2933         (ARM_FPU_FSET_HAS): New.
2934         (FPU_FL_NONE): New.
2935         (FPU_FL_NEON): New.
2936         (FPU_FL_FP16): New.
2937         (FPU_FL_CRYPTO): New.
2939 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2941         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
2942         after -mcmodel=large -fPIC sorry.
2944 2015-08-12  Richard Biener  <rguenther@suse.de>
2946         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
2947         comparison operand order and commutative ternary op operand order.
2948         (sccvn_dom_walker::cond_stack): New state to track temporary
2949         expressions.
2950         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
2951         no longer valid.
2952         (sccvn_dom_walker::record_cond): Add a single temporary conditional
2953         expression.
2954         (sccvn_dom_walker::record_conds): Add a temporary conditional
2955         expressions and all related expressions also true/false.
2956         (sccvn_dom_walker::before_dom_children): Record temporary
2957         expressions based on the controlling condition of a single
2958         predecessor.  When trying to simplify a conditional statement
2959         lookup expressions we might have inserted earlier.
2961 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
2963         PR target/67127
2964         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
2965         to ARM core registers.
2967 2015-08-12  Nathan Sidwell  <nathan@acm.org>
2969         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
2970         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
2972 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
2974         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
2975         line with comments.
2976         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
2978 2015-08-12  Richard Biener  <rguenther@suse.de>
2980         * gimple.h (remove_pointer): New trait.
2981         (GIMPLE_CHECK2): New inline template function.
2982         (gassign::code_): New constant static member.
2983         (is_a_helper<const gassign *>): Add.
2984         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
2985         and forward to a new gassign overload with less checking and a
2986         cheaper way to access the operand.
2987         (gimple_assign_lhs_ptr): Likewise.
2988         (gimple_assign_set_lhs): Likewise.
2989         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
2990         Likewise.
2991         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
2992         Likewise.
2993         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
2994         Likewise.
2995         (gimple_assign_rhs_code): Likewise.
2996         * gimple.c (gassign::code_): Define.
2998 2015-08-12  Richard Biener  <rguenther@suse.de>
3000         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
3001         Eliminate edges marked as not executable by SCCVN.
3002         * tree-ssa-sccvn.c: Include gimple-iterator.h.
3003         (cond_dom_walker): Rename to sccvn_dom_walker.
3004         (sccvn_dom_walker::before_dom_children): Value-number defs
3005         of all stmts.
3006         (run_scc_vn): Remove loop value-numbering all SSA names.
3007         Drop not visited SSA names to varying.
3009 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
3011         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
3012         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
3013         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
3014         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
3015         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
3016         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
3017         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
3018         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
3019         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
3021 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
3023         PR target/66954
3024         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
3025         to enum feature_priority and feature_list.
3026         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
3027         and isa_names_table.
3029 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
3031         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
3032         vect_induction_def.
3034 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3036         PR c/66098
3037         PR c/66711
3038         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
3039         account when deciding what was the command-line status.
3041 2015-08-11  Nathan Sidwell  <nathan@acm.org>
3043         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
3045         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
3046         we're not the only contributor to target phi.
3048 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
3050         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
3051         FIXED_REG0.
3053 2015-08-11  Tom de Vries  <tom@codesourcery.com>
3055         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
3057 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
3059         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
3060         with CPU_SLM.
3061         * config/i386/i386.md (cpu): Remove knl.
3063 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
3065         PR libgomp/65742
3066         PR middle-end/66332
3067         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
3068         open-coded sequence.
3069         * omp-low.c (oacc_process_reduction_data): Remove handline of
3070         GOMP_DEVICE_HOST_NONSHM.
3072         * lto-streamer-in.c (lto_input_mode_table): Adjust to
3073         GET_MODE_INNER changes.
3075 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
3076             Ilya Verbin  <ilya.verbin@intel.com>
3078         * lto-streamer-in.c (lto_input_mode_table): Correctly advance
3079         iterator.
3081 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3083         * doc/options.texi (EnabledBy): Document that the argument must be
3084         a Common option.
3085         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
3086         Not enabled by -Wall.
3087         * optc-gen.awk: Give nicer error messages. Detect if the argument
3088         of EnabledBy is not a Common option.
3089         * common.opt (Wnull-dereference): Not enabled by -Wall.
3090         * opt-functions.awk (lang_enabled_by): Nicer error messages.
3092 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
3094         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
3095         model == 0x4f as Broadwell.
3097 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
3099         PR rtl-optimization/67028
3100         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
3101         Add test to see if a const_int fits in the new mode.
3103 2015-08-07  DJ Delorie  <dj@redhat.com>
3105         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
3106         
3107 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
3109         PR rtl-optimization/67029
3110         * ira-color.c: Include "recog.h" before including "ira-int.h".
3111         * target-globals.c: Likewise.
3112         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
3113         adds an alternative_mask argument and use it instead of
3114         preferred_alternatives.
3115         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
3116         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
3117         * sched-deps.c: Include "ira-int.h" after including "ira.h".
3118         (sched_analyze_insn): Update call to
3119         ira_implicitly_set_insn_hard_regs.
3120         * sel-sched.c: Include "ira-int.h" after including "ira.h".
3121         (implicit_clobber_conflict_p): Update call to
3122         ira_implicitly_set_insn_hard_regs.
3124 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
3126         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
3128 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3130         PR target/67002
3131         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
3132         currently_expanding_to_rtl is set.
3134 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
3136         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
3137         * configure: Regenerate.
3139 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3140             Jiong Wang  <jiong.wang@arm.com>
3142         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
3143         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
3144         (REG_CLASS_NAMES): Likewise.
3145         (REG_CLASS_CONTENTS): Likewise.
3146         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
3147         (aarch64_register_move_cost): Likewise.
3148         (aarch64_load_symref_appropriately): Invoke the new added pattern if
3149         possible.
3150         * config/aarch64/constraints.md (Uc0): New constraint.
3152 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
3154         * config/aarch64/constraints.md (Usf): Add the test of
3155         aarch64_is_noplt_call_p.
3157 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
3159         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
3160         declaration.
3161         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
3162         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
3163         (call_symbol): Likewise.
3165 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3167         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
3168         for vectorizing multiplication patterns.
3169         * tree-vectorizer.h: Adjust the number of patterns.
3171 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
3173         * config/i386/sse.md (*vec_concatv2df): Declare added
3174         alternatives as sselog type.
3176 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3178         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
3179         all GPRs.
3181 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3183         * config/s390/s390.c (s390_expand_tbegin): Expand either
3184         tbegin_1_z13 or tbegin_1 depending on VX flag.
3185         * config/s390/s390.md ("tbegin_1_z13"): New expander.
3187 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3189         * config/s390/s390.opt: Clarify description for -mzvector
3190         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
3191         -mzvector.
3193 2015-08-06  Richard Biener  <rguenther@suse.de>
3195         * gimple.h (gimple_call_set_fn): Access op member directly.
3196         (gimple_call_chain_ptr): Likewise.
3197         (gimple_call_set_chain): Likewise.
3198         (gimple_cond_lhs_ptr): Likewise.
3199         (gimple_cond_set_lhs): Likewise.
3200         (gimple_cond_rhs_ptr): Likewise.
3201         (gimple_cond_set_rhs): Likewise.
3202         (gimple_cond_true_label): Likewise.
3203         (gimple_cond_set_true_label): Likewise.
3204         (gimple_cond_set_false_label): Likewise.
3205         (gimple_cond_false_label): Likewise.
3206         (gimple_label_label): Likewise.
3207         (gimple_label_set_label): Likewise.
3208         (gimple_goto_set_dest): Likewise.
3209         (gimple_asm_input_op): Likewise.
3210         (gimple_asm_input_op_ptr): Likewise.
3211         (gimple_asm_set_input_op): Likewise.
3212         (gimple_asm_output_op): Likewise.
3213         (gimple_asm_output_op_ptr): Likewise.
3214         (gimple_asm_set_output_op): Likewise.
3215         (gimple_asm_clobber_op): Likewise.
3216         (gimple_asm_set_clobber_op): Likewise.
3217         (gimple_asm_label_op): Likewise.
3218         (gimple_asm_set_label_op): Likewise.
3219         (gimple_switch_index): Likewise.
3220         (gimple_switch_index_ptr): Likewise.
3221         (gimple_return_retval_ptr): Likewise.
3222         (gimple_return_retval): Likewise.
3223         (gimple_return_set_retval): Likewise.
3224         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
3225         (gimple_switch_label): Likewise.
3226         (gimple_switch_set_label): Likewise.
3228 2015-08-06  Richard Biener  <rguenther@suse.de>
3230         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
3231         bool comparison canonicalization and restrict to integers.
3233 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
3235         * coretypes.h (enum symbol_visibility): Relocate here.
3236         * flag-types.h (enum symbol_visibility): Remove.
3237         * tree-core.h (enum symbol_visibility): Remove.
3239 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
3241         PR target/66870
3242         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
3243         for no_split_stack function attribute along with
3244         flag_split_stack.
3245         (rs6000_expand_split_stack_prologue): Likewise.
3247 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3248             Jeff Law  <law@redhat.com>
3250         PR c/16351
3251         * doc/invoke.texi (Wnull-dereference): New.
3252         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
3253         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
3254         Warn for potential NULL dereferences.
3255         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
3256         * ubsan.c (instrument_nonnull_arg): Call
3257         infer_nonnull_range_by_attribute.
3258         (instrument_nonnull_return): Likewise.
3259         * common.opt (Wnull-dereference); New.
3260         * gimple.c (infer_nonnull_range): Remove bool arguments.
3261         (infer_nonnull_range_by_dereference): New.
3262         (infer_nonnull_range_by_attribute): New.
3263         * gimple.h: Update declarations.
3265 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
3267         * gensupport.c (sequence_num): Replace with...
3268         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
3269         ...these new variables.
3270         (init_rtx_reader_args_cb): Update accordingly.
3271         (get_num_code_insns): Likewise.
3272         (read_md_rtx): Rework to use a while loop and get_c_test.
3273         Use the new counters.  Remove redundant DEFINE_SUBST case.
3274         * genoutput.c (gen_split): Delete.
3275         (main): Don't call it.
3277 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
3279         * gensupport.h (get_c_test): Declare.
3280         * gensupport.c (get_c_test): New function.
3281         * genconditions.c (main): Use it.
3282         * genrecog.c (validate_pattern): Likewise.
3283         (match_pattern_1): Likewise.  Remove c_test argument.
3284         (match_pattern): Update accordingly and remove c_test argument.
3285         (main): Update accordingly.
3287 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
3289         * gensupport.h (get_num_insn_codes): Declare.
3290         * gensupport.c (get_num_insn_codes): New function.
3291         * genattrtab.c (optimize_attrs): Rename max_insn_code to
3292         num_insn_codes.
3293         (main): Likewise.  Use get_num_insn_codes.
3294         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
3296 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
3298         PR middle-end/66311
3299         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
3300         is zero- rather than sign-extended.
3302 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
3304         * target-insns.def (can_extend): Delete.
3306 2015-08-05  Richard Biener  <rguenther@suse.de>
3308         PR tree-optimization/67121
3309         * tree-if-conv.c (combine_blocks): Clear range-info produced
3310         by stmts no longer executed conditionally.
3312 2015-08-05  Nick Clifton  <nickc@redhat.com>
3314         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
3315         to allow identical far pointers to remain.
3317 2015-08-05  Richard Biener  <rguenther@suse.de>
3319         PR middle-end/67120
3320         * match.pd: Compare address bases with == if they are decls
3321         or SSA names, not operand_equal_p.  Otherwise fail.
3323 2015-08-05  Richard Biener  <rguenther@suse.de>
3325         PR tree-optimization/67055
3326         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
3327         NULL gimple_block.
3329         * g++.dg/torture/pr67055.C: New testcase.
3331 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
3333         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
3334         noavx512vl.
3335         (define_attr "enabled"): Handle avx521vl and noavx512vl.
3336         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
3337         AVX-512 alternative out of SSE.
3338         (define_insn "*vec_concatv2df"): Ditto.
3340 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
3342         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
3343         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
3344         CODE_FOR_avx_ptestv4di.
3345         * config/i386/sse.md (define_mode_iterator V_AVX): New.
3346         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
3347         (define_insn "avx_ptest256"): Merge this ...
3348         (define_insn "sse4_1_ptest"): And this ...
3349         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
3351 2015-08-05  Richard Biener  <rguenther@suse.de>
3353         PR tree-optimization/67109
3354         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
3355         against too big groups.  Print whether this is a load or store
3356         group.  Rename from ...
3357         (vect_analyze_group_access): ... this which is now a wrapper
3358         dissolving an invalid group.
3359         (vect_analyze_data_ref_accesses): Print whether this is a load
3360         or store group.
3362 2015-08-05  Richard Biener  <rguenther@suse.de>
3364         PR middle-end/67107
3365         * match.pd: Guard const_binop result checking against NULL_TREE
3366         result.
3368 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
3370         * cse.c (cse_insn): Restoring old behaviour for src_eqv
3371          when dest and value in the REG_EQUAL are same and dest
3372          is STRICT_LOW_PART.
3374 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
3376         * config/moxie/moxie.h (PRINT_OPERAND,
3377           PRINT_OPERAND_ADDRESS): Remove macros.
3378         * config/moxie/moxie-protos.h (moxie_print_operand,
3379           moxie_print_operand_address): Remove declaration.
3380         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
3381           TARGET_PRINT_OPERAND_ADDRESS): Define.
3382           (moxie_print_operand, moxie_print_operand_address): Make static.
3384 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3386         PR target/66731
3387         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
3388         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
3390 2015-08-04  Richard Biener  <rguenther@suse.de>
3392         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
3393         generated code.
3394         (dt_operand::gen_gimple_expr): Adjust.
3396 2015-08-04  Richard Biener  <rguenther@suse.de>
3398         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
3399         bool compares on RHS.
3400         * match.pd: Add X ==/!= !X is false/true pattern.
3402 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
3404         * config/aarch64/aarch64.c: Change inner loop statement cost
3405         to be consistent with other targets.
3407 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
3409         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
3410         targets.
3412 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3414         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
3415         (machine_function): Remove pseudos field.
3417 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3419         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3420         Exit early and use target_option_current_node if processing current
3421         pragma.
3423 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3425         * doc/extend.texi (AArch64 Function Attributes): New node.
3426         (AArch64 Pragmas): Likewise.
3428 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3430         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
3431         Initialize simd builtins if TARGET_SIMD.
3432         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
3433         Make sure that the builtins are initialized only once no matter how
3434         many times the function is called.
3435         (aarch64_init_builtins): Unconditionally initialize crc builtins.
3436         (aarch64_relayout_simd_param): New function.
3437         (aarch64_simd_expand_args): Use above during argument expansion.
3438         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
3439         simd builtins if TARGET_SIMD.
3440         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
3441         prototype.
3442         (aarch64_relayout_simd_types): Likewise.
3444 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3446         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
3447         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
3448         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
3449         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
3450         static keyword.
3451         (aarch64_reset_previous_fndecl): New function.
3452         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
3453         the string.
3454         * config/aarch64/aarch64-c.c: New file.
3455         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
3456         Push and pop options at beginning and end.  Remove ifdef
3457         __ARM_FEATURE_CRC32.
3458         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
3459         Add pragma +nothing+simd and +nothing+crypto where appropriate.
3460         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
3461         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
3462         Define prototype.
3463         (aarch64_register_pragmas): Likewise.
3464         (aarch64_reset_previous_fndecl): Likewise.
3465         (aarch64_process_target_attr): Likewise.
3466         (aarch64_override_options_internal): Likewise.
3468 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3470         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
3471         New function.
3472         (aarch64_can_inline_p): Likewise.
3473         (TARGET_CAN_INLINE_P): Define.
3475 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3477         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3478         Remove static.  Handle OPT_mgeneral_regs_only,
3479         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
3480         OPT_momit_leaf_frame_pointer.
3481         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
3482         (aarch64_attr_opt_type): New enum.
3483         (aarch64_attribute_info): New struct.
3484         (aarch64_handle_attr_arch): New function.
3485         (aarch64_handle_attr_cpu): Likewise.
3486         (aarch64_handle_attr_tune): Likewise.
3487         (aarch64_handle_attr_isa_flags): Likewise.
3488         (aarch64_attributes): New table.
3489         (aarch64_process_one_target_attr): New function.
3490         (num_occurences_in_str): Likewise.
3491         (aarch64_process_target_attr): Likewise.
3492         (aarch64_option_valid_attribute_p): Likewise.
3493         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
3494         * config/aarch64/aarch64-protos.h: Include input.h
3495         (aarch64_handle_option): Declare prototype.
3497 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3499         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
3500         * config/aarch64/aarch64.c: Include target-globals.h
3501         (aarch64_previous_fndecl): New variable.
3502         (aarch64_set_current_function): New function.
3503         (TARGET_SET_CURRENT_FUNCTION): Define.
3505 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3507         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
3508         (explicit_arch): Likewise.
3509         (x_aarch64_isa_flags): Likewise.
3510         (mgeneral-regs-only): Mark as Save.
3511         (mfix-cortex-a53-835769): Likewise.
3512         (mcmodel=): Likewise.
3513         (mstrict-align): Likewise.
3514         (momit-leaf-frame-pointer): Likewise.
3515         (mtls-dialect): Likewise.
3516         (master=): Likewise.
3517         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
3518         (aarch64_isa_flags): Remove extern declaration.
3519         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
3520         to indicate success or failure.
3521         (aarch64_validate_march): Likewise.
3522         (aarch64_validate_mtune): Likewise.
3523         (aarch64_isa_flags): Delete.
3524         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
3525         instead of aarch64_isa_flags.
3526         (aarch64_get_tune_cpu): New function.
3527         (aarch64_get_arch): Likewise.
3528         (aarch64_override_options): Use above and set up explicit_tune_core
3529         and explicit_arch.
3530         (aarch64_print_extension): Move earlier in file.  Add isa_flags
3531         argument and use that instead of the global aarch64_isa_flags.
3532         (aarch64_option_save): New function.
3533         (aarch64_option_restore): Likewise.
3534         (aarch64_option_print): Likewise.
3535         (aarch64_declare_function_name): Likewise.
3536         (aarch64_start_file): Delete.
3537         (TARGET_ASM_FILE_START): Do not define.
3538         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
3539         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
3540         Declare prototype.
3542 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3544         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
3545         flag_omit_leaf_frame_pointer to 2.
3547 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3549         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
3550         define to 0 or 1.
3551         (TARGET_FIX_ERR_A53_835769): New macro.
3552         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
3553         handling of opts->x_aarch64_fix_a53_err835769.
3554         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
3555         than aarch64_fix_a53_err835769.
3556         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
3557         * config/aarch64/aarch64-linux.h: Likewise.
3559 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
3561         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
3562         ix86_expand_int_movcc as boolean.
3564 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3566         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
3567         (aarch64_cpu_string): Likewise.
3568         (aarch64_tune_string): Likewise.
3569         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
3570         (aarch64_parse_extension): Return aarch64_parse_opt_result.
3571         Add extra argument to put result into.
3572         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
3573         (aarch64_parse_cpu): Add arguments to put results into. Return
3574         aarch64_parse_opt_result.
3575         (aarch64_parse_tune): Likewise.
3576         (aarch64_override_options_after_change_1): New function.
3577         (aarch64_override_options_internal): New function.
3578         (aarch64_validate_mcpu): Likewise.
3579         (aarch64_validate_march): Likewise.
3580         (aarch64_validate_mtune): Likewise.
3581         (aarch64_override_options): Update to reflect above changes.
3582         Move some logic into aarch64_override_options_internal.
3583         Initialize target_option_default_node and target_option_current_node.
3584         (aarch64_override_options_after_change): Move logic into
3585         aarch64_override_options_after_change_1 and call it with global_options.
3586         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
3587         flag values from that.
3589 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3591         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
3592         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
3593         * config/aarch64/aarch64.c (struct processor): Add arch field.
3594         (all_architectures): Handle above, move above all_cores.
3595         (all_cores): Handle above.
3596         (aarch64_parse_arch): Handle above changes.
3597         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
3598         above.  Update comments.
3599         (armv8.1-a): Likewise.
3600         * config/aarch64/aarch64-cores.def: Update according to above.
3601         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
3602         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
3603         aarch64_arch_driver_info.
3605 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3607         * config/aarch64/aarch64.c (struct processor): Add ident field.
3608         Rename core sched_core.
3609         (all_cores): Handle above changes.
3610         (all_architectures): Likewise.
3611         (aarch64_parse_arch): Likewise.
3612         (aarch64_override_options): Likewise.
3614 2015-08-04  Richard Biener  <rguenther@suse.de>
3616         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
3617         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
3618         comparisons embedded in [VEC_]COND_EXPRs.
3620 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
3622         * tree-if-conv.c: Fix various typos in comments.
3623         * tree-vect-stmts.c: Likewise.
3625 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3627         PR tree-optimization/67043
3628         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
3629         preheader after hoisting invariant in it.
3630         (find_defs): Force recomputation of all luids.
3632 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
3634         * config/rs6000/htm.md (tabort.): Restrict the source operand to
3635         using a base register.
3637 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
3639         * main.c (main): Pass in NULL for toplev's external_timer.
3640         * timevar.c: Include coretypes.h.
3641         (class timer::named_items): New.
3642         (timer::named_items::named_items): New.
3643         (timer::named_items::~named_items): New.
3644         (timer::named_items::push): New.
3645         (timer::named_items::pop): New.
3646         (timer::named_items::print): New.
3647         (timer::timer): Initialize field "m_jit_client_items".
3648         (timer::~timer): New.
3649         (timer::push): Move bulk of implementation to...
3650         (timer::push_internal): ...here.  New function.
3651         (timer::pop): Move bulk of implementation to...
3652         (timer::pop_internal): ...here.  New function.
3653         (timer::push_client_item): New.
3654         (timer::pop_client_item): New.
3655         (timer::print_row): New function, taken from timer::print.
3656         (timer::print): Print "GCC items" header if we also have client
3657         items.  Move row-printing to timer::print_row.  Print any client
3658         items.
3659         (timer::get_topmost_item_name): New method.
3660         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
3661         (TV_JIT_CLIENT_CODE): New.
3662         * timevar.h (timer::push_client_item): New declaration.
3663         (timer::pop_client_item): New declaration.
3664         (timer::get_topmost_item_name): New method.
3665         (timer::push_internal): New declaration.
3666         (timer::pop_internal): New declaration.
3667         (timer::print_row): New declaration.
3668         (timer::named_items): New declaration.
3669         (timer::m_jit_client_items): New field.
3670         (timer): Add friend class named_items.
3671         (auto_timevar::auto_timevar): Add timer param.
3672         (auto_timevar::~auto_timevar): Use field "m_timer".
3673         (auto_timevar::m_timer): New field.
3674         * toplev.c (initialize_rtl): Add g_timer as param when
3675         constructing auto_timevar instance.
3676         (toplev::toplev): Add "external_timer" param, and use it to
3677         initialize the "g_timer" global if non-NULL.
3678         (toplev::~toplev): If this created "g_timer", delete it.
3679         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
3680         with "external_timer" timer *.
3682 2015-08-03  Alexander Basov <coohpt@gmail.com>
3684         PR middle-end/64744
3685         PR middle-end/48470
3686         PR middle-end/43404
3687         * cfgexpand.c (expand_one_var): Add check if stack is going to
3688         be used in naked function.
3689         * expr.c (expand_expr_addr_expr_1): Remove excess checking
3690         whether expression should not reside in MEM.
3691         * function.c (use_register_for_decl): Do not use registers for
3692         non-register things (volatile, float, BLKMode) in naked functions.
3694 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
3696         PR target/67060
3697         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
3698         Adjust splits to match new pattern.
3700 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3702         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
3703         (VEC_M): Likewise.
3704         (VEC_N): Likewise.
3705         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
3706         point in VSX registers.
3708         * config/rs6000/constraints.md (wb constraint): Document unused
3709         w<x> constraint.
3710         (we constraint): Likewise.
3711         (wo constraint): Likewise.
3712         (wp constraint): New constraint for IEEE 128-bit floating point in
3713         VSX registers.
3714         (wq constraint): Likewise.
3716         * config/rs6000/predicates.md (easy_fp_constant): Add support for
3717         IEEE 128-bit floating point in VSX registers.
3718         (easy_scalar_constant): Likewise.
3720         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
3721         constraints (wp, wq) for IEEE 128-bit floating point in VSX
3722         registers.
3723         (rs6000_init_hard_regno_mode_ok): Likewise.
3725         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
3726         floating point in VSX registers.
3727         (VSX_L): Likewise.
3728         (VSX_M): Likewise.
3729         (VSX_M2): Likewise.
3730         (VSm): Likewise.
3731         (VSs): Likewise.
3732         (VSr): Likewise.
3733         (VSa): Likewise.
3734         (VSv): Likewise.
3735         (vsx_le_permute_<mode>): Add support to properly swap bytes for
3736         IEEE 128-bit floating point in VSX registers on little endian.
3737         (vsx_le_undo_permute_<mode>): Likewise.
3738         (vsx_le_perm_load_<mode>): Likewise.
3739         (vsx_le_perm_store_<mode>): Likewise.
3740         (splitters for IEEE 128-bit fp moves): Likewise.
3742         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
3743         wq constraints.
3745         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
3746         floating point in VSX registers.
3747         (VM2): Likewise.
3749         * doc/md.text (Machine Constraints): Document wp and wq
3750         constraints on PowerPC.
3752 2015-08-03  Jeff Law  <law@redhat.com>
3754         PR middle-end/66314
3755         PR gcov-profile/66899
3756         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
3757         iterate over the jump threading paths when an element in the
3758         jump threading paths array is eliminated.
3760 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
3762         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
3764 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
3766         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
3767         is_use_properly_guarded the variable def_preds.  Free its
3768         contents before returning.
3769         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
3770         (is_use_properly_guarded): Replace local variable def_preds with
3771         a parameter.  Adjust accordingly.  Only update *def_preds if it's
3772         the empty vector.
3774 2015-08-03  Richard Biener  <rguenther@suse.de>
3776         * genmatch.c (simplify::for_subst_vec): New member.
3777         (binary_ok): New helper for for lowering.
3778         (lower_for): Delay substituting operators into result expressions
3779         if we can merge the results eventually again.
3780         (capture_info::walk_result): Adjust for user_id appearing as
3781         result expression operator.
3782         (expr::gen_transform): Likewise.
3783         (dt_simplify::gen_1): Likewise.
3784         (dt_simplify::gen): Pass not substituted operators to tail
3785         functions or initialize local variable with it.
3786         (decision_tree::gen): Adjust function signature.
3787         * match.pd: Fix tests against global code and add default
3788         cases to switch stmts.
3790 2015-08-03  Richard Biener  <rguenther@suse.de>
3792         * genmatch.c (dt_simplify::gen): Create captures array
3793         with an initializer.
3795 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3797         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
3798         the host compiler is affected by placement new aliasing bug.
3799         * configure: Regenerate.
3800         * Makefile.in (ALIASING_FLAGS): New variable.
3801         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
3803 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3805         PR target/66731
3806         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
3807         (negmulsf3_vfp): Likewise.
3808         (muldf3negdf_vfp): Disable for -frounding-math.
3809         (mulsf3negsf_vfp): Likewise.
3810         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
3811         fix MULT cost with -frounding-math.
3813 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3815         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
3816         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
3817         explicit.  Prefer to add the flag whenever possible.
3818         (noce_process_if_block): Try noce_try_store_flag_constants before
3819         noce_try_cmove.
3821 2015-08-03  Richard Biener  <rguenther@suse.de>
3823         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
3824         New hash-map to record equivalent transforms.
3825         (dt_node::analyze): Populate the equivalent transforms hash-map.
3826         (dt_simplify::info): Add reference to hash-map entry.
3827         (dt_simplify::gen): If we have split out a function for the
3828         transform, generate a call to it.
3829         (sinfo_hashmap_traits::hash): New function.
3830         (compare_op): New helper function for ...
3831         (sinfo_hashmap_traits::equal_keys): ... this new function.
3832         (decision_tree::gen): Split out common equivalent transforms
3833         into functions.
3835 2015-08-03  Richard Biener  <rguenther@suse.de>
3837         * gimple-fold.c (fold_gimple_assign): Remove folding of
3838         the comparison in COND_EXPRs.
3840 2015-08-03  Richard Biener  <rguenther@suse.de>
3842         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
3843         on the rhs of assignments first simplify the embedded
3844         GENERIC condition.
3846 2015-08-03  Richard Biener  <rguenther@suse.de>
3848         PR tree-optimization/66917
3849         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
3850         field.
3851         (DR_VECT_AUX): New macro.
3852         (set_dr_misalignment): Adjust.
3853         (dr_misalignment): Likewise.
3854         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3855         Compute whether the base is at least element aligned.
3856         * tree-vect-stmts.c (ensure_base_align): Adjust.
3857         (vectorizable_store): If the base is not element aligned
3858         preserve alignment of the original access if misalignment is unknown.
3859         (vectorizable_load): Likewise.
3861 2015-08-02  Martin Sebor  <msebor@redhat.com>
3863         * c-family/c.opt (-Wframe-address): New warning option.
3864         * doc/invoke.texi (Wframe-address): Document it.
3865         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
3866         Clarify possible effects of calling the functions with non-zero
3867         arguments and mention -Wframe-address.
3868         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
3870 2015-08-01  Michael Collison  <michael.collison@linaro.org
3871             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3873         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
3874         (*arm_umin_cmp): Likewise.
3876 2015-08-01  Caroline Tice  <cmtice@google.com>
3878         PR 66521
3879         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
3880         global variables.
3881         (vtbl_find_mangled_name):  New function.
3882         (vtbl_register_mangled_name):  New function.
3883         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
3884         mangled name in mangled name vectors.
3885         (find_or_create_vtbl_map_node):  Ditto.
3886         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
3887         update recursion_depth on function entry; pass it to every recursive
3888         call; automatically exit if depth > 25 (give up looking at that point).
3889         (verify_bb_vtables):  Initialize recursion_depth and pass it to
3890         var_is_used_for_virtual_call_p.
3891         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
3892         global variable decls.
3893         (vtbl_register_mangled_name): New extern function decl.
3895 2015-08-01  Tom de Vries  <tom@codesourcery.com>
3897         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
3898         function.
3899         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
3900         Declare.
3901         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
3902         operation_no_trapping_overflow.  Allow non-overflow operations.
3903         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
3904         operations.
3906 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
3908         PR target/67049
3909         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
3911 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3913         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
3914         Enable for TARGET_32BIT.
3915         (*if_move_neg): Likewise.
3917 2015-07-31  Nick Clifton  <nickc@redhat.com>
3919         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
3920         Returns true for __model__.
3921         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
3923 2015-07-31  Alan Modra  <amodra@gmail.com>
3925         PR target/66870
3926         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
3927         (rs6000_emit_prologue): Set it.
3928         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
3930 2015-07-31  Richard Biener  <rguenther@suse.de>
3932         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
3933         -> X == (C1 ^ C2) which is already implemented in match.pd.
3934         Remove redundant dispatching to fold_relational_const.
3935         Move unordered self and NaN compares ...
3936         * match.pd: ... as patterns here.  Remove some stray captures
3937         and add a comment.
3939 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
3941         * config/i386/i386.c
3942         (bdesc_special_args): Convert mask type from signed to unsigned for
3943         masked builtins.
3944         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
3945         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
3946         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
3947         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
3948         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
3949         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
3950         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
3951         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
3952         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
3953         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
3954         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
3955         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
3956         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
3957         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
3958         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
3959         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
3960         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
3961         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
3962         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
3963         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
3964         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
3965         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
3966         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
3967         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
3968         * config/i386/i386-builtin-types.def
3969         (V16QI_FTYPE_V16SI): Remove.
3970         (V8DF_FTYPE_V8SI): Ditto.
3971         (V8HI_FTYPE_V8DI): Ditto.
3972         (V8SI_FTYPE_V8DI): Ditto.
3973         (V8SF_FTYPE_V8DF): Ditto.
3974         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
3975         (V16HI_FTYPE_V16SI): Ditto.
3976         (V16SF_FTYPE_V16HI): Ditto.
3977         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
3978         (V16SF_FTYPE_V16SI): Ditto.
3979         (V4DI_FTYPE_V4DI): Ditto.
3980         (V16SI_FTYPE_V16SF): Ditto.
3981         (V16SF_FTYPE_FLOAT): Ditto.
3982         (V8DF_FTYPE_DOUBLE): Ditto.
3983         (V8DI_FTYPE_INT64): Ditto.
3984         (V8DI_FTYPE_V4DI): Ditto.
3985         (V16QI_FTYPE_V8DI): Ditto.
3986         (UINT_FTYPE_V4SF): Ditto.
3987         (UINT64_FTYPE_V4SF): Ditto.
3988         (UINT_FTYPE_V2DF): Ditto.
3989         (UINT64_FTYPE_V2DF): Ditto.
3990         (V16SI_FTYPE_V16SI): Ditto.
3991         (V8DI_FTYPE_V8DI): Ditto.
3992         (V16SI_FTYPE_PV4SI): Ditto.
3993         (V16SF_FTYPE_PV4SF): Ditto.
3994         (V8DI_FTYPE_PV2DI): Ditto.
3995         (V8DF_FTYPE_PV2DF): Ditto.
3996         (V4DI_FTYPE_PV2DI): Ditto.
3997         (V4DF_FTYPE_PV2DF): Ditto.
3998         (V16SI_FTYPE_PV2SI): Ditto.
3999         (V16SF_FTYPE_PV2SF): Ditto.
4000         (V8DI_FTYPE_PV4DI): Ditto.
4001         (V8DF_FTYPE_PV4DF): Ditto.
4002         (V8SF_FTYPE_FLOAT): Ditto.
4003         (V4SF_FTYPE_FLOAT): Ditto.
4004         (V4DF_FTYPE_DOUBLE): Ditto.
4005         (V8SF_FTYPE_PV4SF): Ditto.
4006         (V8SI_FTYPE_PV4SI): Ditto.
4007         (V4SI_FTYPE_PV2SI): Ditto.
4008         (V8SF_FTYPE_PV2SF): Ditto.
4009         (V8SI_FTYPE_PV2SI): Ditto.
4010         (V16SF_FTYPE_PV8SF): Ditto.
4011         (V16SI_FTYPE_PV8SI): Ditto.
4012         (V8DI_FTYPE_V8SF): Ditto.
4013         (V4DI_FTYPE_V4SF): Ditto.
4014         (V2DI_FTYPE_V4SF): Ditto.
4015         (V64QI_FTYPE_QI): Ditto.
4016         (V32HI_FTYPE_HI): Ditto.
4017         (V8UHI_FTYPE_V8UHI): Ditto.
4018         (V16UHI_FTYPE_V16UHI): Ditto.
4019         (V32UHI_FTYPE_V32UHI): Ditto.
4020         (V2UDI_FTYPE_V2UDI): Ditto.
4021         (V4UDI_FTYPE_V4UDI): Ditto.
4022         (V8UDI_FTYPE_V8UDI): Ditto.
4023         (V4USI_FTYPE_V4USI): Ditto.
4024         (V8USI_FTYPE_V8USI): Ditto.
4025         (V16USI_FTYPE_V16USI): Ditto.
4026         (V2DF_FTYPE_V2DF_UINT64): Ditto.
4027         (V2DI_FTYPE_V2DF_V2DF): Ditto.
4028         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
4029         (V8DF_FTYPE_V8DF_V8DI): Ditto.
4030         (V4SF_FTYPE_V4SF_UINT64): Ditto.
4031         (V4SI_FTYPE_V4SF_V4SF): Ditto.
4032         (V16SF_FTYPE_V16SF_V16SI): Ditto.
4033         (V64QI_FTYPE_V32HI_V32HI): Ditto.
4034         (V32HI_FTYPE_V16SI_V16SI): Ditto.
4035         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
4036         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
4037         (V32HI_FTYPE_V64QI_V64QI): Ditto.
4038         (V32HI_FTYPE_V32HI_V32HI): Ditto.
4039         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
4040         (V16SI_FTYPE_V16SI_V4SI): Ditto.
4041         (V16SI_FTYPE_V16SI_V16SI): Ditto.
4042         (V16SI_FTYPE_V32HI_V32HI): Ditto.
4043         (V16SI_FTYPE_V16SI_SI): Ditto.
4044         (V8DI_FTYPE_V8DI_V8DI): Ditto.
4045         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
4046         (V8DI_FTYPE_V16SI_V16SI): Ditto.
4047         (V8DI_FTYPE_V8DI_V2DI): Ditto.
4048         (QI_FTYPE_QI): Ditto.
4049         (SI_FTYPE_SI): Ditto.
4050         (DI_FTYPE_DI): Ditto.
4051         (QI_FTYPE_QI_QI): Ditto.
4052         (QI_FTYPE_QI_INT): Ditto.
4053         (HI_FTYPE_HI_INT): Ditto.
4054         (SI_FTYPE_SI_INT): Ditto.
4055         (DI_FTYPE_DI_INT): Ditto.
4056         (HI_FTYPE_V16QI_V16QI): Ditto.
4057         (SI_FTYPE_V32QI_V32QI): Ditto.
4058         (DI_FTYPE_V64QI_V64QI): Ditto.
4059         (QI_FTYPE_V8HI_V8HI): Ditto.
4060         (HI_FTYPE_V16HI_V16HI): Ditto.
4061         (SI_FTYPE_V32HI_V32HI): Ditto.
4062         (QI_FTYPE_V4SI_V4SI): Ditto.
4063         (QI_FTYPE_V8SI_V8SI): Ditto.
4064         (QI_FTYPE_V2DI_V2DI): Ditto.
4065         (QI_FTYPE_V4DI_V4DI): Ditto.
4066         (QI_FTYPE_V8DI_V8DI): Ditto.
4067         (HI_FTYPE_V16SI_V16SI): Ditto.
4068         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
4069         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
4070         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
4071         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
4072         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
4073         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
4074         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
4075         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
4076         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
4077         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
4078         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
4079         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
4080         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
4081         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
4082         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
4083         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
4084         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
4085         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
4086         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
4087         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
4088         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
4089         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
4090         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
4091         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
4092         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
4093         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
4094         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
4095         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
4096         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
4097         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
4098         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
4099         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
4100         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
4101         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
4102         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
4103         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
4104         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
4105         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
4106         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
4107         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
4108         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
4109         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
4110         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
4111         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
4112         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
4113         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
4114         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
4115         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
4116         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
4117         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
4118         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
4119         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
4120         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
4121         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
4122         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
4123         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
4124         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
4125         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
4126         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
4127         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
4128         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
4129         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
4130         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
4131         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
4132         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
4133         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
4134         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
4135         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
4136         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
4137         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
4138         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
4139         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
4140         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
4141         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
4142         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
4143         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
4144         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
4145         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
4146         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
4147         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
4148         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
4149         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
4150         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
4151         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
4152         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
4153         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
4154         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
4155         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
4156         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
4157         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
4158         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
4159         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
4160         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
4161         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
4162         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
4163         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
4164         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
4165         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
4166         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
4167         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
4168         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
4169         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
4170         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
4171         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
4172         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
4173         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
4174         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
4175         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
4176         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
4177         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
4178         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
4179         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
4180         (HI_FTYPE_HI): Ditto.
4181         (HI_FTYPE_V16QI): Ditto.
4182         (SI_FTYPE_V32QI): Ditto.
4183         (DI_FTYPE_V64QI): Ditto.
4184         (QI_FTYPE_V8HI): Ditto.
4185         (HI_FTYPE_V16HI): Ditto.
4186         (SI_FTYPE_V32HI): Ditto.
4187         (QI_FTYPE_V4SI): Ditto.
4188         (QI_FTYPE_V8SI): Ditto.
4189         (HI_FTYPE_V16SI): Ditto.
4190         (QI_FTYPE_V2DI): Ditto.
4191         (QI_FTYPE_V4DI): Ditto.
4192         (QI_FTYPE_V8DI): Ditto.
4193         (V16QI_FTYPE_HI): Ditto.
4194         (V32QI_FTYPE_SI): Ditto.
4195         (V64QI_FTYPE_DI): Ditto.
4196         (V8HI_FTYPE_QI): Ditto.
4197         (V16HI_FTYPE_HI): Ditto.
4198         (V32HI_FTYPE_SI): Ditto.
4199         (V4SI_FTYPE_QI): Ditto.
4200         (V4SI_FTYPE_HI): Ditto.
4201         (V8SI_FTYPE_QI): Ditto.
4202         (V8SI_FTYPE_HI): Ditto.
4203         (V2DI_FTYPE_QI): Ditto.
4204         (V4DI_FTYPE_QI): Ditto.
4205         (HI_FTYPE_HI_HI): Ditto.
4206         (SI_FTYPE_SI_SI): Ditto.
4207         (DI_FTYPE_DI_DI): Ditto.
4208         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
4209         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
4210         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
4211         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
4212         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
4213         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
4214         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
4215         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
4216         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
4217         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
4218         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
4219         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
4220         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
4221         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
4222         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
4223         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
4224         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
4225         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
4226         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
4227         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
4228         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
4229         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
4230         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
4231         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
4232         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
4233         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
4234         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
4235         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
4236         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
4237         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
4238         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
4239         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
4240         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
4241         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
4242         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
4243         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
4244         (V16SI_FTYPE_HI): Ditto.
4245         (V8DI_FTYPE_QI): Ditto.
4246         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
4247         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
4248         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
4249         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
4250         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
4251         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
4252         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
4253         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
4254         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
4255         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
4256         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
4257         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
4258         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
4259         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
4260         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
4261         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
4262         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
4263         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
4264         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
4265         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
4266         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
4267         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
4268         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
4269         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
4270         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
4271         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
4272         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
4273         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
4274         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
4275         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
4276         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
4277         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
4278         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
4279         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
4280         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
4281         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
4282         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
4283         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
4284         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
4285         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
4286         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
4287         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
4288         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
4289         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
4290         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
4291         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
4292         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
4293         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
4294         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
4295         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
4296         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
4297         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
4298         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
4299         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
4300         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
4301         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
4302         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
4303         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
4304         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
4305         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
4306         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
4307         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
4308         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
4309         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
4310         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
4311         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
4312         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
4313         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
4314         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
4315         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
4316         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
4317         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
4318         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
4319         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
4320         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
4321         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
4322         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
4323         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
4324         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
4325         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
4326         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
4327         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
4328         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
4329         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
4330         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
4331         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
4332         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
4333         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
4334         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
4335         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
4336         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
4337         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
4338         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
4339         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
4340         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
4341         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
4342         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
4343         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
4344         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
4345         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
4346         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
4347         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
4348         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
4349         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
4350         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
4351         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
4352         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
4353         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
4354         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
4355         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
4356         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
4357         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
4358         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
4359         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
4360         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
4361         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
4362         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
4363         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
4364         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
4365         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
4366         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
4367         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
4368         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
4369         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
4370         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
4371         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
4372         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
4373         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
4374         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
4375         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
4376         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
4377         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
4378         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
4379         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
4380         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
4381         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
4382         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
4383         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
4384         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
4385         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
4386         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
4387         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
4388         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
4389         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
4390         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
4391         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
4392         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
4393         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
4394         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
4395         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
4396         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
4397         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
4398         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
4399         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
4400         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
4401         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
4402         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
4403         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
4404         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
4405         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
4406         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
4407         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
4408         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
4409         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
4410         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
4411         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
4412         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
4413         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
4414         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
4415         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
4416         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
4417         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
4418         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
4419         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
4420         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
4421         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
4422         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
4423         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
4424         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
4425         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
4426         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
4427         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
4428         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
4429         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
4430         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
4431         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
4432         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
4433         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
4434         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
4435         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
4436         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
4437         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
4438         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
4439         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
4440         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
4441         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
4442         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
4443         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
4444         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
4445         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
4446         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
4447         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
4448         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
4449         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
4450         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
4451         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
4452         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
4453         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
4454         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
4455         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
4456         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
4457         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
4458         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
4459         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
4460         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
4461         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
4462         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
4463         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
4464         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
4465         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
4466         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
4467         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
4468         (QI_FTYPE_V8DF_INT_QI): Ditto.
4469         (QI_FTYPE_V4DF_INT_QI): Ditto.
4470         (QI_FTYPE_V2DF_INT_QI): Ditto.
4471         (HI_FTYPE_V16SF_INT_HI): Ditto.
4472         (QI_FTYPE_V8SF_INT_QI): Ditto.
4473         (QI_FTYPE_V4SF_INT_QI): Ditto.
4474         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
4476 2015-07-31  Richard Biener  <rguenther@suse.de>
4478         * gimple-fold.c (fold_gimple_assign): Remove folding of
4479         GIMPLE_BINARY_RHS.
4481 2015-07-31  Tom de Vries  <tom@codesourcery.com>
4483         PR tree-optimization/66846
4484         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
4485         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
4486         (expand_omp_target) [ENABLE_CHECKING]: Same.
4487         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
4488         cfun if !LOOPS_NEED_FIXUP.
4489         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
4490         that omp_for already has its own loop struct.
4491         * tree-parloops.c (create_phi_for_local_result)
4492         (create_call_for_reduction): Handle simple latch bb.
4493         (create_parallel_loop): Add simple latch bb to preserve
4494         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
4495         (gen_parallel_loop): Remove call to cancel_loop_tree.
4496         (parallelize_loops): Skip loops that are inner loops of parallelized
4497         loops.
4498         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
4499         verify_loop_structure.
4501 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
4503         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
4504         * config/v850/v850.md (RV_REGNUM): New constants.
4505         * config/v850/v850.c (v850_libcall_value): New functions.
4506         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
4507         (TARGET_LIBCALL_VALUE): Define.
4509 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
4511         * rtl.h (lowpart_subreg): Move in file.
4512         * loop-iv.c (lowpart_subreg): Move to...
4513         * simplify-rtx.c (lowpart_subreg): ...here.
4514           (simplify_binary_operation_1): Use lowpart_subreg instead of
4515           simplify_gen_subreg.
4516         * expr.c (expand_expr_real_2): Ditto.
4517         * emit-rtl.c (gen_lowpart_common): Ditto.
4518         * combine.c (gen_lowpart_for_combine): Ditto.
4519         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
4520           expand_debug_source_expr): Ditto.
4522 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
4524         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
4525         (expand_builtin_atomic_clear): Remove support for atomic_clear
4526         pattern.
4528 2015-07-30  Richard Biener  <rguenther@suse.de>
4530         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
4531         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
4532         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
4533         redundant operand canonicalization.
4535 2015-07-30  David Sherwood  <david.sherwood@arm.com>
4537         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
4538         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
4539         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
4540         * config/arm/arm.c (neon_valid_immediate): Likewise.
4541         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
4542         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
4543         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
4544         (expand_vec_perm_vpshufb2_vpermq): Likewise.
4545         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
4546         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
4547         * config/i386/sse.md
4548         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
4549         (*ssse3_palignr<mode>_perm): Likewise.
4550         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
4551         * config/spu/spu.c (arith_immediate_p): Likewise.
4552         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4553         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
4555 2015-07-30  Richard Biener  <rguenther@suse.de>
4557         * genmatch.c (decision_tree::gen_gimple): Merge with ...
4558         (decision_tree::gen_generic): ... this into ...
4559         (decision_tree::gen): ... this.
4560         (main): Adjust callers.
4562 2015-07-30  Richard Biener  <rguenther@suse.de>
4564         * genmatch.c (verbose): New global.
4565         (warning_at): Add overload with source_location.
4566         (capture_info::capture_info): Add bool whether generating gimple
4567         or generic.  Add gimple member.
4568         (capture_info::cinfo): Add capture member.
4569         (capture_info::walk_match): Record capture.  Warn on
4570         non-captured leafs.
4571         (capture_info::walk_c_expr): Add more fragments captures cannot
4572         escape through.  Warn on escaped captures.
4573         (dt_simplify::gen_1): Warn on operands we force to have no
4574         side-effects.
4575         (main): Initialize verbose.
4576         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
4578 2015-07-30  Richard Biener  <rguenther@suse.de>
4580         PR middle-end/67053
4581         * match.pd: Allow both operands to independently have conversion
4582         when simplifying compares of addresses.
4584 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
4586         PR target/66217
4587         PR target/67045
4588         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
4589         around those cases that need one.
4591 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
4593         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
4595 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
4597         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
4598         New.  Copied from config/i386/gnu-user.h.
4599         (ASM_COMMENT_START): Likewise.
4600         (DBX_REGISTER_NUMBER): Likewise.
4602 2015-07-29  Richard Biener  <rguenther@suse.de>
4604         * gimple-fold.c (fold_gimple_cond): Remove.
4605         (fold_stmt_1): Do not call it.
4607 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
4609         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
4610         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
4612         * config/aarch64/aarch64-modes.def: Add HFmode.
4614         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
4615         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
4617         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
4618         aarch64_promoted_type): New.
4620         (aarch64_float_const_representable_p): Disable HFmode.
4621         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
4622         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
4623         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
4625         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
4626         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
4628         * config/aarch64/iterators.md (GPF_F16): New.
4630 2015-07-29  Richard Biener  <rguenther@suse.de>
4632         * match.pd: Merge address comparison patterns and make them
4633         handle some more cases.
4635 2015-07-29  Richard Biener  <rguenther@suse.de>
4637         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
4638         (parser::parse_capture): Add bool argument on whether to reject
4639         unknown captures.
4640         (parser::parse_expr): Adjust.
4641         (parser::parse_op): Likewise.
4642         (parser::parse_pattern): Likewise.
4644 2015-07-29  Richard Biener  <rguenther@suse.de>
4646         * gimple-fold.c (has_use_on_stmt): New function.
4647         (replace_stmt_with_simplification): Use it to allow
4648         abnormals originally referenced in the stmt.
4649         (fold_stmt_1): Canonicalize operand order.
4651 2015-07-28  David Sherwood  <david.sherwood@arm.com>
4653         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
4654         GET_MODE_INNER unconditionally.
4655         * config/spu/spu.c (arith_immediate_p): Likewise.
4656         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
4657         * expmed.c (synth_mult): Remove check for VOIDmode result from
4658         GET_MODE_INNER.
4659         (expand_mult_const): Likewise.
4660         * fold-const.c (fold_binary_loc): Replace call to element_precision
4661         with call to GET_MODE_PRECISION.
4662         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
4663         m->name.
4664         (emit_mode_inner): Likewise.
4665         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
4666         result check.
4667         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
4668         (GET_MODE_UNIT_PRECISION): Likewise.
4669         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
4670         * simplify-rtx.c (simplify_immed_subreg): Likewise.
4671         * stor-layout.c (bitwise_type_for_mode): Update assert.
4672         (element_precision): Remove.
4674 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4676         * target-insns.def (reload_load_address): New targetm instruction
4677         pattern.
4678         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
4680 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4682         * target-insns.def (atomic_test_and_set): New targetm instruction
4683         pattern.
4684         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
4685         HAVE_*/gen_* interface.
4687 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4689         * target-insns.def (can_extend, ptr_extend): New targetm instruction
4690         patterns.
4691         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
4692         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4693         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4694         * rtlanal.c (nonzero_bits1): Likewise.
4695         (num_sign_bit_copies1): Likewise.
4697 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4699         * target-insns.def (eh_return): New targetm instruction pattern.
4700         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
4701         interface.
4702         * function.c (thread_prologue_and_epilogue_insns): Remove
4703         preprocessor condition.
4705 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4707         * target-insns.def (indirect_jump): New targetm instruction pattern.
4708         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
4709         interface.
4711 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
4713         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
4714         instead of nonimmediate_operand.  Remove C condiition.
4716 2015-07-28  Richard Biener  <rguenther@suse.de>
4718         * match.pd: Add more simplification of address comparisons.
4720 2015-07-28  Richard Biener  <rguenther@suse.de>
4722         * match.pd: Re-order two cases in comparison with max/min
4723         value simplification to make it apply for bools.
4725 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4727         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
4728         Handle simple SIGN_EXTEND or ZERO_EXTEND.
4729         (aarch64_rtx_costs): Properly strip extend or extract before
4730         passing down to rtx costs again.
4732 2015-07-28  Nick Clifton  <nickc@redhat.com>
4734         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
4735         Optimizes the case where -mes0 is active and a constant symbolic
4736         address is used.
4737         * config/rl78/rl78-protos.h: Prototype the new function.
4738         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
4740 2015-07-28  Tom de Vries  <tom@codesourcery.com>
4742         * tree-parloops.c (reduc_stmt_res): New function.
4743         (initialize_reductions, add_field_for_reduction)
4744         (create_phi_for_local_result, create_loads_for_reductions)
4745         (create_stores_for_reduction, build_new_reduction): Handle case that
4746         reduc_stmt is a phi.
4747         (gather_scalar_reductions): Allow double_reduc reductions.
4749 2015-07-28  Richard Biener  <rguenther@suse.de>
4751         * fold-const.c (fold_comparison): Remove equality folding
4752         of decl addresses ...
4753         * match.pd: ... here and merge with existing pattern.
4755 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4757         PR tree-optimization/66828
4758         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
4759         from int64_t to uint64_t.
4761 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4763         * opts-common.c (read_cmdline_option): List DriverOnly enum values
4764         as valid only in the error message of the driver, not in the
4765         messages of the language compilers.
4767 2015-07-27  Tom de Vries  <tom@codesourcery.com>
4769         * tree-parloops.c (gather_scalar_reductions): Simplify function
4770         structure.
4772 2015-07-27  Marek Polacek  <polacek@redhat.com>
4774         * ipa-devirt.c (types_same_for_odr): Fix typo.
4776 2015-07-27  Jason Merrill  <jason@redhat.com>
4778         PR debug/66468
4779         * dwarf2out.c (gen_inlined_subroutine_die): Check
4780         cgraph_function_possibly_inlined_p.
4782 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
4784         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
4785         Place integer variant first.
4786         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4788 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
4790         PR/63870
4791         * config/arm/arm-builtins.c (enum arm_builtins):
4792         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
4793         (ARM_BUILTIN_NEON_BASE): Rename macro to....
4794         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
4795         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
4796         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
4798 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
4800         PR/63870
4801         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
4802         Add qualifier_lane_index.
4803         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
4804         (arm_getlane_qualifiers): Use qualifier_lane_index.
4805         (arm_lanemac_qualifiers): Rename to...
4806         (arm_mac_n_qualifiers): ...this.
4807         (LANEMAC_QUALIFIERS): Rename to...
4808         (MAC_N_QUALIFIERS): ...this.
4809         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
4810         (arm_setlane_qualifiers): Use qualifier_lane_index.
4811         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
4812         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
4813         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
4814         (arm_expand_neon_builtin): Handle qualifier_lane_index.
4816         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
4817         * config/arm/arm.c (bounds_check): Likewise, improve error message.
4818         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
4819         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
4820         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
4821         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
4822         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
4823         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
4824         qualifiers to TERNOP_IMM.
4825         (vdup_lane): Change qualifiers to GETLANE.
4826         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
4827         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
4828         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
4829         vqdmlsl_n): Change qualifiers to MAC_N.
4831         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
4832         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
4833         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
4834         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
4835         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
4836         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
4837         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
4838         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
4839         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
4840         Remove call to neon_lane_bounds.
4842 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
4844         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
4845         Place integer variant first.
4847 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
4849         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
4850         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
4851         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
4852         for armv6kz targets.
4853         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
4854         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
4855         (FL_FOR_ARCH6ZK): Remove.
4856         (FL_FOR_ARCH6KZ): New.
4857         (arm_arch6zk): New declaration.
4858         * config/arm/arm-tables.opt: Regenerate.
4859         * config/arm/arm.c (arm_arch6kz): New.
4860         (arm_option_override): Set arm_arch6kz.
4861         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
4862         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
4863         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
4865 2015-07-27  Marek Polacek  <polacek@redhat.com>
4867         PR c++/66555
4868         PR c/54979
4869         * doc/invoke.texi: Document -Wtautological-compare.
4871 2015-07-27  Richard Biener  <rguenther@suse.de>
4873         * genmatch.c (decision_tree::gen_gimple): Split out large
4874         subtrees into separate functions.
4875         (decision_tree::gen_generic): Likewise.
4877 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
4879         * config/alpha/alpha.c: Use SUBREG_P predicate.
4880         * config/alpha/predicates.md: Ditto.
4882 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4884         * config.host (s390*-*-*): Include driver-native.c only when
4885         building with s390* as host *and* target.
4887 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
4889         PR target/66930
4890         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
4891         T bit register modified_between_p check.
4893 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4895         * config/i386/i386.c: Use SUBREG_P predicate.
4896         * config/i386/i386.md: Ditto.
4897         * config/i386/sse.md: Ditto.
4898         * config/i386/predicates.md: Ditto.
4900 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4902         PR target/67004
4903         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
4904         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
4906 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4908         * Makefile.in: Remove use of TREEBROWSER.
4909         * config.in: Regenerated.
4910         * configure: Regenerated.
4911         * configure.ac: Remove definition of TREEBROWSER.
4912         * tree-browser.c: Removed.
4913         * tree-browser.def: Removed.
4915 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4917         * graphite-scop-detection.c: Include gimple-pretty-print.h.
4918         (stmt_simple_for_scop_p): Print when a stmt is not handled in
4919         Graphite.
4920         (scopdet_basic_block_info): Print when a loop or bb cannot be
4921         represented in Graphite.
4923 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
4925         PR target/66648
4926         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
4927         execution guard when min_size is less than size_needed.
4929 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
4931         * doc/install.texi: Document supported versions of ISL.
4933 2015-07-25  Jeff Law  <law@redhat.com>
4935         Revert:
4936         PR lto/66752
4937         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4938         unable to find X NE 0 in the tables, return X as the simplified
4939         condition.
4940         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4941         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4942         to VISISTED_BBS.  */
4943         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4944         after removing the control flow statement and unnecessary edges.
4946 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
4948         Revert:
4949         2015-07-23  Alexandre Oliva <aoliva@redhat.com>
4951         PR rtl-optimization/64164
4952         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
4953         * tree-ssa-copyrename.c: Removed.
4954         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
4955         -ftree-coalesce-vars.
4956         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
4957         * common.opt (ftree-copyrename): Ignore.
4958         (ftree-coalesce-inlined-vars): Likewise.
4959         * doc/invoke.texi: Remove the ignored options above.
4960         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
4961         * tree-ssa-coalesce.h: ... here.
4962         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
4963         headers required by it.
4964         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
4965         across variables when flag_tree_coalesce_vars.  Check register
4966         use and promoted modes to allow coalescing.  Moved to
4967         tree-ssa-coalesce.c.
4968         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
4969         with its member functions to tree-ssa-coalesce.c.
4970         (var_map_base_init): Likewise.  Renamed to
4971         compute_samebase_partition_bases.
4972         (partition_view_normal): Drop want_bases parameter.
4973         (partition_view_bitmap): Likewise.
4974         * tree-ssa-live.h: Adjust declarations.
4975         * tree-ssa-coalesce.c: Include explow.h.
4976         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
4977         default defs at the entry point.
4978         (dump_part_var_map): New.
4979         (compute_optimized_partition_bases): New, called by...
4980         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
4981         of compute_samebase_partition_bases.  Adjust.
4982         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
4983         * cfgexpand.c (leader_merge): New.
4984         (get_rtl_for_parm_ssa_default_def): New.
4985         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
4986         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
4987         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
4988         redundant MEM attr setting.
4989         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
4990         from...
4991         (expand_one_stack_var): ... this.  New wrapper to check and
4992         skip already expanded SSA partitions.
4993         (record_alignment_for_reg_var): New, factored out of...
4994         (expand_one_var): ... this.
4995         (expand_one_ssa_partition): New.
4996         (adjust_one_expanded_partition_var): New.
4997         (expand_one_register_var): Check and skip already expanded SSA
4998         partitions.
4999         (expand_used_vars): Don't create DECLs for anonymous SSA
5000         names.  Expand all SSA partitions, then adjust all SSA names.
5001         (pass::execute): Replace the loops that set
5002         SA.partition_to_pseudo from partition leaders and cleared
5003         DECL_RTL for multi-location variables, and that which used to
5004         rename vars and set attrs, with one that clears DECL_RTL and
5005         checks that PARMs and RESULTs default_defs match DECL_RTL.
5006         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5007         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5008         * explow.c (promote_ssa_mode): New.
5009         * explow.h (promote_ssa_mode): Declare.
5010         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5011         * function.c: Include cfgexpand.h.
5012         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5013         (use_register_for_parm_decl): Wrapper for the above to
5014         special-case the result_ptr.
5015         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5016         (split_complex_args): Take assign_parm_data_all argument.
5017         Pass it to rtl_for_parm.  Set up rtl and context for split
5018         args.
5019         (assign_parms_augmented_arg_list): Adjust.
5020         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5021         multiple locations.  Recognize split complex args.
5022         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5023         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
5024         (assign_parm_setup_block): Prefer SSA-assigned location.
5025         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
5026         if stack_parm is NULL.
5027         (assign_parm_setup_stack): Prefer SSA-assigned location.
5028         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
5029         rtl before testing for pointer bounds.  Special-case result_ptr.
5030         (expand_function_start): Maybe reset DECL_RTL of result.
5031         Prefer SSA-assigned location for result and static chain.
5032         Factor out DECL_RESULT and SET_DECL_RTL.
5033         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5034         anonymous SSA names.  Use promote_ssa_mode.
5035         (get_temp_reg): Likewise.
5036         (remove_ssa_form): Adjust.
5037         * stor-layout.c (layout_decl): Don't set mem attributes of
5038         non-MEMs.
5039         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5040         and get its reg_usage for reg invalidation.
5041         (compute_bb_dataflow): Pass it insn.
5042         (emit_notes_in_bb): Likewise.
5044 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
5046         * config/i386/i386.c (ix86_va_start): Remove
5047         unneeded !TARGET_64BIT check.
5048         (ix86_gimplify_va_arg): Ditto.
5050 2015-07-24  Tom de Vries  <tom@codesourcery.com>
5052         * graphite-sese-to-poly.c (build_poly_scop): Always call
5053         rewrite_commutative_reductions_out_of_ssa.
5055 2015-07-24  Tom de Vries  <tom@codesourcery.com>
5057         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
5058         flag_associative_math to FLOAT_TYPE_P.  Honour
5059         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
5061 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5063         PR c++/64079
5064         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
5065         and "%qD" in warning_at instead of "%q+D" in warning.
5067 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
5069         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
5070         (ix86_function_abi): Cleanup.
5072 2015-07-24  Michael Darling  <darlingm@gmail.com>
5074         PR other/66259
5075         * acinclude.m4: Reflects renaming of configure.in to configure.ac
5076         * configure: Likewise
5077         * configure.ac: Likewise
5078         * doc/install.texi: Likewise
5079         * doc/tm.texi: Likewise
5080         * doc/tm.texi.in: Likewise
5082 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5084         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
5085         manually swapping values.
5086         * cse.c (fold_rtx): Likewise.
5087         * lra-eliminations.c (form_sum): Likewise.
5089 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
5091         PR target/64003
5092         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
5093         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
5094         (*jcc_1, *jcc_2, jump, simple_return_internal)
5095         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
5096         Set length_nobnd attribute instead of length attribute.
5097         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
5098         (length_nobnd): Remove attribute.
5099         (length): Remove length_nobnd processing.
5101 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
5103         * gimplify.c (omp_default_clause): New function.  Reorganize flow
5104         for clarity. Broken out of ...
5105         (omp_notice_variable): ... here.
5107 2015-07-24  Gary Funck  <gary@intrepid.com>
5109         PR middle-end/66984
5110         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
5111         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
5113 2015-07-24  Tom de Vries  <tom@codesourcery.com>
5115         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
5116         exit-first loop transform.
5118 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
5120         PR 66714
5121         * tree-cfg.c (struct replace_decls_d): New struct.
5122         (replace_block_vars_by_duplicates_1): New function.
5123         (replace_block_vars_by_duplicates): Use it to replace the decls
5124         in the value exprs by duplicates.
5126 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5128         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
5129         -shared, -symbolic, -rdynamic.
5131 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
5133         PR target/65711
5134         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
5135         -dynamic-linker within %{!static %{!shared, and -rdynamic within
5136         %{!static.
5138 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
5140         PR ipa/66566
5141         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
5142         edge summary is available.
5144 2015-07-24  Richard Biener  <rguenther@suse.de>
5146         * genmatch.c (struct dt_node): Add statistic fields.
5147         (dt_node::analyze): New method.
5148         (decision_tree::gen_gimple): Call analyze on the root node
5149         and print statistics to stderr.
5150         (decision_tree::gen_generic): Likewise.
5152 2015-07-24  Richard Biener  <rguenther@suse.de>
5154         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
5155         against the highest or lowest possible integer ...
5156         * match.pd: ... as patterns here.
5158 2015-07-24  Richard Biener  <rguenther@suse.de>
5160         * genmatch.c (struct capture_info): Add same_as field.
5161         (capture_info::capture_info): Initialize same_as.
5162         (capture_info::walk_match): Compute same_as.
5163         (capture_info::walk_result): Compute stuff for the leader.
5164         (capture_info::walk_c_expr): Likewise.
5165         (dt_simplify::gen_1): Only look at leaders when deciding
5166         to force no side-effects or emit side-effects of omitted operands.
5168 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5170         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
5171         reg note to the GPR -> FPR save instructions.
5173 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5175         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
5176         cheaper.
5177         (s390_expand_insv): Don't generate risbg pattern for constant zero
5178         sources.
5179         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
5180         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
5181         splitters.
5183 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5185         * config/s390/s390.c (s390_reorg): Clean up handling of processors
5186         with
5187         -mtune=
5188         (s390_issue_rate): Likewise.
5189         (s390_sched_reorder): Likewise.
5190         (s390_sched_variable_issue): Likewise.
5191         (s390_loop_unroll_adjust): Likewise.
5192         (s390_option_override):  Likewise.
5194 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5196         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
5197         processor capabilities with -march=native.
5198         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
5199         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
5200         (S390_TARGET_BITS_STRING): Macro to simplify specs.
5202 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5204         * config/s390/s390.c (s390_issue_rate): Handle
5205         PROCESSOR_2094_Z9_EC.
5206         (s390_option_override): Likewise.
5207         (s390_adjust_priority): Likewise.
5209 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5211         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
5212         when cross compiling.
5214 2015-07-24  Richard Biener  <rguenther@suse.de>
5216         * fold-const.c (maybe_canonicalize_comparison_1): Move
5217         A code CST canonicalization ...
5218         * match.pd: ... to a pattern here.
5220 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
5222         Revert:
5223         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
5224         PR target/63521
5225         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5226         (HONOR_REG_ALLOC_ORDER): Define.
5228 2015-07-24  Richard Biener  <rguenther@suse.de>
5230         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
5231         * fold-const.c (fold_comparison): Move parameter does not
5232         alias &local simplification ...
5233         * match.pd: ... as a pattern here.
5235 2015-07-24  Richard Biener  <rguenther@suse.de>
5237         * gimple-fold.c (replace_stmt_with_simplification): Special-case
5238         valueizing call operands.
5239         * gimple-match-head.c (maybe_push_res_to_seq): Take
5240         number of call arguments from ops array.
5241         (do_valueize): New function.
5242         (gimple_simplify): Return true if valueization changed
5243         any operand even if the result didn't simplify further.
5245 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5247         PR middle-end/25530
5248         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
5250 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5252         PR middle-end/25529
5253         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
5255 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
5257         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
5258         instruction.
5260 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
5262         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
5263         clean up.
5265 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
5267         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
5268         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
5269         targets here.
5270         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
5271         ms_va_list_type_node initialization.
5273 2015-07-23  Jeff Law  <law@redhat.com>
5275         PR lto/66752
5276         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
5277         unable to find X NE 0 in the tables, return X as the simplified
5278         condition.
5279         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
5280         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
5281         to VISISTED_BBS.  */
5282         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
5283         after removing the control flow statement and unnecessary edges.
5285 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5287         * tree-pass.h (get_current_pass_name): Removed.
5289 2015-07-23  Alexandre Oliva <aoliva@redhat.com>
5291         PR rtl-optimization/64164
5292         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5293         * tree-ssa-copyrename.c: Removed.
5294         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5295         -ftree-coalesce-vars.
5296         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5297         * common.opt (ftree-copyrename): Ignore.
5298         (ftree-coalesce-inlined-vars): Likewise.
5299         * doc/invoke.texi: Remove the ignored options above.
5300         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5301         * tree-ssa-coalesce.h: ... here.
5302         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5303         headers required by it.
5304         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5305         across variables when flag_tree_coalesce_vars.  Check register
5306         use and promoted modes to allow coalescing.  Moved to
5307         tree-ssa-coalesce.c.
5308         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5309         with its member functions to tree-ssa-coalesce.c.
5310         (var_map_base_init): Likewise.  Renamed to
5311         compute_samebase_partition_bases.
5312         (partition_view_normal): Drop want_bases parameter.
5313         (partition_view_bitmap): Likewise.
5314         * tree-ssa-live.h: Adjust declarations.
5315         * tree-ssa-coalesce.c: Include explow.h.
5316         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5317         default defs at the entry point.
5318         (dump_part_var_map): New.
5319         (compute_optimized_partition_bases): New, called by...
5320         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
5321         of compute_samebase_partition_bases.  Adjust.
5322         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
5323         * cfgexpand.c (leader_merge): New.
5324         (get_rtl_for_parm_ssa_default_def): New.
5325         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
5326         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
5327         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
5328         redundant MEM attr setting.
5329         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
5330         from...
5331         (expand_one_stack_var): ... this.  New wrapper to check and
5332         skip already expanded SSA partitions.
5333         (record_alignment_for_reg_var): New, factored out of...
5334         (expand_one_var): ... this.
5335         (expand_one_ssa_partition): New.
5336         (adjust_one_expanded_partition_var): New.
5337         (expand_one_register_var): Check and skip already expanded SSA
5338         partitions.
5339         (expand_used_vars): Don't create DECLs for anonymous SSA
5340         names.  Expand all SSA partitions, then adjust all SSA names.
5341         (pass::execute): Replace the loops that set
5342         SA.partition_to_pseudo from partition leaders and cleared
5343         DECL_RTL for multi-location variables, and that which used to
5344         rename vars and set attrs, with one that clears DECL_RTL and
5345         checks that PARMs and RESULTs default_defs match DECL_RTL.
5346         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
5347         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
5348         * explow.c (promote_ssa_mode): New.
5349         * explow.h (promote_ssa_mode): Declare.
5350         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
5351         * function.c: Include cfgexpand.h.
5352         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
5353         (use_register_for_parm_decl): Wrapper for the above to
5354         special-case the result_ptr.
5355         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
5356         (split_complex_args): Take assign_parm_data_all argument.
5357         Pass it to rtl_for_parm.  Set up rtl and context for split
5358         args.
5359         (assign_parms_augmented_arg_list): Adjust.
5360         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
5361         multiple locations.  Recognize split complex args.
5362         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
5363         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
5364         (assign_parm_setup_block): Prefer SSA-assigned location.
5365         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
5366         if stack_parm is NULL.
5367         (assign_parm_setup_stack): Prefer SSA-assigned location.
5368         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
5369         rtl before testing for pointer bounds.  Special-case result_ptr.
5370         (expand_function_start): Maybe reset DECL_RTL of result.
5371         Prefer SSA-assigned location for result and static chain.
5372         Factor out DECL_RESULT and SET_DECL_RTL.
5373         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
5374         anonymous SSA names.  Use promote_ssa_mode.
5375         (get_temp_reg): Likewise.
5376         (remove_ssa_form): Adjust.
5377         * stor-layout.c (layout_decl): Don't set mem attributes of
5378         non-MEMs.
5379         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
5380         and get its reg_usage for reg invalidation.
5381         (compute_bb_dataflow): Pass it insn.
5382         (emit_notes_in_bb): Likewise.
5384 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
5386         PR target/66217
5387         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
5388         prototype.
5389         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
5390         (rs6000_emit_2insn_and): Handle dot forms.
5391         * config/rs6000/rs6000.md (and<mode>3): Adjust.
5392         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
5393         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
5395 2015-07-23  Richard Biener  <rguenther@suse.de>
5397         * generic-match-head.c: Include cgraph.h.
5398         * gimple-match-head.c: Likewise.
5399         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
5400         SSA names.
5401         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
5402         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
5403         pattern.
5405 2015-07-23  Richard Biener  <rguenther@suse.de>
5407         * gimple-fold.c (fold_gimple_cond): Do not require folding
5408         results to pass valid_gimple_rhs_p.
5409         * tree-cfg.h (fold_cond_expr_cond): Remove.
5410         * tree-cfg.c (fold_cond_expr_cond): Likewise.
5411         (make_edges): Do not call it.
5412         * tree-inline.c (tree_function_versioning): Likewise.
5414 2015-07-23  Tom de Vries  <tom@codesourcery.com>
5416         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
5417         vect_force_simple_reduction.
5418         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
5419         (vect_is_simple_reduction_1): Add and handle
5420         need_wrapping_integral_overflow parameter.
5421         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
5422         need_wrapping_integral_overflow parameter.
5423         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
5424         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
5425         decl.
5427 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
5429         PR tree-optimization/66926,66951
5430         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
5431         INNER_LOOP and fix up condition for renaming virtual operands.
5433 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5435         * combine.c (try_combine): Use std::swap instead of manually
5436         swapping.
5438 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
5440         * config/mips/i6400.md: New file.
5441         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
5442         (mips64r6): Likewise.
5443         (i6400): Define.
5444         * config/mips/mips-tables.opt: Regenerate.
5445         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
5446         (mips_issue_rate): Add support for i6400.
5447         (mips_multipass_dfa_lookahead): Likewise.
5448         * config/mips/mips.h (TUNE_I6400): Define.
5449         * config/mips/mips.md: Include i6400.md.
5450         (processor): Add i6400.
5451         * doc/invoke.texi (-march=@var{arch}): Add i6400.
5453 2015-07-23  Richard Biener  <rguenther@suse.de>
5455         PR middle-end/66916
5456         * match.pd: Guard widen and sign-change comparison simplification
5457         with single_use.
5459 2015-07-23  Richard Biener  <rguenther@suse.de>
5461         PR tree-optimization/66945
5462         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
5463         ::before_dom_children): Force the propagators idea of
5464         non-executable edges to materialize, not what the folder
5465         chooses.
5467 2015-07-23  Richard Biener  <rguenther@suse.de>
5469         * gimple.h (gimple_cond_make_false): Use 0 != 0.
5470         (gimple_cond_make_true): Use 1 != 0.
5472 2015-07-22  DJ Delorie  <dj@redhat.com>
5474         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
5475         slashes.
5477         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
5478         (ashrhi3): Likewise.
5479         (lshrhi3): Likewise.
5480         (movhi): Take advantage of zero-extend to load small constants.
5481         (movpsi): Likewise.
5482         (and<mode>3): Likewise.
5483         (zero_extendqihi2): Likewise.
5484         (zero_extendqisi2): New.
5485         * config/msp430/constraints.md (N,O): New.
5486         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
5488 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
5490         PR target/66954
5491         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
5492         to enum feature_priority and feature_list.
5493         (fold_builtin_cpu): Add F_AES to enum processor_features
5494         and isa_names_table.
5496 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
5498         PR driver/66737
5499         * config/i386/linux-common.h (MPX_SPEC): Use linker option
5500         for 64bit target only.
5502 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
5504         * config/nvptx/nvptx.c: Expand some comments.
5506 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
5508         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
5509         (cortex_a53_advsimd): ...This.
5511 2015-07-22  Richard Biener  <rguenther@suse.de>
5513         * genmatch.c (expr::gen_transform): Clarify error message
5514         and display location.
5516 2015-07-22  Richard Biener  <rguenther@suse.de>
5518         * genmatch.c (struct operand): Add location member.
5519         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
5520         constructors.
5521         (struct simplify): Remove match_location and result_location
5522         members.
5523         (elsehwere): Adjust.
5525 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
5527         * config/mips/m5100.md: New file.
5528         * config/mips/mips-cpus.def (m5100, m5101): Define.
5529         * config/mips/mips-tables.opt: Regenerate.
5530         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
5531         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
5532         -march=m5101 to -mips32r5.
5533         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
5534         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
5535         !-msoft-float.
5536         * config/mips/mips.md: Include m5100.md.
5537         (processor): Add m5100.
5538         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
5540 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
5542         * config/mips/mips-cpus.def (interaptiv): Define.
5543         * config/mips/mips-tables.opt: Regenerate.
5544         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
5545         -mips32r2.
5546         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
5547         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
5549 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
5551         PR target/63521
5552         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
5553         (HONOR_REG_ALLOC_ORDER): Define.
5555 2015-07-22  Richard Biener  <rguenther@suse.de>
5557         PR tree-optimization/66952
5558         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
5559         blocks we end up executing unconditionally reset all SSA
5560         info such as range and alignment.
5561         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
5562         * tree-ssanames.c (reset_flow_sensitive_info): New function.
5564 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
5566         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
5567         typo in attribute.
5569 2015-07-22  Richard Biener  <rguenther@suse.de>
5571         * genmatch.c (parser::parse_result): Properly handle
5572         match with result operands and conditions.
5574 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
5576         PR target/63870
5577         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
5578         Add qualifier_struct_load_store_lane_index.
5579         (aarch64_types_loadstruct_lane_qualifiers): Use
5580         qualifier_struct_load_store_lane_index for lane index argument for
5581         last argument.
5582         (aarch64_types_storestruct_lane_qualifiers): Ditto.
5583         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5584         (aarch64_simd_expand_args): Add new argument describing mode of
5585         builtin. Check lane bounds for arguments with
5586         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5587         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
5588         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
5589         (aarch64_simd_expand_builtin): Handle arguments with
5590         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
5591         aarch64_simd_expand_args.
5592         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
5593         vst[234]_lane with BUILTIN_VALLDIF.
5594         * config/aarch64/aarch64-simd.md:
5595         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
5596         endianness reversal on lane index.
5597         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
5598         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
5599         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
5600         (vec_store_lanesci_lane<mode>): Ditto.
5601         (vec_store_lanesxi_lane<mode>): Ditto.
5602         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
5603         reversal of lane index.
5604         (aarch64_ld3_lane<mode>): Ditto.
5605         (aarch64_ld4_lane<mode>): Ditto.
5606         (aarch64_st2_lane<mode>): Ditto.
5607         (aarch64_st3_lane<mode>): Ditto.
5608         (aarch64_st4_lane<mode>): Ditto.
5609         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
5610         to qmode. Add new mode parameter. Update uses.
5611         (__LD3_LANE_FUNC): Ditto.
5612         (__LD4_LANE_FUNC): Ditto.
5613         (__ST2_LANE_FUNC): Ditto.
5614         (__ST3_LANE_FUNC): Ditto.
5615         (__ST4_LANE_FUNC): Ditto.
5617 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
5619         * doc/invoke.texi (Language Independent Options): Rename node to
5620         Diagnostic Message Formatting Options.
5622 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
5624         PR ipa/66424.
5625         * lra-remat.c (operand_to_remat): Prevent using insns with input
5626         subregs processed separately by IRA.
5628 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
5630         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
5631         straight loops.
5632         (single_imm_use): Check for iterator node.
5633         (num_imm_uses): Likewise.
5634         * tree-ssa-operands.c (has_zero_uses_1): Delete.
5635         (single_imm_use_1): Check for iterator node.
5637 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
5638             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5640         * configure.ac: Add check for new options in isl-0.15.
5641         * config.in, configure: Rebuilt.
5642         * graphite-blocking.c: Include <isl/constraint.h>
5643         * graphite-interchange.c,  graphite-poly.c: Likewise.
5644         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
5645         * graphite.c: Likewise.
5646         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
5647         <isl/union_set.h>.
5648         * graphite-dependences.c: Include <isl/constraint.h>.
5649         (max_number_of_out_dimensions): Returns isl_stat.
5650         (extend_schedule_1): Likewise
5651         (extend_schedule): Corresponding changes.
5652         * graphite-optimize-isl.c: Include <isl/constraint.h> and
5653         <isl/union_set.h>.
5654         (getSingleMap): Change return type of isl_stat.
5655         (optimize_isl): Conditionally use
5656         isl_options_set_schedule_serialize_sccs.
5657         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
5658         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
5660 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
5662         PR target/66956
5663         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
5664         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
5666 2015-07-21  Richard Biener  <rguenther@suse.de>
5668         PR tree-optimization/66948
5669         * genmatch.c (capture_info::walk_match): Also recurse to
5670         captures.  Properly compute expr state from captures of
5671         captures.
5672         * match.pd: Add single-use guards to
5673         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
5675 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
5677         * config/nvptx/mkoffload.c (process): Add static destructor call.
5679 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5681         PR middle-end/66915
5682         * match.pd (A - B -> A + (-B)): Don't allow folding
5683         when type if a fixed-point type.
5685 2015-07-20  DJ Delorie  <dj@redhat.com>
5687         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
5688         (iorqi3_real): Likewise for set1.
5690 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
5692         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
5693         for !TARGET_64BIT.
5695 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
5697         * graphite-isl-ast-to-gimple.c:
5698         Refactor so that each function can access 'region'. This will help
5699         maintain a parameter rename_map within a region.
5701 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
5703         * config/rs6000/rs6000.md (*lt0_disi): New.
5705 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
5707         PR target/66217
5708         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
5709         "available letters" comment.
5710         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
5711         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
5712         and_2rld_operand):  Delete.
5713         (and_operand): Adjust.
5714         (rotate_mask_operator): New.
5715         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
5716         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
5717         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
5718         extract_ME): Delete.
5719         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
5720         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
5721         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
5722         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
5723         rs6000_emit_2insn_and): New.
5724         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
5725         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
5726         includes_rldic_lshift_p, includes_rldicr_lshift_p,
5727         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
5728         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
5729         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
5730         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
5731         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
5732         rs6000_emit_2insn_and): New.
5733         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
5734         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
5735         handling.
5736         <NOT>: Don't fall through to next case.
5737         <AND>: Handle the various rotate-and-mask cases directly.
5738         <IOR>: Always cost as one insn.
5739         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
5740         (and<mode>3): Adjust expander for the new patterns.
5741         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
5742         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
5743         (*and<mode>3_imm_dot_shifted): New.
5744         (*and<mode>3_mask): Delete, rewrite as ...
5745         (and<mode>3_mask): ... New.
5746         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
5747         (andsi3_internal0_nomc): Delete.
5748         (*andsi3_internal6): Delete.
5749         (*and<mode>3_2insn): New.
5750         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
5751         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
5752         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
5753         *insvdi_internal3): Delete.
5754         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
5755         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
5756         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
5757         *ior<mode>_mask): New.
5758         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
5759         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
5760         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
5761         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
5762         Delete.
5763         (ashr<mode>3): Delete expander.
5764         (*ashr<mode>3): Rename to ...
5765         (ashr<mode>3): ... This.
5766         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
5767         (*rotldi3_internal4, *rotldi3_internal5 and split,
5768         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
5769         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
5770         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
5771         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
5772         (splitter for loading a mask): Adjust.
5773         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
5775 2015-07-20  Marek Polacek  <polacek@redhat.com>
5777         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
5778         output_add_clobbers, output_added_clobbers_hard_reg_p,
5779         gen_rtx_scratch): Remove declarations.
5781 2015-07-20  Marek Polacek  <polacek@redhat.com>
5783         PR c++/55095
5784         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
5786 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5788         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
5789         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
5791 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5793         * combine.c (combine_simplify_rtx): Move simplification step
5794         before various transformations/substitutions.
5796 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
5798         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
5799         (struct int_traits): Likewise.
5801 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5803         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
5804         function to vmsdbgout_function_decl.
5806 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
5808         PR target/66922
5809         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
5810         from misaligned positions.
5811         (ix86_expand_pinsr): Reject insertions to misaligned positions.
5813 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
5815         PR middle-end/46851
5816         PR middle-end/60340
5817         * Makefile.in: Removed omega.o.
5818         * common.opt: Document flag fcheck-data-deps as deprecated.
5819         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
5820         its associated params: omega-max-vars, omega-max-geqs,
5821         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
5822         omega-max-keys, omega-eliminate-redundant-constraints.
5823         * doc/loop.texi: Remove all the section on Omega.
5824         * graphite-blocking.c: Include missing params.h: it used to be
5825         included through tree-data-ref.h and omega.h.
5826         * graphite-isl-ast-to-gimple.c: Same.
5827         * graphite-optimize-isl.c: Same.
5828         * graphite-sese-to-poly.c: Same.
5829         * graphite.c: Same.
5830         * omega.c: Remove.
5831         * omega.h: Remove.
5832         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
5833         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
5834         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
5835         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
5836         * passes.def: Remove pass_check_data_deps.
5837         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
5838         (dump_conflict_function): Same.
5839         (dump_subscript): Same.
5840         (print_direction_vector): Same.
5841         (print_dir_vectors): Same.
5842         (print_lambda_vector): Same.
5843         (print_dist_vectors): Same.
5844         (dump_data_dependence_relation): Same.
5845         (dump_data_dependence_relations): Same.
5846         (dump_dist_dir_vectors): Same.
5847         (dump_ddrs): Same.
5848         (init_omega_eq_with_af): Removed.
5849         (omega_extract_distance_vectors): Removed.
5850         (omega_setup_subscript): Removed.
5851         (init_omega_for_ddr_1): Removed.
5852         (init_omega_for_ddr): Removed.
5853         (ddr_consistent_p): Removed.
5854         (compute_affine_dependence): Do not use omega to check data
5855         dependences.
5856         (compute_data_dependences_for_bb): Removed.
5857         (analyze_all_data_dependences): Removed.
5858         (tree_check_data_deps): Removed.
5859         * tree-data-ref.h: Do not include omega.h.
5860         (compute_data_dependences_for_bb): Removed.
5861         (tree_check_data_deps): Removed.
5862         * tree-ssa-loop.c (pass_check_data_deps): Removed.
5863         (make_pass_check_data_deps): Removed.
5864         * tree-ssa-phiopt.c: Include params.h.
5865         * tree-vect-data-refs.c: Same.
5866         * tree-vect-slp.c: Same.
5868 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
5870         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
5871         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
5872         (mem->fpreg splitters): Ditto.
5873         (general_operand->nonimmediate_operand splitter): Use explicit modes.
5874         Disable DFmode for TARGET_64BIT.
5876 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
5878         PR target/66906
5879         * config/i386/i386.c (ix86_expand_prologue): Replicate static
5880         chain on the stack.
5882 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5884         * config/nvptx/mkoffload.c (process): Constify host data.
5885         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5886         Constify host data.
5887         (generate_host_descr_file): Likewise.
5889 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
5890             Sebastian Pop  <s.pop@samsung.com>
5892         PR middle-end/61929
5893         * graphite-dependences.c (add_pdr_constraints): Renamed
5894         pdr->extent to pdr->subscript_sizes.
5895         * graphite-interchange.c (build_linearized_memory_access): Add
5896         back all gcc_assert's that the "isl_int to isl_val conversion"
5897         patch has removed.  Refactored.
5898         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
5899         * graphite-poly.c (new_poly_dr): Same.
5900         (free_poly_dr): Same.
5901         * graphite-poly.h (struct poly_dr): Same.
5902         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
5903         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
5904         * graphite-scop-detection.h: Fix space.
5905         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
5906         back all gcc_assert's removed by a previous patch.
5907         (wrap): Remove the_isl_ctx global variable that the same patch has
5908         added.
5909         (build_loop_iteration_domains): Same.
5910         (add_param_constraints): Same.
5911         (pdr_add_data_dimensions): Same.  Refactored.
5912         (build_poly_dr): Renamed extent to subscript_sizes.
5914 2015-07-17  Marek Polacek  <polacek@redhat.com>
5916         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
5917         * match.pd: ... here.
5919 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5921         * config/nvptx/mkoffload.c (process): Constify target data.
5922         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
5923         Constify target data.
5924         (generate_target_offloadend_file): Likewise.
5926 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
5928         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
5929         to allow renaming of PHI arguments on edges incoming from outer
5930         loop header, add corresponding check before start PHI iterator.
5931         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
5932         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
5933         with true force_vectorize.  Set-up dominator for outer loop too.
5934         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
5935         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
5936         was marked with force_vectorize and has restricted cfg.
5937         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
5938         inner loop.
5939         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
5940         do peeling for outer loops.
5942 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
5943             Matthias Klose  <doko@ubuntu.com>
5945         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
5946         build-sysroot, sysroot from the `Miscenalleous configure options' to
5947         the `Directories' section and strip trailing `/' from with_sysroot.
5948         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
5949         * configure: Regenerated.
5951 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5953         PR target/66824
5954         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
5955         (TARGET_HARD_DF_REGS): Ditto.
5956         (TARGET_HARD_XF_REGS): Ditto.
5957         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
5958         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
5959         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
5960         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
5961         (*movsf_internal): Add alternatives 16 and 17. Enable
5962         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
5964 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
5966         PR rtl-optimization/66891
5967         * calls.c (expand_call): Wrap precompute_register_parameters with
5968         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
5970 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5972         * config/nvptx/mkoffload.c (process): Constify mapping variables.
5973         Define target data struct and initialize it.
5975 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
5977         PR rtl-optimization/66626
5978         * ira.h (emit-rtl.h): Include.
5979         (non_spilled_static_chain_regno_p): New.
5980         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
5981         unless it is non spilled static chain pseudo.
5982         (assign_hard_rego): Spill memory profitable allocno unless it is
5983         non spilled static chain pseudo.
5984         (allocno_spill_priority_compare): Put non spilled static chain
5985         pseudo at the end of sorted array.
5986         (improve_allocation): Do nothing if we have static chain and
5987         non-local goto.
5988         (allocno__priority_compare_func): Put non spilled static chain
5989         pseudo at the beginning of sorted array.
5990         (move_spill_restore): Ignore non spilled static chain pseudo.
5991         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
5992         to non spilled static chain pseudo.
5993         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
5994         pseudo at the beginning of sorted array.
5995         (spill_for): Spill non spilled static chain pseudo last.
5996         * lra-constraints.c (lra_constraints): Remove static chain pseudo
5997         check for equivalence.
5999 2015-07-16  Martin Liska  <mliska@suse.cz>
6001         PR ipa/66896.
6002         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
6003         dst_ctx if it does not exist.
6005 2015-07-16  Martin Liska  <mliska@suse.cz>
6007         * hash-set.h (remove): New function.
6008         (iterator): New iteration class for hash_set.
6010 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6012         * genattrtab.c (make_canonical): Add a file_location parameter.
6013         Use fatal_at rather than fatal.
6014         (get_attr_value): Likewise.  Update call to make_canonical.
6015         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
6016         (make_internal_attr): Update calls accordingly.
6018 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6020         * read-md.h (message_with_line, error_with_line): Delete.
6021         * read-md.c (message_with_line, error_with_line): Delete.
6022         * gensupport.h: Include read-md.h.
6023         (md_rtx_info): New structure.
6024         (read_md_rtx): Use it.  Return a bool success value.
6025         * gensupport.c (read_md_rtx): Likewise.
6026         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
6027         (main): Update after interface changes.
6028         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
6029         (main): Update after interface changes.
6030         * genattrtab.c (insn_code_number): Delete.
6031         (optimize_attrs): Add a max_insn_code parameter and use it instead
6032         of insn_code_number.
6033         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
6034         Use *_at rather than *_with_line functions.
6035         (gen_insn): Likewise.
6036         (gen_delay): Likewise.
6037         (gen_insn_reserv): Likewise.
6038         (gen_bypass): Take an md_rtx_info rather than an rtx.
6039         (main): Update after interface changes.  Use a local max_insn_code
6040         variable instead of insn_code_number.
6041         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
6042         an rtx.  Use fatal_at rather than fatal.
6043         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
6044         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
6045         (gen_absence_set, gen_final_absence_set, gen_automaton)
6046         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
6047         (main): Update after interface changes.
6048         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
6049         and code number.
6050         (main): Update after interface changes.
6051         * genconditions.c (main): Use new read_md_rtx interface.
6052         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
6053         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
6054         (main): Update after interface changes.
6055         * genemit.c (insn_code_number, insn_index_number): Delete.
6056         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6057         Use fatal_at rather than fatal.
6058         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
6059         rather than fatal.
6060         (gen_split): Likewise.
6061         (main): Update after interface changes.
6062         * genextract.c (line_no): Delete.
6063         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6064         Update call to walk_rtx.
6065         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
6066         rather than message_with_line.
6067         (walk_rtx): Add an md_rtx_info argument.  Update call to
6068         VEC_safe_set_locstr.
6069         (main): Update after interface changes.
6070         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
6071         and lineno.  Use error_at rather than separate message_with_line
6072         calls and have_error assignments.
6073         (main): Update after interface changes.
6074         * genmddump.c (main): Use new read_md_rtx interface.
6075         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
6076         (main): Update after interface changes.
6077         * genoutput.c (next_code_number): Delete.
6078         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
6079         (gen_peephole, gen_expand, gen_split): Likewise.
6080         (note_constraint): Likewise.  Use *_at rather than *_with_line
6081         functions.
6082         (main): Update after interface changes.
6083         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
6084         rtx and lineno.
6085         (main): Update after interface changes.
6086         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
6087         than an rtx and lineno.
6088         (process_define_constraint): Likewise.
6089         (process_define_register_constraint): Likewise.
6090         (main): Update after interface changes.
6091         * genrecog.c (next_insn_code, pattern_lineno): Delete.
6092         (validate_pattern): Replace top-level rtx with an md_rtx_info.
6093         Use *_at rather than *_with_line functions.
6094         (match_pattern_2): Likewise.
6095         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
6096         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
6097         Use *_at rather than *_with_line functions.
6098         * gentarget-def.c (add_insn): New function.
6099         (main): Use it.  Use new read_md_rtx interface.
6101 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6103         * gensupport.h (compute_test_codes): Take a file_location rather
6104         than a line number.
6105         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
6106         rather than *_with_line functions.
6107         (process_define_predicate): Update call to compute_test_codes.
6108         * genpreds.c (validate_exp): Take a file_location rather than a
6109         line number.  Use *_at functions rather than *_with_line functions.
6110         (process_define_predicate): Update call to validate_exp.
6111         (constraint_data): Replace lineno field with a file_location.
6112         (add_constraint): Take a file_location rather than a line number.
6113         Use *_at functions rather than *_with_line functions.  Fix error
6114         message for address constraints.  Update after changes to
6115         validate_exp, constraint_data and compute_test_codes.
6116         (process_define_constraint): Update accordingly.
6117         (process_define_register_constraint): Likewise.
6119 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6121         * genoutput.c (data): Use a file_location to record the source
6122         position.
6123         (nothing): Delete.
6124         (idata, idata_end): Remove initialization.
6125         (constraint_data): Replace lineno with a file_location.
6126         (output_insn_data): Update after changes to data.
6127         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
6128         (scan_operands): Likewise, using *_at rather than *_with_line
6129         functions.
6130         (process_template): Likewise.
6131         (validate_insn_alternatives): Likewise.
6132         (validate_insn_operands): Likewise.
6133         (validate_optab_operands): Likewise.
6134         (init_insn_for_nothing): Initialize idata and idata_end.
6135         (note_constraint): Update after changes to constraint_data,
6136         using at rather than with_line functions.
6137         (mdep_constraint_len): Take a file_location rather than a
6138         line number.  Use at rather than with_line functions.
6140 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6142         * read-md.h (fatal_at): Declare.
6143         * read-md.c (fatal_at): New function.
6144         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
6145         to record the source position.
6146         (check_attr_test): Take a file_location instead of a line number.
6147         Use fatal_at instead of fatal.
6148         (check_attr_value): Update after above changes, using "at"
6149         rather than "with_line" reporting functions.
6150         (convert_set_attr_alternative): Likewise.
6151         (gen_attr): Likewise.
6152         (check_defs): Likewise.  Don't assign to read_md_filename.
6153         (gen_insn): Update initialization after above changes.
6154         (gen_delay): Likewise.
6155         (write_insn_cases): Print the filename for a define_peephole.
6156         (gen_insn_reserv): Take a line number as argument and update
6157         the call to check_attr_test.
6158         (main): Pass a line number to gen_insn_reserv.
6160 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6162         * read-md.h (file_location): New structure.
6163         (directive_handler_t): Take a file_location rather than a line number.
6164         (message_at, error_at): Declare.
6165         (read_skip_construct): Delete.
6166         * read-md.c (message_with_line_1): Replace with...
6167         (message_at_1): ...this new function.
6168         (message_at, error_at): New functions.
6169         (message_with_line, error_with_line): Update to use message_at_1.
6170         (handle_enum): Take a file_location rather than a line number
6171         and use error_at for error reporting.
6172         (handle_include): Likewise.
6173         (read_skip_construct): Likewise.  Make static.
6174         (handle_file): Update after above changes.  Pass a file_location
6175         rather than a line number to handle_directive.
6176         * gensupport.c (queue_elem): Replace separate filename and lineno
6177         with a file_location.
6178         (queue_pattern): Replace filename and lineno arguments with a
6179         file_location.  Update after change to queue_elem.
6180         (process_define_predicate): Replace lineno argument with a
6181         file_location and use error_at for error reporting.  Update
6182         after above changes.
6183         (process_rtx): Likewise.
6184         (subst_pattern_match): Likewise.
6185         (get_alternatives_number): Likewise.
6186         (alter_predicate_for_insn): Likewise.
6187         (rtx_handle_directive): Likewise.
6188         (is_predicable): Update after above changes, using error_at rather
6189         than error_with_line.
6190         (has_subst_attribute): Likewise.
6191         (identify_predicable_attribute): Likewise.
6192         (alter_attrs_for_subst_insn): Likewise.
6193         (process_one_cond_exec): Likewise.
6194         (process_substs_on_one_elem): Likewise.
6195         (process_define_subst): Likewise.
6196         (check_define_attr_duplicates): Likewise.
6197         (read_md_rtx): Update after change to queue_elem.
6199 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6201         * genoutput.c (next_index_number): Delete.
6202         (data): Remove index_number.
6203         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
6204         (main): Remove manipulation of next_index_number.
6206 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
6208         * genattrtab.c (check_attr_value): Remove handling of null attrs.
6209         (make_canonical): Likewise.
6211 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
6213         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
6214         instead of adjust_address_nv.
6215         (restore_stack_nonlocal): Likewise.
6216         (nonlocal_goto): Likewise.
6218 2015-07-16  Tom de Vries  <tom@codesourcery.com>
6220         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
6221         not have a corresponding loop header phi.
6223 2015-07-16  Tom de Vries  <tom@codesourcery.com>
6225         * tree-parloops.c (create_loads_for_reductions): Handle case that
6226         reduction is unused.
6228 2015-07-16  Richard Biener  <rguenther@suse.de>
6230         PR tree-optimization/66894
6231         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
6232         about deriving NE_EXPR from truncated values.
6234 2015-07-16  Martin Liska  <mliska@suse.cz>
6236         * alloc-pool.h
6237         (object_allocator): Add new class.
6238         (pool_allocator::initialize): Use the underlying class.
6239         (pool_allocator::allocate): Likewise.
6240         (pool_allocator::remove): Likewise.
6241         (operator new): A new generic allocator.
6242         * asan.c (struct asan_mem_ref): Remove unused members.
6243         (asan_mem_ref_new): Replace new operator with
6244         object_allocator::allocate.
6245         (free_mem_ref_resources): Change deallocation.
6246         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
6247         with object_allocator.
6248         * config/sh/sh.c (add_constant): Replace new operator with
6249         object_allocator::allocate.
6250         (sh_reorg): Change call to a release method.
6251         * cselib.c (struct elt_list): Remove unused members.
6252         (new_elt_list): Replace new operator with
6253         object_allocator::allocate.
6254         (new_elt_loc_list): Likewise.
6255         (new_cselib_val): Likewise.
6256         (unchain_one_elt_list): Change delete operator with remove method.
6257         (unchain_one_elt_loc_list): Likewise.
6258         (unchain_one_value): Likewise.
6259         (cselib_finish): Release newly added static allocators.
6260         * cselib.h (struct cselib_val): Remove unused members.
6261         (struct elt_loc_list): Likewise.
6262         * df-problems.c (df_chain_alloc): Replace pool_allocator with
6263         object_allocator.
6264         * df-scan.c (struct df_scan_problem_data): Likewise.
6265         (df_scan_alloc): Likewise.
6266         * df.h (struct dataflow): Likewise.
6267         * dse.c (struct read_info_type): Likewise.
6268         (struct insn_info_type): Likewise.
6269         (struct dse_bb_info_type): Likewise.
6270         (struct group_info): Likewise.
6271         (struct deferred_change): Likewise.
6272         (get_group_info): Likewise.
6273         (delete_dead_store_insn): Likewise.
6274         (free_read_records): Likewise.
6275         (replace_read): Likewise.
6276         (check_mem_read_rtx): Likewise.
6277         (scan_insn): Likewise.
6278         (dse_step1): Likewise.
6279         (dse_step7): Likewise.
6280         * et-forest.c (struct et_occ): Remove unused members.
6281         (et_new_occ): Use allocate instead of new operator.
6282         (et_new_tree): Likewise.
6283         (et_free_tree): Call release method explicitly.
6284         (et_free_tree_force): Likewise.
6285         (et_free_pools): Likewise.
6286         (et_split): Use remove instead of delete operator.
6287         * et-forest.h (struct et_node): Remove unused members.
6288         * ipa-cp.c: Change pool_allocator to object_allocator.
6289         * ipa-inline-analysis.c: Likewise.
6290         * ipa-profile.c: Likewise.
6291         * ipa-prop.c: Likewise.
6292         * ipa-prop.h: Likewise.
6293         * ira-build.c (initiate_cost_vectors): Cast return value.
6294         (ira_allocate_cost_vector): Likewise.
6295         * ira-color.c (struct update_cost_record): Remove unused members.
6296         * lra-int.h (struct lra_live_range): Likewise.
6297         (struct lra_copy): Likewise.
6298         (struct lra_insn_reg): Likewise.
6299         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
6300         * lra.c (new_insn_reg): Replace new operator with allocate method.
6301         (free_insn_regs): Same for operator delete.
6302         (finish_insn_regs): Release new static allocator.
6303         (finish_insn_recog_data): Likewise.
6304         (lra_free_copies): Replace delete operator with remove method.
6305         (lra_create_copy): Replace operator new with allocate method.
6306         (invalidate_insn_data_regno_info): Same for remove method.
6307         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
6308         (free_debug_insn_changes): Replace delete operator with remove method.
6309         (replace_oldest_value_reg): Replace operator new with allocate method.
6310         (pass_cprop_hardreg::execute): Release new static variable.
6311         * sched-deps.c (sched_deps_init): Change pool_allocator to
6312         object_allocator.
6313         * sel-sched-ir.c: Likewise.
6314         * sel-sched-ir.h: Likewise.
6315         * stmt.c (expand_case): Likewise.
6316         (expand_sjlj_dispatch_table): Likewise.
6317         * tree-sra.c (struct access): Remove unused members.
6318         (struct assign_link): Likewise.
6319         (sra_deinitialize): Release newly added static pools.
6320         (create_access_1):Replace operator new with allocate method.
6321         (build_accesses_from_assign): Likewise.
6322         (create_artificial_child_access): Likewise.
6323         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
6324         pool_allocator to object_allocator.
6325         * tree-ssa-pre.c: Likewise.
6326         * tree-ssa-reassoc.c: Likewise.
6327         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
6328         * tree-ssa-strlen.c: Likewise.
6329         * tree-ssa-structalias.c: Likewise.
6330         * var-tracking.c (onepart_pool_allocate): New function.
6331         (unshare_variable): Use the newly added function.
6332         (variable_merge_over_cur): Likewise.
6333         (variable_from_dropped): Likewise.
6334         (variable_was_changed): Likewise.
6335         (set_slot_part): Likewise.
6336         (emit_notes_for_differences_1): Likewise.
6337         (vt_finalize): Release newly added static pools.
6339 2015-07-16  Martin Jambor  <mjambor@suse.cz>
6341         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
6342         all uses.  Fix two typos in its general comment.
6343         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
6345 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
6347         * config/i386/linux-common.h (LINK_MPX): New.
6348         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
6349         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
6350         indicating '-z bndplt' support by linker.
6351         * configure: Regenerate.
6352         * config.in: Regenerate.
6354 2015-07-16  Richard Biener  <rguenther@suse.de>
6356         * fold-const.c (fold_widened_comparison): Remove.
6357         (fold_sign_changed_comparison): Likewise.
6358         (fold_comparison): Move widened and sign-changed comparison
6359         simplification ...
6360         * match.pd: ... to patterns here.
6361         * generic-match-head.c: Include target.h.
6362         * gimple-match-head.c: Likewise.
6364 2015-07-16  Richard Biener  <rguenther@suse.de>
6366         * tree-ssa-dom.c (dom_valueize): New function.
6367         (record_temporary_equivalences): Also record equivalences
6368         for dominating stmts that have uses of equivalences we are
6369         about to record.
6371 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
6373         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
6374         add_autoinc_candidates.
6375         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
6376         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
6377         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
6378         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
6379         Call new function.
6380         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
6381         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
6382         Remove parameter struct iv*.  Call add_autoinc_candidates here.
6383         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
6384         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
6385         Call new function.
6386         (find_iv_candidates): Call new functions.
6388 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
6390         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
6391         uninitialized-variable warning.
6393 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
6395         PR target/65249
6396         * config/sh/sh.md (movdi): Split simple reg move to two movsi
6397         when the destination is R0.
6399 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
6401         PR target/66866
6402         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
6403         * config/i386/i386.c (ix86_expand_pextr): New function.
6404         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
6405         for non-lowpart subregs.
6406         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
6407         (insv<mode>): Use SWI248 mode iterator.
6408         (insv<mode>_1): Ditto.
6410 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
6411             Sebastian Pop  <s.pop@samsung.com>
6413         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
6414         iterator to use_stmt.
6416 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
6417             Sebastian Pop <s.pop@samsung.com>
6419         * graphite-scop-detection.c (build_scops_1): Discard scops for
6420         which entry==exit.
6422 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
6423             Sebastian Pop <s.pop@samsung.com>
6425         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
6426         case of a return statement in scop.
6428 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
6429             Sebastian Pop <s.pop@samsung.com>
6431         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
6432         INTEGER_TYPE parameters.
6433         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
6434         VECTOR_CST in scan_tree_for_params.
6435         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
6437 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
6439         * gimple-pretty-print.h: Don't include pretty-print.h.
6440         * tree-streamer.h: Don't include lto-streamer.h.
6441         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
6442         * gimple-streamer-in.c: Remove redundant includes.
6443         * gimple-streamer-out.c: Likewise.
6444         * ipa-devirt.c: Likewise.
6445         * ipa-icf.c: Likewise.
6446         * ipa-inline-analysis.c: Likewise.
6447         * ipa-polymorphic-call.c: Likewise.
6448         * ipa-profile.c: Likewise.
6449         * ipa-prop.c: Likewise.
6450         * ipa-pure-const.c: Likewise.
6451         * lto-cgraph.c: Likewise.
6452         * lto-streamer-in.c: Likewise.
6453         * lto-streamer-out.c: Likewise.
6454         * lto-streamer.c: Likewise.
6455         * tree-streamer-in.c: Likewise.
6456         * tree-streamer-out.c: Likewise.
6457         * tree-streamer.c: Likewise.
6459 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
6461         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
6462         include input.h.
6463         * opts.c: Remove multiline #include comment.
6465 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
6467         * config/nvptx/mkoffload.c (process): Add C++ protection to
6468         emitted code.
6470 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6472         PR target/66854
6473         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
6474         null before IEEE 128-bit floating point support patch.
6476 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6478         * simplify-rtx.c (simplify_ternary_operation): Add simplification
6479         for (!c) != {0,...,0} ? a : b for vector modes.
6481 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
6482             Martin Jambor  <mjambor@suse.cz>
6484         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
6485         struct func_body_info* instead of struct ipa_node_params*, expecting
6486         fbi->info to be filled in.  Replace throughout.  Adjust call to
6487         ipa_load_from_parm_agg.
6488         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
6489         instead of struct ipa_node_params*.  Adjust calls to other functions
6490         so that they pass either fbi or fbi->info.
6491         (set_switch_stmt_execution_predicate): Likewise.
6492         (will_be_nonconstant_predicate): Likewise.
6493         (compute_bb_predicates): Likewise.
6494         (estimate_function_body_sizes): Move asserts earlier.  Fill in
6495         struct func_body_info, replace parms_info with fbi.info.  Adjust
6496         calls to functions that now accept struct func_body_info.
6497         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
6498         (struct func_body_info): Likewise.
6499         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
6500         remove static.  Adjust callers.
6501         (ipa_load_from_parm_agg): Remove.
6502         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
6503         (func_body_info): Likewise.
6504         (ipa_load_from_parm_agg): Adjust prototype.
6506 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6508         * gensupport.c (rtx_handle_directive): Adjust.
6509         * read-rtl.c (apply_iterators): Take vector to add rtxs to
6510         instead of expr list rtx.
6511         (add_define_attr_for_define_subst): Likewise.
6512         (add_define_subst_attr): Likewise.
6513         (read_subst_mapping): Likewise.
6514         (read_rtx): Likewise.
6515         * rtl.h (read_rtx): Adjust.
6517 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6519         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
6521 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
6523         PR target/58066
6524         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
6525         (*tls_local_dynamic_base_64_<mode>): Ditto.
6526         (*tls_local_dynamic_base_64_largepic): Ditto.
6527         (tls_global_dynamic_64_<mode>): Update expander pattern.
6528         (tls_local_dynamic_base_64_<mode>): Ditto.
6530 2015-07-15  Richard Biener  <rguenther@suse.de>
6532         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
6533         and bool_var == 1 -> bool_var simplifications ...
6534         * match.pd: ... to patterns here.  Factor out negate_expr_p
6535         cases from the A - B -> A + (-B) patterns as negate_expr_p
6536         predicate and add a -(A + B) -> (-B) - A pattern.
6538 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
6540         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
6542 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
6543             Robert Suchanek  <robert.suchanek@imgtec.com>
6545         * config/mips/mips.c (mips_int_mask): New enum.
6546         (mips_shadow_set): Likewise.
6547         (int_mask): New variable.
6548         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
6549         (machine_function): Add int_mask and use_shadow_register_set.
6550         (mips_attribute_table): Add attribute handlers for interrupt and
6551         use_shadow_register_set.
6552         (mips_interrupt_mask): New static function.
6553         (mips_handle_interrupt_attr): Likewise.
6554         (mips_handle_use_shadow_register_set_attr): Likewise.
6555         (mips_use_shadow_register_set): Change return type to enum
6556         mips_shadow_set.  Add argument handling for use_shadow_register_set
6557         attribute.
6558         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
6559         compare with mips_shadow_set enum.
6560         (mips_compute_frame_info): Add interrupt mask and
6561         use_shadow_register_set to per-function information structure.
6562         Add a stack slot for EPC unconditionally.
6563         (mips_expand_prologue): Compare use_shadow_register_set value
6564         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
6565         masked interrupt register but in EIC mode use K0 and save Cause in K0.
6566         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
6567         copying the stack pointer from the shadow register set.
6568         * config/mips/mips.h (SR_IM0): New define.
6569         * config/mips/mips.md (mips_rdpgpr): Rename to...
6570         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
6571         * doc/extend.texi (Declaring Attributes of Functions): Document
6572         optional arguments for interrupt and use_shadow_register_set
6573         attributes.
6575 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
6577         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
6578         interrupt attribute.
6579         (mips_expand_prologue): Disable the floating point unit in an ISR.
6580         * config/mips/mips.h (SR_COP1): New define.
6582 2015-07-15  Richard Biener  <rguenther@suse.de>
6584         * genmatch.c (parser::peek, parser::peek_ident): Add argument
6585         to tell how many tokens to peek ahead (default 1).
6586         (parser::eat_token, parser::eat_ident): Return token consumed.
6587         (parser::parse_result): Parse new switch statement.
6588         * match.pd: Use case statements where appropriate.
6590 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
6592         PR rtl-optimization/58066
6593         * calls.c (expand_call): Precompute register parameters before stack
6594         alignment is performed.
6596 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
6598         PR rtl-optimization/66838
6599         * postreload.c (reload_cse_move2add): Also process
6600         CALL_INSN_FUNCTION_USAGE when resetting information of
6601         call-clobbered registers.
6603 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6604             Cesar Philippidis  <cesar@codesourcery.com>
6605             Chung-Lin Tang  <cltang@codesourcery.com>
6607         * config/nios2/constraints.md (U, v): New constraints.
6608         * config/nios2/predicates.md (rdprs_dcache_operand): New.
6609         (ldstex_memory_operand): New.
6610         * config/nios2/sync.md: New file.
6611         * config/nios2/nios2.md (unspecv): Add new builtin function
6612         UNSPECV codes.
6613         (rdprs, flushd, flushda, wrpie, eni): New patterns.
6614         (top-level): Include sync.md.
6615         * config/nios2/nios2.c (N2_FTYPES): Add function types for
6616         new builtins.
6617         (N2_BUILTINS): Add arch field setting, add new builtins.
6618         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
6619         for arch field.
6620         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
6621         Also handle ldex/stex/ldsex/stsex builtins.
6622         (nios2_expand_rdprs_builtin): New function.
6623         (nios2_expand_cache_builtin): New function.
6624         (nios2_expand_wrpie_builtin): New function.
6625         (nios2_expand_eni_builtin): New function.
6626         (nios2_expand_builtin): Add arch field handling and new builtin
6627         cases.
6628         * doc/extend.texi (Altera Nios II Built-in Functions): Document
6629         new builtins.
6630         * doc/md.texi (Machine Constraints): Document U and v constraints.
6632 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6633             Cesar Philippidis  <cesar@codesourcery.com>
6634             Chung-Lin Tang  <cltang@codesourcery.com>
6636         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
6637         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
6638         callee_save_reg_size and uses_anonymous_args fields.
6639         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
6640         (nios2_create_cfa_notes): New function.
6641         (nios2_adjust_stack): New function for adjusting stack.
6642         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
6643         Use nios2_adjust_stack.
6644         (nios2_expand_epilogue): Likewise.
6645         (nios2_expand_return): New function.
6646         (nios2_can_use_return_insn): Update for CDX pop.n usage.
6647         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
6648         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
6649         * config/nios2/nios2.md (return): Use nios2_expand_return.
6651 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6652             Cesar Philippidis  <cesar@codesourcery.com>
6653             Chung-Lin Tang  <cltang@codesourcery.com>
6655         * config/nios2/predicates.md (pop_operation): New.
6656         (ldwm_operation, stwm_operation): New.
6657         (nios2_hard_register_operand): New.
6658         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
6659         (ldstwm_operation_p): Declare.
6660         (gen_ldstwm_peep): Declare.
6661         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
6662         (base_reg_adjustment_p): New.
6663         (pop_operation_p): New.
6664         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
6665         (nios2_ldstwm_regset_p): New.
6666         (ldstwm_operation_p): New.
6667         (gen_ldst): New.
6668         (nios2_ldst_parallel): New.
6669         (struct ldswm_operand): Declare.
6670         (compare_ldstwm_operands): New.
6671         (can_use_cdx_ldstw): New.
6672         (gen_ldstwm_peep): New.
6673         * config/nios2/nios2-ldstwm.sml: New.
6674         * config/nios2/nios2.md: Include ldstwm.md.
6675         * config/nios2/ldstwm.md: Generated.
6677 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6678             Cesar Philippidis  <cesar@codesourcery.com>
6679             Chung-Lin Tang  <cltang@codesourcery.com>
6681         * config/nios2/nios2.h (LABEL_ALIGN): Define.
6682         (REG_ALLOC_ORDER): Define.
6683         (ADJUST_REG_ALLOC_ORDER): Define.
6684         (HONOR_REG_ALLOC_ORDER): Define.
6685         (CDX_REG_P): Define.
6686         (ANDCLEAR_INT): Define.
6687         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
6688         (nios2_label_align): Declare.
6689         (nios2_cdx_narrow_form_p): Declare.
6690         (nios2_adjust_reg_alloc_order): Declare.
6691         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
6692         operation.
6693         (nios2_large_unspec_reloc_p): New function, split from...
6694         (nios2_legitimate_pic_operand_p): ...here.
6695         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
6696         (nios2_print_operand_punct_valid_p): New.
6697         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
6698         (split_mem_address): New.
6699         (split_alu_insn): New.
6700         (cdxreg): New.
6701         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
6702         (enum nios2_add_insn_kind): New.
6703         (nios2_add_insn_names, nios2_add_insn_narrow): New.
6704         (nios2_add_insn_classify): New.
6705         (nios2_add_insn_asm): New.
6706         (nios2_cdx_narrow_form_p): New.
6707         (label_align, min_labelno, max_labelno): New.
6708         (nios2_reorg): New.
6709         (nios2_label_align): New.
6710         (nios2_adjust_reg_alloc_order): New.
6711         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6712         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6713         * config/nios2/constraints.md (P): New constraint.
6714         * config/nios2/predicates.md (const_and_operand): New.
6715         (and_operand): New.
6716         (stack_memory_operand): New.
6717         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
6718         (length): Update to use nios2_cdx_narrow_form_p().
6719         (type): Add new insn type values.
6720         (control, alu, st, ld, shift): Update insn reservations with
6721         new insn type values.
6722         (*high, *lo_sum): Define new insn patterns for constant generation.
6723         (movqi_internal, movhi_internal, movsi_internal): Reduce
6724         alternatives, update asm template to handle CDX variants, update
6725         type attributes.
6726         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
6727         template, update type attributes.
6728         (extendhisi2, extendqi<mode>2): Likewise.
6729         (addsi3): Change to use function for asm string.
6730         (subsi3): Add CDX notation to asm template, update type attributes.
6731         (negsi3, one_cmplsi3): Likewise.
6732         (andsi3): New pattern, specialized from logical patterns.
6733         (<code>si3): Remove and case, combine alternatives, update asm
6734         template.
6735         (<shift_op>si3): Add CDX notation, update type attributes.
6736         (rotrsi3): Update type attribute.
6737         (*merge, extzv, insv): New insn patterns.
6738         (return): Change to define_expand.
6739         (simple_return): Add CDX notation, update type attributes.
6740         (indirect_jump): Add CDX notation.
6741         (jump): Update asm cases, update length attribute expression.
6742         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
6743         (nios2_cbranch): Update asm cases and length attribute expression
6744         to handle CDX variants.
6745         (nios2_cmp<code>): Update asm template.
6746         (nop): Add CDX notation, update type attributes.
6747         (trap): Add CDX notation.
6748         (ctrapsi4): Update asm cases and length attribute expression to
6749         handle CDX variant.
6750         * doc/md.texi (Machine Constraints): Document P constraint.
6752 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6753             Cesar Philippidis  <cesar@codesourcery.com>
6754             Chung-Lin Tang  <cltang@codesourcery.com>
6756         * config/nios2/nios2.h (SMALL_INT12): New macro.
6757         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
6758         (nios2_valid_addr_expr_p): Use it.
6759         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
6760         with implicit "io" instructions on R2.
6761         * config/nios2/constraints.md (w): New constraint.
6762         * config/nios2/predicates.md (ldstio_memory_operand): New.
6763         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
6764         operand predicate and constraint.
6765         (ld<bh>io_signed, st<bhw>io>): Likewise.
6766         * doc/md.texi (Machine Constraints): Document w constraint.
6768 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6769             Cesar Philippidis  <cesar@codesourcery.com>
6770             Chung-Lin Tang  <cltang@codesourcery.com>
6772         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
6773         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
6774         Nios II architecture level.
6775         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
6776         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
6777         (OPTION_DEFAULT_SPECS): Define.
6778         (ASM_SPEC): Add -march= spec strings.
6779         * config/nios2/nios2.c (nios2_option_override): Check for
6780         conflicts involving new options.
6781         * config.gcc (nios2*-*-*): Support --with-arch=.
6782         * doc/invoke.texi (Option Summary, Nios II Options): Document
6783         -march=, -mbmx, and -mcdx.
6785 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
6787         PR rtl-optimization/66626
6788         * lra-constraints.c (lra_constraints): Prevent equivalence
6789         substitution for static chain pseudo in functions with nonlocal
6790         goto.
6792 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
6794         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
6795         (nios2_emit_stack_limit_check): Add size parameter.  Handle
6796         -fstack-limit-symbol as well as -fstack-limit-register.
6797         (nios2_expand_prologue): Emit only a single stack limit check,
6798         even if multiple stack adjustments are required.
6799         (nios2_option_override): Diagnose unsupported combination of -fpic
6800         and -stack-limit-symbol.
6802 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
6804         * Makefile.in (top_srcdir): New.
6805         * configure.ac: Use AM_ZLIB.
6806         * configure: Regeneated.
6808 2015-07-14  Matthias Klose  <doko@ubuntu.com>
6810         PR target/66840
6811         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
6813 2015-07-14  Richard Biener  <rguenther@suse.de>
6815         PR tree-optimization/66863
6816         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
6817         what we record for conversion use stmt lhs inequalities.
6819 2015-07-14  Richard Biener  <rguenther@suse.de>
6821         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
6822         (decision_tree::gen_gimple): Likewise.
6824 2015-07-14  Tom de Vries  <tom@codesourcery.com>
6826         * gcc.c (greater_than_spec_func): Declare forward.
6827         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
6828         -ftree-parallelize-loops={0,1}.
6829         (static_spec_functions): Add greater_than_spec_func function with name
6830         "gt".
6831         (greater_than_spec_func): New function.
6833 2015-07-14  Richard Biener  <rguenther@suse.de>
6835         * tree-ssa-dom.c (record_temporary_equivalences): Merge
6836         wideing type conversion case from record_equivalences_from_incoming_edge
6837         and use record_equality to record equivalences.
6838         (record_equivalences_from_incoming_edge): Call
6839         record_temporary_equivalences.
6841 2015-07-14  Richard Biener  <rguenther@suse.de>
6843         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
6844         (struct if_expr): New.
6845         (struct with_expr): Likewise.
6846         (is_a_helper): Add helpers for if_expr and with_expr.
6847         (struct simplify): Add simplify_kind enum and member.  Remove
6848         ifexpr_vec member.
6849         (simplify::simplify): Adjust.
6850         (lower_commutative): Adjust.
6851         (lower_opt_convert): Likewise.
6852         (lower_cond): Likewise.
6853         (replace_id): Handle with_expr and if_expr.
6854         (lower_for): Adjust.
6855         (dt_simplify::gen_1): New recursive worker, split out from ...
6856         (dt_simplify::gen): ... here.  Deal with if and with expansion
6857         recursively.
6858         (capture_info::capture_info): Take context argument
6859         (capture_info::walk_result): Only analyze specific result.
6860         (parser::parse_result): New function.
6861         (parser::parse_simplify): Adjust to parse ifs with then end
6862         else case.
6863         (parser::parse_if): Simplify.
6864         (parser::parse_pattern): Pass down simplify kind.
6865         * match.pd: Convert if structure to new syntax.
6867 2015-07-13  Marek Polacek  <polacek@redhat.com>
6869         * rtl.c (rtx_equal_p_cb): Fix typo.
6871 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
6873         * omega.h: Don't include config.h, don't include params.h again if
6874         omega.h has already been included.
6875         * graphite-poly.h: Include sese.h.
6876         * graphite.c: Don't include sese.h, remove needless includes and
6877         minimize includes outside #ifdef HAVE_isl block.
6878         * graphite-blocking.c: Don't include sese.h, remove needless includes,
6879         and wrap entire file in #ifdef HAVE_isl
6880         * graphite-dependences.c: Likewise.
6881         * graphite-interchange.c: Likewise.
6882         * graphite-isl-ast-to-gimple.c: Likewise.
6883         * graphite-optimize-isl.c: Likewise.
6884         * graphite-poly.c: Likewise.
6885         * graphite-scop-detection.c: Likewise.
6886         * graphite-sese-to-poly.c: Likewise.
6888 2015-07-13  Tom de Vries  <tom@codesourcery.com>
6890         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
6892 2015-07-13  Renlin Li  <renlin.li@arm.com>
6894         PR rtl/66556
6895         * simplify-rtx.c (simplify_const_relational_operation): Add
6896         side_effects_p checks.
6898 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
6900         * bitmap.h: Fix double word typos.
6901         * builtins.c: Same.
6902         * calls.c: Same.
6903         * cfgloopmanip.c: Same.
6904         * cgraph.c: Same.
6905         * cgraph.h: Same.
6906         * cgraphclones.c: Same.
6907         * combine.c: Same.
6908         * config/aarch64/aarch64-protos.h: Same.
6909         * config/aarch64/aarch64.c: Same.
6910         * config/aarch64/aarch64.md: Same.
6911         * config/arm/arm.md: Same.
6912         * config/arm/arm1020e.md: Same.
6913         * config/arm/arm1026ejs.md: Same.
6914         * config/arm/arm926ejs.md: Same.
6915         * config/arm/fa526.md: Same.
6916         * config/arm/fa606te.md: Same.
6917         * config/arm/fa626te.md: Same.
6918         * config/arm/fa726te.md: Same.
6919         * config/arm/fmp626.md: Same.
6920         * config/darwin.c: Same.
6921         * config/epiphany/epiphany.c: Same.
6922         * config/frv/frv.c: Same.
6923         * config/ft32/ft32.c: Same.
6924         * config/gnu-user.h: Same.
6925         * config/h8300/constraints.md: Same.
6926         * config/i386/i386.c: Same.
6927         * config/i386/i386.md: Same.
6928         * config/iq2000/iq2000.md: Same.
6929         * config/mips/mips.c: Same.
6930         * config/mmix/mmix.md: Same.
6931         * config/moxie/moxie.c: Same.
6932         * config/nds32/nds32.md: Same.
6933         * config/pa/pa.h: Same.
6934         * config/rs6000/aix.h: Same.
6935         * config/rs6000/rs6000.h: Same.
6936         * config/sh/sh.c: Same.
6937         * config/tilegx/tilegx.md: Same.
6938         * config/tilepro/gen-mul-tables.cc: Same.
6939         * cse.c: Same.
6940         * dbxout.c: Same.
6941         * doc/invoke.texi: Same.
6942         * dse.c: Same.
6943         * dwarf2out.c: Same.
6944         * final.c: Same.
6945         * gcc.c: Same.
6946         * genmatch.c: Same.
6947         * gimplify.c: Same.
6948         * hash-table.h: Same.
6949         * internal-fn.c: Same.
6950         * ipa-cp.c: Same.
6951         * ipa-devirt.c: Same.
6952         * ipa-icf.c: Same.
6953         * ipa-icf.h: Same.
6954         * ipa-profile.c: Same.
6955         * ipa-prop.c: Same.
6956         * ipa-prop.h: Same.
6957         * ira.c: Same.
6958         * omp-low.c: Same.
6959         * reg-stack.c: Same.
6960         * regcprop.c: Same.
6961         * reorg.c: Same.
6962         * rtl.h: Same.
6963         * sbitmap.h: Same.
6964         * tree-eh.c: Same.
6965         * tree-inline.c: Same.
6966         * tree-sra.c: Same.
6967         * tree-ssa-dom.c: Same.
6968         * tree-ssa-loop-ivopts.c: Same.
6969         * tree-ssa-structalias.c: Same.
6970         * tree-ssa-tail-merge.c: Same.
6971         * tree-ssa-ter.c: Same.
6972         * tree-ssa-threadupdate.c: Same.
6973         * tree-ssa-uninit.c: Same.
6974         * tree-ssanames.c: Same.
6975         * tree-vect-loop-manip.c: Same.
6976         * tree-vrp.c: Same.
6977         * tree.c: Same.
6978         * valtrack.c: Same.
6979         * vec.h: Same.
6981 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6983         PR middle-end/66726
6984         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
6985         tree_ssa_phiopt_worker): Call it.
6987 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6989         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
6990         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
6991         REG_EQUAL note.
6993 2015-07-11  Marek Polacek  <polacek@redhat.com>
6995         PR middle-end/66353
6996         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
6997         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
6998         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
6999         rather than bb_has_abnormal_call_pred.
7000         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
7001         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
7002         rather than bb_has_abnormal_call_pred.
7004 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
7006         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7007         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
7008         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7009         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
7010         v850_legitimate_address_p): New functions.
7011         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7013 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
7015         PR target/66819
7016         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
7017         indirect sibcall with register arguments if register available
7018         for argument passing.
7019         (init_cumulative_args): Set cfun->machine->arg_reg_available
7020         to (cum->nregs > 0) or to true if function has a variable
7021         argument list.
7022         (function_arg_advance_32): Set cfun->machine->arg_reg_available
7023         to false if cum->nregs <= 0.
7024         * config/i386/i386.h (machine_function): Add arg_reg_available.
7026 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
7028         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
7029         and gen_higpart instead of gen_rtx_SUBREG.
7030         * config/i386/i386.md
7031         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
7032         (read-modify peephole2): Use gen_lowpart instead of
7033         gen_rtx_SUBREG for operand 5.
7035 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
7037         * config/tilepro/gen-mul-tables.cc (main): Change include list for
7038         generated files.
7039         * config/tilepro/mul-tables.c: Regenerate.
7040         * config/tilegx/mul-tables.c: Regenerate.
7042 2015-07-10  Richard Biener  <rguenther@suse.de>
7044         * fold-const.c (distribute_bit_expr): Remove.
7045         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
7046         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
7047         to A & (B | C) and simplifying A << C1 << C2 to ...
7048         * match.pd: ... patterns here.
7050 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
7052         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7053         Mark mem as READONLY and NOTRAP for PIC symbol.
7055 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
7057         * gimple-predict.h: New file.
7058         (gimple_predict_predictor, gimple_predict_set_predictor,
7059         gimple_predict_outcome, gimple_predict_set_outcome,
7060         gimple_build_predict): Relocate here.
7061         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
7062         gimple_predict_outcome, gimple_predict_set_outcome): Move to
7063         gimple-predict.h.
7064         * gimple.c (gimple_build_predict): Move to gimple-predict.h
7065         * basic-block.h: Don't include cfghooks.h.
7066         * backend.h: Don't include predict.h.
7067         * cfghooks.h: Include predict.h.
7068         * gimple-pretty-print.c: Include gimple-predict.h.
7069         * gimplify.c: Likwise.
7070         * predict.c: Adjust includes.
7071         * tree-inline.c: Likewise.
7072         * asan.c: Likewise.
7073         * auto-inc-dec.c: Likewise.
7074         * auto-profile.c: Likewise.
7075         * bb-reorder.c: Likewise.
7076         * builtins.c: Likewise.
7077         * caller-save.c: Likewise.
7078         * calls.c: Likewise.
7079         * cfganal.c: Likewise.
7080         * cfgbuild.c: Likewise.
7081         * cfg.c: Likewise.
7082         * cfgcleanup.c: Likewise.
7083         * cfgexpand.c: Likewise.
7084         * cfghooks.c: Likewise.
7085         * cfgloopanal.c: Likewise.
7086         * cfgloop.c: Likewise.
7087         * cfgloopmanip.c: Likewise.
7088         * cfgrtl.c: Likewise.
7089         * cgraph.c: Likewise.
7090         * cgraphunit.c: Likewise.
7091         * combine.c: Likewise.
7092         * cprop.c: Likewise.
7093         * cse.c: Likewise.
7094         * dce.c: Likewise.
7095         * dojump.c: Likewise.
7096         * dse.c: Likewise.
7097         * except.c: Likewise.
7098         * expmed.c: Likewise.
7099         * expr.c: Likewise.
7100         * final.c: Likewise.
7101         * fold-const.c: Likewise.
7102         * function.c: Likewise.
7103         * fwprop.c: Likewise.
7104         * gcc-plugin.h: Likewise.
7105         * gcse.c: Likewise.
7106         * genattrtab.c: Likewise.
7107         * genemit.c: Likewise.
7108         * gengtype.c: Likewise.
7109         * genopinit.c: Likewise.
7110         * genoutput.c: Likewise.
7111         * genpreds.c: Likewise.
7112         * genrecog.c: Likewise.
7113         * gimple-fold.c: Likewise.
7114         * gimple-iterator.c: Likewise.
7115         * gimple-ssa-isolate-paths.c: Likewise.
7116         * gimple-ssa-strength-reduction.c: Likewise.
7117         * graph.c: Likewise.
7118         * graphite-blocking.c: Likewise.
7119         * graphite.c: Likewise.
7120         * graphite-dependences.c: Likewise.
7121         * graphite-interchange.c: Likewise.
7122         * graphite-isl-ast-to-gimple.c: Likewise.
7123         * graphite-optimize-isl.c: Likewise.
7124         * graphite-poly.c: Likewise.
7125         * graphite-scop-detection.c: Likewise.
7126         * graphite-sese-to-poly.c: Likewise.
7127         * haifa-sched.c: Likewise.
7128         * ifcvt.c: Likewise.
7129         * internal-fn.c: Likewise.
7130         * ipa-cp.c: Likewise.
7131         * ipa-profile.c: Likewise.
7132         * ipa-split.c: Likewise.
7133         * ipa-utils.c: Likewise.
7134         * ira-build.c: Likewise.
7135         * ira-color.c: Likewise.
7136         * ira-conflicts.c: Likewise.
7137         * ira-costs.c: Likewise.
7138         * ira-emit.c: Likewise.
7139         * ira-lives.c: Likewise.
7140         * jump.c: Likewise.
7141         * loop-doloop.c: Likewise.
7142         * loop-init.c: Likewise.
7143         * loop-invariant.c: Likewise.
7144         * loop-unroll.c: Likewise.
7145         * lower-subreg.c: Likewise.
7146         * lra-assigns.c: Likewise.
7147         * lra.c: Likewise.
7148         * lra-coalesce.c: Likewise.
7149         * lra-constraints.c: Likewise.
7150         * lra-lives.c: Likewise.
7151         * lto-cgraph.c: Likewise.
7152         * lto-streamer-in.c: Likewise.
7153         * mode-switching.c: Likewise.
7154         * modulo-sched.c: Likewise.
7155         * omp-low.c: Likewise.
7156         * optabs.c: Likewise.
7157         * passes.c: Likewise.
7158         * postreload.c: Likewise.
7159         * postreload-gcse.c: Likewise.
7160         * profile.c: Likewise.
7161         * recog.c: Likewise.
7162         * regstat.c: Likewise.
7163         * reload1.c: Likewise.
7164         * reorg.c: Likewise.
7165         * rtlanal.c: Likewise.
7166         * sched-ebb.c: Likewise.
7167         * sel-sched-ir.c: Likewise.
7168         * sese.c: Likewise.
7169         * shrink-wrap.c: Likewise.
7170         * simplify-rtx.c: Likewise.
7171         * stmt.c: Likewise.
7172         * store-motion.c: Likewise.
7173         * tracer.c: Likewise.
7174         * trans-mem.c: Likewise.
7175         * tree-call-cdce.c: Likewise.
7176         * tree-cfg.c: Likewise.
7177         * tree-cfgcleanup.c: Likewise.
7178         * tree-chkp.c: Likewise.
7179         * tree-complex.c: Likewise.
7180         * tree-eh.c: Likewise.
7181         * tree-if-conv.c: Likewise.
7182         * tree-loop-distribution.c: Likewise.
7183         * tree-outof-ssa.c: Likewise.
7184         * tree-parloops.c: Likewise.
7185         * tree-predcom.c: Likewise.
7186         * tree-pretty-print.c: Likewise.
7187         * tree-profile.c: Likewise.
7188         * tree-sra.c: Likewise.
7189         * tree-ssa.c: Likewise.
7190         * tree-ssa-coalesce.c: Likewise.
7191         * tree-ssa-dce.c: Likewise.
7192         * tree-ssa-dom.c: Likewise.
7193         * tree-ssa-forwprop.c: Likewise.
7194         * tree-ssa-ifcombine.c: Likewise.
7195         * tree-ssa-loop-ch.c: Likewise.
7196         * tree-ssa-loop-im.c: Likewise.
7197         * tree-ssa-loop-ivcanon.c: Likewise.
7198         * tree-ssa-loop-ivopts.c: Likewise.
7199         * tree-ssa-loop-manip.c: Likewise.
7200         * tree-ssa-loop-prefetch.c: Likewise.
7201         * tree-ssa-loop-unswitch.c: Likewise.
7202         * tree-ssa-math-opts.c: Likewise.
7203         * tree-ssa-phiopt.c: Likewise.
7204         * tree-ssa-pre.c: Likewise.
7205         * tree-ssa-reassoc.c: Likewise.
7206         * tree-ssa-sink.c: Likewise.
7207         * tree-ssa-tail-merge.c: Likewise.
7208         * tree-ssa-threadedge.c: Likewise.
7209         * tree-ssa-threadupdate.c: Likewise.
7210         * tree-switch-conversion.c: Likewise.
7211         * tree-tailcall.c: Likewise.
7212         * tree-vect-data-refs.c: Likewise.
7213         * tree-vect-loop.c: Likewise.
7214         * tree-vect-loop-manip.c: Likewise.
7215         * tree-vectorizer.c: Likewise.
7216         * tree-vrp.c: Likewise.
7217         * ubsan.c: Likewise.
7218         * value-prof.c: Likewise.
7219         * varasm.c: Likewise.
7220         * var-tracking.c: Likewise.
7221         * config/aarch64/aarch64-builtins.c: Likewise.
7222         * config/aarch64/aarch64.c: Likewise.
7223         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7224         * config/alpha/alpha.c: Likewise.
7225         * config/arc/arc.c: Likewise.
7226         * config/arm/arm.c: Likewise.
7227         * config/avr/avr.c: Likewise.
7228         * config/bfin/bfin.c: Likewise.
7229         * config/c6x/c6x.c: Likewise.
7230         * config/cr16/cr16.c: Likewise.
7231         * config/cris/cris.c: Likewise.
7232         * config/darwin.c: Likewise.
7233         * config/darwin-c.c: Likewise.
7234         * config/epiphany/epiphany.c: Likewise.
7235         * config/epiphany/mode-switch-use.c: Likewise.
7236         * config/epiphany/resolve-sw-modes.c: Likewise.
7237         * config/fr30/fr30.c: Likewise.
7238         * config/frv/frv.c: Likewise.
7239         * config/ft32/ft32.c: Likewise.
7240         * config/h8300/h8300.c: Likewise.
7241         * config/i386/i386.c: Likewise.
7242         * config/i386/winnt.c: Likewise.
7243         * config/ia64/ia64.c: Likewise.
7244         * config/iq2000/iq2000.c: Likewise.
7245         * config/lm32/lm32.c: Likewise.
7246         * config/m32c/m32c.c: Likewise.
7247         * config/m32r/m32r.c: Likewise.
7248         * config/m68k/m68k.c: Likewise.
7249         * config/mcore/mcore.c: Likewise.
7250         * config/mep/mep.c: Likewise.
7251         * config/microblaze/microblaze.c: Likewise.
7252         * config/mips/mips.c: Likewise.
7253         * config/mmix/mmix.c: Likewise.
7254         * config/mn10300/mn10300.c: Likewise.
7255         * config/moxie/moxie.c: Likewise.
7256         * config/msp430/msp430.c: Likewise.
7257         * config/nds32/nds32.c: Likewise.
7258         * config/nds32/nds32-cost.c: Likewise.
7259         * config/nds32/nds32-fp-as-gp.c: Likewise.
7260         * config/nds32/nds32-intrinsic.c: Likewise.
7261         * config/nds32/nds32-isr.c: Likewise.
7262         * config/nds32/nds32-md-auxiliary.c: Likewise.
7263         * config/nds32/nds32-memory-manipulation.c: Likewise.
7264         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7265         * config/nds32/nds32-predicates.c: Likewise.
7266         * config/nios2/nios2.c: Likewise.
7267         * config/nvptx/nvptx.c: Likewise.
7268         * config/pa/pa.c: Likewise.
7269         * config/pdp11/pdp11.c: Likewise.
7270         * config/rl78/rl78.c: Likewise.
7271         * config/rs6000/rs6000.c: Likewise.
7272         * config/rx/rx.c: Likewise.
7273         * config/s390/s390.c: Likewise.
7274         * config/sh/sh.c: Likewise.
7275         * config/sh/sh-mem.cc: Likewise.
7276         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7277         * config/sh/sh_treg_combine.cc: Likewise.
7278         * config/sparc/sparc.c: Likewise.
7279         * config/spu/spu.c: Likewise.
7280         * config/stormy16/stormy16.c: Likewise.
7281         * config/tilegx/tilegx.c: Likewise.
7282         * config/tilepro/tilepro.c: Likewise.
7283         * config/v850/v850.c: Likewise.
7284         * config/vax/vax.c: Likewise.
7285         * config/visium/visium.c: Likewise.
7286         * config/xtensa/xtensa.c: Likewise.
7288 2015-07-10  Richard Biener  <rguenther@suse.de>
7290         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
7291         (decision_tree::gen_gimple): Likewise.
7292         (decision_tree::gen_generic): Likewise.
7294 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
7296         PR target/66813
7297         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
7298         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
7300 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
7302         PR middle-end/66820
7303         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
7304         or ORT_TASK contexts.
7305         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
7306         is non-zero.
7308 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7310         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
7311         above function.
7313 2015-07-10  Tom de Vries  <tom@codesourcery.com>
7315         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
7316         insert nit + 1 bound.
7318 2015-07-10  Richard Biener  <rguenther@suse.de>
7320         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
7321         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
7322         (if_convertible_loop_p_1): For this always compute bb predicates.
7323         (if_convertible_loop_p): And free them.
7325 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7327         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
7328         in dump message.
7330 2015-07-10  Richard Biener  <rguenther@suse.de>
7332         PR tree-optimization/66823
7333         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
7334         inverted predicate.
7336 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
7338         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
7339         to handle mips[32|64]r3 and mips[32|64]r5.
7341 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
7343         PR middle-end/66633
7344         * tree-nested.c (get_static_chain): Or in a flag into
7345         info->static_chain_added.
7346         (get_frame_field, get_nonlocal_debug_decl): Likewise.
7347         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
7348         2015-07-01 changes.
7349         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
7350         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
7351         add it to clauses.
7353         PR tree-optimization/66718
7354         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
7355         field.
7356         (vect_simd_lane_linear): New function.
7357         (vectorizable_simd_clone_call): Support using linear arguments for
7358         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
7360 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
7362         PR target/66821
7363         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
7365 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
7367         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
7368         Use machine mode, not enum machine_mode in the prototype.
7370         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
7371         classify 128-bit floating point support.
7372         (FLOAT128_IBM_P): Likewise.
7373         (FLOAT128_VECTOR_P): Likewise.
7374         (FLOAT128_2REG_P): Likewise.
7375         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
7376         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
7377         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7378         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
7380         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
7381         tests against TFmode/TDmode, since those modes do not use VSX
7382         addresses.
7383         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
7384         support.
7385         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
7386         tests against TFmode, etc.
7387         (invalid_e500_subreg): Add tests against IFmode/KFmode.
7388         (reg_offset_addressing_ok_p): Likewise.
7389         (rs6000_legitimate_offset_address_p): Likewise.
7390         (rs6000_legitimize_address): Likewise.
7391         (rs6000_legitimize_reload_address): Likewise.
7392         (rs6000_legitimate_address_p): Clean up tests against TFmode and
7393         TDmode to use the new helper macros, which will include IFmode and
7394         KFmode.
7395         (rs6000_emit_move): Likewise.
7396         (rs6000_darwin64_record_arg_recurse): Likewise.
7397         (print_operand): Likewise.
7398         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
7399         that uses a single vector register as a vector and not as a
7400         floating point register in terms of the calling sequence.
7401         (rs6000_discover_homogeneous_aggregate): Likewise.
7402         (rs6000_return_in_memory): Likewise.
7403         (init_cumulative_args): Likewise.
7404         (rs6000_function_arg_boundary): Likewise.
7405         (rs6000_function_arg_advance_1): Likewise.
7406         (rs6000_function_arg): Likewise.
7407         (rs6000_pass_by_reference): Likewise.
7408         (rs6000_gimplify_va_arg): Likewise.
7409         (rs6000_secondary_reload_memory): Use machine_mode not enum
7410         machine mode.
7411         (rs6000_split_multireg_move): Use new helper macros.
7412         (spe_func_has_64bit_regs_p): Likewise.
7413         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
7414         (output_toc): Use new helper macros.
7415         (rs6000_register_move_cost): Likewise.
7416         (rs6000_function_value): Add IEEE 128-bit floating point calling
7417         sequence support.
7418         (rs6000_libcall_value): Likewise.
7419         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
7420         floating point support.
7421         (rs6000_vector_mode_supported_p): Likewise.
7423 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
7425         PR rtl-optimization/66782
7426         * lra-int.h (struct lra_insn_recog_data): Add comment about
7427         clobbered hard regs for arg_hard_regs.
7428         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
7429         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
7430         Add condition for processing used hard regs.
7431         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
7432         Process clobbered hard regs.
7434 2015-07-09  Michael Matz  <matz@suse.de>
7436         * genmatch.c (fprintf_indent): New function.
7437         (operand::gen_transform): Add indent parameter.
7438         (expr::gen_transform, c_expr::gen_transform,
7439         capture::gen_transform): Ditto and use fprintf_indent.
7440         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
7441         (dt_operand::gen, dt_operand::gen_predicate,
7442         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
7443         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
7444         (decision_tree::gen_gimple): Adjust calls and indent generated
7445         code.
7446         (decision_tree::gen_generic): Ditto.
7447         (write_predicate): Ditto.
7449 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
7451         PR target/66814
7452         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
7453         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
7454         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
7455         {GENERAL,SSE,MMX}_REG_P where appropriate.
7457 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
7459         * lto-streamer.h: Don't include target.h and alloc-pool.h.
7460         * builtins.c: Adjust includes.
7461         * gimple.c: Likewise.
7462         * ipa-icf.c: Likewise.
7463         * lto-opts.c: Likewise.
7464         * ipa-reference.c: Likewise.
7465         * lto-section-out.c: Likewise.
7466         * lto-streamer-in.c: Likewise.
7467         * lto-streamer-out.c: Likewise.
7468         * opts-global.c: Likewise.
7469         * symtab.c: Likewise.
7470         * tree-chkp.c: Likewise.
7471         * tree-ssa-live.c: Likewise.
7472         * tree-streamer-in.c: Likewise.
7473         * tree-streamer-out.c: Likewise.
7474         * config/darwin.c: Likewise.
7475         * config/i386/winnt.c: Likewise.
7477 2015-07-09  Richard Biener  <rguenther@suse.de>
7479         * genmatch.c (struct expr): Add force_single_use flag.
7480         (expr::expr): Add copy constructor.
7481         (capture_info::walk_match): Gather force_single_use captures.
7482         (expr::gen_transform): Use possibly NULLified sequence.
7483         (dt_simplify::gen): Apply single-use restrictions by NULLifying
7484         seq if any constrained expr is not single-use.
7485         (parser::parse_expr): Refactor to allow multiple flags.  Handle
7486         's' flag to force an expression have a single-use if the pattern
7487         simplifies to more than one statement.
7488         * match.pd: Convert most single_use conditionals to :s flags.
7490 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
7492         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
7493         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
7494         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
7496 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
7498         * flags.h: Don't include flag-types.h or options.h.
7499         * opts-common.c: Adjust includes.
7500         * opts-global.c: Likewise.
7501         * common/config/epiphany/epiphany-common.c: Likewise.
7503 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
7505         PR target/66818
7506         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
7507         for IA MCU.
7509 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
7511         PR target/66817
7512         * config/i386/i386.c (ix86_return_in_memory): Return true
7513         if int_size_in_bytes returns negative for IA MCU.
7515 2015-07-09  Marek Polacek  <polacek@redhat.com>
7517         PR tree-optimization/66718
7518         * Makefile.in (OBJS): Add gimple-laddress.o.
7519         * passes.def: Schedule pass_laddress.
7520         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
7521         * tree-pass.h (make_pass_laddress): Declare.
7522         * gimple-laddress.c: New file.
7524 2015-07-09  Richard Biener  <rguenther@suse.de>
7526         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
7528 2015-07-09  Richard Biener  <rguenther@suse.de>
7530         PR tree-optimization/66807
7531         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
7533 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
7535         * function.c (stack_protect_epilogue): Use if rather than switch for
7536         check targetm.have_stack_protect_test.
7538 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7540         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
7541         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
7542         * config/arc/arc.h: Likewise.
7543         * config/arm/arm.h: Likewise.
7544         * config/bfin/bfin.h: Likewise.
7545         * config/epiphany/epiphany.h: Likewise.
7546         * config/frv/frv.h: Likewise.
7547         * config/ia64/ia64.h: Likewise.
7548         * config/iq2000/iq2000.h: Likewise.
7549         * config/lm32/lm32.h: Likewise.
7550         * config/m32r/m32r.h: Likewise.
7551         * config/mcore/mcore.h: Likewise.
7552         * config/mep/mep.h: Likewise.
7553         * config/microblaze/microblaze.h: Likewise.
7554         * config/mips/mips.h: Likewise.
7555         * config/mmix/mmix.h: Likewise.
7556         * config/mn10300/mn10300.h: Likewise.
7557         * config/nds32/nds32.h: Likewise.
7558         * config/nios2/nios2.h: Likewise.
7559         * config/pa/pa.h: Likewise.
7560         * config/rl78/rl78.h: Likewise.
7561         * config/sh/sh.h: Likewise.
7562         * config/sparc/sparc.h: Likewise.
7563         * config/stormy16/stormy16.h: Likewise.
7564         * config/tilegx/tilegx.h: Likewise.
7565         * config/tilepro/tilepro.h: Likewise.
7566         * config/v850/v850.h: Likewise.
7567         * config/xtensa/xtensa.h: Likewise.
7568         * doc/tm.texi: Regenerate.
7569         * doc/tm.texi.in: Adjust.
7570         * combine.c (simplify_set): Likewise.
7571         (simplify_comparison): Likewise.
7572         * expr.c (store_constructor): Likewise.
7573         * internal-fn.c (expand_arith_overflow): Likewise.
7574         * reload.c (push_reload): Likewise.
7575         (find_reloads): Likewise.
7576         (find_reloads_subreg_address): Likewise.
7577         * reload1.c (eliminate_regs_1): Likewise.
7578         * rtlanal.c (nonzero_bits1): Likewise.
7579         (num_sign_bit_copies1): Likewise.
7580         * simplify-rtx.c (simplify_truncation): Likewise.
7582 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7584         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
7585         of AUTO_INC_DEC with the preprocessor.
7586         * combine.c (combine_instructions): Likewise.
7587         (can_combine_p): Likewise.
7588         (try_combine): Likewise.
7589         * emit-rtl.c (try_split): Likewise.
7590         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7591         * lower-subreg.c (resolve_simple_move): Likewise.
7592         * lra.c (update_inc_notes): Likewise.
7593         * recog.c (asm_operand_ok): Likewise.
7594         (constrain_operands): Likewise.
7595         * regrename.c (scan_rtx_address): Likewise.
7596         * reload.c (update_auto_inc_notes): Likewise.
7597         (reg_inc_found_and_valid_p): Likewise.
7598         * reload1.c (reload): Likewise.
7599         (emit_input_reload_insns): Likewise.
7600         (delete_output_reload): Likewise.
7601         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
7602         * valtrack.c (cleanup_auto_inc_dec): Likewise.
7604 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7606         * rtl.h: Always define AUTO_INC_DEC.
7607         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
7608         * combine.c (combine_instructions): Likewise.
7609         (can_combine_p): Likewise.
7610         (try_combine): Likewise.
7611         * emit-rtl.c (try_split): Likewise.
7612         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
7613         * lower-subreg.c (resolve_simple_move): Likewise.
7614         * lra.c (update_inc_notes): Likewise.
7615         * recog.c (asm_operand_ok): Likewise.
7616         (constrain_operands): Likewise.
7617         * regrename.c (scan_rtx_address): Likewise.
7618         * reload.c (update_auto_inc_notes): Likewise.
7619         (find_equiv_reg): Likewise.
7620         * reload1.c (reload): Likewise.
7621         (reload_as_needed): Likewise.
7622         (choose_reload_regs): Likewise.
7623         (emit_input_reload_insns): Likewise.
7624         (delete_output_reload): Likewise.
7625         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
7626         * valtrack.c (cleanup_auto_inc_dec): Likewise.
7628 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7630         * combine.c (can_combine_def_p): Don't check the value of
7631         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
7632         (combinable_i3pat): Likewise.
7633         (mark_used_regs_combine): Likewise.
7634         * regrename.c (rename_chains): Likewise.
7635         * reload.c (find_reloads_address): Likewise.
7636         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7638 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7640         * combine.c (update_rsp_from_reg_equal): Don't check if
7641         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
7642         (reg_nonzero_bits_for_combine): Likewise.
7643         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
7644         1.
7645         * config/frv/frv.h: Likewise.
7646         * config/lm32/lm32.h: Likewise.
7647         * config/mep/mep.h: Likewise.
7648         * config/mips/mips.h: Likewise.
7649         * config/rs6000/rs6000.h: Likewise.
7650         * config/sh/sh.h: Likewise.
7651         * config/tilegx/tilegx.h (enum reg_class): Likewise.
7652         * config/tilepro/tilepro.h: Likewise.
7653         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
7654         * doc/tm.texi: Regenerate.
7655         * doc/tm.texi.in: Adjust.
7656         * rtlanal.c (nonzero_bits1): Likewise.
7658 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7660         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
7661         with the preprocessor.
7662         (combine_instructions): Likewise.
7663         (try_combine): Likewise.
7664         (subst): Likewise.
7665         (distribute_notes): Likewise.
7667 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7669         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
7670         defined.
7671         (simplify_set): Likewise.
7672         * cse.c (cse_insn): Likewise.
7673         * fold-const.c (fold_single_bit_test): Likewise.
7674         (fold_unary_loc): Likewise.
7675         * postreload.c (reload_cse_simplify_set): Likewise.
7676         (reload_cse_simplify_operands): Likewise.
7678 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
7680         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
7681         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
7683 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
7685         PR target/66746
7686         * config/i386/x86intrin.h: Include <adxintrin.h> even if
7687         __iamcu__ is defined.
7689 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
7691         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
7693 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
7695         PR target/66523
7696         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
7697         names from preservation.
7699 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
7701         PR target/66806
7702         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
7703         change for IAMCU.
7704         (function_arg_advance_32): Don't pass vectors in registers for
7705         IAMCU.
7706         (function_arg_32): Likewise.
7707         (ix86_return_in_memory): Don't return vectors in registers for
7708         IAMCU.
7710 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
7712         PR middle-end/66334
7713         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
7714         hard regno live at the start of BB with incoming abnormal edges.
7715         * lra-lives.c (process_bb_lives): Ditto.
7717 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
7719         PR libgomp/65099
7720         * config/nvptx/mkoffload.c (main): Create an offload image only in
7721         64-bit configurations.
7723 2015-07-08  Martin Liska  <mliska@suse.cz>
7725         PR bootstrap/66744
7726         * tree-sra.c (create_access_1): Call ctor without brackets.
7727         (create_artificial_child_access): Likewise.
7729 2015-07-08  Richard Biener  <rguenther@suse.de>
7731         PR tree-optimization/66793
7732         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
7733         Properly split the block after stmts ending it.
7735 2015-07-08  Richard Biener  <rguenther@suse.de>
7737         PR tree-optimization/66794
7738         * passes.c (execute_function_todo): Assert that post-dominators
7739         are not computed.
7740         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
7741         Free post-dominators.
7743 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7745         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
7746         with early exit.
7748 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
7750         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
7751         more than or equal 8 and less than 32 when optimizing for size.
7753 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7755         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
7756         COSTS_N_INSNS (1) and increment it appropriately throughout the
7757         function.
7759 2015-07-08  Richard Biener  <rguenther@suse.de>
7761         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
7763 2015-07-08  Alan Modra  <amodra@gmail.com>
7765         * target.def (rtx_costs): Remove "code" param, add "mode".
7766         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
7767         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
7768         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
7769         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
7770         call.  Track mode when given in rtx.
7771         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
7772         (default_address_cost): Pass Pmode to rtx_cost.
7773         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
7774         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
7775         with NULL set.
7776         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
7777         (notreg_cost): Add mode param.  Use it.
7778         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
7779         mode param and pass to set_src_cost.  Update all calls.
7780         (hash_scan_set): Formatting.
7781         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
7782         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
7783         * hooks.h: Ditto.
7784         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
7785         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
7786         emit_store_flag): Update set_src_cost and rtx_cost calls.
7787         * auto-inc-dec.c (attempt_change): Likewise.
7788         * calls.c (precompute_register_parameters): Likewise.
7789         * combine.c (expand_compound_operation, make_extraction,
7790         force_to_mode, distribute_and_simplify_rtx): Likewise.
7791         * dojump.c (prefer_and_bit_test): Likewise.
7792         * dse.c (find_shift_sequence): Likewise.
7793         * expr.c (compress_float_constant): Likewise.
7794         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
7795         * ifcvt.c (noce_try_sign_mask): Likewise.
7796         * loop-doloop.c (doloop_optimize): Likewise.
7797         * loop-invariant.c (create_new_invariant): Likewise.
7798         * lower-subreg.c (shift_cost, compute_costs): Likewise.
7799         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
7800         lshift_cheap_p): Likewise.
7801         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
7802         try_replace_in_use, reload_cse_move2add): Likewise.
7803         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
7804         Likewise.
7805         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
7806         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7807         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
7808         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
7809         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
7810         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
7811         to rtx_cost calls.
7812         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
7813         * config/arc/arc.c (arc_rtx_costs): Likewise.
7814         * config/arm/arm.c (arm_rtx_costs): Likewise.
7815         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
7816         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
7817         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
7818         * config/cris/cris.c (cris_rtx_costs): Likewise.
7819         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
7820         * config/frv/frv.c (frv_rtx_costs): Likewise.
7821         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
7822         * config/i386/i386.c (ix86_rtx_costs): Likewise.
7823         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
7824         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
7825         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
7826         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
7827         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
7828         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
7829         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
7830         * config/mep/mep.c (mep_rtx_cost): Likewise.
7831         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
7832         * config/mips/mips.c (mips_rtx_costs): Likewise.
7833         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
7834         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
7835         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
7836         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
7837         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
7838         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
7839         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
7840         * config/pa/pa.c (hppa_rtx_costs): Likewise.
7841         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
7842         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
7843         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
7844         * config/s390/s390.c (s390_rtx_costs): Likewise.
7845         * config/sh/sh.c (sh_rtx_costs): Likewise.
7846         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
7847         * config/spu/spu.c (spu_rtx_costs): Likewise.
7848         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
7849         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
7850         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
7851         * config/v850/v850.c (v850_rtx_costs): Likewise.
7852         * config/vax/vax.c (vax_rtx_costs): Likewise.
7853         * config/visium/visium.c (visium_rtx_costs): Likewise.
7854         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
7855         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
7856         "code" param, and pass as outer_code to first rtx_cost call.  Pass
7857         mode to rtx_cost calls.
7858         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
7859         calls.
7860         (aarch64_rtx_costs_wrapper): Update.
7861         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
7862         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
7863         rtx_cost calls.
7864         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
7865         and rtx_cost calls.
7866         (avr_operand_rtx_cost): Similarly.
7867         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
7868         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
7869         * config/mips/mips.c (mips_stack_address_p): Comment typo.
7870         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
7871         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
7872         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
7873         rtx_cost.
7874         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
7875         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
7876         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
7877         * doc/tm.texi: Regenerate.
7879 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
7881         * tree-core.h: Include symtab.h.
7882         * rtl.h: Include hard-reg-set.h but not flags.h.
7883         (HARD_CONST): Remove condition compilation involving HARD_CONST since
7884         hard-reg-set.h is always included.
7885         * regs.h: Don't include hard-reg-set.h or rtl.h.
7886         * cfg.h: Include dominance.h.
7887         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
7888         * backend.h: New.  Aggregate commonly used backend header files.
7889         * gimple-ssa.h: Don't include tree-hasher.h.
7890         * ssa.h: New.  Aggregate commonly used SSA header files.
7891         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
7892         * sel-sched-ir.h: Flatten includes.
7893         * lra-int.h: Flatten completely.
7894         * sel-sched-dump.h: Flatten includes.
7895         * ira-int.h: Flatten includes.
7896         * gimple-streamer.h: Remove all includes.
7897         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
7898         * resource.h: Flatten hard-reg-set.h and df.h.
7899         * sched-int.h: Flatten insn-arrt.h and df.h.
7900         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
7901         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
7902         * genattrtab.c (write_header): Adjust generated includes.
7903         * genautomata.c (main): Likewise.
7904         * genconditions.c (write-header): Likewise.
7905         * genemit.c (main): Likewise.
7906         * gengtype.c (open_base_files): Likewise.
7907         * genopinit.c (main): Likewise.
7908         * genoutput.c (output_prologue): Likewise.
7909         * genpeep.c (main): Likewise.
7910         * genpreds.c (write_insn_preds_c): Likewise.
7911         * genrecog.c (write_header): Likewise.
7912         * alias.c: Adjust includes.
7913         * asan.c: Likewise.
7914         * attribs.c: Likewise.
7915         * auto-inc-dec.c: Likewise.
7916         * auto-profile.c: Likewise.
7917         * bb-reorder.c: Likewise.
7918         * bt-load.c: Likewise.
7919         * builtins.c: Likewise.
7920         * caller-save.c: Likewise.
7921         * calls.c: Likewise.
7922         * ccmp.c: Likewise.
7923         * cfg.c: Likewise.
7924         * cfganal.c: Likewise.
7925         * cfgbuild.c: Likewise.
7926         * cfgcleanup.c: Likewise.
7927         * cfgexpand.c: Likewise.
7928         * cfghooks.c: Likewise.
7929         * cfgloop.c: Likewise.
7930         * cfgloopanal.c: Likewise.
7931         * cfgloopmanip.c: Likewise.
7932         * cfgrtl.c: Likewise.
7933         * cgraph.c: Likewise.
7934         * cgraphbuild.c: Likewise.
7935         * cgraphclones.c: Likewise.
7936         * cgraphunit.c: Likewise.
7937         * cilk-common.c: Likewise.
7938         * combine-stack-adj.c: Likewise.
7939         * combine.c: Likewise.
7940         * compare-elim.c: Likewise.
7941         * convert.c: Likewise.
7942         * coverage.c: Likewise.
7943         * cppbuiltin.c: Likewise.
7944         * cprop.c: Likewise.
7945         * cse.c: Likewise.
7946         * cselib.c: Likewise.
7947         * data-streamer-in.c: Likewise.
7948         * data-streamer-out.c: Likewise.
7949         * data-streamer.c: Likewise.
7950         * dbxout.c: Likewise.
7951         * dce.c: Likewise.
7952         * ddg.c: Likewise.
7953         * debug.c: Likewise.
7954         * df-core.c: Likewise.
7955         * df-problems.c: Likewise.
7956         * df-scan.c: Likewise.
7957         * dfp.c: Likewise.
7958         * dojump.c: Likewise.
7959         * dominance.c: Likewise.
7960         * domwalk.c: Likewise.
7961         * double-int.c: Likewise.
7962         * dse.c: Likewise.
7963         * dumpfile.c: Likewise.
7964         * dwarf2asm.c: Likewise.
7965         * dwarf2cfi.c: Likewise.
7966         * dwarf2out.c: Likewise.
7967         * emit-rtl.c: Likewise.
7968         * et-forest.c: Likewise.
7969         * except.c: Likewise.
7970         * explow.c: Likewise.
7971         * expmed.c: Likewise.
7972         * expr.c: Likewise.
7973         * final.c: Likewise.
7974         * fixed-value.c: Likewise.
7975         * fold-const.c: Likewise.
7976         * function.c: Likewise.
7977         * fwprop.c: Likewise.
7978         * gcc-plugin.h: Likewise.
7979         * gcse-common.c: Likewise.
7980         * gcse.c: Likewise.
7981         * generic-match-head.c: Likewise.
7982         * ggc-page.c: Likewise.
7983         * gimple-builder.c: Likewise.
7984         * gimple-expr.c: Likewise.
7985         * gimple-fold.c: Likewise.
7986         * gimple-iterator.c: Likewise.
7987         * gimple-low.c: Likewise.
7988         * gimple-match-head.c: Likewise.
7989         * gimple-pretty-print.c: Likewise.
7990         * gimple-ssa-isolate-paths.c: Likewise.
7991         * gimple-ssa-strength-reduction.c: Likewise.
7992         * gimple-streamer-in.c: Likewise.
7993         * gimple-streamer-out.c: Likewise.
7994         * gimple-walk.c: Likewise.
7995         * gimple.c: Likewise.
7996         * gimplify-me.c: Likewise.
7997         * gimplify.c: Likewise.
7998         * godump.c: Likewise.
7999         * graph.c: Likewise.
8000         * graphite-blocking.c: Likewise.
8001         * graphite-dependences.c: Likewise.
8002         * graphite-interchange.c: Likewise.
8003         * graphite-isl-ast-to-gimple.c: Likewise.
8004         * graphite-optimize-isl.c: Likewise.
8005         * graphite-poly.c: Likewise.
8006         * graphite-scop-detection.c: Likewise.
8007         * graphite-sese-to-poly.c: Likewise.
8008         * graphite.c: Likewise.
8009         * haifa-sched.c: Likewise.
8010         * hw-doloop.c: Likewise.
8011         * ifcvt.c: Likewise.
8012         * init-regs.c: Likewise.
8013         * internal-fn.c: Likewise.
8014         * ipa-chkp.c: Likewise.
8015         * ipa-comdats.c: Likewise.
8016         * ipa-cp.c: Likewise.
8017         * ipa-devirt.c: Likewise.
8018         * ipa-icf-gimple.c: Likewise.
8019         * ipa-icf.c: Likewise.
8020         * ipa-inline-analysis.c: Likewise.
8021         * ipa-inline-transform.c: Likewise.
8022         * ipa-inline.c: Likewise.
8023         * ipa-polymorphic-call.c: Likewise.
8024         * ipa-profile.c: Likewise.
8025         * ipa-prop.c: Likewise.
8026         * ipa-pure-const.c: Likewise.
8027         * ipa-ref.c: Likewise.
8028         * ipa-reference.c: Likewise.
8029         * ipa-split.c: Likewise.
8030         * ipa-utils.c: Likewise.
8031         * ipa-visibility.c: Likewise.
8032         * ipa.c: Likewise.
8033         * ira-build.c: Likewise.
8034         * ira-color.c: Likewise.
8035         * ira-conflicts.c: Likewise.
8036         * ira-costs.c: Likewise.
8037         * ira-emit.c: Likewise.
8038         * ira-lives.c: Likewise.
8039         * ira.c: Likewise.
8040         * jump.c: Likewise.
8041         * langhooks.c: Likewise.
8042         * lcm.c: Likewise.
8043         * loop-doloop.c: Likewise.
8044         * loop-init.c: Likewise.
8045         * loop-invariant.c: Likewise.
8046         * loop-iv.c: Likewise.
8047         * loop-unroll.c: Likewise.
8048         * lower-subreg.c: Likewise.
8049         * lra-assigns.c: Likewise.
8050         * lra-coalesce.c: Likewise.
8051         * lra-constraints.c: Likewise.
8052         * lra-eliminations.c: Likewise.
8053         * lra-lives.c: Likewise.
8054         * lra-remat.c: Likewise.
8055         * lra-spills.c: Likewise.
8056         * lra.c: Likewise.
8057         * lto-cgraph.c: Likewise.
8058         * lto-compress.c: Likewise.
8059         * lto-opts.c: Likewise.
8060         * lto-section-in.c: Likewise.
8061         * lto-section-out.c: Likewise.
8062         * lto-streamer-in.c: Likewise.
8063         * lto-streamer-out.c: Likewise.
8064         * lto-streamer.c: Likewise.
8065         * mcf.c: Likewise.
8066         * mode-switching.c: Likewise.
8067         * modulo-sched.c: Likewise.
8068         * omega.c: Likewise.
8069         * omp-low.c: Likewise.
8070         * optabs.c: Likewise.
8071         * opts-global.c: Likewise.
8072         * passes.c: Likewise.
8073         * plugin.c: Likewise.
8074         * postreload-gcse.c: Likewise.
8075         * postreload.c: Likewise.
8076         * predict.c: Likewise.
8077         * print-rtl.c: Likewise.
8078         * print-tree.c: Likewise.
8079         * profile.c: Likewise.
8080         * real.c: Likewise.
8081         * realmpfr.c: Likewise.
8082         * recog.c: Likewise.
8083         * ree.c: Likewise.
8084         * reg-stack.c: Likewise.
8085         * regcprop.c: Likewise.
8086         * reginfo.c: Likewise.
8087         * regrename.c: Likewise.
8088         * regstat.c: Likewise.
8089         * reload.c: Likewise.
8090         * reload1.c: Likewise.
8091         * reorg.c: Likewise.
8092         * resource.c: Likewise.
8093         * rtl-chkp.c: Likewise.
8094         * rtlanal.c: Likewise.
8095         * rtlhooks.c: Likewise.
8096         * sanopt.c: Likewise.
8097         * sched-deps.c: Likewise.
8098         * sched-ebb.c: Likewise.
8099         * sched-rgn.c: Likewise.
8100         * sched-vis.c: Likewise.
8101         * sdbout.c: Likewise.
8102         * sel-sched-dump.c: Likewise.
8103         * sel-sched-ir.c: Likewise.
8104         * sel-sched.c: Likewise.
8105         * sese.c: Likewise.
8106         * shrink-wrap.c: Likewise.
8107         * simplify-rtx.c: Likewise.
8108         * stack-ptr-mod.c: Likewise.
8109         * stmt.c: Likewise.
8110         * stor-layout.c: Likewise.
8111         * store-motion.c: Likewise.
8112         * stringpool.c: Likewise.
8113         * symtab.c: Likewise.
8114         * target-globals.c: Likewise.
8115         * targhooks.c: Likewise.
8116         * toplev.c: Likewise.
8117         * tracer.c: Likewise.
8118         * trans-mem.c: Likewise.
8119         * tree-affine.c: Likewise.
8120         * tree-browser.c: Likewise.
8121         * tree-call-cdce.c: Likewise.
8122         * tree-cfg.c: Likewise.
8123         * tree-cfgcleanup.c: Likewise.
8124         * tree-chkp-opt.c: Likewise.
8125         * tree-chkp.c: Likewise.
8126         * tree-chrec.c: Likewise.
8127         * tree-complex.c: Likewise.
8128         * tree-data-ref.c: Likewise.
8129         * tree-dfa.c: Likewise.
8130         * tree-diagnostic.c: Likewise.
8131         * tree-dump.c: Likewise.
8132         * tree-eh.c: Likewise.
8133         * tree-emutls.c: Likewise.
8134         * tree-if-conv.c: Likewise.
8135         * tree-inline.c: Likewise.
8136         * tree-into-ssa.c: Likewise.
8137         * tree-iterator.c: Likewise.
8138         * tree-loop-distribution.c: Likewise.
8139         * tree-nested.c: Likewise.
8140         * tree-nrv.c: Likewise.
8141         * tree-object-size.c: Likewise.
8142         * tree-outof-ssa.c: Likewise.
8143         * tree-parloops.c: Likewise.
8144         * tree-phinodes.c: Likewise.
8145         * tree-predcom.c: Likewise.
8146         * tree-pretty-print.c: Likewise.
8147         * tree-profile.c: Likewise.
8148         * tree-scalar-evolution.c: Likewise.
8149         * tree-sra.c: Likewise.
8150         * tree-ssa-address.c: Likewise.
8151         * tree-ssa-alias.c: Likewise.
8152         * tree-ssa-ccp.c: Likewise.
8153         * tree-ssa-coalesce.c: Likewise.
8154         * tree-ssa-copy.c: Likewise.
8155         * tree-ssa-copyrename.c: Likewise.
8156         * tree-ssa-dce.c: Likewise.
8157         * tree-ssa-dom.c: Likewise.
8158         * tree-ssa-dse.c: Likewise.
8159         * tree-ssa-forwprop.c: Likewise.
8160         * tree-ssa-ifcombine.c: Likewise.
8161         * tree-ssa-live.c: Likewise.
8162         * tree-ssa-loop-ch.c: Likewise.
8163         * tree-ssa-loop-im.c: Likewise.
8164         * tree-ssa-loop-ivcanon.c: Likewise.
8165         * tree-ssa-loop-ivopts.c: Likewise.
8166         * tree-ssa-loop-manip.c: Likewise.
8167         * tree-ssa-loop-niter.c: Likewise.
8168         * tree-ssa-loop-prefetch.c: Likewise.
8169         * tree-ssa-loop-unswitch.c: Likewise.
8170         * tree-ssa-loop.c: Likewise.
8171         * tree-ssa-math-opts.c: Likewise.
8172         * tree-ssa-operands.c: Likewise.
8173         * tree-ssa-phiopt.c: Likewise.
8174         * tree-ssa-phiprop.c: Likewise.
8175         * tree-ssa-pre.c: Likewise.
8176         * tree-ssa-propagate.c: Likewise.
8177         * tree-ssa-reassoc.c: Likewise.
8178         * tree-ssa-sccvn.c: Likewise.
8179         * tree-ssa-scopedtables.c: Likewise.
8180         * tree-ssa-sink.c: Likewise.
8181         * tree-ssa-strlen.c: Likewise.
8182         * tree-ssa-structalias.c: Likewise.
8183         * tree-ssa-tail-merge.c: Likewise.
8184         * tree-ssa-ter.c: Likewise.
8185         * tree-ssa-threadedge.c: Likewise.
8186         * tree-ssa-threadupdate.c: Likewise.
8187         * tree-ssa-uncprop.c: Likewise.
8188         * tree-ssa-uninit.c: Likewise.
8189         * tree-ssa.c: Likewise.
8190         * tree-ssanames.c: Likewise.
8191         * tree-stdarg.c: Likewise.
8192         * tree-streamer-in.c: Likewise.
8193         * tree-streamer-out.c: Likewise.
8194         * tree-streamer.c: Likewise.
8195         * tree-switch-conversion.c: Likewise.
8196         * tree-tailcall.c: Likewise.
8197         * tree-vect-data-refs.c: Likewise.
8198         * tree-vect-generic.c: Likewise.
8199         * tree-vect-loop-manip.c: Likewise.
8200         * tree-vect-loop.c: Likewise.
8201         * tree-vect-patterns.c: Likewise.
8202         * tree-vect-slp.c: Likewise.
8203         * tree-vect-stmts.c: Likewise.
8204         * tree-vectorizer.c: Likewise.
8205         * tree-vrp.c: Likewise.
8206         * tree.c: Likewise.
8207         * tsan.c: Likewise.
8208         * ubsan.c: Likewise.
8209         * valtrack.c: Likewise.
8210         * value-prof.c: Likewise.
8211         * var-tracking.c: Likewise.
8212         * varasm.c: Likewise.
8213         * varpool.c: Likewise.
8214         * vmsdbgout.c: Likewise.
8215         * vtable-verify.c: Likewise.
8216         * web.c: Likewise.
8217         * wide-int.cc: Likewise.
8218         * xcoffout.c: Likewise.
8219         * config/aarch64/aarch64-builtins.c: Likewise.
8220         * config/aarch64/aarch64.c: Likewise.
8221         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8222         * config/alpha/alpha.c: Likewise.
8223         * config/arc/arc.c: Likewise.
8224         * config/arm/aarch-common.c: Likewise.
8225         * config/arm/arm-builtins.c: Likewise.
8226         * config/arm/arm-c.c: Likewise.
8227         * config/arm/arm.c: Likewise.
8228         * config/avr/avr-c.c: Likewise.
8229         * config/avr/avr-log.c: Likewise.
8230         * config/avr/avr.c: Likewise.
8231         * config/bfin/bfin.c: Likewise.
8232         * config/c6x/c6x.c: Likewise.
8233         * config/cr16/cr16.c: Likewise.
8234         * config/cris/cris.c: Likewise.
8235         * config/darwin-c.c: Likewise.
8236         * config/darwin.c: Likewise.
8237         * config/epiphany/epiphany.c: Likewise.
8238         * config/epiphany/mode-switch-use.c: Likewise.
8239         * config/epiphany/resolve-sw-modes.c: Likewise.
8240         * config/fr30/fr30.c: Likewise.
8241         * config/frv/frv.c: Likewise.
8242         * config/ft32/ft32.c: Likewise.
8243         * config/h8300/h8300.c: Likewise.
8244         * config/i386/i386-c.c: Likewise.
8245         * config/i386/i386.c: Likewise.
8246         * config/i386/msformat-c.c: Likewise.
8247         * config/i386/winnt-cxx.c: Likewise.
8248         * config/i386/winnt-stubs.c: Likewise.
8249         * config/i386/winnt.c: Likewise.
8250         * config/ia64/ia64-c.c: Likewise.
8251         * config/ia64/ia64.c: Likewise.
8252         * config/iq2000/iq2000.c: Likewise.
8253         * config/lm32/lm32.c: Likewise.
8254         * config/m32c/m32c-pragma.c: Likewise.
8255         * config/m32c/m32c.c: Likewise.
8256         * config/m32r/m32r.c: Likewise.
8257         * config/m68k/m68k.c: Likewise.
8258         * config/mcore/mcore.c: Likewise.
8259         * config/mep/mep-pragma.c: Likewise.
8260         * config/mep/mep.c: Likewise.
8261         * config/microblaze/microblaze-c.c: Likewise.
8262         * config/microblaze/microblaze.c: Likewise.
8263         * config/mips/mips.c: Likewise.
8264         * config/mmix/mmix.c: Likewise.
8265         * config/mn10300/mn10300.c: Likewise.
8266         * config/moxie/moxie.c: Likewise.
8267         * config/msp430/msp430-c.c: Likewise.
8268         * config/msp430/msp430.c: Likewise.
8269         * config/nds32/nds32-cost.c: Likewise.
8270         * config/nds32/nds32-fp-as-gp.c: Likewise.
8271         * config/nds32/nds32-intrinsic.c: Likewise.
8272         * config/nds32/nds32-isr.c: Likewise.
8273         * config/nds32/nds32-md-auxiliary.c: Likewise.
8274         * config/nds32/nds32-memory-manipulation.c: Likewise.
8275         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8276         * config/nds32/nds32-predicates.c: Likewise.
8277         * config/nds32/nds32.c: Likewise.
8278         * config/nios2/nios2.c: Likewise.
8279         * config/nvptx/nvptx.c: Likewise.
8280         * config/pa/pa.c: Likewise.
8281         * config/pdp11/pdp11.c: Likewise.
8282         * config/rl78/rl78-c.c: Likewise.
8283         * config/rl78/rl78.c: Likewise.
8284         * config/rs6000/rs6000-c.c: Likewise.
8285         * config/rs6000/rs6000.c: Likewise.
8286         * config/rx/rx.c: Likewise.
8287         * config/s390/s390-c.c: Likewise.
8288         * config/s390/s390.c: Likewise.
8289         * config/sh/sh-c.c: Likewise.
8290         * config/sh/sh-mem.cc: Likewise.
8291         * config/sh/sh.c: Likewise.
8292         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8293         * config/sh/sh_treg_combine.cc: Likewise.
8294         * config/sol2-c.c: Likewise.
8295         * config/sol2-cxx.c: Likewise.
8296         * config/sol2-stubs.c: Likewise.
8297         * config/sol2.c: Likewise.
8298         * config/sparc/sparc-c.c: Likewise.
8299         * config/sparc/sparc.c: Likewise.
8300         * config/spu/spu-c.c: Likewise.
8301         * config/spu/spu.c: Likewise.
8302         * config/stormy16/stormy16.c: Likewise.
8303         * config/tilegx/mul-tables.c: Likewise.
8304         * config/tilegx/tilegx-c.c: Likewise.
8305         * config/tilegx/tilegx.c: Likewise.
8306         * config/tilepro/mul-tables.c: Likewise.
8307         * config/tilepro/tilepro-c.c: Likewise.
8308         * config/tilepro/tilepro.c: Likewise.
8309         * config/v850/v850-c.c: Likewise.
8310         * config/v850/v850.c: Likewise.
8311         * config/vax/vax.c: Likewise.
8312         * config/visium/visium.c: Likewise.
8313         * config/vms/vms-c.c: Likewise.
8314         * config/vms/vms.c: Likewise.
8315         * config/vxworks.c: Likewise.
8316         * config/xtensa/xtensa.c: Likewise.
8318 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
8320         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
8321         Remove operand constraints.  Change operand 2 predicate to
8322         nonmemory operand.  Limit const_int values to mode bitsize.  Only
8323         allow const_int values less than 32 when optimizing for size.
8324         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
8325         Remove operand constraints.
8326         (*bt<mode>): Use SImode for const_int values less than 32.
8327         (regmode): Remove mode attribute.
8329 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
8331         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
8332         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
8333           moxie_legitimate_address_p): New functions.
8334           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
8336 2015-07-07  Tom de Vries  <tom@codesourcery.com>
8338         PR tree-optimization/66642
8339         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
8340         header comment.  Rename split_edge variable to edge_at_split.  Split
8341         exit edge to create new loop exit bb.  Insert loop exit phis in new
8342         loop exit bb.
8344 2015-07-07  Tom de Vries  <tom@codesourcery.com>
8346         * tree-cfg.c (get_virtual_phi): New function.
8347         * tree-cfg.h (get_virtual_phi): Declare.
8348         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
8349         (rewrite_virtuals_into_loop_closed_ssa): New function.
8350         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
8351         Declare.
8352         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
8353         (transform_to_exit_first_loop_alt): Use
8354         rewrite_virtuals_into_loop_closed_ssa.
8356 2015-07-07  Richard Biener  <rguenther@suse.de>
8358         * fold-const.c (fold_binary_loc): Move
8359         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
8360         * match.pd: ... here.
8361         Add (X * C1) % C2 -> 0 simplification pattern derived from
8362         extract_muldiv_1.
8364 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
8366         PR target/66780
8367         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
8368         change for target/65249.
8370 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
8372         * symtab.c (address_matters_1): Fix typo in comment above.
8373         (can_increase_alignment_p): Likewise.
8375 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8377         * function.c (free_after_compilation): Clear PROP_cfg in
8378         f->curr_properties.
8380 2015-07-07  Richard Biener  <rguenther@suse.de>
8382         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
8383         add which use to.
8384         (add_control_edge): Remove excessive vertical space in dumping.
8385         (process_ssa_edge_worklist): Simulate at most one statement and
8386         return whether we did.  Do not simulate PHIs if they are in a
8387         BB not yet simulated.
8388         (ssa_propagate): Adjust to always drain the BB worklist whenever
8389         a BB is available there, likewise the VARYING edges list before
8390         the interesting edge list.
8392 2015-07-07  Christian Bruel  <christian.bruel@st.com>
8394         PR target/52144
8395         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
8397 2015-07-07  Richard Biener  <rguenther@suse.de>
8399         PR middle-end/66739
8400         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
8401         A - B.
8403 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
8405         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
8406         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
8407         Copy operand 0 to a temporary if !ext_register_operand.  Remove
8408         ancient extract_bit_field workaround.
8409         (insv<mode>_1): Rename from mov<mode>_insv_1.
8410         (*insvqi): Rename from *movqi_insv_2.
8411         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
8412         for renamed insvsi_1.
8413         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
8415 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
8417         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
8418         call to nvptx_reorg_subreg.
8420 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
8422         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
8423         * graphite-dependencies.c, graphite-interchange.c,
8424         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
8425         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
8426         Likewise.
8428 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
8430         * match.pd: Remove element_mode inside HONOR_*.
8431         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
8432         (~X | X -> -1, ~X ^ X -> -1): Merge.
8433         * tree.c (build_each_one_cst): New function.
8434         * tree.h (build_each_one_cst): Likewise.
8436 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8438         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8439         PROCESSOR_IAMCU.
8441 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
8443         * config.gcc <mips*-*-*>: Add fused-madd.opt.
8444         * config/mips/mips.opt (mfused-madd): Remove.
8445         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
8446         * config/mips/mips.h (TARGET_MIPS8000): New.
8447         (ISA_HAS_FP_MADD4_MSUB4): Remove.
8448         (ISA_HAS_FP_MADDF_MSUBF): Remove.
8449         (ISA_HAS_FP_MADD3_MSUB3): Remove.
8450         (ISA_HAS_NMADD4_NMSUB4): Remove.
8451         (ISA_HAS_NMADD3_NMSUB3): Remove.
8452         (ISA_HAS_FUSED_MADD4): New.
8453         (ISA_HAS_UNFUSED_MADD4): New.
8454         (ISA_HAS_FUSED_MADDF): New.
8455         (ISA_HAS_FUSED_MADD3): New.
8456         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
8457         (*fma<mode>4_madd3) New.
8458         (*fma<mode>4_madd4) New.
8459         (*fma<mode>4_maddf) New.
8460         (fms<mode>4) New.
8461         (*fms<mode>4_msub3) New.
8462         (*fms<mode>4_msub4) New.
8463         (fnma<mode>4) New.
8464         (*fnma<mode>4_nmadd3) New.
8465         (*fnma<mode>4_nmadd4) New.
8466         (fnms<mode>4) New.
8467         (*fnms<mode>4_nmsub3) New.
8468         (*fnms<mode>4_nmsub4) New.
8469         (*madd4<mode>) Modify to be unfused only.
8470         (*msub4<mode>) Modify to be unfused only.
8471         (*nmadd4<mode>) Modify to be unfused only.
8472         (*nmsub4<mode>) Modify to be unfused only.
8473         (*madd3<mode>) Remove.
8474         (*msub3<mode>) Remove.
8475         (*nmadd3<mode>) Remove.
8476         (*nmsub3<mode>) Remove.
8477         (*nmadd3<mode>_fastmath) Remove.
8478         (*nmsub3<mode>_fastmath) Remove.
8479         (*nmadd4<mode>_fastmath) Update condition.
8480         (*nmsub4<mode>_fastmath) Update condition.
8482 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
8484         PR target/65956
8485         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
8486         alignment attribute, exploring one level down for records and arrays.
8488 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
8490         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
8491         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
8492         Copy operand 1 to a temporary if !ext_register_operand.  Remove
8493         ancient extract_bit_field workaround.
8494         (*extv<mode>): Rename from *mov<mode>_extv_1.
8495         (*extvqi): Rename from *movqi_extv_1.
8496         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
8497         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
8498         to a temporary if !ext_register_operand.  Remove ancient
8499         extract_bit_field workaround.
8500         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
8501         (*extzvqi): Rename from *movqi_extzv_2.
8502         (*testqi_ext_3): Remove modes from const_int_operand predicated
8503         operands.  Add "n" constraint.
8504         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
8505         operand.  Add "J" constraint.
8506         (*btsq, *btrq, *btcq peephole2s): Remove mode from
8507         const_0_to_63 predicated operand.
8508         (regmode): New insn attribute.
8509         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
8510         to nonmemory_operand.  Use regmode insn attribute.
8511         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
8512         (*jcc_bt<mode>_mask): Remove mode from operand 3.
8513         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
8514         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
8515         operands.  Use "N" constraint instead of "n".
8517 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
8519         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
8521 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8523         PR target/66749
8524         * config/i386/i386.c (iamcu_cost): New.
8525         (m_IAMCU): Likewise.
8526         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
8527         (processor_target_table): Add an entry for "iamcu".
8528         (processor_alias_table): Likewise.
8529         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
8530         (ix86_adjust_cost): Likewise.
8531         (ia32_multipass_dfa_lookahead): Likewise.
8532         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
8533         * config/i386/x86-tune.def: Updated for m_IAMCU.
8535 2015-07-06  Richard Biener  <rguenther@suse.de>
8537         PR tree-optimization/66772
8538         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
8539         values are available in the PHI node BB when there are
8540         still unexecutable edges.
8542 2015-07-06  Richard Biener  <rguenther@suse.de>
8544         PR tree-optimization/66767
8545         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
8546         Make sure to build the alignment test on a SSA name without
8547         final alignment info valid only if the alignment test
8548         evaluates to true.
8550 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
8552         PR target/66620
8553         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
8554         loop start when inserting LSETUP.
8556 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
8558         PR target/53383
8559         * config/i386/i386.c (ix86_option_override_internal): Allow
8560         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
8562 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8564         * read-md.c (decimal_string): Rename to ...
8565         (md_decimal_string): ... this.
8566         (handle_enum): Reflect this.
8568 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8570         PR target/66731
8571         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
8573 2015-07-06  Richard Biener  <rguenther@suse.de>
8575         PR middle-end/66759
8576         * match.pd: Add missing constraint of y to REAL_CST in
8577         REAL_CST - x CMP y to y - CST CMP x simplification.
8579 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
8581         PR tree-optimization/66757
8582         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
8584 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
8585             Sandra Loosemore <sandra@codesourcery.com>
8587         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
8588         Delete extern declaration.
8589         (gprel_constant_p): Add extern declaration.
8590         * config/nios2/constraints.md ("S"): Use gprel_constant_p
8591         instead of nios2_symbol_ref_in_small_data_p.
8592         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
8593         (nios2_symbol_ref_in_small_data_p): Make static.
8594         (gprel_constant_p): Make non-static.
8596 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
8598         * doc/fragments.texi (Target Fragment): Convert debian.org
8599         link to use https.
8600         * doc/install.texi (Configuration): Ditto.
8602 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
8604         PR tree-optimization/66718
8605         * tree-vect-stmts.c (vectorizable_call): Replace uses of
8606         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
8608         PR tree-optimization/66718
8609         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
8610         vectorizable_load, vectorizable_condition): Move vectype,
8611         nunits, ncopies computation after checking what kind of statement
8612         stmt is.
8614 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8616         * target-insns.def (extv, extzv, insv): New targetm instruction
8617         patterns.
8618         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
8619         interface.
8620         * recog.c (simplify_while_replacing): Likewise.
8622 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8624         * target-insns.def (doloop_begin, doloop_end): New targetm
8625         instruction patterns.
8626         * loop-init.c: Include target.h.
8627         (pass_loop2::gate): Use the new targetm patterns instead of
8628         HAVE_*/gen_* interface.
8629         (pass_rtl_doloop::gate): Likewise.
8630         (pass_rtl_doloop::execute): Remove preprocessor condition.
8631         * hw-doloop.c: Build unconditionally.
8632         * loop-doloop.c: Likewise.
8633         (doloop_optimize): Use the new targetm patterns instead of
8634         HAVE_*/gen_* interface.
8635         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
8636         * modulo-sched.c (doloop_register_get): Likewise.
8638 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8640         * target-insns.def (clear_cache): New targetm instruction pattern.
8641         * builtins.c (expand_builtin___clear_cache): Use it instead of
8642         HAVE_*/gen_* interface.
8644 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8646         * target-insns.def (allocate_stack, check_stack, probe_stack)
8647         (probe_stack_address, split_stack_prologue, split_stack_space_check):
8648         New targetm instruction patterns.
8649         * explow.c (allocate_dynamic_stack_space): Use them instead of
8650         HAVE_*/gen_* interface.
8651         (emit_stack_probe): Likewise.
8652         (probe_stack_range): Likewise.
8653         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8655 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8657         * target-insns.def (stack_protect_set, stack_protect_test): New
8658         targetm instruction patterns.
8659         * cfgexpand.c (stack_protect_prologue): Use them instead of
8660         HAVE_*/gen_* interface.
8661         * function.c (stack_protect_epilogue): Likewise.
8663 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8665         * expr.h (gen_move_insn_uncast): Delete.
8666         * expr.c (gen_move_insn_uncast): Delete.
8668 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8670         * target-insns.def (restore_stack_block, restore_stack_function)
8671         (restore_stack_nonlocal, save_stack_block, save_stack_function)
8672         (save_stack_nonlocal): New targetm instruction patterns.
8673         * builtins.c (expand_builtin_apply): Use them instead of
8674         HAVE_*/gen_* interface.
8675         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
8677 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8679         * target-insns.def (trap): New targetm instruction pattern.
8680         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
8681         interface.
8682         * explow.c (allocate_dynamic_stack_space): Likewise.
8683         * ifcvt.c (find_if_header): Likewise.
8685 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8687         * target-insns.def (prefetch): New targetm instruction pattern.
8688         * tree-ssa-loop-prefetch.c: Include targeth.
8689         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
8690         of HAVE_*/gen_* interface.
8691         * builtins.c (expand_builtin_prefetch): Likewise.
8692         * toplev.c (process_options): Likewise.
8694 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8696         * target-insns.def (untyped_call, untyped_return): New targetm
8697         instruction patterns.
8698         * builtins.c (expand_builtin_apply): Use them instead of
8699         HAVE_*/gen_* interface.
8700         (result_vector): Define unconditionally.
8702 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8704         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
8705         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
8706         (nonlocal_goto_receiver): New targetm instruction patterns.
8707         * builtins.c (expand_builtin_setjmp_setup): Use them instead
8708         of HAVE_*/gen_* interface.
8709         (expand_builtin_setjmp_receiver): Likewise.
8710         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
8711         * except.c (expand_dw2_landing_pad_for_region): Likewise.
8713 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
8715         * target.def: Add code_for_* hooks.
8716         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
8717         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
8718         * target-insns.def (casesi, tablejump): New targetm instruction
8719         patterns.
8720         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
8721         (do_tablejump): Likewise.
8722         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
8723         (expand_sjlj_dispatch_table): Likewise.
8724         * targhooks.c (default_case_values_threshold): Likewise.
8726 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
8728         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
8729         Use rtx_insn * instead of rtx.
8730         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
8731         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
8732         (nios2_call_tls_get_addr): Likewise.
8733         (nios2_emit_expensive_div): Likewise.
8734         (nios2_emit_move_sequence): Change return type to bool.
8735         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
8736         Change return type to bool.
8738 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8740         PR target/66747
8741         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
8743 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
8745         PR target/66114
8746         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
8747         of register_operand.  Remove constraint.
8749 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
8751         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
8752         the first argument.
8754 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
8756         * attribs.c (decl_attributes): Guard inform with the return value
8757         of the preceding warning.
8759 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
8761         * doc/invoke.texi (moverride): Move to correct section.
8763 2015-07-03  Richard Biener  <rguenther@suse.de>
8765         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
8766         Copy from tree.c
8767         (dt_operand::gen_gimple_expr): After valueizing operands
8768         re-canonicalize operand order for commutative tree codes.
8770 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8772         PR target/66746.
8773         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
8774         is defined.
8775         (__crc32w): Likewise.
8776         (__crc32d): Likewise.
8777         (__rdpmc): Likewise.
8778         (__rdtscp): Likewise.
8779         (_rdpmc): Likewise.
8780         (_rdtscp): Likewise.
8781         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
8782         is defined.
8784 2015-07-03  Richard Biener  <rguenther@suse.de>
8786         * fold-const.c (fold_mathfn_compare): Remove.
8787         (fold_inf_compare): Likewise.
8788         (fold_comparison): Move floating point comparison simplifications...
8789         * match.pd: ... to patterns here.  Introduce simple_comparisons
8790         operator list and use it for patterns formerly in fold_comparison.
8792 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
8794         PR tree-optimization/66119
8795         * toplev.c (process_options): Don't set up default values for
8796         the sra_max_scalarization_size_{speed,size} parameters.
8797         * tree-sra (analyze_all_variable_accesses): If no values
8798         have been set for the sra_max_scalarization_size_{speed,size}
8799         parameters, call get_move_ratio to get target defaults.
8801 2015-07-03  Richard Biener  <rguenther@suse.de>
8803         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
8804         * match.pd: ... here.
8806 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
8808         PR target/37072
8809         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
8810         is not actually the default on FreeBSD.
8812 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8814         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
8815         definition.
8816         (CMPGE_8HI): Likewise.
8817         (CMPGE_4SI): Likewise.
8818         (CMPGE_2DI): Likewise.
8819         (CMPGE_U16QI): Likewise.
8820         (CMPGE_U8HI): Likewise.
8821         (CMPGE_U4SI): Likewise.
8822         (CMPGE_U2DI): Likewise.
8823         (CMPLE_16QI): Likewise.
8824         (CMPLE_8HI): Likewise.
8825         (CMPLE_4SI): Likewise.
8826         (CMPLE_2DI): Likewise.
8827         (CMPLE_U16QI): Likewise.
8828         (CMPLE_U8HI): Likewise.
8829         (CMPLE_U4SI): Likewise.
8830         (CMPLE_U2DI): Likewise.
8831         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8832         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
8833         ALTIVEC_BUILTIN_VEC_CMPLE.
8834         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
8835         floating-point vector modes.
8836         (vector_nlt<mode>): New define_expand.
8837         (vector_nltu<mode>): Likewise.
8838         (vector_ngt<mode>): Likewise.
8839         (vector_ngtu<mode>): Likewise.
8841 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
8843         PR rtl-optimization/66706
8844         * combine.c (make_compound_operation): If an AND of SUBREG of
8845         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
8847 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
8849         * tree-pass.h (make_pass_ch_vect): New.
8850         * passes.def: Add pass_ch_vect just before pass_if_conversion.
8852         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
8853         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
8854         make_pass_ch_vect): New.
8855         (pass_ch): Extend ch_base.
8857         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
8858         (ch_base::copy_headers): ...here.
8860 2015-07-02  Richard Biener  <rguenther@suse.de>
8862         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
8863         * fold-const.c (get_pointer_modulus_and_residue): Remove.
8864         (fold_binary_loc): Implement (T)ptr & CST in terms of
8865         get_pointer_alignment_1.
8866         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
8867         Make sure to build the alignment test on a SSA name without
8868         final alignment info valid only after the prologue.
8870 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
8872         * config/cris/cris.md ("epilogue"): Remove condition.
8873         ("prologue"): Ditto.
8875 2015-07-02  Richard Biener  <rguenther@suse.de>
8877         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
8878         parameter to record a condition that is false.
8879         (record_conditions): When recording an extra NE_EXPR that is
8880         true also record a EQ_EXPR that is false.
8882 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
8884         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
8885         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
8886         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
8887         (set_iv, find_interesting_uses_address, add_candidate_1): New
8888         argument to alloc_iv.
8889         (find_interesting_uses_op, find_interesting_uses_cond): Don't
8890         duplicate struct iv.
8891         (free_loop_data): Don't free struct iv explicitly.
8892         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
8894 2015-07-01  DJ Delorie  <dj@redhat.com>
8896         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
8897         (LIB_SPEC): Add.
8898         (SUPPORTS_DISCRIMINATOR): Define.
8900 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8902         PR bootstrap/66685
8903         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
8904         there are no CALLs in the same pattern.
8906 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8908         PR rtl-optimization/61047
8909         * rtlanal.c (get_initial_register_offset): New function.
8910         (rtx_addr_can_trap_p_1): Check offsets of stack references.
8912 2015-07-01  Richard Biener  <rguenther@suse.de>
8914         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
8915         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
8916         ~X CMP C -> X CMP' ~C to ...
8917         * match.pd: ... patterns here.
8919 2015-07-01  Nick Clifton  <nickc@redhat.com>
8921         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
8922         a 16-bit value into a 20-bit memory slot.
8924 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8926         * doc/sourcebuild.texi (AArch64-specific attributes): Document
8927         "aarch64_tiny", "aarch64_small", "aarch64_large",
8928         "aarch64_little_endian", "aarch64_big_endian".
8930 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8932         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
8933         Document "aarch64_small_fpic".
8935 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
8937         * configure.ac: Add check for aarch64 assembler -fpic relocation
8938         modifier support.
8939         * configure: Regenerate.
8940         * config.in: Regenerate.
8941         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
8942         to -fPIC if not support of -fpic relocation modifier in assembler.
8944 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
8946         PR bootstrap/66685
8947         * rtl.c (classify_insn): Handle returns in PARALLELs.
8949 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8951         PR middle-end/66633
8952         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
8953         to true if the function is nested and if not optimizing.
8954         (convert_local_omp_clauses): Initialize need_frame to true if the
8955         function contains nested functions and if not optimizing.
8957 2015-07-01  Richard Biener  <rguenther@suse.de>
8959         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
8960         (X & Y) ^ Y -> ~X & Y transforms to ...
8961         * match.pd: ... here.
8963 2015-07-01  Richard Biener <rguenther@suse.de>
8965         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
8966         of converts to avoid uninteresting noise from the conversion
8967         simplifying patterns.
8969 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
8971         * config/c6x/c6x.c (try_rename_operands): Do not depend on
8972         gcc_assert evaluating its argument for side-effect.
8974 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8976         PR target/64833
8977         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
8978         flag_pic is set.
8980 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
8982         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
8983         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
8984         (hash_scc): Add this_ref_p and ref_p parameters and pass them
8985         to the inner DFS walk.
8987 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
8989         * target-insns.def (jump): New targetm instruction pattern.
8990         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
8991         instead of gen_jump.
8992         (fix_up_crossing_landing_pad): Likewise.
8993         (add_labels_and_missing_jumps): Likewise.
8994         (fix_crossing_conditional_branches): Likewise.
8995         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
8996         (force_nonfallthru_and_redirect): Likewise.
8997         * cse.c (cse_insn): Likewise.
8998         * expmed.c (expand_divmod): Likewise.
8999         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
9000         * haifa-sched.c (init_before_recovery): Likewise.
9001         (sched_create_recovery_edges): Likewise.
9002         * ifcvt.c (find_cond_trap): Likewise.
9003         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
9004         (expand_float, expand_fix): Likewise.
9005         * stmt.c (emit_jump): Likewise.
9007 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9009         * defaults.h (HAVE_load_multiple, gen_load_multiple)
9010         (HAVE_store_multiple, gen_store_multiple): Delete.
9011         * target-insns.def (load_multiple, store_multiple): New targetm
9012         instruction patterns.
9013         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
9014         of HAVE_*/gen_* interface.
9016 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9018         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
9019         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
9020         (gen_mem_signal_fence): Delete.
9021         * target-insns.def (mem_signal_fence, mem_thread_fence)
9022         (memory_barrier): New targetm instruction patterns.
9023         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
9024         interface.
9025         (expand_mem_signal_fence): Likewise.
9027 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
9029         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
9030         * target-insns.def (epilogue, prologue, sibcall_prologue): New
9031         targetm instruction patterns.
9032         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
9033         interface.
9034         * calls.c (expand_call): Likewise.
9035         * cfgrtl.c (cfg_layout_finalize): Likewise.
9036         * df-scan.c (df_get_entry_block_def_set): Likewise.
9037         (df_get_exit_block_use_set): Likewise.
9038         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
9039         * final.c (final_start_function): Likewise.
9040         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9041         (reposition_prologue_and_epilogue_notes): Likewise.
9042         * reorg.c (find_end_label): Likewise.
9043         * toplev.c (process_options): Likewise.
9045 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
9047         * typed-splay-tree.h: New file.
9049 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
9051         PR debug/66691
9052         * lra-int.h (lra_substitute_pseudo): Add a parameter.
9053         (lra_substitute_pseudo_within_insn): Ditto.
9054         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
9055         of constant.
9056         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
9057         to lra_substitute_pseudo.
9058         * lra-lives.c (process_bb_lives): Add an argument to
9059         lra_substitute_pseudo_within_insn call.
9060         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
9061         argument to lra_substitute_pseudo and
9062         lra_substitute_pseudo_within_insn calls.
9063         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
9065 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9067         * configure: Regenerated.
9069 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9071         * config.gcc: Support i[34567]86-*-elfiamcu target.
9072         * config/i386/iamcu.h: New.
9073         * config/i386/i386.opt: Add -miamcu.
9074         * doc/invoke.texi: Document -miamcu.
9075         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
9076         off x87/MMX/SSE/AVX codegen for -miamcu.
9077         * config/i386/i386-c.c (ix86_target_macros_internal): Define
9078         __iamcu/__iamcu__ for -miamcu.
9079         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
9080         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
9081         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
9082         * config/i386/i386.c (ix86_option_override_internal): Ignore and
9083         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
9084         MCU by default.  Default long double to 64-bit for Intel MCU.
9085         Turn on -freg-struct-return for Intel MCU.  Issue an error when
9086         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
9087         AVX is turned on.
9088         (function_arg_advance_32): Pass value whose size is no larger
9089         than 8 bytes in registers for Intel MCU.
9090         (function_arg_32): Likewise.
9091         (ix86_return_in_memory): Return value whose size is no larger
9092         than 8 bytes in registers for Intel MCU.
9093         (iamcu_alignment): New function.
9094         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
9095         true.
9096         (ix86_local_alignment): Don't increase alignment for Intel MCU.
9097         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
9098         true.
9100 2015-06-30  Marek Polacek  <polacek@redhat.com>
9102         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
9103         both operands of the resulting expression.
9105         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
9106         the final expression with the operand's type and then convert
9107         it to the type of the expression.
9109 2015-06-30  Richard Biener  <rguenther@suse.de>
9111         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
9112         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
9113         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
9114         * match.pd: ... to patterns here.
9116 2015-06-30  Richard Biener  <rguenther@suse.de>
9118         PR tree-optimization/66704
9119         * tree-vect-data-refs.c (vect_setup_realignment): Use
9120         make_ssa_name for non-SSA name source.
9122 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
9124         PR middle-end/66702
9125         * omp-low.c (simd_clone_adjust): Handle addressable linear
9126         or uniform parameters or non-gimple type uniform parameters.
9128 2015-06-30  Richard Biener  <rguenther@suse.de>
9130         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
9131         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
9132         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
9133         * match.pd: ... here.
9134         Add a few cases of A - B -> A + (-B) when B "easily" negates.
9135         Move (x & y) | x -> x and friends before
9136         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
9138 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
9140         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
9141         -mfix-ut699 is not specified.
9142         (leon3_load): Rename into...
9143         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
9144         is specified.
9146 2015-06-30  Marek Polacek  <polacek@redhat.com>
9148         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
9149         * match.pd: ... here.
9151 2015-06-30  Richard Biener  <rguenther@suse.de>
9153         * target-insns.def (canonicalize_funcptr_for_compare): Add.
9154         * fold-const.c (build_range_check): Replace uses of
9155         HAVE_canonicalize_funcptr_for_compare.
9156         (fold_widened_comparison): Likewise.
9157         (fold_sign_changed_comparison): Likewise.
9158         * dojump.c: Include "target.h".
9159         (do_compare_and_jump): Replace uses of
9160         HAVE_canonicalize_funcptr_for_compare and
9161         gen_canonicalize_funcptr_for_compare.
9162         * expr.c (do_store_flag): Likewise.
9164 2015-06-30  Tom de Vries  <tom@codesourcery.com>
9166         PR tree-optimization/66652
9167         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
9168         max_loop_iterations to determine if nit + 1 overflows.
9170 2015-06-30  Richard Biener  <rguenther@suse.de>
9172         * tree-vrp.c (register_edge_assert_for_2): Also register
9173         asserts for dominating conversion results.
9175 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
9177         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
9178         field in struct iv.
9180 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
9182         PR target/66509
9183         * configure.ac: Fix filds and fildq test for 64-bit.
9184         * configure: Regenerated.
9186 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
9188         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
9189         (nvptx_reorg): Here.  Keep the non-subreg pieces.
9191 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
9193         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
9194         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
9196 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
9198         * config/i386/i386.md (*jcc_1): Use %! in asm template.
9199         Set attribute "length_nobnd" instead of "length".
9200         (*jcc_2): Ditto.
9201         (jump): Ditto.
9202         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
9204 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
9206         * config/nios2/nios2.c (nios2_delegitimize_address): Make
9207         assert less restrictive.
9209 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9211         PR fortran/66605
9212         * cgraphunit.c (cgraph_node::finalize_function): Do not call
9213         do_warn_unused_parameter.
9214         * function.c (do_warn_unused_parameter): Move from here.
9215         * function.h (do_warn_unused_parameter): Do not declare.
9217 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9219         PR target/65697
9220         * gcc.target/arm/armv-sync-comp-swap.c: New.
9221         * gcc.target/arm/armv-sync-op-acquire.c: New.
9222         * gcc.target/arm/armv-sync-op-full.c: New.
9223         * gcc.target/arm/armv-sync-op-release.c: New.
9225 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9227         PR target/65697
9228         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
9229         initial acquire barrier with final barrier.
9231 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9233         PR target/65697
9234         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
9235         initial acquire barrier with final barrier.
9237 2015-06-29  Richard Henderson  <rth@redhat.com>
9239         * config/i386/constraints.md (Bf): New constraint.
9240         * config/i386/i386-c.c (ix86_target_macros): Define
9241         __GCC_ASM_FLAG_OUTPUTS__.
9242         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
9243         as flags outputs.
9244         * doc/extend.texi (FlagOutputOperands): Document them.
9246 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
9248         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
9249         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
9250         unspec name.
9251         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
9252         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
9253         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
9254         (aarch64_symbol_context): Ditto.
9255         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
9256         and use new pattern name.
9257         (aarch64_expand_mov_immediate): Ditto.
9258         (aarch64_print_operand): Ditto.
9259         (aarch64_classify_tls_symbol): Ditto.
9261 2015-06-29  Marek Polacek  <polacek@redhat.com>
9262             Marc Glisse  <marc.glisse@inria.fr>
9264         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
9265         * match.pd: ... pattern here.
9267 2015-06-29  Tom de Vries  <tom@codesourcery.com>
9269         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
9270         function structure.
9272 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9274         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
9275         feature description, split out the native option, add a link to
9276         the feature documentation, rearrange and slightly rewrite text.
9277         (Aarch64 options, -mcpu): Likewise.
9278         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
9279         +rdma implies Adv. SIMD.
9281 2015-06-29  Marek Polacek  <polacek@redhat.com>
9283         PR c/66322
9284         * function.c (stack_protect_epilogue): Remove a cast to int.
9285         * doc/invoke.texi: Update -Wswitch-bool description.
9287 2015-06-29  Richard Biener  <rguenther@suse.de>
9289         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
9290         * fold-const.c (fold_binary_loc): Move &A - &B simplification
9291         via ptr_difference_const ...
9292         * match.pd: ... here.
9293         When matching (X ^ Y) == Y also match with swapped operands.
9295 2015-06-29  Richard Biener  <rguenther@suse.de>
9297         * lto-streamer.h (LTO_major_version): Bump to 5.
9299 2015-06-29  Richard Biener  <rguenther@suse.de>
9301         PR tree-optimization/66677
9302         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
9303         STMT_VINFO_VEC_STMT clobbering less strict.
9305 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
9307         PR middle-end/64130
9308         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
9309         division, compute max and min when value ranges for dividend and
9310         divisor are available.
9312 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
9313             Sandra Loosemore <sandra@codesourcery.com>
9315         * regrename.h (regrename_do_replace): Change to return bool.
9316         * regrename.c (rename_chains): Check return value of
9317         regname_do_replace.
9318         (regrename_do_replace): Re-validate the modified insns and
9319         return bool status.
9320         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
9321         Update to match rename_chains changes.
9322         * config/c6x/c6x.c (try_rename_operands): Assert that
9323         regrename_do_replace returns true.
9325 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
9327         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
9328         operand 2 here.  Use copy_addr_to_reg to copy non-index
9329         register operand 2 to a temporary.
9330         (<mode>_stx): Ditto for operand 1.
9331         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
9332         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
9333         (ix86_store_bounds): Ditto.
9335 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
9337         * print-tree.c (print_node) [TREE_VEC]: Print its length.
9339 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
9341         * gimple.c (gimple_call_set_fndecl): Remove.
9342         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
9343         build1_loc directly instead of build_fold_addr_expr_loc.
9345 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
9347         * hash-map.h (hash_map::traverse): Use the definition of the
9348         Key typedef rather than the typedef itself.
9350 2015-06-26  Martin Jambor  <mjambor@suse.cz>
9352         PR debug/66301
9353         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
9354         NULL instead of calling dump_enabled_p.
9356 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
9358         * config/aarch64/aarch64.opt: (override): New.
9359         * doc/invoke.texi (override): Document.
9360         * config/aarch64/aarch64.c (aarch64_flag_desc): New
9361         (aarch64_fusible_pairs): Likewise.
9362         (aarch64_tuning_flags): Likewise.
9363         (aarch64_tuning_override_function): Likewise.
9364         (aarch64_tuning_override_functions): Likewise.
9365         (aarch64_parse_one_option_token): Likewise.
9366         (aarch64_parse_boolean_options): Likewise.
9367         (aarch64_parse_fuse_string): Likewise.
9368         (aarch64_parse_tune_string): Likewise.
9369         (aarch64_parse_one_override_token): Likewise.
9370         (aarch64_parse_override_string): Likewise.
9371         (aarch64_override_options): Parse the -override string if it
9372         is present.
9374 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
9376         * config/aarch64/aarch64-protos.h (tune_params): Remove
9377         const from members.
9378         (aarch64_tune_params): Remove const, change to no longer be
9379         a pointer.
9380         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
9381         change to no longer be a pointer, initialize to generic_tunings.
9382         (aarch64_min_divisions_for_recip_mul): Change dereference of
9383         aarch64_tune_params to member access.
9384         (aarch64_reassociation_width): Likewise.
9385         (aarch64_rtx_mult_cost): Likewise.
9386         (aarch64_address_cost): Likewise.
9387         (aarch64_branch_cost): Likewise.
9388         (aarch64_rtx_costs): Likewise.
9389         (aarch64_register_move_cost): Likewise.
9390         (aarch64_memory_move_cost): Likewise.
9391         (aarch64_sched_issue_rate): Likewise.
9392         (aarch64_builtin_vectorization_cost): Likewise.
9393         (aarch64_override_options): Take a copy of the selected tuning
9394         struct in to aarch64_tune_params, rather than just setting
9395         a pointer, change dereferences of aarch64_tune_params to member
9396         accesses.
9397         (aarch64_override_options_after_change): Change dereferences of
9398         aarch64_tune_params to member access.
9399         (aarch64_macro_fusion_p): Likewise.
9400         (aarch_macro_fusion_pair_p): Likewise.
9401         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
9403 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
9405         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
9406         (aarch64_tune_flags): Likewise.
9407         (AARCH64_TUNE_FMA_STEERING): Likewise.
9408         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
9409         to AARCH64_FL_USE_FMA_STEERING_PASS.
9410         (cortex-a57.cortex-a53): Likewise.
9411         (cortex-a72): Use cortexa72_tunings.
9412         (cortex-a72.cortex-a53): Likewise.
9413         (exynos-m1): Likewise.
9414         * config/aarch64/aarch64-protos.h (tune_params): Add
9415         a field: extra_tuning_flags.
9416         * config/aarch64/aarch64-tuning-flags.def: New.
9417         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
9418         (aarch64_extra_tuning_flags): Likewise.
9419         (aarch64_tune_params): Declare here.
9420         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
9421         (cortexa53_tunings): Likewise.
9422         (cortexa57_tunings): Likewise.
9423         (thunderx_tunings): Likewise.
9424         (xgene1_tunings): Likewise.
9425         (cortexa72_tunings): New.
9426         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
9427          (gate): Check against aarch64_tune_params.
9428         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
9429         aarch64-protos.h.
9431 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
9433         * config/aarch64/aarch64-fusion-pairs.def: New.
9434         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
9435         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
9436         aarch64_fusion_pairs.
9437         (AARCH64_FUSE_MOV_MOVK): Likewise.
9438         (AARCH64_FUSE_ADRP_ADD): Likewise.
9439         (AARCH64_FUSE_MOVK_MOVK): Likewise.
9440         (AARCH64_FUSE_ADRP_LDR): Likewise.
9441         (AARCH64_FUSE_CMP_BRANCH): Likewise.
9443 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
9445         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
9446         SYMBOL_SMALL_GOT_28K.
9447         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
9448         relocation modifiers.
9449         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
9450         (ldr_got_small_28k_<mode>): New.
9451         (ldr_got_small_28k_sidi): New.
9452         * config/aarch64/iterators.md (got_modifier): New mode iterator.
9453         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
9454         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
9455         SYMBOL_SMALL_GOT_28K.
9456         (aarch64_rtx_costs): Add costs for new instruction sequences.
9457         (initialize_aarch64_code_model): Initialize new model.
9458         (aarch64_classify_symbol): Recognize new model and new symbol classification.
9459         (aarch64_asm_preferred_eh_data_format): Support new model.
9460         (aarch64_load_symref_appropriately): Generate new instruction
9461         sequences for -fpic.
9462         (TARGET_USE_PSEUDO_PIC_REG): New definition.
9463         (aarch64_use_pseudo_pic_reg): New function.
9465 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
9467         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
9468         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
9469         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
9470         (aarch64_expand_mov_immediate): Ditto.
9471         (aarch64_print_operand): Ditto.
9472         (aarch64_classify_symbol): Ditto.
9474 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
9476         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
9478 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
9480         PR bootstrap/66638
9481         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
9482         assertion failed.  Remove assertion itself.
9484 2015-06-26  Richard Biener  <rguenther@suse.de>
9486         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
9487         and -A CMP CST -> A CMP -CST which is redundant with a pattern
9488         in match.pd.
9489         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
9490         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
9491         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
9492         * match.pd: ... patterns here.
9494 2015-06-26  Marek Polacek  <polacek@redhat.com>
9496         * match.pd ((x | y) & ~(x & y) -> x ^ y,
9497         (x | y) & (~x ^ y) -> x & y): New patterns.
9499 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
9501         * rtl.h (emit): Add an optional boolean parameter to control
9502         whether barriers are emitted.
9503         * emit-rtl.c (emit): Likewise.
9504         * gensupport.c (get_emit_function): Return null rather than "emit".
9505         * genemit.c (gen_emit_seq): Handle the null return value.
9506         Don't emit barriers after the final instruction in the sequence.
9507         * gentarget-def.c (main): Don't emit barriers after the instruction.
9509 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9511         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
9512         TARGET_UNIFIED_ASM.
9514 2015-06-26  Richard Biener  <rguenther@suse.de>
9516         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
9518 2015-06-26  Richard Biener  <rguenther@suse.de>
9520         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
9521         irrespective on whether the inner operation has a single use
9522         of both off are constant.
9524 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
9525             Segher Boessenkool  <segher@kernel.crashing.org>
9527         PR target/66412
9528         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
9529         before doing PUT_MODE or PUT_CODE on operands to avoid
9530         in-place RTX modification.
9532 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
9534         * gentarget-def.c (def_target_insn): Cast return of strtol to
9535         unsigned int.
9537 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9539         * gimple.h (gimple_call_set_fn): Move inline function.
9540         * gimple.c (gimple_call_set_fn): Relocate here.
9542 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
9544         PR target/65979
9545         PR target/66611
9546         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
9547         the replacement insn will work.
9549 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
9551         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
9552         by default.
9554 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
9556         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
9557         * cgraph.h: Include ipa-ref.h and plugin-api.h.
9558         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
9559         (symtab_node::address_can_be_compared_p): Move function.
9560         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
9561         definition here.
9562         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
9563         * auto-profile.c: Likewise.
9564         * bb-reorder.c: Likewise.
9565         * builtins.c: Likewise.
9566         * calls.c: Likewise.
9567         * cfgexpand.c: Likewise.
9568         * cgraphbuild.c: Likewise.
9569         * cgraphclones.c: Likewise.
9570         * cgraphunit.c: Likewise.
9571         * combine.c: Likewise.
9572         * coverage.c: Likewise.
9573         * data-streamer-in.c: Likewise.
9574         * data-streamer-out.c: Likewise.
9575         * data-streamer.c: Likewise.
9576         * dbxout.c: Likewise.
9577         * dwarf2out.c: Likewise.
9578         * except.c: Likewise.
9579         * expr.c: Likewise.
9580         * final.c: Likewise.
9581         * fold-const.c: Likewise.
9582         * ggc-page.c: Likewise.
9583         * gimple-fold.c: Likewise.
9584         * gimple-iterator.c: Likewise.
9585         * gimple-pretty-print.c: Likewise.
9586         * gimple-streamer-in.c: Likewise.
9587         * gimple-streamer-out.c: Likewise.
9588         * gimple.c: Likewise.
9589         * gimplify.c: Likewise.
9590         * ipa-chkp.c: Likewise.
9591         * ipa-comdats.c: Likewise.
9592         * ipa-cp.c: Likewise.
9593         * ipa-devirt.c: Likewise.
9594         * ipa-icf-gimple.c: Likewise.
9595         * ipa-icf.c: Likewise.
9596         * ipa-inline-analysis.c: Likewise.
9597         * ipa-inline-transform.c: Likewise.
9598         * ipa-inline.c: Likewise.
9599         * ipa-polymorphic-call.c: Likewise.
9600         * ipa-profile.c: Likewise.
9601         * ipa-prop.c: Likewise.
9602         * ipa-pure-const.c: Likewise.
9603         * ipa-ref.c: Likewise.
9604         * ipa-reference.c: Likewise.
9605         * ipa-split.c: Likewise.
9606         * ipa-utils.c: Likewise.
9607         * ipa-visibility.c: Likewise.
9608         * ipa.c: Likewise.
9609         * langhooks.c: Likewise.
9610         * lto-cgraph.c: Likewise.
9611         * lto-compress.c: Likewise.
9612         * lto-opts.c: Likewise.
9613         * lto-section-in.c: Likewise.
9614         * lto-section-out.c: Likewise.
9615         * lto-streamer-in.c: Likewise.
9616         * lto-streamer-out.c: Likewise.
9617         * lto-streamer.c: Likewise.
9618         * omp-low.c: Likewise.
9619         * opts-global.c: Likewise.
9620         * passes.c: Likewise.
9621         * predict.c: Likewise.
9622         * print-tree.c: Likewise.
9623         * profile.c: Likewise.
9624         * ree.c: Likewise.
9625         * sanopt.c: Likewise.
9626         * stor-layout.c: Likewise.
9627         * symtab.c: Likewise.
9628         * toplev.c: Likewise.
9629         * trans-mem.c: Likewise.
9630         * tree-cfg.c: Likewise.
9631         * tree-chkp.c: Likewise.
9632         * tree-eh.c: Likewise.
9633         * tree-emutls.c: Likewise.
9634         * tree-inline.c: Likewise.
9635         * tree-nested.c: Likewise.
9636         * tree-parloops.c: Likewise.
9637         * tree-pretty-print.c: Likewise.
9638         * tree-profile.c: Likewise.
9639         * tree-sra.c: Likewise.
9640         * tree-ssa-alias.c: Likewise.
9641         * tree-ssa-live.c: Likewise.
9642         * tree-ssa-loop-ivcanon.c: Likewise.
9643         * tree-ssa-loop-ivopts.c: Likewise.
9644         * tree-ssa-pre.c: Likewise.
9645         * tree-ssa-sccvn.c: Likewise.
9646         * tree-ssa-strlen.c: Likewise.
9647         * tree-ssa-structalias.c: Likewise.
9648         * tree-streamer-in.c: Likewise.
9649         * tree-streamer-out.c: Likewise.
9650         * tree-streamer.c: Likewise.
9651         * tree-switch-conversion.c: Likewise.
9652         * tree-tailcall.c: Likewise.
9653         * tree-vect-data-refs.c: Likewise.
9654         * tree-vect-stmts.c: Likewise.
9655         * tree-vectorizer.c: Likewise.
9656         * tree.c: Likewise.
9657         * tsan.c: Likewise.
9658         * ubsan.c: Likewise.
9659         * value-prof.c: Likewise.
9660         * varasm.c: Likewise.
9661         * varpool.c: Likewise.
9662         * config/arm/arm.c: Likewise.
9663         * config/bfin/bfin.c: Likewise.
9664         * config/c6x/c6x.c: Likewise.
9665         * config/cris/cris.c: Likewise.
9666         * config/darwin-c.c: Likewise.
9667         * config/darwin.c: Likewise.
9668         * config/i386/i386.c: Likewise.
9669         * config/i386/winnt.c: Likewise.
9670         * config/microblaze/microblaze.c: Likewise.
9671         * config/mips/mips.c: Likewise.
9672         * config/rs6000/rs6000.c: Likewise.
9673         * config/rx/rx.c: Likewise.
9674         * config/s390/s390.c: Likewise.
9675         * config/tilegx/mul-tables.c: Likewise.
9677 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9679         * config/aarch64/aarch64.c, config/alpha/alpha.c,
9680         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
9681         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
9682         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
9683         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
9684         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9685         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
9686         config/microblaze/microblaze.c, config/mips/mips.c,
9687         config/mmix/mmix.c, config/mn10300/mn10300.c,
9688         config/moxie/moxie.c, config/msp430/msp430.c,
9689         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
9690         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
9691         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
9692         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
9693         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9694         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9695         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
9696         target-def.h include.
9697         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
9699 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9701         * Makefile.in (TARGET_DEF): Add target-insns.def.
9702         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
9703         (build/gentarget-def.o): New rule.
9704         (genprogrtl): Add target-def.
9705         * target-insns.def, gentarget-def.c: New files.
9706         * target.def: Add targetm.have_* and targetm.gen_* hooks,
9707         based on the contents of target-insns.def.
9708         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
9709         (HAVE_return, gen_return): Delete.
9710         * target-def.h: Include insn-target-def.h.
9711         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
9712         instead of direct calls.  Rely on them to do the appropriate assertions.
9713         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
9714         (convert_jumps_to_returns): Use targetm interface instead of
9715         direct calls.
9716         (thread_prologue_and_epilogue_insns): Likewise.
9717         * reorg.c (find_end_label, dbr_schedule): Likewise.
9718         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
9719         * shrink-wrap.c (convert_to_simple_return): Likewise.
9720         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
9722 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9724         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
9725         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9726         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
9727         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
9728         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
9729         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
9730         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
9731         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
9732         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
9733         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
9734         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
9735         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
9736         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
9737         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
9738         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
9739         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
9740         includes to end.
9742 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9744         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
9745         (unbounded_int_hashmap_traits::key_type): Likewise.
9746         * hash-map.h (hash_map): Get the key type from the traits.
9747         * hash-traits.h (default_hash_traits): By default, inherit from the
9748         template parameter.
9749         * alias.c (alias_set_traits): Delete.
9750         (alias_set_entry_d::children): Use alias_set_hash as the first
9751         template parameter.
9752         (record_alias_subset): Update accordingly.
9753         * except.c (tree_hash_traits): Delete.
9754         (type_to_runtime_map): Use tree_hash as the first template parameter.
9755         (init_eh): Update accordingly.
9756         * genmatch.c (capture_id_map_hasher): Delete.
9757         (cid_map_t): Use nofree_string_hash as first template parameter.
9758         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
9759         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
9760         Use symbol_compare_hash as the first template parameter in
9761         subdivide_hash_map.
9762         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
9763         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
9764         template parameter.
9765         * passes.c (pass_registry_hasher): Delete.
9766         (name_to_pass_map): Use nofree_string_hash as the first template
9767         parameter.
9768         (register_pass_name): Update accordingly.
9769         * sanopt.c (sanopt_tree_map_traits): Delete.
9770         (sanopt_tree_triplet_map_traits): Delete.
9771         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
9772         template parameter.
9773         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
9774         the first template parameter.
9775         * sese.c (rename_map_hasher): Delete.
9776         (rename_map_type): Use tree_ssa_name_hash as the first template
9777         parameter.
9778         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
9779         (function_summary::m_map): Use map_hash as the first template
9780         parameter.
9781         (function_summary::release): Update accordingly.
9782         * tree-if-conv.c (phi_args_hash_traits): Delete.
9783         (predicate_scalar_phi): Use tree_operand_hash as the first template
9784         parameter to phi_arg_map.
9785         * tree-inline.h (dependence_hasher): Delete.
9786         (copy_body_data::dependence_map): Use dependence_hash as the first
9787         template parameter.
9788         * tree-inline.c (remap_dependence_clique): Update accordingly.
9789         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
9790         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
9791         parameter.
9792         (addr_stridxptr): Update accordingly.
9793         * value-prof.c (profile_id_traits): Delete.
9794         (cgraph_node_map): Use profile_id_hash as the first template
9795         parameter.
9796         (init_node_map): Update accordingly.
9797         * config/alpha/alpha.c (string_traits): Delete.
9798         (machine_function::links): Use nofree_string_hash as the first
9799         template parameter.
9800         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
9801         * config/m32c/m32c.c (pragma_traits): Delete.
9802         (pragma_htab): Use nofree_string_hash as the first template parameter.
9803         (m32c_note_pragma_address): Update accordingly.
9804         * config/mep/mep.c (pragma_traits): Delete.
9805         (pragma_htab): Use nofree_string_hash as the first template parameter.
9806         (mep_note_pragma_flag): Update accordingly.
9807         * config/mips/mips.c (mips16_flip_traits): Delete.
9808         (mflip_mips16_htab): Use nofree_string_hash as the first template
9809         parameter.
9810         (mflip_mips16_use_mips16_p): Update accordingly.
9811         (local_alias_traits): Delete.
9812         (mips16_local_aliases): Use nofree_string_hash as the first template
9813         parameter.
9814         (mips16_local_alias): Update accordingly.
9816 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9818         * hash-map-traits.h (default_hashmap_traits): Delete.
9820 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9822         * hash-map-traits.h (unbounded_hashmap_traits): New class.
9823         (unbounded_int_hashmap_traits): Likewise.
9824         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
9826 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9828         * ipa-icf.h (symbol_compare_hash): New class.
9829         (symbol_compare_hashmap_traits): Use it.
9830         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
9831         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
9832         (mem_alloc_description::reverse_mem_map_t): Remove redundant
9833         default_hashmap_traits.
9834         * sanopt.c (sanopt_tree_triplet_hash): New class.
9835         (sanopt_tree_triplet_map_traits): Use it.
9837 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9839         * gengtype-parse.c (require_template_declaration): Allow '+' in
9840         template parameters.  Consolidate cases.
9841         * hash-traits.h (int_hash): New class.
9842         * alias.c (alias_set_hash): New structure.
9843         (alias_set_traits): Use it.
9844         * symbol-summary.h (function_summary::map_hash): New class.
9845         (function_summary::summary_hashmap_traits): Use it.
9846         * tree-inline.h (dependence_hash): New class.
9847         (dependence_hasher): Use it.
9848         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
9849         * value-prof.c (profile_id_hash): New class.
9850         (profile_id_traits): Use it.
9852 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9854         * config/mips/mips.c (mips16_flip_traits): Use it.
9855         (local_alias_traits, mips16_local_aliases): Convert from a map of
9856         rtxes to a map of symbol names.
9857         (mips16_local_alias): Update accordingly.
9859 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9861         * hash-traits.h (string_hash, nofree_string_hash): New classes.
9862         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
9863         * passes.c (pass_registry_hasher): Likewise.
9864         * config/alpha/alpha.c (string_traits): Likewise.
9865         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
9866         * config/m32c/m32c.c (pragma_traits): Likewise.
9867         * config/mep/mep.c (pragma_traits): Likewise.
9869 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9871         * tree-hash-traits.h (tree_hash): New class.
9872         * except.c: Include tree-hash-traits.h.
9873         (tree_hash_traits): Use tree_hash.
9875 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9877         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
9878         * sese.c: Include tree-hash-traits.h.
9879         (rename_map_hasher): Use tree_ssa_name_hasher.
9881 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9883         * tree-hash-traits.h (tree_decl_hash): New class.
9884         * tree-ssa-strlen.c: Include tree-hash-traits.h.
9885         (stridxlist_hash_traits): Use tree_decl_hash.
9887 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9889         * tree-hash-traits.h: New file.
9890         (tree_operand_hash): New class.
9891         * sanopt.c: Include tree-hash-traits.h.
9892         (sanopt_tree_map_traits): Use tree_operand_hash.
9893         * tree-if-conv.c: Include tree-hash-traits.h.
9894         (phi_args_hash_traits): Use tree_operand_hash.
9895         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
9896         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
9898 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9900         * hash-map-traits.h: Include hash-traits.h.
9901         (simple_hashmap_traits): New class.
9902         * mem-stats.h (hash_map): Change the default traits to
9903         simple_hashmap_traits<default_hash_traits<Key> >.
9905 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9907         * hash-table.h: Update comments.
9909 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9911         * hash-traits.h (default_hash_traits): New structure.
9912         * hash-set.h (default_hashset_traits): Delete.
9913         (hash_set): Use default_hash_traits<Key> instead of
9914         default_hashset_traits.  Delete hash_entry type and use Key directly.
9915         * ipa-devirt.c (pair_traits): Delete.
9916         (default_hash_traits <type_pair>): Override.
9917         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
9918         (odr_types_equivalent_p, add_type_duplicate): Likewise.
9920 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9922         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
9924 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9926         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
9927         (has_is_empty, is_empty_helper): Delete.
9928         (has_mark_deleted, mark_deleted_helper): Delete.
9929         (has_mark_empty, mark_empty_helper): Delete.
9930         (hash_table::is_deleted): Call the Descriptor unconditionally.
9931         (hash_table::is_empty): Likewise.
9932         (hash_table::mark_deleted): Likewise.
9933         (hash_table::mark_empty): Likewise.
9935 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9937         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
9938         redundant typedefs and members.
9939         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
9940         redundant typedefs.
9941         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
9942         * ipa-devirt.c (odr_name_hasher): Likewise.
9943         (polymorphic_call_target_hasher): Likewise.
9944         * ira-costs.c (cost_classes_hasher): Likewise.
9945         * statistics.c (stats_counter_hasher): Likewise.
9946         * trans-mem.c (log_entry_hasher): Likewise.
9947         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
9948         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
9949         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
9950         * var-tracking.c (variable_hasher): Likewise.
9951         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
9952         Remove redundant typedefs and members.
9954 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9956         * hash-traits.h (ggc_cache_hasher): Rename to...
9957         (ggc_cache_remove): ...this and remove typedefs.
9958         (ggc_cache_ptr_hash): New class.
9959         * hash-table.h: Update commentary.
9960         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
9961         rather than ggc_cache_hasher.
9962         (const_wide_int_hasher, reg_attr_hasher): Likewise.
9963         (const_double_hasher, const_fixed_hasher): Likewise.
9964         * function.c (insn_cache_hasher): Likewise.
9965         * trans-mem.c (tm_wrapper_hasher): Likewise.
9966         * tree.h (tree_decl_map_cache_hasher): Likewise.
9967         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
9968         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
9969         * ubsan.c (tree_type_map_cache_hasher): Likewise.
9970         * varasm.c (tm_clone_hasher): Likewise.
9971         * config/i386/i386.c (dllimport_hasher): Likewise.
9972         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
9973         (tree_hasher): Likewise.
9975 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
9977         * hash-traits.h (ggc_hasher): Rename to...
9978         (ggc_remover): ...this and remove typedefs.
9979         (ggc_cache_hasher): Update accordingly.  Add typedefs.
9980         (ggc_ptr_hash): New class.
9981         * hash-table.h: Update comment.
9982         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
9983         ggc_hasher.
9984         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
9985         (tree_descriptor_hasher): Likewise.
9986         * cgraph.c (function_version_hasher): Likewise.
9987         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
9988         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
9989         (dw_loc_list_hasher, addr_hasher): Likewise.
9990         * function.h (used_type_hasher): Likewise.
9991         * function.c (temp_address_hasher): Likewise.
9992         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
9993         * libfuncs.h (libfunc_hasher): Likewise.
9994         * lto-streamer.h (decl_state_hasher): Likewise.
9995         * optabs.c (libfunc_decl_hasher): Likewise.
9996         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
9997         * varasm.c (section_hasher, object_block_hasher): Likewise.
9998         (const_rtx_desc_hasher): Likewise.
9999         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
10000         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
10002 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10004         * hash-traits.h (free_ptr_hash): New class.
10005         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
10006         rather than typed_free_remove.  Remove redudant typedefs.
10007         (external_ref_hasher): Likewise.
10008         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
10009         (ehspec_hasher): Likewise.
10010         * ggc-common.c (saving_hasher): Likewise.
10011         * gimplify.c (gimplify_hasher): Likewise.
10012         * haifa-sched.c (delay_i2_hasher): Likewise.
10013         * loop-invariant.c (invariant_expr_hasher): Likewise.
10014         * loop-iv.c (biv_entry_hasher): Likewise.
10015         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
10016         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
10017         * tree-cfg.c (locus_discrim_hasher): Likewise.
10018         * tree-eh.c (finally_tree_hasher): Likewise.
10019         * tree-into-ssa.c (var_info_hasher): Likewise.
10020         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
10021         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
10022         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
10023         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
10024         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
10025         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
10026         (shared_bitmap_hasher): Likewise.
10027         * tree-ssa-threadupdate.c (redirection_data): Likewise.
10028         * tree-vectorizer.h (peel_info_hasher): Likewise.
10029         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
10030         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
10032 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10034         * hash-table.h: Update comments.
10035         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
10036         (nofree_ptr_hash): New class.
10037         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
10038         than typed_noop_remove.  Remove redudant typedefs.
10039         * attribs.c (attribute_hasher): Likewise.
10040         * cfg.c (bb_copy_hasher): Likewise.
10041         * cselib.c (cselib_hasher): Likewise.
10042         * dse.c (invariant_group_base_hasher): Likewise.
10043         * dwarf2cfi.c (trace_info_hasher): Likewise.
10044         * dwarf2out.c (macinfo_entry_hasher): Likewise.
10045         (comdat_type_hasher, loc_list_hasher): Likewise.
10046         * gcse.c (pre_ldst_expr_hasher): Likewise.
10047         * genmatch.c (id_base): Likewise.
10048         * genrecog.c (test_pattern_hasher): Likewise.
10049         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
10050         * haifa-sched.c (delay_i1_hasher): Likewise.
10051         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
10052         * ipa-icf.h (congruence_class_group_hash): Likewise.
10053         * ipa-profile.c (histogram_hash): Likewise.
10054         * ira-color.c (allocno_hard_regs_hasher): Likewise.
10055         * lto-streamer.h (string_slot_hasher): Likewise.
10056         * lto-streamer.c (tree_entry_hasher): Likewise.
10057         * plugin.c (event_hasher): Likewise.
10058         * postreload-gcse.c (expr_hasher): Likewise.
10059         * store-motion.c (st_expr_hasher): Likewise.
10060         * tree-sra.c (uid_decl_hasher): Likewise.
10061         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
10062         (ssa_name_var_hash): Likewise.
10063         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
10064         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
10065         * tree-ssa-pre.c (pre_expr_d): Likewise.
10066         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
10067         * vtable-verify.h (registration_hasher): Likewise.
10068         * vtable-verify.c (vtbl_map_hasher): Likewise.
10069         * config/arm/arm.c (libcall_hasher): Likewise.
10070         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
10071         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
10072         * config/sol2.c (comdat_entry_hasher): Likewise.
10073         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
10074         (print_fold_checksum, fold_checksum_tree): Likewise.
10075         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
10076         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
10077         (fold_build_call_array_loc): Likewise.
10078         * tree-ssa-ccp.c (gimple_htab): Likewise.
10079         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
10080         rather than pointer_type.
10082 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10084         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
10085         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
10087 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10089         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
10090         (ggc_hasher::ggc_mx): Likewise.
10091         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
10092         that duplicate ggc_hasher ones.
10094 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10096         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
10097         (gt_cleare_cache): Check here for deleted and empty entries.
10098         Replace handle_cache_entry with a call to keep_cache_entry.
10099         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
10100         (ggc_cache_hasher::keep_cache_entry): New function.
10101         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
10102         (tm_wrapper_hasher::keep_cache_entry): New function.
10103         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
10104         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10105         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
10106         (type_cache_hasher::keep_cache_entry): New function.
10107         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
10108         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
10109         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
10110         (tree_type_map_cache_hasher::keep_cache_entry): New function.
10111         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
10112         (tm_clone_hasher::keep_cache_entry): New function.
10113         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
10114         (dllimport_hasher::keep_cache_entry): New function.
10116 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10118         * hash-table.h: Include hash-traits.h.
10119         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
10120         (ggc_cache_hasher): Move to...
10121         * hash-traits.h: ...this new file.
10123 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10125         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
10126         struct cl_optimization.
10127         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
10128         * tree.c (make_node_stat): Allocate cl_optimization struct.
10129         (copy_node_stat): Allocate and copy cl_optimization struct.
10131 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10133         * function.h (struct incoming_args): Move struct.
10134         (pass_by_reference, reference_callee_copied): Remove prototypes.
10135         * emit-rtl.h (struct incoming_args): Relocate struct here.
10136         * calls.h (pass_by_reference, reference_callee_copied): Relocate
10137         prototypes here.
10138         * function.c (pass_by_reference, reference_callee_copied): Move.
10139         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
10140         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
10141         * ipa-chkp.c: Include calls.h.
10143 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
10145         * alias.h (alias_set_type): Move typedef.
10146         * coretypes.h (alias_set_type): Relocate typedef here.
10147         * rtl.h: Don't include alias.h.
10149 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
10151         * cgraph.h (cgraph_rtl_info): Move to rtl.h
10152         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
10153         and instance.
10154         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
10155         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
10156         doesn't exist.
10157         * calls.c: Include hard-reg-set.h before rtl.h.
10158         * ira.c: Likewise.
10160 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
10161             Vladimir Makarov  <vmakarov@redhat.com>
10163         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
10164         Add assert.
10166 2015-06-25  Richard Biener  <rguenther@suse.de>
10168         * fold-const.c (fold_binary_loc): Move simplification of
10169         (X <<>> C1) & C2 ...
10170         * match.pd: ... here.
10172 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
10174         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
10176 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
10178         * match.pd: Add patterns for vec_conds between 1 and 0.
10180 2015-06-25  Richard Biener  <rguenther@suse.de>
10182         * tree-vect-stmts.c (vectorizable_conversion): Do not set
10183         STMT_VINFO_VEC_STMT for SLP.
10184         (vectorizable_store): Likewise.
10185         (vectorizable_load): Likewise.
10186         (vect_transform_stmt): Catch SLP vectorization clobbering
10187         STMT_VINFO_VEC_STMT.
10189 2015-06-25  Richard Biener  <rguenther@suse.de>
10191         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
10192         dumping.
10193         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
10194         cleanup resulting dead code and parameters.
10195         (vect_transform_slp_perm_load): Adjust.
10197 2015-06-25  Nick Clifton  <nickc@redhat.com>
10199         * config/bfin/bfin.c (bfin_expand_prologue): Set
10200         current_function_static_stack_size if flag_stack_usage_info is set.
10201         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10202         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
10203         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
10204         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
10206 2015-06-25  Tom de Vries  <tom@codesourcery.com>
10208         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
10209         comment that the generated IV is unsigned.
10211 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10213         PR target/29693
10214         * config/arm/arm.c (arm_dbx_register_number): Return
10215         DWARF_FRAME_REGISTERS by default.
10217 2015-06-25  Tom de Vries  <tom@codesourcery.com>
10219         * dominance.c (calculate_dominance_info): Fix verify_dominators call
10220         argument.  Call verify_dominator when reusing dominator info.
10222 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10224         PR target/66563
10225         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
10226         an additional element of the unspec vector.  Modify indices
10227         of operands.
10228         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
10229         * config/sh/sh.c (prepare_move_operands): Pass incremented
10230         const_int to gen_GOTaddr2picreg.
10231         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
10233 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
10235         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
10236         Condition on TARGET_FLOAT.
10238 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
10240         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
10241         and (no)crypto.
10243 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
10245         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
10247         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
10248         aarch64_err_no_fpadvsimd.
10250         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
10251         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
10252         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
10253         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
10254         Turn error into assert, test TARGET_FLOAT.
10255         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
10256         TARGET_FLOAT.
10258 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
10260         PR debug/66482
10261         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
10263 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
10265         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
10267 2015-06-24 Renlin Li <renlin.li@arm.com>
10269         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
10270         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
10272 2015-06-24  Richard Biener  <rguenther@suse.de>
10274         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
10275         (main): Likewise.
10276         (lower_opt_convert): Support lowering of conditional view_convert.
10277         (parser::parse_operation): Likewise.
10278         (parser::parse_for): Likewise.
10280 2015-06-24  Renlin Li  <renlin.li@arm.com>
10282         * varasm.c (emit_local): Use unsigned int for align variable.
10284 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10286         PR target/63408
10287         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
10288         for negative numbers.
10290 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10292         PR rtl-optimization/66306
10293         * reload.c (find_reloads): Swap the match_dup info for
10294         commutative operands.
10296 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10298         * config/s390/vx-builtins.md
10299         ("vec_scatter_element<mode>_<non_vec_int>")
10300         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
10301         attribute with bhfgq.
10303 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10305         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
10307 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10309         * config/s390/s390-builtin-types.def: Add flag to indicate the
10310         options under which the function type is needed.
10311         * config/s390/s390-builtins.def: Add flag to indicate the options
10312         under which the builtin is enabled.
10313         * config/s390/s390-builtins.h: Add flags parameter to macro
10314         definitions.
10315         (bflags_for_builtin): New function.
10316         (flags_for_builtin): Renamed to ...
10317         (opflags_for_builtin): ... this.
10318         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
10319         flags_for_builtin to bflags_for_builtin and
10320         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
10321         * config/s390/s390.c: Add initialization of bflags_builtin and
10322         opflags_builtin arrays.
10323         Remove code for flags_builtin.
10324         (s390_init_builtins): Only create builtin function types if one of
10325         their flags is active.
10326         Only create builtins if all of their flags are active.
10327         (s390_expand_builtin): Rename flags_for_builtin to
10328         opflags_for_builtin.
10330 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10332         * config/s390/vecintrin.h: Remove internal builtins.
10334 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10336         * config/s390/s390.c (s390_secondary_reload): Fix check for
10337         GENERAL_REGS register class.
10339 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10341         * config/s390/s390.c (s390_support_vector_misalignment): Call
10342         default implementation for !TARGET_VX.
10344 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10346         * config/s390/s390.c (s390_legitimate_constant_p): Add
10347         TARGET_VX check.
10349 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10351         * config/s390/s390.c (s390_vector_abi): New variable definition.
10352         (s390_check_type_for_vector_abi): New function.
10353         (TARGET_ASM_FILE_END): New macro definition.
10354         (s390_asm_file_end): New function.
10355         (s390_function_arg): Call s390_check_type_for_vector_abi.
10356         (s390_gimplify_va_arg): Likewise.
10357         * configure: Regenerate.
10358         * configure.ac: Check for .gnu_attribute Binutils feature.
10360 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
10362         PR target/65803
10363         * config/bfin/bfin.c (hwloop_optimize): Initialize
10364         JUMP_LABEL for newly created jump.
10366 2015-06-23  Tristan Gingold  <gingold@adacore.com>
10368         * collect-utils.c (collect_wait): Unlink the response file here
10369         instead of...
10370         (do_wait): ...here.
10371         (utils_cleanup): ...and here.
10373 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
10375         * df-scan.c: Don't include target-def.h.
10376         * targhooks.c: Likewise.
10377         * config/arm/arm-c.c: Likewise.
10378         * config/i386/i386-c.c: Likewise.
10379         * config/nds32/nds32-cost.c: Likewise.
10380         * config/nds32/nds32-fp-as-gp.c: Likewise.
10381         * config/nds32/nds32-intrinsic.c: Likewise.
10382         * config/nds32/nds32-isr.c: Likewise.
10383         * config/nds32/nds32-md-auxiliary.c: Likewise.
10384         * config/nds32/nds32-memory-manipulation.c: Likewise.
10385         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10386         * config/nds32/nds32-predicates.c: Likewise.
10388 2015-06-23  Richard Biener  <rguenther@suse.de>
10390         PR tree-optimization/66636
10391         * tree-vect-stmts.c (vectorizable_store): Properly compute the
10392         def type for further defs for strided stores.
10394 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
10396         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
10397         conditional selects.
10398         (setcc_int<mode>, setcc_float<mode>): Reformat.
10400 2015-06-23  Marek Polacek  <polacek@redhat.com>
10402         * match.pd ((x + y) - (x | y) -> x & y,
10403         (x + y) - (x & y) -> x | y): New patterns.
10405 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
10407         PR 65711
10408         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
10409         '-dynamic-linker' within %{!shared: ...}.
10411 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
10413         PR target/66560
10414         * config/i386/predicates.md (addsub_vm_operator): New predicate.
10415         (addsub_vs_operator): Ditto.
10416         (addsub_vs_parallel): Ditto.
10417         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
10418         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
10419         Put minus RTX before plus and adjust vec_merge selector.
10420         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
10421         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
10422         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
10423         (addsub vec_merge splitters): New combiner splitters.
10424         (addsub vec_select/vec_concat splitters): Ditto.
10426 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
10428         PR tree-optimization/66449
10429         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
10430         POINTER_PLUS_EXPR for pointers.
10432 2015-06-23  Alan Modra  <amodra@gmail.com>
10434         * rtlanal.c (commutative_operand_precedence): Correct comments.
10435         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
10436         declaration.  Return an int.  Distinguish REG,REG return from
10437         others.
10438         (struct simplify_plus_minus_op_data): Make local to function.
10439         (simplify_plus_minus): Don't set canonicalized if merely sorting
10440         registers.  Avoid packing ops if nothing changes.  White space fixes.
10442 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
10444         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
10445         -fdump-ada-spec is passed but not if -fsyntax-only is.
10447 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
10449         PR bootstrap/63740
10450         * lra-lives.c (process_bb_lives): Check insn copying the same
10451         reload pseudo and don't create a copy for it.
10453 2015-06-22  Tom de Vries  <tom@codesourcery.com>
10455         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
10456         for cond_stmt.
10458 2015-06-22  Tom de Vries  <tom@codesourcery.com>
10460         * builtins.def (DEF_GOMP_BUILTIN): Test
10461         'flag_tree_parallelize_loops > 1' instead of
10462         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
10464 2015-06-22  Tom de Vries  <tom@codesourcery.com>
10466         * dominance.c (calculate_dominance_info): Verify dominators if
10467         early-out.
10469 2015-06-22  Marek Polacek  <polacek@redhat.com>
10471         * match.pd ((x ^ y) ^ (x | y) -> x & y,
10472         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
10473         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
10474         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
10476 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
10478         PR target/65871
10479         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
10480         cost of embedded comparison.
10482 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10484         PR target/65914
10485         * config/rs6000/predicates.md (altivec_register_operand): Permit
10486         virtual stack registers.
10487         (vsx_register_operand): Likewise.
10488         (vfloat_operand): Likewise.
10489         (vint_operand): Likewise.
10490         (vlogical_operand): Likewise.
10492 2015-06-22  Richard Biener  <rguenther@suse.de>
10494         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
10495         and single_scalar_iteration_cost members.
10496         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
10497         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
10498         (vect_get_single_scalar_iteration_cost): Remove.
10499         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
10500         Use LOOP_VINFO_SCALAR_ITERATION_COST.
10501         * tree-vect-loop.c (destroy_loop_vec_info): Free
10502         scalar_cost_vec.
10503         (vect_get_single_scalar_iteration_cost): Compute result into
10504         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
10505         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
10506         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
10507         (vect_estimate_min_profitable_iters): Use them.
10509 2015-06-22  Christian Bruel  <christian.bruel@st.com>
10511         PR target/52144
10512         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
10513         (TARGET_INSERT_ATTRIBUTES): Define.
10514         (thumb_flipper): New var.
10515         * config/arm/arm.opt (-mflip-thumb): New switch.
10517 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
10518             Martin Liska  <mliska@suse.cz>
10520         PR ipa/65908
10521         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
10522         construction of arg_types.
10523         (sem_function::sem_function): Likewise.
10524         (sem_function::~sem_function): Remove destruction of arg_types.
10525         (sem_function::compatible_parm_types_p): New function.
10526         (sem_function::equals_wpa): Reorg matching of return values
10527         and parameter types.
10528         (sem_function::equals_private): Reorg mathcing of argument types.
10529         (sem_function::parse_tree_args): Remove.
10530         * ipa-icf.h (init_wpa): Do not call it.
10531         (parse_tree_args): Remove.
10532         (compatible_parm_types_p): Declare.
10533         (result_type): Remove.
10534         (arg_types): Remove.
10536 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
10538         PR ipa/66351
10539         * ipa-polymorphic-call.c
10540         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
10541         initializing alias oracle; fix formating; set base_alias_set if it
10542         is known.
10544 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
10546         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
10547         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
10548         (find_inc): Likewise.
10549         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
10550         swapping.
10551         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
10552         * df-scan.c (df_swap_refs): Remove.
10553         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
10554         * dominance.c (link_roots): Use std::swap instead of manually swapping.
10555         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
10556         * fold-const.c (fold_relational_const): Likewise.
10557         * genattrtab.c (simplify_test_exp): Likewise.
10558         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
10559         gimple_simplify): Likewise.
10560         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
10561         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
10562         * ipa-devirt.c (add_type_duplicate): Likewise.
10563         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
10564         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
10565         * lra.c (lra_create_copy): Likewise.
10566         * lto-streamer-out.c (DFS::DFS): Likewise.
10567         * modulo-sched.c (get_sched_window): Likewise.
10568         * omega.c (omega_pretty_print_problem): Likewise.
10569         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
10570         * reload1.c (reloads_unique_chain_p): Likewise.
10571         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
10572         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
10573         use std::swap.
10574         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
10575         manually swapping.
10576         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
10577         predicate_mem_writes): Likewise.
10578         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
10579         * tree-predcom.c (combine_chains): Likewise.
10580         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
10581         refs_may_alias_p_1): Likewise.
10582         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
10583         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
10584         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
10585         number_of_iterations_cond): Likewise.
10586         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
10587         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
10588         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
10589         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
10590         * tree-vrp.c (extract_range_from_binary_expr_1,
10591         extract_range_from_unary_expr_1): Likewise.
10593 2015-06-20  Marek Polacek  <polacek@redhat.com>
10595         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
10597 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10599         PR target/66591
10600         * config/sh/sh.c (prepare_move_operands): Replace subreg
10601         index term with R0 for base and index addressing.
10603 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
10605         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
10606         op1 is an fp zero.
10607         (movsf_aarch64): Change condition from register_operand to
10608         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
10609         load1.  Change type for alternative 7 to store1.
10610         (movdf_aarch64): Likewise.
10612 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
10614         * config/vax/vax.md: Adjust sign/zero extend patterns to
10615         handle SUBREGs in operands[1].
10617 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10619         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
10620         of manually swapping.
10621         (expand_vec_perm_interleave2): Likewise.
10623 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
10625         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
10626         reuse bounds created for abnormal ssa names.
10628 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
10630         * config/nvptx/nvptx.md (allocate_stack): Rename to...
10631         (allocate_stack_<mode>): ... this, and add :P on both
10632         match_operand and unspec.
10633         (allocate_stack): New expander.
10635 2015-06-19  Christian Bruel  <christian.bruel@st.com>
10637         PR target/66541
10638         PR target/52144
10639         * config/arm/arm.c (arm_set_current_function): Handle
10640         explicit default options.
10642 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
10644         * config/i386/i386.md (*movsicc_noc_zext): New insn.
10645         (zero-extended cmove with mem peephole2): New pattern.
10646         (cmove with mem peephole2): Merge patterns.
10648 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
10650         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
10652 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
10654         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
10655         * config/mips/mips.md (*madd4<mode>): Ditto.
10656         (*nmadd3<mode>) Ditto.
10657         (*nmadd4<mode>_fastmath): Ditto.
10658         (*nmadd3<mode>_fastmath): Ditto.
10659         (*nmsub4<mode>): Ditto.
10660         (*nmsub3<mode>): Ditto.
10661         (*nmsub4<mode>_fastmath): Ditto.
10662         (*nmsub3<mode>_fastmath): Ditto.
10664 2015-06-18  Michael Matz  <matz@suse.de>
10666         PR middle-end/66253
10667         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
10668         grouped strided stores.
10669         (vectorizable_load): Don't use the DR from first_stmt in
10670         the non-SLP grouped strided case.
10672 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10674         PR target/66569
10675         * function.c (assign_bounds): Add arguments assign_regs,
10676         assign_special, assign_bt.
10677         (assign_parms): For vararg functions handle bounds in BT
10678         and special slots after incoming vararg bounds.
10680 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10682         PR middle-end/66568
10683         * cfgexpand.c (expand_return): Handle missing bounds.
10684         (expand_gimple_stmt_1): Likewise.
10685         * tree-chkp.c (chkp_expand_zero_bounds): New.
10686         * tree-chkp.h (chkp_expand_zero_bounds): New.
10688 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
10690         PR middle-end/66567
10691         * ipa-chkp.c (chkp_maybe_create_clone): Require
10692         functions to be instrumentable.
10693         * tree-chkp.c (chkp_replace_function_pointer): Use
10694         chkp_instrumentable_p instead of attribute check.
10696 2015-06-18  Richard Biener  <rguenther@suse.de>
10698         PR tree-optimization/66510
10699         * tree-vect-stmts.c (vectorizable_load): Properly compute the
10700         number of vector loads for SLP permuted loads.
10701         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
10702         check the stride for loop vectorization.
10703         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
10704         vectorization factor.
10705         (vect_analyze_group_access): If the group size is not a power
10706         of two require a epilogue loop.
10707         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
10708         compute and optimizing and alias test pruning after final
10709         vectorization factor computation.
10710         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
10711         vector alignment.
10712         (vect_transform_slp_perm_load): Properly compute the original
10713         number of vector load stmts.
10715 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
10717         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
10718         "unlikely character , in @var" warning.
10720 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
10722         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
10723         (ix86_function_arg_advance): Ditto.
10724         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
10726 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
10728         * function.h (struct rtl_data): Remove struct and accessor macros.
10729         * emit-rtl.h (struct rtl_data): Relocate to here.
10730         * Makefile.in (GTFILES): Add emit-rtl.h.
10731         * df-core.c: Include emit-rtl.h.
10732         * genattrtab.c: Likewise.
10733         * genconditions.c: Likewise.
10734         * genpreds.c: Likewise.
10735         * genrecog.c: Likewise.
10736         * regcprop.c: Likewise.
10737         * resource.c: Likewise.
10738         * sched-rgn.c: Likewise.
10739         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10740         * config/i386/winnt.c: Likewise.
10742 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
10744         PR middle-end/66429
10745         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
10746         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
10747         and has_force_vectorize_loops flags from cfun into
10748         child_cfun.
10749         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
10750         if simduid is non-NULL.
10751         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
10752         * passes.def (pass_simduid_cleanup): Add new pass after loop
10753         passes.
10754         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
10755         indirection from htab argument's type.
10756         (shrink_simd_arrays): New function.
10757         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
10758         Don't call adjust_simduid_builtins if there are no loops.
10759         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
10760         (pass_simduid_cleanup::execute): New method.
10761         (make_pass_simduid_cleanup): New function.
10763 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
10765         * tree-core.h (tree_target_option): Make opts field a pointer to a
10766         cl_target_option instead of an instance of the struct.
10767         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
10768         the structure.
10769         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
10770         TARGET_OPTION_NODE.
10771         (copy_node_stat): Allocate and copy struct cl_target_option.
10773 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
10775         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
10776         Remove conditional exposure of prototypes.
10777         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
10778         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
10779         definitions in tree.h with functions.
10780         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
10781         anon_aggrname_p.
10782         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
10784 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
10786         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
10787         (*cmp<mode>_signed): ... this.
10788         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
10789         (*cmp<mode>_unsigned): ... this.  Remove %b.
10791 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
10793         * coretypes.h: Include input.h and as-a.h.
10794         * rtl.h: Include input.h and as-a.h for generator files.
10795         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
10796         * vec.c: Don't include diagnostic-core.h.
10797         * alias.c: Do not include input.h, line-map.h or is-a.h.
10798         * asan.c: Likewise.
10799         * attribs.c: Likewise.
10800         * auto-inc-dec.c: Likewise.
10801         * auto-profile.c: Likewise.
10802         * bb-reorder.c: Likewise.
10803         * bt-load.c: Likewise.
10804         * builtins.c: Likewise.
10805         * caller-save.c: Likewise.
10806         * calls.c: Likewise.
10807         * ccmp.c: Likewise.
10808         * cfg.c: Likewise.
10809         * cfganal.c: Likewise.
10810         * cfgbuild.c: Likewise.
10811         * cfgcleanup.c: Likewise.
10812         * cfgexpand.c: Likewise.
10813         * cfghooks.c: Likewise.
10814         * cfgloop.c: Likewise.
10815         * cfgloop.h: Likewise.
10816         * cfgloopanal.c: Likewise.
10817         * cfgloopmanip.c: Likewise.
10818         * cfgrtl.c: Likewise.
10819         * cgraph.c: Likewise.
10820         * cgraphbuild.c: Likewise.
10821         * cgraphclones.c: Likewise.
10822         * cgraphunit.c: Likewise.
10823         * cilk-common.c: Likewise.
10824         * combine-stack-adj.c: Likewise.
10825         * combine.c: Likewise.
10826         * compare-elim.c: Likewise.
10827         * convert.c: Likewise.
10828         * coverage.c: Likewise.
10829         * cppbuiltin.c: Likewise.
10830         * cprop.c: Likewise.
10831         * cse.c: Likewise.
10832         * cselib.c: Likewise.
10833         * data-streamer-in.c: Likewise.
10834         * data-streamer-out.c: Likewise.
10835         * data-streamer.c: Likewise.
10836         * dbxout.c: Likewise.
10837         * dce.c: Likewise.
10838         * ddg.c: Likewise.
10839         * debug.c: Likewise.
10840         * df-core.c: Likewise.
10841         * df-problems.c: Likewise.
10842         * df-scan.c: Likewise.
10843         * df.h: Likewise.
10844         * dfp.c: Likewise.
10845         * diagnostic-core.h: Likewise.
10846         * diagnostic.c: Likewise.
10847         * dojump.c: Likewise.
10848         * dominance.c: Likewise.
10849         * domwalk.c: Likewise.
10850         * double-int.c: Likewise.
10851         * dse.c: Likewise.
10852         * dumpfile.c: Likewise.
10853         * dumpfile.h: Likewise.
10854         * dwarf2asm.c: Likewise.
10855         * dwarf2cfi.c: Likewise.
10856         * dwarf2out.c: Likewise.
10857         * emit-rtl.c: Likewise.
10858         * et-forest.c: Likewise.
10859         * except.c: Likewise.
10860         * explow.c: Likewise.
10861         * expmed.c: Likewise.
10862         * expr.c: Likewise.
10863         * final.c: Likewise.
10864         * fixed-value.c: Likewise.
10865         * fold-const.c: Likewise.
10866         * function.c: Likewise.
10867         * fwprop.c: Likewise.
10868         * gcc-plugin.h: Likewise.
10869         * gcse.c: Likewise.
10870         * generic-match-head.c: Likewise.
10871         * ggc-page.c: Likewise.
10872         * gimple-builder.c: Likewise.
10873         * gimple-expr.c: Likewise.
10874         * gimple-fold.c: Likewise.
10875         * gimple-iterator.c: Likewise.
10876         * gimple-low.c: Likewise.
10877         * gimple-match-head.c: Likewise.
10878         * gimple-pretty-print.c: Likewise.
10879         * gimple-ssa-isolate-paths.c: Likewise.
10880         * gimple-ssa-strength-reduction.c: Likewise.
10881         * gimple-streamer-in.c: Likewise.
10882         * gimple-streamer-out.c: Likewise.
10883         * gimple-streamer.h: Likewise.
10884         * gimple-walk.c: Likewise.
10885         * gimple.c: Likewise.
10886         * gimplify-me.c: Likewise.
10887         * gimplify.c: Likewise.
10888         * godump.c: Likewise.
10889         * graph.c: Likewise.
10890         * graphite-blocking.c: Likewise.
10891         * graphite-dependences.c: Likewise.
10892         * graphite-interchange.c: Likewise.
10893         * graphite-isl-ast-to-gimple.c: Likewise.
10894         * graphite-optimize-isl.c: Likewise.
10895         * graphite-poly.c: Likewise.
10896         * graphite-scop-detection.c: Likewise.
10897         * graphite-sese-to-poly.c: Likewise.
10898         * graphite.c: Likewise.
10899         * haifa-sched.c: Likewise.
10900         * hw-doloop.c: Likewise.
10901         * ifcvt.c: Likewise.
10902         * init-regs.c: Likewise.
10903         * input.c: Likewise.
10904         * internal-fn.c: Likewise.
10905         * ipa-chkp.c: Likewise.
10906         * ipa-comdats.c: Likewise.
10907         * ipa-cp.c: Likewise.
10908         * ipa-devirt.c: Likewise.
10909         * ipa-icf-gimple.c: Likewise.
10910         * ipa-icf.c: Likewise.
10911         * ipa-inline-analysis.c: Likewise.
10912         * ipa-inline-transform.c: Likewise.
10913         * ipa-inline.c: Likewise.
10914         * ipa-polymorphic-call.c: Likewise.
10915         * ipa-profile.c: Likewise.
10916         * ipa-prop.c: Likewise.
10917         * ipa-pure-const.c: Likewise.
10918         * ipa-ref.c: Likewise.
10919         * ipa-reference.c: Likewise.
10920         * ipa-split.c: Likewise.
10921         * ipa-utils.c: Likewise.
10922         * ipa-visibility.c: Likewise.
10923         * ipa.c: Likewise.
10924         * ira-build.c: Likewise.
10925         * ira-color.c: Likewise.
10926         * ira-conflicts.c: Likewise.
10927         * ira-costs.c: Likewise.
10928         * ira-emit.c: Likewise.
10929         * ira-lives.c: Likewise.
10930         * ira.c: Likewise.
10931         * jump.c: Likewise.
10932         * langhooks.c: Likewise.
10933         * lcm.c: Likewise.
10934         * loop-doloop.c: Likewise.
10935         * loop-init.c: Likewise.
10936         * loop-invariant.c: Likewise.
10937         * loop-iv.c: Likewise.
10938         * loop-unroll.c: Likewise.
10939         * lower-subreg.c: Likewise.
10940         * lra-assigns.c: Likewise.
10941         * lra-coalesce.c: Likewise.
10942         * lra-constraints.c: Likewise.
10943         * lra-eliminations.c: Likewise.
10944         * lra-lives.c: Likewise.
10945         * lra-remat.c: Likewise.
10946         * lra-spills.c: Likewise.
10947         * lra.c: Likewise.
10948         * lto-cgraph.c: Likewise.
10949         * lto-compress.c: Likewise.
10950         * lto-opts.c: Likewise.
10951         * lto-section-in.c: Likewise.
10952         * lto-section-out.c: Likewise.
10953         * lto-streamer-in.c: Likewise.
10954         * lto-streamer-out.c: Likewise.
10955         * lto-streamer.c: Likewise.
10956         * mcf.c: Likewise.
10957         * mode-switching.c: Likewise.
10958         * modulo-sched.c: Likewise.
10959         * omega.c: Likewise.
10960         * omp-low.c: Likewise.
10961         * optabs.c: Likewise.
10962         * opts-global.c: Likewise.
10963         * opts.h: Likewise.
10964         * passes.c: Likewise.
10965         * plugin.c: Likewise.
10966         * postreload-gcse.c: Likewise.
10967         * postreload.c: Likewise.
10968         * predict.c: Likewise.
10969         * pretty-print.h: Likewise.
10970         * print-rtl.c: Likewise.
10971         * print-tree.c: Likewise.
10972         * profile.c: Likewise.
10973         * real.c: Likewise.
10974         * realmpfr.c: Likewise.
10975         * recog.c: Likewise.
10976         * ree.c: Likewise.
10977         * reg-stack.c: Likewise.
10978         * regcprop.c: Likewise.
10979         * reginfo.c: Likewise.
10980         * regrename.c: Likewise.
10981         * regstat.c: Likewise.
10982         * reload.c: Likewise.
10983         * reload1.c: Likewise.
10984         * reorg.c: Likewise.
10985         * resource.c: Likewise.
10986         * rtl-chkp.c: Likewise.
10987         * rtl-error.c: Likewise.
10988         * rtlanal.c: Likewise.
10989         * rtlhooks.c: Likewise.
10990         * sanopt.c: Likewise.
10991         * sched-deps.c: Likewise.
10992         * sched-ebb.c: Likewise.
10993         * sched-rgn.c: Likewise.
10994         * sched-vis.c: Likewise.
10995         * sdbout.c: Likewise.
10996         * sel-sched-dump.c: Likewise.
10997         * sel-sched-ir.c: Likewise.
10998         * sel-sched.c: Likewise.
10999         * sese.c: Likewise.
11000         * shrink-wrap.c: Likewise.
11001         * simplify-rtx.c: Likewise.
11002         * stack-ptr-mod.c: Likewise.
11003         * statistics.c: Likewise.
11004         * stmt.c: Likewise.
11005         * stor-layout.c: Likewise.
11006         * store-motion.c: Likewise.
11007         * streamer-hooks.c: Likewise.
11008         * stringpool.c: Likewise.
11009         * symtab.c: Likewise.
11010         * target-globals.c: Likewise.
11011         * targhooks.c: Likewise.
11012         * toplev.c: Likewise.
11013         * tracer.c: Likewise.
11014         * trans-mem.c: Likewise.
11015         * tree-affine.c: Likewise.
11016         * tree-browser.c: Likewise.
11017         * tree-call-cdce.c: Likewise.
11018         * tree-cfg.c: Likewise.
11019         * tree-cfgcleanup.c: Likewise.
11020         * tree-chkp-opt.c: Likewise.
11021         * tree-chkp.c: Likewise.
11022         * tree-chrec.c: Likewise.
11023         * tree-complex.c: Likewise.
11024         * tree-data-ref.c: Likewise.
11025         * tree-dfa.c: Likewise.
11026         * tree-diagnostic.c: Likewise.
11027         * tree-dump.c: Likewise.
11028         * tree-eh.c: Likewise.
11029         * tree-emutls.c: Likewise.
11030         * tree-if-conv.c: Likewise.
11031         * tree-inline.c: Likewise.
11032         * tree-into-ssa.c: Likewise.
11033         * tree-iterator.c: Likewise.
11034         * tree-loop-distribution.c: Likewise.
11035         * tree-nested.c: Likewise.
11036         * tree-nrv.c: Likewise.
11037         * tree-object-size.c: Likewise.
11038         * tree-outof-ssa.c: Likewise.
11039         * tree-parloops.c: Likewise.
11040         * tree-phinodes.c: Likewise.
11041         * tree-predcom.c: Likewise.
11042         * tree-pretty-print.c: Likewise.
11043         * tree-profile.c: Likewise.
11044         * tree-scalar-evolution.c: Likewise.
11045         * tree-sra.c: Likewise.
11046         * tree-ssa-address.c: Likewise.
11047         * tree-ssa-alias.c: Likewise.
11048         * tree-ssa-ccp.c: Likewise.
11049         * tree-ssa-coalesce.c: Likewise.
11050         * tree-ssa-copy.c: Likewise.
11051         * tree-ssa-copyrename.c: Likewise.
11052         * tree-ssa-dce.c: Likewise.
11053         * tree-ssa-dom.c: Likewise.
11054         * tree-ssa-dse.c: Likewise.
11055         * tree-ssa-forwprop.c: Likewise.
11056         * tree-ssa-ifcombine.c: Likewise.
11057         * tree-ssa-live.c: Likewise.
11058         * tree-ssa-loop-ch.c: Likewise.
11059         * tree-ssa-loop-im.c: Likewise.
11060         * tree-ssa-loop-ivcanon.c: Likewise.
11061         * tree-ssa-loop-ivopts.c: Likewise.
11062         * tree-ssa-loop-manip.c: Likewise.
11063         * tree-ssa-loop-niter.c: Likewise.
11064         * tree-ssa-loop-prefetch.c: Likewise.
11065         * tree-ssa-loop-unswitch.c: Likewise.
11066         * tree-ssa-loop.c: Likewise.
11067         * tree-ssa-math-opts.c: Likewise.
11068         * tree-ssa-operands.c: Likewise.
11069         * tree-ssa-phiopt.c: Likewise.
11070         * tree-ssa-phiprop.c: Likewise.
11071         * tree-ssa-pre.c: Likewise.
11072         * tree-ssa-propagate.c: Likewise.
11073         * tree-ssa-reassoc.c: Likewise.
11074         * tree-ssa-sccvn.c: Likewise.
11075         * tree-ssa-scopedtables.c: Likewise.
11076         * tree-ssa-sink.c: Likewise.
11077         * tree-ssa-strlen.c: Likewise.
11078         * tree-ssa-structalias.c: Likewise.
11079         * tree-ssa-tail-merge.c: Likewise.
11080         * tree-ssa-ter.c: Likewise.
11081         * tree-ssa-threadedge.c: Likewise.
11082         * tree-ssa-threadupdate.c: Likewise.
11083         * tree-ssa-uncprop.c: Likewise.
11084         * tree-ssa-uninit.c: Likewise.
11085         * tree-ssa.c: Likewise.
11086         * tree-ssanames.c: Likewise.
11087         * tree-stdarg.c: Likewise.
11088         * tree-streamer-in.c: Likewise.
11089         * tree-streamer-out.c: Likewise.
11090         * tree-streamer.c: Likewise.
11091         * tree-switch-conversion.c: Likewise.
11092         * tree-tailcall.c: Likewise.
11093         * tree-vect-data-refs.c: Likewise.
11094         * tree-vect-generic.c: Likewise.
11095         * tree-vect-loop-manip.c: Likewise.
11096         * tree-vect-loop.c: Likewise.
11097         * tree-vect-patterns.c: Likewise.
11098         * tree-vect-slp.c: Likewise.
11099         * tree-vect-stmts.c: Likewise.
11100         * tree-vectorizer.c: Likewise.
11101         * tree-vrp.c: Likewise.
11102         * tree.c: Likewise.
11103         * tsan.c: Likewise.
11104         * ubsan.c: Likewise.
11105         * valtrack.c: Likewise.
11106         * value-prof.c: Likewise.
11107         * var-tracking.c: Likewise.
11108         * varasm.c: Likewise.
11109         * varpool.c: Likewise.
11110         * vmsdbgout.c: Likewise.
11111         * vtable-verify.c: Likewise.
11112         * web.c: Likewise.
11113         * wide-int.cc: Likewise.
11114         * xcoffout.c: Likewise.
11115         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
11116         * common/common-targhooks.c: Likewise.
11117         * config/aarch64/aarch64-builtins.c: Likewise.
11118         * config/aarch64/aarch64.c: Likewise.
11119         * config/alpha/alpha.c: Likewise.
11120         * config/arc/arc.c: Likewise.
11121         * config/arm/aarch-common.c: Likewise.
11122         * config/arm/arm-builtins.c: Likewise.
11123         * config/arm/arm-c.c: Likewise.
11124         * config/arm/arm.c: Likewise.
11125         * config/avr/avr-c.c: Likewise.
11126         * config/avr/avr-log.c: Likewise.
11127         * config/avr/avr.c: Likewise.
11128         * config/bfin/bfin.c: Likewise.
11129         * config/c6x/c6x.c: Likewise.
11130         * config/cr16/cr16.c: Likewise.
11131         * config/cris/cris.c: Likewise.
11132         * config/darwin-c.c: Likewise.
11133         * config/darwin.c: Likewise.
11134         * config/default-c.c: Likewise.
11135         * config/epiphany/epiphany.c: Likewise.
11136         * config/epiphany/mode-switch-use.c: Likewise.
11137         * config/epiphany/resolve-sw-modes.c: Likewise.
11138         * config/fr30/fr30.c: Likewise.
11139         * config/frv/frv.c: Likewise.
11140         * config/ft32/ft32.c: Likewise.
11141         * config/glibc-c.c: Likewise.
11142         * config/h8300/h8300.c: Likewise.
11143         * config/i386/i386-c.c: Likewise.
11144         * config/i386/i386.c: Likewise.
11145         * config/i386/msformat-c.c: Likewise.
11146         * config/i386/winnt-cxx.c: Likewise.
11147         * config/i386/winnt-stubs.c: Likewise.
11148         * config/i386/winnt.c: Likewise.
11149         * config/ia64/ia64-c.c: Likewise.
11150         * config/ia64/ia64.c: Likewise.
11151         * config/iq2000/iq2000.c: Likewise.
11152         * config/lm32/lm32.c: Likewise.
11153         * config/m32c/m32c-pragma.c: Likewise.
11154         * config/m32c/m32c.c: Likewise.
11155         * config/m32r/m32r.c: Likewise.
11156         * config/m68k/m68k.c: Likewise.
11157         * config/mcore/mcore.c: Likewise.
11158         * config/mep/mep-pragma.c: Likewise.
11159         * config/mep/mep.c: Likewise.
11160         * config/microblaze/microblaze-c.c: Likewise.
11161         * config/microblaze/microblaze.c: Likewise.
11162         * config/mips/mips.c: Likewise.
11163         * config/mmix/mmix.c: Likewise.
11164         * config/mn10300/mn10300.c: Likewise.
11165         * config/moxie/moxie.c: Likewise.
11166         * config/msp430/msp430-c.c: Likewise.
11167         * config/msp430/msp430.c: Likewise.
11168         * config/nds32/nds32-cost.c: Likewise.
11169         * config/nds32/nds32-fp-as-gp.c: Likewise.
11170         * config/nds32/nds32-intrinsic.c: Likewise.
11171         * config/nds32/nds32-isr.c: Likewise.
11172         * config/nds32/nds32-md-auxiliary.c: Likewise.
11173         * config/nds32/nds32-memory-manipulation.c: Likewise.
11174         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11175         * config/nds32/nds32-predicates.c: Likewise.
11176         * config/nds32/nds32.c: Likewise.
11177         * config/nios2/nios2.c: Likewise.
11178         * config/nvptx/nvptx.c: Likewise.
11179         * config/pa/pa.c: Likewise.
11180         * config/pdp11/pdp11.c: Likewise.
11181         * config/rl78/rl78-c.c: Likewise.
11182         * config/rl78/rl78.c: Likewise.
11183         * config/rs6000/rs6000-c.c: Likewise.
11184         * config/rs6000/rs6000.c: Likewise.
11185         * config/rx/rx.c: Likewise.
11186         * config/s390/s390-c.c: Likewise.
11187         * config/s390/s390.c: Likewise.
11188         * config/sh/sh-c.c: Likewise.
11189         * config/sh/sh-mem.cc: Likewise.
11190         * config/sh/sh.c: Likewise.
11191         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11192         * config/sh/sh_treg_combine.cc: Likewise.
11193         * config/sol2-c.c: Likewise.
11194         * config/sol2-cxx.c: Likewise.
11195         * config/sol2-stubs.c: Likewise.
11196         * config/sol2.c: Likewise.
11197         * config/sparc/sparc-c.c: Likewise.
11198         * config/sparc/sparc.c: Likewise.
11199         * config/spu/spu-c.c: Likewise.
11200         * config/spu/spu.c: Likewise.
11201         * config/stormy16/stormy16.c: Likewise.
11202         * config/tilegx/mul-tables.c: Likewise.
11203         * config/tilegx/tilegx-c.c: Likewise.
11204         * config/tilegx/tilegx.c: Likewise.
11205         * config/tilepro/mul-tables.c: Likewise.
11206         * config/tilepro/tilepro-c.c: Likewise.
11207         * config/tilepro/tilepro.c: Likewise.
11208         * config/v850/v850-c.c: Likewise.
11209         * config/v850/v850.c: Likewise.
11210         * config/vax/vax.c: Likewise.
11211         * config/visium/visium.c: Likewise.
11212         * config/vms/vms-c.c: Likewise.
11213         * config/vms/vms.c: Likewise.
11214         * config/vxworks.c: Likewise.
11215         * config/winnt-c.c: Likewise.
11216         * config/xtensa/xtensa.c: Likewise.
11218 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
11220         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
11221         function.
11222         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
11224 2015-06-17  Richard Biener  <rguenther@suse.de>
11226         PR tree-optimization/66251
11227         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
11228         stmts for SLP strided stores.
11230         Revert
11231         2015-05-22  Richard Biener  <rguenther@suse.de>
11233         PR tree-optimization/66251
11234         * tree-vect-stmts.c (vectorizable_conversion): Properly
11235         set STMT_VINFO_VEC_STMT even for the SLP case.
11237         2015-05-26  Michael Matz  <matz@suse.de>
11239         PR middle-end/66251
11240         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
11241         STMT_VINFO_VEC_STMT, also with SLP.
11243 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
11245         PR target/56766
11246         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
11247         (*avx_addsubv4df3_1s): Ditto.
11248         (*sse3_addsubv2df3_1): Ditto.
11249         (*sse3_addsubv2df3_1s): Ditto.
11250         (*avx_addsubv8sf3_1): Ditto.
11251         (*avx_addsubv8sf3_1s): Ditto.
11252         (*sse3_addsubv4sf3_1): Ditto.
11253         (*sse3_addsubv4sf3_1s): Ditto.
11255 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
11257         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
11258         (SYSROOT_SUFFIX_SPEC): Update.
11259         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
11260         (STARTFILE_PREFIX_SPEC): Update.
11261         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
11262         (MULTILIB_REQUIRED): New.
11263         (MULTILIB_OSDIRNAMES): New.
11264         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
11265         (MULTILIB_REQUIRED): New.
11266         (MULTILIB_OSDIRNAMES): New.
11268 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
11270         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
11271         * config/aarch64/aarch64-options-extensions.def: Update "fP",
11272         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
11273         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
11274         (AARCH64_FL_PAN): New.
11275         (AARCH64_FL_LOR): New.
11276         (AARCH64_FL_RDMA): New.
11277         (AARCH64_FL_FOR_ARCH8_1): New.
11278         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
11279         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
11281 2015-06-16  Martin Liska  <mliska@suse.cz>
11283         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
11284         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
11285         guard.
11287 2015-06-16  Richard Biener  <rguenther@suse.de>
11289         * tree-vect-stmts.c (vectorizable_store): Adjust.
11290         (vectorizable_load): Likewise.
11291         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11292         Simplify.
11293         (vect_create_data_ref_ptr): Likewise.
11294         (bump_vector_ptr): Adjust.
11296 2015-06-16  Richard Biener  <rguenther@suse.de>
11298         * tree-vect-stmts.c (vectorizable_load): Properly start loads
11299         with the first element if this is grouped loads.
11301 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
11303         * config/arm/arm-protos.h (struct tune_params): Rename
11304         log_op_non_sc to log_op_non_short_circuit, and rename enum
11305         values to expand SC to SHORT_CIRCUIT.
11306         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
11307         to LOG_OP_NON_SHORT_CIRCUIT.
11308         (arm_fastmul_tune):Likewise
11309         (arm_strongarm_tune): Likewise.
11310         (arm_xscale_tune): Likewise.
11311         (arm_9e_tune): Likewise.
11312         (arm_marvell_pj4_tune): Likewise.
11313         (arm_v6t2_tune): Likewise.
11314         (arm_cortex_tune): Likewise.
11315         (arm_cortex_a8_tune): Likewise.
11316         (arm_cortex_a7_tune): Likewise.
11317         (arm_cortex_a15_tune): Likewise.
11318         (arm_cortex_a53_tune): Likewise.
11319         (arm_cortex_a57_tune): Likewise.
11320         (arm_xgene1_tune): Likewise.
11321         (arm_cortex_a5_tune): Likewise.
11322         (arm_cortex_a9_tune): Likewise.
11323         (arm_cortex_a12_tune): Likewise.
11324         (arm_v7m_tune): Likewise.
11325         (arm_cortex_m7_tune): Likewise.
11326         (arm_v6m_tune): Likewise.
11327         (arm_fa726te_tune): Likewise.
11329 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
11331         * altivec.md: Delete UNSPEC_VMLADDUHM.
11332         (mulv4si3_p8): New pattern.
11333         (mulv4si3): Use it for POWER8.
11334         (mulv8hi3): Use vmladduhm with zero addend.
11335         (altivec_vmladduhm): Descriptive RTL.
11337 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
11339         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
11340         to use neon_move instead of mov_imm.
11341         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
11342         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
11344         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
11345         aarch64_float_const_zero_rtx_p check before TFmode check.
11346         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
11347         an fp zero.
11348         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
11349         code and attributes to match.  Change condition from register_operand
11350         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
11351         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
11352         to store2.
11354 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
11356         PR debug/66535
11357         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
11358         there is no parent.
11360 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
11362         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
11363         HOST_WIDE_INT parameter.
11365 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
11367         PR ipa/66181
11368         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
11369         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
11370         TYPE_NO_FORCE_BLK.
11371         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
11373 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
11375         * rtl.h (classify_insn): Declare.
11376         * emit-rtl.c (classify_insn): Move to...
11377         * rtl.c: ...here and add generator support.
11378         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
11379         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
11380         * genemit.c (gen_emit_seq): New function.
11381         (gen_expand, gen_split): Use it.
11383 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
11385         * tree.c (make_vector_stat): Fix comment to state that the
11386         function returns a VECTOR_CST.
11388 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
11390         * gensupport.h (add_implicit_parallel): Declare.
11391         * genrecog.c (add_implicit_parallel): Move to...
11392         * gensupport.c (add_implicit_parallel): ...here.
11393         (process_one_cond_exec): Use it.
11394         * genemit.c (gen_insn): Likewise.
11396 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
11398         PR bootstrap/66448
11399         * passes.c (rest_of_decl_compilation): Do not register globals for
11400         early debug if they are declared in built-ins.
11402 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
11404         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
11406 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11408         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
11409         manually swapping.
11410         (noce_try_cmove_arith): Likewise.
11411         (noce_get_alt_condition): Likewise.
11413 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
11415         * common/config/i386/i386-common.c
11416         (OPTION_MASK_ISA_MWAITX_SET): New.
11417         (ix86_handle_option): Handle mwaitx.
11418         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
11419         (x86_64-*-*): Likewise.
11420         * config/i386/mwaitxintrin.h: New header.
11421         * config/i386/cpuid.h (bit_MWAITX):  Define.
11422         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
11423         MWAITX support.
11424         * config/i386/i386.opt (mwaitx): New.
11425         * config/i386/i386-builtin-types.def
11426         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
11427         * config/i386/i386-c.c: Define __MWAITX__ if needed.
11428         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
11429         (PTA_MWAITX): New.
11430         (ix86_option_override_internal): Handle new option.
11431         (processor_alias_table): Added PTA_MWAITX.
11432         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
11433         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
11434         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
11435         IX86_BUILTIN_MONITORX  built-ins.
11436         * config/i386/i386.h (TARGET_MWAITX): New.
11437         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
11438         UNSPEC_MONITORX.
11439         (mwaitx):  New pattern.
11440         (monitorx_<mode>): New pattern.
11441         * config/i386/x86intrin.h: Include mwaitxintrin.h.
11442         * doc/extend.texi: Document monitorx and mwaitx builtins.
11443         * doc/invoke.texi: Document -mmwaitx option.
11445 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
11447         * emit-rtl.c (need_atomic_barrier_p): Mask model with
11448         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
11450 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
11452         * dbxout.c (xcoff_debug_hooks): Provide a function for
11453         register_main_translation_unit hook.
11455 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
11457         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
11458         variants cases from switch.
11459         (rs6000_post_atomic_barrier): Same.
11460         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
11461         (rs6000_expand_atomic_exchange): Same.
11462         (rs6000_expand_atomic_op): Same.
11463         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
11464         SYNC variants cases from switch.
11465         (atomic_load): Same.
11466         (atomic_store): Same.
11468 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
11470         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
11471         CONST_INT for goto.
11473 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
11475         PR bootstrap/66448
11476         * dwarf2out.c (check_die): Check for common duplicate attributes.
11477         (add_location_or_const_value_attribute): Do not add duplicate
11478         attributes.
11479         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
11480         time around.
11481         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
11482         (gen_type_die_with_usage): Call check_die.
11483         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
11485 2015-06-11  Jason Merrill  <jason@redhat.com>
11487         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
11488         dies.
11490 2015-06-11  Marek Polacek  <polacek@redhat.com>
11492         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
11494 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
11496         PR bootstrap/66252
11497         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
11498         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
11499         (*addx_extend_sp32): Fix pasto.
11500         (*subx_extend): Rename into...
11501         (*subx_extend_sp32): ...this.
11502         (*adddi3_extend_sp32): Add earlyclobber.
11503         (*subdi3_insn_sp32): Likewise.
11504         (*subdi3_extend_sp32): Likewise.
11505         (*and_not_di_sp32): Likewise.
11506         (*or_not_di_sp32): Likewise.
11507         (*xor_not_di_sp32): Likewise.
11508         (*negdi2_sp32): Likewise.
11509         (*one_cmpldi2_sp32): Likewise.
11511 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
11513         * debug.h (struct gcc_debug_hooks): Add a
11514         register_main_translation_unit hook.
11515         * debug.c (do_nothing_debug_hooks): Provide a function for this
11516         new hook.
11517         * dbxout.c (dbx_debug_hooks): Likewise.
11518         * sdbout.c (sdb_debug_hooks): Likewise.
11519         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11520         * dwarf2out.c (main_translation_unit): New global variable.
11521         (dwarf2out_register_main_translation_unit): New function
11522         implementing the new hook.
11523         (dwarf2_debug_hooks): Assign
11524         dwarf2out_register_main_translation_unit to this new hook.
11525         (dwarf2out_init): Associate any main translation unit to
11526         comp_unit_die ().
11528 2015-06-11  Marek Polacek  <polacek@redhat.com>
11530         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
11532 2015-06-11  Marek Polacek  <polacek@redhat.com>
11534         * match.pd: Use single_use throughout.
11536 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11538         * config/arm/arm.c (arm_option_params_internal): When optimising
11539         for speed set max_insns_skipped when arm_restrict_it.
11541 2015-06-11  Christian Bruel  <christian.bruel@st.com>
11543         PR target/52144
11544         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
11545          macros in ...
11546         (arm_cpu_builtins): New function.
11547         (arm_pragma_target_parse): Call arm_cpu_builtins.
11548         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
11549         (arm_register_target_pragmas): Likewise.
11550         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
11551          Call arm_register_target_pragmas.
11552         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
11553         (arm_pragma_target_parse): Likewise.
11555 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
11557         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
11558         of the second operand.
11560 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
11562         PR target/66473
11563         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
11564         to prepare mask operand for AVX512 modes.
11566 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11568         PR target/66474
11569         * doc/md.texi (Machine Constraints): Document that on the PowerPC
11570         if you use a constraint that targets a VSX register, you must use
11571         %x<n> in the template.
11573 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
11575         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
11576         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
11577         (define_insn "trap"): New definition.
11579 2015-06-10  Richard Biener  <rguenther@suse.de>
11581         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
11582         out from ...
11583         (vect_supported_load_permutation_p): ... here.  Handle
11584         supportable permutations in reductions.
11585         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
11586         for vectorizing strided group loads.
11588 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
11590         PR target/66470
11591         * config/i386/i386.c (ix86_split_long_move): For collisions
11592         involving direct tls segment refs, move the UNSPEC_TP possibly
11593         wrapped in ZERO_EXTEND out of the address for lea, to each of
11594         the memory loads.
11596 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11598         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
11599         dmb sy. Adjust tabs.
11601 2015-06-10  Tom de Vries  <tom@codesourcery.com>
11603         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
11605 2015-06-10  Martin Liska  <mliska@suse.cz>
11607         PR bootstrap/66471
11608         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
11609         all enum values in mem_alloc_origin.
11610         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
11611         name.
11612         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
11613         * bitmap.c (bitmap_register): Likewise.
11614         (dump_bitmap_statistics): Likewise.
11615         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
11616         (ggc_record_overhead): Likewise.
11617         * hash-map.h: Likewise.
11618         * hash-set.h: Likewise.
11619         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
11620         * hash-table.h: Likewise.
11621         * vec.c (vec_prefix::register_overhead): Likewise.
11622         (vec_prefix::release_overhead): Likewise.
11623         (dump_vec_loc_statistics): Likewise.
11625 2015-06-09  Christian Bruel  <christian.bruel@st.com>
11627         PR target/52144
11628         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
11629         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
11630         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
11631         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
11632         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
11633         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
11634         (arm_valid_target_attribute_p): Likewise.
11635         (arm_set_current_function, arm_can_inline_p): Likewise.
11636         (arm_valid_target_attribute_rec): Likewise.
11637         (arm_previous_fndecl): New variable.
11638         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
11639         (TARGET_CAN_INLINE_P): Define.
11640         (arm_asm_trampoline_template): Emit mode.
11641         (arm_file_start): Don't set unified syntax.
11642         (arm_declare_function_name): Set unified syntax and mode.
11643         (arm_option_override): Init target_option_default_node.
11644         and target_option_current_node.
11645         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
11646         (*call_symbol): Likewise.
11647         * doc/extend.texi: Document ARM/Thumb target attribute.
11648         * doc/invoke.texi: Likewise.
11650 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11652         Revert:
11653         2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11654         PR rtl-optimization/64164
11655         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11656         * tree-ssa-copyrename.c: Removed.
11657         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11658         -ftree-coalesce-vars.
11659         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11660         * common.opt (ftree-copyrename): Ignore.
11661         (ftree-coalesce-inlined-vars): Likewise.
11662         * doc/invoke.texi: Remove the ignored options above.
11663         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11664         * tree-ssa-coalesce.h: ... here.
11665         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11666         headers required by it.
11667         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11668         across variables when flag_tree_coalesce_vars.  Check register
11669         use and promoted modes to allow coalescing.  Moved to
11670         tree-ssa-coalesce.c.
11671         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11672         with its member functions to tree-ssa-coalesce.c.
11673         (var_map_base_init): Likewise.  Renamed to
11674         compute_samebase_partition_bases.
11675         (partition_view_normal): Drop want_bases parameter.
11676         (partition_view_bitmap): Likewise.
11677         * tree-ssa-live.h: Adjust declarations.
11678         * tree-ssa-coalesce.c: Include explow.h.
11679         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11680         default defs at the entry point.
11681         (dump_part_var_map): New.
11682         (compute_optimized_partition_bases): New, called by...
11683         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11684         of compute_samebase_partition_bases.  Adjust.
11685         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11686         * cfgexpand.c (leader_merge): New.
11687         (get_rtl_for_parm_ssa_default_def): New.
11688         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11689         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11690         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11691         redundant MEM attr setting.
11692         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11693         from...
11694         (expand_one_stack_var): ... this.  New wrapper to check and
11695         skip already expanded SSA partitions.
11696         (record_alignment_for_reg_var): New, factored out of...
11697         (expand_one_var): ... this.
11698         (expand_one_ssa_partition): New.
11699         (adjust_one_expanded_partition_var): New.
11700         (expand_one_register_var): Check and skip already expanded SSA
11701         partitions.
11702         (expand_used_vars): Don't create DECLs for anonymous SSA
11703         names.  Expand all SSA partitions, then adjust all SSA names.
11704         (pass::execute): Replace the loops that set
11705         SA.partition_to_pseudo from partition leaders and cleared
11706         DECL_RTL for multi-location variables, and that which used to
11707         rename vars and set attrs, with one that clears DECL_RTL and
11708         checks that PARMs and RESULTs default_defs match DECL_RTL.
11709         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11710         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11711         * explow.c (promote_ssa_mode): New.
11712         * explow.h (promote_ssa_mode): Declare.
11713         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11714         * function.c: Include cfgexpand.h.
11715         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11716         (use_register_for_parm_decl): Wrapper for the above to
11717         special-case the result_ptr.
11718         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11719         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11720         multiple locations.
11721         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11722         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11723         (assign_parm_setup_block): Prefer SSA-assigned location.
11724         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11725         if stack_parm is NULL.
11726         (assign_parm_setup_stack): Prefer SSA-assigned location.
11727         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11728         rtl before testing for pointer bounds.  Special-case result_ptr.
11729         (expand_function_start): Maybe reset DECL_RTL of result.
11730         Prefer SSA-assigned location for result and static chain.
11731         Factor out DECL_RESULT and SET_DECL_RTL.
11732         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11733         anonymous SSA names.  Use promote_ssa_mode.
11734         (get_temp_reg): Likewise.
11735         (remove_ssa_form): Adjust.
11736         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11737         and get its reg_usage for reg invalidation.
11738         (compute_bb_dataflow): Pass it insn.
11739         (emit_notes_in_bb): Likewise.
11740         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11741         fail assert on conversion between unsigned types.
11743 2015-06-09  Tom de Vries  <tom@codesourcery.com>
11745         PR tree-optimization/65460
11746         * omp-low.c (expand_omp_target): Set parallelized_function on
11747         cgraph_node for child_fn.
11749 2015-06-09  Tom de Vries  <tom@codesourcery.com>
11751         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
11752         parallelized_function before add_new_function.
11754 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
11756         * gcc-plugin.h: Move decls to plugin.h and include it.
11757         * plugin.h: Relocate decls from gcc-plugin.h
11758         * ggc-page.c: Include required header files.
11759         * passes.c: Likewise.
11760         * cgraphunit.c: Likewise.
11762 2015-06-09  Tom de Vries  <tom@codesourcery.com>
11764         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
11766 2015-06-09  Jason Merrill  <jason@redhat.com>
11768         PR bootstrap/66448
11769         * toplev.c (check_global_declaration): Don't warn about a clone.
11771 2015-06-09  Marek Polacek  <polacek@redhat.com>
11773         PR tree-optimization/66299
11774         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
11775         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
11776         patterns.
11778 2015-06-09  Richard Biener  <rguenther@suse.de>
11780         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
11781         (vect_analyze_slp_instance): Instead do not falsely drop
11782         load permutations.
11784 2015-06-09  Richard Biener  <rguenther@suse.de>
11786         PR middle-end/66423
11787         * match.pd: Handle A % (unsigned)(1 << B).
11789 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
11791         * varasm.c (output_object_block_htab): Remove.
11792         (output_object_block_compare): New.
11793         (output_object_blocks): Sort named object_blocks before outputting
11794         them.
11796 2015-06-09  Richard Biener  <rguenther@suse.de>
11798         PR tree-optimization/66419
11799         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
11800         consider GROUP_GAP when detecting a perfect subchain.
11802 2015-06-09  Nick Clifton  <nickc@redhat.com>
11804         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
11805         place read only data in the .frodata section.
11807 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
11809         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
11810         (atomic_store<mode>): Likewise.
11812 2015-06-09  Richard Biener  <rguenther@suse.de>
11814         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
11816 2015-06-09  Richard Biener  <rguenther@suse.de>
11818         PR middle-end/66413
11819         * tree-inline.c (insert_init_debug_bind): Unshare value.
11821 2015-06-09  Richard Biener  <rguenther@suse.de>
11823         PR tree-optimization/66396
11824         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
11825         Rename virtual operands.
11827 2015-06-09  Tom de Vries  <tom@codesourcery.com>
11829         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
11830         always return false.
11832 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11834         PR rtl-optimization/64164
11835         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11836         * tree-ssa-copyrename.c: Removed.
11837         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
11838         -ftree-coalesce-vars.
11839         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11840         * common.opt (ftree-copyrename): Ignore.
11841         (ftree-coalesce-inlined-vars): Likewise.
11842         * doc/invoke.texi: Remove the ignored options above.
11843         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11844         * tree-ssa-coalesce.h: ... here.
11845         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11846         headers required by it.
11847         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11848         across variables when flag_tree_coalesce_vars.  Check register
11849         use and promoted modes to allow coalescing.  Moved to
11850         tree-ssa-coalesce.c.
11851         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11852         with its member functions to tree-ssa-coalesce.c.
11853         (var_map_base_init): Likewise.  Renamed to
11854         compute_samebase_partition_bases.
11855         (partition_view_normal): Drop want_bases parameter.
11856         (partition_view_bitmap): Likewise.
11857         * tree-ssa-live.h: Adjust declarations.
11858         * tree-ssa-coalesce.c: Include explow.h.
11859         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11860         default defs at the entry point.
11861         (dump_part_var_map): New.
11862         (compute_optimized_partition_bases): New, called by...
11863         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11864         of compute_samebase_partition_bases.  Adjust.
11865         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11866         * cfgexpand.c (leader_merge): New.
11867         (get_rtl_for_parm_ssa_default_def): New.
11868         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11869         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11870         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
11871         redundant MEM attr setting.
11872         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
11873         from...
11874         (expand_one_stack_var): ... this.  New wrapper to check and
11875         skip already expanded SSA partitions.
11876         (record_alignment_for_reg_var): New, factored out of...
11877         (expand_one_var): ... this.
11878         (expand_one_ssa_partition): New.
11879         (adjust_one_expanded_partition_var): New.
11880         (expand_one_register_var): Check and skip already expanded SSA
11881         partitions.
11882         (expand_used_vars): Don't create DECLs for anonymous SSA
11883         names.  Expand all SSA partitions, then adjust all SSA names.
11884         (pass::execute): Replace the loops that set
11885         SA.partition_to_pseudo from partition leaders and cleared
11886         DECL_RTL for multi-location variables, and that which used to
11887         rename vars and set attrs, with one that clears DECL_RTL and
11888         checks that PARMs and RESULTs default_defs match DECL_RTL.
11889         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11890         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11891         * explow.c (promote_ssa_mode): New.
11892         * explow.h (promote_ssa_mode): Declare.
11893         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11894         * function.c: Include cfgexpand.h.
11895         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11896         (use_register_for_parm_decl): Wrapper for the above to
11897         special-case the result_ptr.
11898         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11899         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11900         multiple locations.
11901         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11902         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
11903         (assign_parm_setup_block): Prefer SSA-assigned location.
11904         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
11905         if stack_parm is NULL.
11906         (assign_parm_setup_stack): Prefer SSA-assigned location.
11907         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
11908         rtl before testing for pointer bounds.  Special-case result_ptr.
11909         (expand_function_start): Maybe reset DECL_RTL of result.
11910         Prefer SSA-assigned location for result and static chain.
11911         Factor out DECL_RESULT and SET_DECL_RTL.
11912         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11913         anonymous SSA names.  Use promote_ssa_mode.
11914         (get_temp_reg): Likewise.
11915         (remove_ssa_form): Adjust.
11916         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11917         and get its reg_usage for reg invalidation.
11918         (compute_bb_dataflow): Pass it insn.
11919         (emit_notes_in_bb): Likewise.
11920         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
11921         fail assert on conversion between unsigned types.
11923 2015-06-09  Alexandre Oliva <aoliva@redhat.com>
11925         PR debug/58315
11926         * tree-inline.c (reset_debug_binding): New.
11927         (reset_debug_bindings): Likewise.
11928         (expand_call_inline): Call it.
11930 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11932         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
11933         TYPE_STRING_FLAG.
11935 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
11937         * lto-streamer-out.c (lto_output_location): Stream
11938         reserved locations correctly.
11939         * lto-streamer-in.c (lto_output_location): Likewise.
11941 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
11943         * coretypes.h: Include hash-table.h and hash-set.h for host files.
11944         * ggc.h: Don't include statistics.h>
11945         * hash-map.h: Remove all includes.
11946         * hash-set.h: Likewise.
11947         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
11948         the include list. Remove <new>.
11949         * inchash.h: Remove all includes.
11950         * mem-stats.h: Likewise.
11951         * vec.h: No special processing for generators or ggc.
11952         * alias.c : Adjust include files.
11953         * alloc-pool.c : Likewise.
11954         * alloc-pool.h : Likewise.
11955         * asan.c : Likewise.
11956         * attribs.c : Likewise.
11957         * auto-inc-dec.c : Likewise.
11958         * auto-profile.c : Likewise.
11959         * bb-reorder.c : Likewise.
11960         * bitmap.c : Likewise.
11961         * bitmap.h : Likewise.
11962         * bt-load.c : Likewise.
11963         * builtins.c : Likewise.
11964         * caller-save.c : Likewise.
11965         * calls.c : Likewise.
11966         * ccmp.c : Likewise.
11967         * cfg.c : Likewise.
11968         * cfganal.c : Likewise.
11969         * cfgbuild.c : Likewise.
11970         * cfgcleanup.c : Likewise.
11971         * cfgexpand.c : Likewise.
11972         * cfghooks.c : Likewise.
11973         * cfgloop.c : Likewise.
11974         * cfgloop.h : Likewise.
11975         * cfgloopanal.c : Likewise.
11976         * cfgloopmanip.c : Likewise.
11977         * cfgrtl.c : Likewise.
11978         * cgraph.c : Likewise.
11979         * cgraphbuild.c : Likewise.
11980         * cgraphclones.c : Likewise.
11981         * cgraphunit.c : Likewise.
11982         * cilk-common.c : Likewise.
11983         * combine-stack-adj.c : Likewise.
11984         * combine.c : Likewise.
11985         * compare-elim.c : Likewise.
11986         * context.c : Likewise.
11987         * convert.c : Likewise.
11988         * coverage.c : Likewise.
11989         * cppbuiltin.c : Likewise.
11990         * cprop.c : Likewise.
11991         * cse.c : Likewise.
11992         * cselib.c : Likewise.
11993         * data-streamer-in.c : Likewise.
11994         * data-streamer-out.c : Likewise.
11995         * data-streamer.c : Likewise.
11996         * data-streamer.h : Likewise.
11997         * dbxout.c : Likewise.
11998         * dce.c : Likewise.
11999         * ddg.c : Likewise.
12000         * debug.c : Likewise.
12001         * df-core.c : Likewise.
12002         * df-problems.c : Likewise.
12003         * df-scan.c : Likewise.
12004         * df.h : Likewise.
12005         * dfp.c : Likewise.
12006         * dojump.c : Likewise.
12007         * dominance.c : Likewise.
12008         * domwalk.c : Likewise.
12009         * double-int.c : Likewise.
12010         * dse.c : Likewise.
12011         * dumpfile.c : Likewise.
12012         * dwarf2asm.c : Likewise.
12013         * dwarf2cfi.c : Likewise.
12014         * dwarf2out.c : Likewise.
12015         * emit-rtl.c : Likewise.
12016         * et-forest.c : Likewise.
12017         * except.c : Likewise.
12018         * except.h : Likewise.
12019         * explow.c : Likewise.
12020         * expmed.c : Likewise.
12021         * expr.c : Likewise.
12022         * final.c : Likewise.
12023         * fixed-value.c : Likewise.
12024         * fold-const.c : Likewise.
12025         * function.c : Likewise.
12026         * fwprop.c : Likewise.
12027         * gcc-plugin.h : Likewise.
12028         * gcc.c : Likewise.
12029         * gcse-common.c : Likewise.
12030         * gcse.c : Likewise.
12031         * genattrtab.c : Likewise.
12032         * genautomata.c : Likewise.
12033         * genconditions.c : Likewise.
12034         * genemit.c : Likewise.
12035         * generic-match-head.c : Likewise.
12036         * genextract.c : Likewise.
12037         * gengtype-state.c : Likewise.
12038         * gengtype.c : Likewise.
12039         * genhooks.c : Likewise.
12040         * genmatch.c : Likewise.
12041         * genmodes.c : Likewise.
12042         * genrecog.c : Likewise.
12043         * gensupport.c : Likewise.
12044         * ggc-common.c : Likewise.
12045         * ggc-internal.h : Likewise.
12046         * ggc-none.c : Likewise.
12047         * ggc-page.c : Likewise.
12048         * gimple-builder.c : Likewise.
12049         * gimple-expr.c : Likewise.
12050         * gimple-fold.c : Likewise.
12051         * gimple-iterator.c : Likewise.
12052         * gimple-low.c : Likewise.
12053         * gimple-match-head.c : Likewise.
12054         * gimple-pretty-print.c : Likewise.
12055         * gimple-ssa-isolate-paths.c : Likewise.
12056         * gimple-ssa-strength-reduction.c : Likewise.
12057         * gimple-ssa.h : Likewise.
12058         * gimple-streamer-in.c : Likewise.
12059         * gimple-streamer-out.c : Likewise.
12060         * gimple-streamer.h : Likewise.
12061         * gimple-walk.c : Likewise.
12062         * gimple.c : Likewise.
12063         * gimplify-me.c : Likewise.
12064         * gimplify.c : Likewise.
12065         * godump.c : Likewise.
12066         * graph.c : Likewise.
12067         * graphds.c : Likewise.
12068         * graphite-blocking.c : Likewise.
12069         * graphite-dependences.c : Likewise.
12070         * graphite-interchange.c : Likewise.
12071         * graphite-isl-ast-to-gimple.c : Likewise.
12072         * graphite-optimize-isl.c : Likewise.
12073         * graphite-poly.c : Likewise.
12074         * graphite-scop-detection.c : Likewise.
12075         * graphite-sese-to-poly.c : Likewise.
12076         * graphite.c : Likewise.
12077         * haifa-sched.c : Likewise.
12078         * hard-reg-set.h : Likewise.
12079         * hw-doloop.c : Likewise.
12080         * ifcvt.c : Likewise.
12081         * inchash.c : Likewise.
12082         * incpath.c : Likewise.
12083         * init-regs.c : Likewise.
12084         * input.c : Likewise.
12085         * internal-fn.c : Likewise.
12086         * ipa-chkp.c : Likewise.
12087         * ipa-comdats.c : Likewise.
12088         * ipa-cp.c : Likewise.
12089         * ipa-devirt.c : Likewise.
12090         * ipa-icf-gimple.c : Likewise.
12091         * ipa-icf.c : Likewise.
12092         * ipa-inline-analysis.c : Likewise.
12093         * ipa-inline-transform.c : Likewise.
12094         * ipa-inline.c : Likewise.
12095         * ipa-polymorphic-call.c : Likewise.
12096         * ipa-profile.c : Likewise.
12097         * ipa-prop.c : Likewise.
12098         * ipa-pure-const.c : Likewise.
12099         * ipa-ref.c : Likewise.
12100         * ipa-reference.c : Likewise.
12101         * ipa-split.c : Likewise.
12102         * ipa-utils.c : Likewise.
12103         * ipa-visibility.c : Likewise.
12104         * ipa.c : Likewise.
12105         * ira-build.c : Likewise.
12106         * ira-color.c : Likewise.
12107         * ira-conflicts.c : Likewise.
12108         * ira-costs.c : Likewise.
12109         * ira-emit.c : Likewise.
12110         * ira-lives.c : Likewise.
12111         * ira.c : Likewise.
12112         * jump.c : Likewise.
12113         * langhooks.c : Likewise.
12114         * lcm.c : Likewise.
12115         * libfuncs.h : Likewise.
12116         * lists.c : Likewise.
12117         * loop-doloop.c : Likewise.
12118         * loop-init.c : Likewise.
12119         * loop-invariant.c : Likewise.
12120         * loop-iv.c : Likewise.
12121         * loop-unroll.c : Likewise.
12122         * lower-subreg.c : Likewise.
12123         * lra-assigns.c : Likewise.
12124         * lra-coalesce.c : Likewise.
12125         * lra-constraints.c : Likewise.
12126         * lra-eliminations.c : Likewise.
12127         * lra-lives.c : Likewise.
12128         * lra-remat.c : Likewise.
12129         * lra-spills.c : Likewise.
12130         * lra.c : Likewise.
12131         * lto-cgraph.c : Likewise.
12132         * lto-compress.c : Likewise.
12133         * lto-opts.c : Likewise.
12134         * lto-section-in.c : Likewise.
12135         * lto-section-out.c : Likewise.
12136         * lto-streamer-in.c : Likewise.
12137         * lto-streamer-out.c : Likewise.
12138         * lto-streamer.c : Likewise.
12139         * lto-streamer.h : Likewise.
12140         * mcf.c : Likewise.
12141         * mode-switching.c : Likewise.
12142         * modulo-sched.c : Likewise.
12143         * omega.c : Likewise.
12144         * omp-low.c : Likewise.
12145         * optabs.c : Likewise.
12146         * opts-global.c : Likewise.
12147         * opts.h : Likewise.
12148         * passes.c : Likewise.
12149         * plugin.c : Likewise.
12150         * postreload-gcse.c : Likewise.
12151         * postreload.c : Likewise.
12152         * predict.c : Likewise.
12153         * print-rtl.c : Likewise.
12154         * print-tree.c : Likewise.
12155         * profile.c : Likewise.
12156         * read-md.c : Likewise.
12157         * read-md.h : Likewise.
12158         * read-rtl.c : Likewise.
12159         * real.c : Likewise.
12160         * realmpfr.c : Likewise.
12161         * recog.c : Likewise.
12162         * ree.c : Likewise.
12163         * reg-stack.c : Likewise.
12164         * regcprop.c : Likewise.
12165         * reginfo.c : Likewise.
12166         * regrename.c : Likewise.
12167         * regstat.c : Likewise.
12168         * reload.c : Likewise.
12169         * reload1.c : Likewise.
12170         * reorg.c : Likewise.
12171         * resource.c : Likewise.
12172         * rtl-chkp.c : Likewise.
12173         * rtl.c : Likewise.
12174         * rtl.h : Likewise.
12175         * rtlanal.c : Likewise.
12176         * rtlhash.c : Likewise.
12177         * rtlhash.h : Likewise.
12178         * rtlhooks.c : Likewise.
12179         * sanopt.c : Likewise.
12180         * sched-deps.c : Likewise.
12181         * sched-ebb.c : Likewise.
12182         * sched-rgn.c : Likewise.
12183         * sched-vis.c : Likewise.
12184         * sdbout.c : Likewise.
12185         * sel-sched-dump.c : Likewise.
12186         * sel-sched-ir.c : Likewise.
12187         * sel-sched-ir.h : Likewise.
12188         * sel-sched.c : Likewise.
12189         * sese.c : Likewise.
12190         * shrink-wrap.c : Likewise.
12191         * shrink-wrap.h : Likewise.
12192         * simplify-rtx.c : Likewise.
12193         * stack-ptr-mod.c : Likewise.
12194         * statistics.c : Likewise.
12195         * stmt.c : Likewise.
12196         * stor-layout.c : Likewise.
12197         * store-motion.c : Likewise.
12198         * stringpool.c : Likewise.
12199         * symtab.c : Likewise.
12200         * target-globals.c : Likewise.
12201         * targhooks.c : Likewise.
12202         * tlink.c : Likewise.
12203         * toplev.c : Likewise.
12204         * tracer.c : Likewise.
12205         * trans-mem.c : Likewise.
12206         * tree-affine.c : Likewise.
12207         * tree-affine.h : Likewise.
12208         * tree-browser.c : Likewise.
12209         * tree-call-cdce.c : Likewise.
12210         * tree-cfg.c : Likewise.
12211         * tree-cfgcleanup.c : Likewise.
12212         * tree-chkp-opt.c : Likewise.
12213         * tree-chkp.c : Likewise.
12214         * tree-chrec.c : Likewise.
12215         * tree-complex.c : Likewise.
12216         * tree-data-ref.c : Likewise.
12217         * tree-dfa.c : Likewise.
12218         * tree-diagnostic.c : Likewise.
12219         * tree-dump.c : Likewise.
12220         * tree-eh.c : Likewise.
12221         * tree-eh.h : Likewise.
12222         * tree-emutls.c : Likewise.
12223         * tree-hasher.h : Likewise.
12224         * tree-if-conv.c : Likewise.
12225         * tree-inline.c : Likewise.
12226         * tree-inline.h : Likewise.
12227         * tree-into-ssa.c : Likewise.
12228         * tree-iterator.c : Likewise.
12229         * tree-loop-distribution.c : Likewise.
12230         * tree-nested.c : Likewise.
12231         * tree-nrv.c : Likewise.
12232         * tree-object-size.c : Likewise.
12233         * tree-outof-ssa.c : Likewise.
12234         * tree-parloops.c : Likewise.
12235         * tree-phinodes.c : Likewise.
12236         * tree-predcom.c : Likewise.
12237         * tree-pretty-print.c : Likewise.
12238         * tree-profile.c : Likewise.
12239         * tree-scalar-evolution.c : Likewise.
12240         * tree-sra.c : Likewise.
12241         * tree-ssa-address.c : Likewise.
12242         * tree-ssa-alias.c : Likewise.
12243         * tree-ssa-ccp.c : Likewise.
12244         * tree-ssa-coalesce.c : Likewise.
12245         * tree-ssa-copy.c : Likewise.
12246         * tree-ssa-copyrename.c : Likewise.
12247         * tree-ssa-dce.c : Likewise.
12248         * tree-ssa-dom.c : Likewise.
12249         * tree-ssa-dse.c : Likewise.
12250         * tree-ssa-forwprop.c : Likewise.
12251         * tree-ssa-ifcombine.c : Likewise.
12252         * tree-ssa-live.c : Likewise.
12253         * tree-ssa-loop-ch.c : Likewise.
12254         * tree-ssa-loop-im.c : Likewise.
12255         * tree-ssa-loop-ivcanon.c : Likewise.
12256         * tree-ssa-loop-ivopts.c : Likewise.
12257         * tree-ssa-loop-manip.c : Likewise.
12258         * tree-ssa-loop-niter.c : Likewise.
12259         * tree-ssa-loop-prefetch.c : Likewise.
12260         * tree-ssa-loop-unswitch.c : Likewise.
12261         * tree-ssa-loop.c : Likewise.
12262         * tree-ssa-math-opts.c : Likewise.
12263         * tree-ssa-operands.c : Likewise.
12264         * tree-ssa-phiopt.c : Likewise.
12265         * tree-ssa-phiprop.c : Likewise.
12266         * tree-ssa-pre.c : Likewise.
12267         * tree-ssa-propagate.c : Likewise.
12268         * tree-ssa-reassoc.c : Likewise.
12269         * tree-ssa-sccvn.c : Likewise.
12270         * tree-ssa-scopedtables.c : Likewise.
12271         * tree-ssa-sink.c : Likewise.
12272         * tree-ssa-strlen.c : Likewise.
12273         * tree-ssa-structalias.c : Likewise.
12274         * tree-ssa-tail-merge.c : Likewise.
12275         * tree-ssa-ter.c : Likewise.
12276         * tree-ssa-threadedge.c : Likewise.
12277         * tree-ssa-threadupdate.c : Likewise.
12278         * tree-ssa-uncprop.c : Likewise.
12279         * tree-ssa-uninit.c : Likewise.
12280         * tree-ssa.c : Likewise.
12281         * tree-ssanames.c : Likewise.
12282         * tree-stdarg.c : Likewise.
12283         * tree-streamer-in.c : Likewise.
12284         * tree-streamer-out.c : Likewise.
12285         * tree-streamer.c : Likewise.
12286         * tree-streamer.h : Likewise.
12287         * tree-switch-conversion.c : Likewise.
12288         * tree-tailcall.c : Likewise.
12289         * tree-vect-data-refs.c : Likewise.
12290         * tree-vect-generic.c : Likewise.
12291         * tree-vect-loop-manip.c : Likewise.
12292         * tree-vect-loop.c : Likewise.
12293         * tree-vect-patterns.c : Likewise.
12294         * tree-vect-slp.c : Likewise.
12295         * tree-vect-stmts.c : Likewise.
12296         * tree-vectorizer.c : Likewise.
12297         * tree-vectorizer.h : Likewise.
12298         * tree-vrp.c : Likewise.
12299         * tree.c : Likewise.
12300         * tsan.c : Likewise.
12301         * ubsan.c : Likewise.
12302         * valtrack.c : Likewise.
12303         * valtrack.h : Likewise.
12304         * value-prof.c : Likewise.
12305         * var-tracking.c : Likewise.
12306         * varasm.c : Likewise.
12307         * varpool.c : Likewise.
12308         * vec.c: Likewise.
12309         * vmsdbgout.c : Likewise.
12310         * vtable-verify.c : Likewise.
12311         * vtable-verify.h : Likewise.
12312         * web.c : Likewise.
12313         * wide-int.cc : Likewise.
12314         * xcoffout.c : Likewise.
12315         * config/aarch64/aarch64-builtins.c : Likewise.
12316         * config/aarch64/aarch64.c : Likewise.
12317         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
12318         * config/alpha/alpha.c : Likewise.
12319         * config/arc/arc.c : Likewise.
12320         * config/arm/aarch-common.c : Likewise.
12321         * config/arm/arm-builtins.c : Likewise.
12322         * config/arm/arm-c.c : Likewise.
12323         * config/arm/arm.c : Likewise.
12324         * config/avr/avr-c.c : Likewise.
12325         * config/avr/avr-log.c : Likewise.
12326         * config/avr/avr.c : Likewise.
12327         * config/bfin/bfin.c : Likewise.
12328         * config/c6x/c6x.c : Likewise.
12329         * config/cr16/cr16.c : Likewise.
12330         * config/cris/cris.c : Likewise.
12331         * config/darwin-c.c : Likewise.
12332         * config/darwin.c : Likewise.
12333         * config/default-c.c : Likewise.
12334         * config/epiphany/epiphany.c : Likewise.
12335         * config/epiphany/mode-switch-use.c : Likewise.
12336         * config/epiphany/resolve-sw-modes.c : Likewise.
12337         * config/fr30/fr30.c : Likewise.
12338         * config/frv/frv.c : Likewise.
12339         * config/ft32/ft32.c : Likewise.
12340         * config/glibc-c.c : Likewise.
12341         * config/h8300/h8300.c : Likewise.
12342         * config/i386/i386-c.c : Likewise.
12343         * config/i386/i386.c : Likewise.
12344         * config/i386/msformat-c.c : Likewise.
12345         * config/i386/winnt-cxx.c : Likewise.
12346         * config/i386/winnt-stubs.c : Likewise.
12347         * config/i386/winnt.c : Likewise.
12348         * config/ia64/ia64-c.c : Likewise.
12349         * config/ia64/ia64.c : Likewise.
12350         * config/iq2000/iq2000.c : Likewise.
12351         * config/lm32/lm32.c : Likewise.
12352         * config/m32c/m32c-pragma.c : Likewise.
12353         * config/m32c/m32c.c : Likewise.
12354         * config/m32r/m32r.c : Likewise.
12355         * config/m68k/m68k.c : Likewise.
12356         * config/mcore/mcore.c : Likewise.
12357         * config/mep/mep-pragma.c : Likewise.
12358         * config/mep/mep.c : Likewise.
12359         * config/microblaze/microblaze-c.c : Likewise.
12360         * config/microblaze/microblaze.c : Likewise.
12361         * config/mips/mips.c : Likewise.
12362         * config/mmix/mmix.c : Likewise.
12363         * config/mn10300/mn10300.c : Likewise.
12364         * config/moxie/moxie.c : Likewise.
12365         * config/msp430/msp430-c.c : Likewise.
12366         * config/msp430/msp430.c : Likewise.
12367         * config/nds32/nds32-cost.c : Likewise.
12368         * config/nds32/nds32-fp-as-gp.c : Likewise.
12369         * config/nds32/nds32-intrinsic.c : Likewise.
12370         * config/nds32/nds32-isr.c : Likewise.
12371         * config/nds32/nds32-md-auxiliary.c : Likewise.
12372         * config/nds32/nds32-memory-manipulation.c : Likewise.
12373         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
12374         * config/nds32/nds32-predicates.c : Likewise.
12375         * config/nds32/nds32.c : Likewise.
12376         * config/nios2/nios2.c : Likewise.
12377         * config/nvptx/nvptx.c : Likewise.
12378         * config/pa/pa.c : Likewise.
12379         * config/pdp11/pdp11.c : Likewise.
12380         * config/rl78/rl78-c.c : Likewise.
12381         * config/rl78/rl78.c : Likewise.
12382         * config/rs6000/rs6000-c.c : Likewise.
12383         * config/rs6000/rs6000.c : Likewise.
12384         * config/rx/rx.c : Likewise.
12385         * config/s390/s390-c.c : Likewise.
12386         * config/s390/s390.c : Likewise.
12387         * config/sh/sh-c.c : Likewise.
12388         * config/sh/sh-mem.cc : Likewise.
12389         * config/sh/sh.c : Likewise.
12390         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
12391         * config/sh/sh_treg_combine.cc : Likewise.
12392         * config/sol2-c.c : Likewise.
12393         * config/sol2-cxx.c : Likewise.
12394         * config/sol2-stubs.c : Likewise.
12395         * config/sol2.c : Likewise.
12396         * config/sparc/sparc-c.c : Likewise.
12397         * config/sparc/sparc.c : Likewise.
12398         * config/spu/spu-c.c : Likewise.
12399         * config/spu/spu.c : Likewise.
12400         * config/stormy16/stormy16.c : Likewise.
12401         * config/tilegx/mul-tables.c : Likewise.
12402         * config/tilegx/tilegx-c.c : Likewise.
12403         * config/tilegx/tilegx.c : Likewise.
12404         * config/tilepro/mul-tables.c : Likewise.
12405         * config/tilepro/tilepro-c.c : Likewise.
12406         * config/tilepro/tilepro.c : Likewise.
12407         * config/v850/v850-c.c : Likewise.
12408         * config/v850/v850.c : Likewise.
12409         * config/vax/vax.c : Likewise.
12410         * config/visium/visium.c : Likewise.
12411         * config/vms/vms-c.c : Likewise.
12412         * config/vms/vms.c : Likewise.
12413         * config/vxworks.c : Likewise.
12414         * config/winnt-c.c : Likewise.
12415         * config/xtensa/xtensa.c : Likewise.
12417 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
12419         PR lto/65378
12420         * ipa-utils.h (warn_types_mismatch): Update prototype.
12421         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
12422         parameters.
12423         (type_mismatch_p): New function.
12424         (warn_types_mismatch): Reorg to work better on non-C++ types.
12425         (odr_types_equivalent_p): Add loc1/loc2 parameters.
12426         (add_type_duplicate): Update.
12428 2015-06-08  Tom de Vries  <tom@codesourcery.com>
12430         PR rtl-optimization/66444
12431         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
12432         call_used_regs.
12434 2015-06-08  Richard Biener  <rguenther@suse.de>
12436         PR tree-optimization/66422
12437         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
12438         block after inserted gcc_unreachable.
12440 2015-06-08  Nick Clifton  <nickc@redhat.com>
12442         * config/rx/rx.c (rx_function_value): Do not promote vector types.
12443         (rx_promote_function_mode): Likewise.
12444         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
12446 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
12448         * genattrtab.c (insn_alternatives): Change type from int *
12449         to uint64_t *.
12450         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
12451         (get_attr_value): Change type of num_alt to uint64_t.
12452         (compute_alternative_mask): Change return type from
12453         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
12454         (make_alternative_compare, mk_attr_alt): Change argument type
12455         from int to uint64_t.
12456         (simplify_test_exp): Change type of i from int to uint64_t.
12457         Shift ((uint64_t) 1) instead of 1 up.
12458         (main): Adjust oballocvec first argument from int to uint64_t.
12459         Shift ((uint64_t) 1) instead of 1 up.
12461 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
12463         PR other/65366
12464         * gdbhooks.py: Import sys.
12465         (intptr): New function.  Replace int(...) by intptr(...).
12467 2015-06-08  Richard Biener  <rguenther@suse.de>
12469         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
12470         adjustment for gaps at the end of a SLP load group properly.
12471         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
12472         all permutations we can generate.
12473         (vect_transform_slp_perm_load): Use the correct group-size.
12475 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
12477         * genmatch.c (expr::gen_transform): For conditions, guess the type
12478         from the second operand.
12480 2015-06-08  Tom de Vries  <tom@codesourcery.com>
12482         PR tree-optimization/66442
12483         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
12484         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
12485         if the loop latch is not a singleton.  Use
12486         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
12488 2015-06-08  Marek Polacek  <polacek@redhat.com>
12490         PR sanitizer/66452
12491         * toplev.c (check_global_declaration): Don't warn about artificial
12492         decls.
12494 2015-06-08  Tom de Vries  <tom@codesourcery.com>
12496         PR tree-optimization/66436
12497         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
12498         dump file.
12499         * gimplify.c: Add tree-dump.h include.
12500         (gimplify_function_tree): Dump function to gimple dump file.
12501         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
12502         dump file.
12504 2015-06-08  Tom de Vries  <tom@codesourcery.com>
12506         PR tree-optimization/66435
12507         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
12508         function.
12510 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
12512         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
12513         of ptr_type_node to not be ptr_to_node.
12514         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
12515         TREE_TYPE of pointers.
12516         * gimple-expr.c (useless_type_conversion): Reorder the check for
12517         function pointers and TYPE_CANONICAL.
12519 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
12521         PR bootstrap/66319
12522         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
12523         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
12524         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
12525         later.
12526         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
12527         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
12528         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
12529         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
12530         and non iso if unix2003.
12532 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
12534         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
12536 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
12538         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
12539         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
12540         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
12541         except.c, final.c, function.c, gcse-common.c, genemit.c,
12542         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
12543         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
12544         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
12545         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
12546         more derived ones.
12548 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
12550         * combine.c (combine_split_insns): Remove cast.
12551         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
12552         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
12553         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
12554         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
12555         * genemit.c (gen_split): Change return type of generated functions to
12556         rtx_insn.
12557         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
12558         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
12559         gen_peephole2_* functions.
12560         (print_subroutine, main): Likewise.
12561         * recog.c (peephole2_optimize): Remove cast.
12562         (peep2_next_insn): Promote return type to rtx_insn.
12563         * recog.h (peep2_next_insn): Fix prototype.
12564         * rtl.h (try_split, split_insns): Likewise.
12566 2015-06-06  DJ Delorie  <dj@redhat.com>
12568         * config/msp430/msp430.c (msp430_asm_integer): Support addition
12569         and subtraction too.
12571 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
12573         PR target/66410
12574         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
12575         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
12576         instead of Snd.  Disparage Sid/z alternative with '^'.
12578 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
12580         * dwarf2out.c: Remove deferred_locations*.
12581         (dwarf2_debug_hooks): Add early_finish hook.
12582         Remove global_decl hook.
12583         Add early_global_decl and late_global_decl hook.
12584         New global early_dwarf.
12585         New structure set_early_dwarf.
12586         (output_die): Indicate whether a DIE was generated early
12587         when generating assembly with -dA.
12588         (struct limbo_die_struct): Document created_for field.
12589         Remove file_table_last_lookup.
12590         (remove_AT): Return TRUE if successful.
12591         (remove_child_TAG): Clear die_parent.
12592         (reparent_child): New function abstracted from...
12593         (splice_child_die): ...here.
12594         (new_die): ICE if a DIE ends up in limbo too late.
12595         (check_die): New.
12596         (defer_location): Remove.
12597         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
12598         (fill_variable_array_bounds): New.
12599         (decl_start_label): Call fill_variable_array_bounds.
12600         (gen_formal_parameter_die): Rewrite to reuse previously generated
12601         DIEs.
12602         (gen_subprogram_die): Same.
12603         (gen_variable_die): Same.
12604         (gen_const_die): Same.
12605         (gen_label_die): Same.
12606         (gen_lexical_block_die): Same.
12607         (decl_will_get_specification_p): New.
12608         (local_function_static): New.
12609         (gen_struct_or_union_type_die): Fill in variable-length fields.
12610         (gen_typedef_die): Fill in variable-length typedefs.
12611         (gen_tagged_type_die): Gracefully return on error_mark_node.
12612         Handle re-entrancy.
12613         (gen_type_die_with_usage): Handle variable-length types.
12614         Remove duplicate code for ARRAY_TYPE case.
12615         (process_scope_var): Only process imported modules during early
12616         dwarf.
12617         (dwarf2out_early_global_decl): New.
12618         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
12619         (dwarf2out_type_decl): Set early_dwarf while calling
12620         dwarf2out_decl.
12621         (dwarf2out_decl): Verify that we did not recreate a previously
12622         generated DIE.
12623         Do not return on DECL_EXTERNALs in VAR_DECLs.
12624         Abstract some code to local_function_static.
12625         (lookup_filename): Remove use of file_table_last_lookup.
12626         Gracefully exit on missing file_name.
12627         (dwarf2out_finish): Verify limbo list.
12628         Remove deferred_locations_list use.
12629         Move deferred_asm_name and limbo flushing to...
12630         (dwarf2out_early_finish): ...here.  New.
12631         (dwarf2out_c_finalize): Remove set of deferred_location_list,
12632         deferred_asm_name, and file_table_last_lookup.
12633         * cgraph.h (referred_to_p): Add default argument.
12634         * cgraphunit.c (referred_to_p): Add and handle include_self
12635         argument.
12636         (analyze_functions): Add first_time argument.
12637         Call check_global_declaration for all symbols.
12638         Call late_global_decl for nodes for moribund nodes.
12639         (finalize_compilation_unit): Add new argument to
12640         analyze_functions.
12641         Call early_global_decl for functions.
12642         Call early_finish debug hook.
12643         * dbxout.c (dbxout_early_global_decl): New.
12644         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
12645         (dbx_debug_hooks): Add new hooks.
12646         (xcoff_debug_hooks): Same.
12647         * debug.c (do_nothing_debug_hooks): Add early_finish field.
12648         Add early and late debug hooks.
12649         Remove global_decl hook.
12650         * debug.h (struct gcc_debug_hooks): Add early_finish,
12651         early_global_decl, and late_global_decl fields.
12652         Remove global_decl field.
12653         Document gcc_debug_hooks.
12654         * gengtype.c (output_typename): Remove.
12655         * godump.c (go_early_global_decl): New.
12656         (go_late_global_decl): New.
12657         (go_global_decl): Remove.
12658         (dump_go_spec_init): Remove global_decl.  Add
12659         {early,late}_global_decl.
12660         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
12661         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
12662         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
12663         (write_global_declarations): Remove.
12664         (global_decl_processing): New.
12665         * langhooks.h (struct lang_hooks_for_decls): Remove
12666         final_write_globals field.
12667         Add post_compilation_parsing_cleanups field.
12668         * passes.c (rest_of_decl_compilation): Call early_global_decl.
12669         * sdbout.c: Add early and late_global_decl hooks.  Remove
12670         sdbout_global_decl hook.
12671         Add early_finish field for sdb_debug_hooks.
12672         (sdbout_global_decl): Remove.
12673         (sdbout_early_global_decl): New.
12674         (sdbout_late_global_decl): New.
12675         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
12676         * toplev.c (check_global_declaration): Rename from
12677         check_global_declaration_1.
12678         Adapt to use symtab infrastructure.
12679         (check_global_declarations): Remove.
12680         (emit_debug_global_declarations): Remove.
12681         (compile_file): Remove call to final_write_globals langhook.
12682         Run the actual compilation process.
12683         Perform any post compilation parser cleanups.
12684         Generate late debug info.
12685         * toplev.h (check_global_declaration): New.
12686         (check_global_declaration_1): Remove.
12687         (check_global_declarations): Remove.
12688         (write_global_declarations): Remove.
12689         (emit_debug_global_declarations): Remove.
12690         (global_decl_processing): New.
12691         * tree-core.h (struct tree_block): Add DIE field.
12692         * tree.h (BLOCK_DIE): New.
12693         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
12694         throughout.
12695         (vmsdbgout_early_global_decl): New.
12696         (vmsdbgout_late_global_decl): New.
12697         Add early_finish debug hook field to vmsdbg_debug_hooks.
12698         Remove vmsdbgout_decl to vmsdbgout_function_decl.
12699         Add early and late_global_decl debug hooks.
12701 2015-06-05  Julian Brown  <julian@codesourcery.com>
12702             Sandra Loosemore  <sandra@codesourcery.com>
12704         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
12705         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
12706         to print-sysroot-suffix.sh script.
12708 2015-06-05  Tom de Vries  <tom@codesourcery.com>
12710         merge from gomp4 branch:
12711         2015-05-28  Tom de Vries  <tom@codesourcery.com>
12713         PR tree-optimization/65443
12714         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
12715         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
12716         (try_transform_to_exit_first_loop_alt): New function.
12717         (transform_to_exit_first_loop): Use
12718         try_transform_to_exit_first_loop_alt.
12720 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
12722         * builtins.c (expand_builtin_atomic_compare_exchange): Call
12723         emit_cmp_and_jump_insns with the mode of target.
12725 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
12727         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
12729 2015-06-04  DJ Delorie  <dj@redhat.com>
12731         * config/msp430/msp430.md (movsi_s): New.  Special case for
12732         storing a 20-bit symbol into a 32-bit register.
12733         * config/msp430/msp430.c (msp430_subreg): Add support for it.
12734         * config/msp430/predicates.md (msp430_symbol_operand): New.
12736 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
12738         * c-family/c-common.c (noplt): New attribute.
12739         (handle_noplt_attribute): New handler.
12740         * calls.c (prepare_call_address): Check for noplt
12741         attribute.
12742         * config/i386/i386.c (ix86_expand_call): Check
12743         for noplt attribute.
12744         (ix86_nopic_noplt_attribute_p): New function.
12745         (ix86_output_call_insn): Output indirect call for non-pic
12746         no plt calls.
12747         * doc/extend.texi (noplt): Document new attribute.
12748         * doc/invoke.texi: Document new attribute.
12750 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
12752         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
12753         real.h, and fixed-value.h when included in host source files.
12754         * double-int.h: Remove redundant #includes listed above.
12755         * fixed-value.h: Likewise.
12756         * real.h: Likewise.
12757         * wide-int.h: Likewise.
12758         * inchash.h: Likewise.
12759         * rtl.h: Add some include files When included from a generator file.
12760         * target.h: Remove wide-int.h and insn-modes.h from the include list.
12761         * internal-fn.h: Don't include coretypes.h.
12762         * alias.c: Adjust includes for restructured coretypes.h.
12763         * asan.c: Likewise.
12764         * attribs.c: Likewise.
12765         * auto-inc-dec.c: Likewise.
12766         * auto-profile.c: Likewise.
12767         * bb-reorder.c: Likewise.
12768         * bt-load.c: Likewise.
12769         * builtins.c: Likewise.
12770         * caller-save.c: Likewise.
12771         * calls.c: Likewise.
12772         * ccmp.c: Likewise.
12773         * cfg.c: Likewise.
12774         * cfganal.c: Likewise.
12775         * cfgbuild.c: Likewise.
12776         * cfgcleanup.c: Likewise.
12777         * cfgexpand.c: Likewise.
12778         * cfghooks.c: Likewise.
12779         * cfgloop.c: Likewise.
12780         * cfgloop.h: Likewise.
12781         * cfgloopanal.c: Likewise.
12782         * cfgloopmanip.c: Likewise.
12783         * cfgrtl.c: Likewise.
12784         * cgraph.c: Likewise.
12785         * cgraphbuild.c: Likewise.
12786         * cgraphclones.c: Likewise.
12787         * cgraphunit.c: Likewise.
12788         * cilk-common.c: Likewise.
12789         * combine-stack-adj.c: Likewise.
12790         * combine.c: Likewise.
12791         * compare-elim.c: Likewise.
12792         * convert.c: Likewise.
12793         * coverage.c: Likewise.
12794         * cppbuiltin.c: Likewise.
12795         * cprop.c: Likewise.
12796         * cse.c: Likewise.
12797         * cselib.c: Likewise.
12798         * data-streamer-in.c: Likewise.
12799         * data-streamer-out.c: Likewise.
12800         * data-streamer.c: Likewise.
12801         * dbxout.c: Likewise.
12802         * dce.c: Likewise.
12803         * ddg.c: Likewise.
12804         * debug.c: Likewise.
12805         * df-core.c: Likewise.
12806         * df-problems.c: Likewise.
12807         * df-scan.c: Likewise.
12808         * df.h: Likewise.
12809         * dfp.c: Likewise.
12810         * dojump.c: Likewise.
12811         * dominance.c: Likewise.
12812         * domwalk.c: Likewise.
12813         * double-int.c: Likewise.
12814         * dse.c: Likewise.
12815         * dumpfile.c: Likewise.
12816         * dwarf2asm.c: Likewise.
12817         * dwarf2cfi.c: Likewise.
12818         * dwarf2out.c: Likewise.
12819         * dwarf2out.h: Likewise.
12820         * emit-rtl.c: Likewise.
12821         * et-forest.c: Likewise.
12822         * except.c: Likewise.
12823         * explow.c: Likewise.
12824         * expmed.c: Likewise.
12825         * expr.c: Likewise.
12826         * final.c: Likewise.
12827         * fixed-value.c: Likewise.
12828         * fold-const.c: Likewise.
12829         * function.c: Likewise.
12830         * fwprop.c: Likewise.
12831         * gcc-plugin.h: Likewise.
12832         * gcse.c: Likewise.
12833         * generic-match-head.c: Likewise.
12834         * ggc-page.c: Likewise.
12835         * gimple-builder.c: Likewise.
12836         * gimple-expr.c: Likewise.
12837         * gimple-fold.c: Likewise.
12838         * gimple-iterator.c: Likewise.
12839         * gimple-low.c: Likewise.
12840         * gimple-match-head.c: Likewise.
12841         * gimple-pretty-print.c: Likewise.
12842         * gimple-ssa-isolate-paths.c: Likewise.
12843         * gimple-ssa-strength-reduction.c: Likewise.
12844         * gimple-streamer-in.c: Likewise.
12845         * gimple-streamer-out.c: Likewise.
12846         * gimple-streamer.h: Likewise.
12847         * gimple-walk.c: Likewise.
12848         * gimple.c: Likewise.
12849         * gimplify-me.c: Likewise.
12850         * gimplify.c: Likewise.
12851         * godump.c: Likewise.
12852         * graph.c: Likewise.
12853         * graphite-blocking.c: Likewise.
12854         * graphite-dependences.c: Likewise.
12855         * graphite-interchange.c: Likewise.
12856         * graphite-isl-ast-to-gimple.c: Likewise.
12857         * graphite-optimize-isl.c: Likewise.
12858         * graphite-poly.c: Likewise.
12859         * graphite-scop-detection.c: Likewise.
12860         * graphite-sese-to-poly.c: Likewise.
12861         * graphite.c: Likewise.
12862         * haifa-sched.c: Likewise.
12863         * hooks.h: Likewise.
12864         * hw-doloop.c: Likewise.
12865         * ifcvt.c: Likewise.
12866         * incpath.c: Likewise.
12867         * init-regs.c: Likewise.
12868         * internal-fn.c: Likewise.
12869         * ipa-chkp.c: Likewise.
12870         * ipa-comdats.c: Likewise.
12871         * ipa-cp.c: Likewise.
12872         * ipa-devirt.c: Likewise.
12873         * ipa-icf-gimple.c: Likewise.
12874         * ipa-icf.c: Likewise.
12875         * ipa-inline-analysis.c: Likewise.
12876         * ipa-inline-transform.c: Likewise.
12877         * ipa-inline.c: Likewise.
12878         * ipa-polymorphic-call.c: Likewise.
12879         * ipa-profile.c: Likewise.
12880         * ipa-prop.c: Likewise.
12881         * ipa-pure-const.c: Likewise.
12882         * ipa-ref.c: Likewise.
12883         * ipa-reference.c: Likewise.
12884         * ipa-split.c: Likewise.
12885         * ipa-utils.c: Likewise.
12886         * ipa-visibility.c: Likewise.
12887         * ipa.c: Likewise.
12888         * ira-build.c: Likewise.
12889         * ira-color.c: Likewise.
12890         * ira-conflicts.c: Likewise.
12891         * ira-costs.c: Likewise.
12892         * ira-emit.c: Likewise.
12893         * ira-lives.c: Likewise.
12894         * ira.c: Likewise.
12895         * jump.c: Likewise.
12896         * langhooks.c: Likewise.
12897         * lcm.c: Likewise.
12898         * loop-doloop.c: Likewise.
12899         * loop-init.c: Likewise.
12900         * loop-invariant.c: Likewise.
12901         * loop-iv.c: Likewise.
12902         * loop-unroll.c: Likewise.
12903         * lower-subreg.c: Likewise.
12904         * lra-assigns.c: Likewise.
12905         * lra-coalesce.c: Likewise.
12906         * lra-constraints.c: Likewise.
12907         * lra-eliminations.c: Likewise.
12908         * lra-lives.c: Likewise.
12909         * lra-remat.c: Likewise.
12910         * lra-spills.c: Likewise.
12911         * lra.c: Likewise.
12912         * lto-cgraph.c: Likewise.
12913         * lto-compress.c: Likewise.
12914         * lto-opts.c: Likewise.
12915         * lto-section-in.c: Likewise.
12916         * lto-section-out.c: Likewise.
12917         * lto-streamer-in.c: Likewise.
12918         * lto-streamer-out.c: Likewise.
12919         * lto-streamer.c: Likewise.
12920         * mcf.c: Likewise.
12921         * mode-switching.c: Likewise.
12922         * modulo-sched.c: Likewise.
12923         * omega.c: Likewise.
12924         * omp-low.c: Likewise.
12925         * optabs.c: Likewise.
12926         * opts-global.c: Likewise.
12927         * passes.c: Likewise.
12928         * plugin.c: Likewise.
12929         * postreload-gcse.c: Likewise.
12930         * postreload.c: Likewise.
12931         * predict.c: Likewise.
12932         * print-rtl.c: Likewise.
12933         * print-tree.c: Likewise.
12934         * profile.c: Likewise.
12935         * real.c: Likewise.
12936         * realmpfr.c: Likewise.
12937         * realmpfr.h: Likewise.
12938         * recog.c: Likewise.
12939         * ree.c: Likewise.
12940         * reg-stack.c: Likewise.
12941         * regcprop.c: Likewise.
12942         * reginfo.c: Likewise.
12943         * regrename.c: Likewise.
12944         * regs.h: Likewise.
12945         * regstat.c: Likewise.
12946         * reload.c: Likewise.
12947         * reload1.c: Likewise.
12948         * reorg.c: Likewise.
12949         * resource.c: Likewise.
12950         * rtl-chkp.c: Likewise.
12951         * rtlanal.c: Likewise.
12952         * rtlhooks.c: Likewise.
12953         * sanopt.c: Likewise.
12954         * sched-deps.c: Likewise.
12955         * sched-ebb.c: Likewise.
12956         * sched-rgn.c: Likewise.
12957         * sched-vis.c: Likewise.
12958         * sdbout.c: Likewise.
12959         * sel-sched-dump.c: Likewise.
12960         * sel-sched-ir.c: Likewise.
12961         * sel-sched.c: Likewise.
12962         * sese.c: Likewise.
12963         * shrink-wrap.c: Likewise.
12964         * shrink-wrap.h: Likewise.
12965         * simplify-rtx.c: Likewise.
12966         * stack-ptr-mod.c: Likewise.
12967         * statistics.c: Likewise.
12968         * stmt.c: Likewise.
12969         * stor-layout.c: Likewise.
12970         * store-motion.c: Likewise.
12971         * stringpool.c: Likewise.
12972         * symtab.c: Likewise.
12973         * target-globals.c: Likewise.
12974         * targhooks.c: Likewise.
12975         * toplev.c: Likewise.
12976         * tracer.c: Likewise.
12977         * trans-mem.c: Likewise.
12978         * tree-affine.c: Likewise.
12979         * tree-affine.h: Likewise.
12980         * tree-browser.c: Likewise.
12981         * tree-call-cdce.c: Likewise.
12982         * tree-cfg.c: Likewise.
12983         * tree-cfgcleanup.c: Likewise.
12984         * tree-chkp-opt.c: Likewise.
12985         * tree-chkp.c: Likewise.
12986         * tree-chrec.c: Likewise.
12987         * tree-complex.c: Likewise.
12988         * tree-data-ref.c: Likewise.
12989         * tree-dfa.c: Likewise.
12990         * tree-diagnostic.c: Likewise.
12991         * tree-dump.c: Likewise.
12992         * tree-eh.c: Likewise.
12993         * tree-emutls.c: Likewise.
12994         * tree-if-conv.c: Likewise.
12995         * tree-inline.c: Likewise.
12996         * tree-into-ssa.c: Likewise.
12997         * tree-iterator.c: Likewise.
12998         * tree-loop-distribution.c: Likewise.
12999         * tree-nested.c: Likewise.
13000         * tree-nrv.c: Likewise.
13001         * tree-object-size.c: Likewise.
13002         * tree-outof-ssa.c: Likewise.
13003         * tree-parloops.c: Likewise.
13004         * tree-phinodes.c: Likewise.
13005         * tree-predcom.c: Likewise.
13006         * tree-pretty-print.c: Likewise.
13007         * tree-pretty-print.h: Likewise.
13008         * tree-profile.c: Likewise.
13009         * tree-scalar-evolution.c: Likewise.
13010         * tree-sra.c: Likewise.
13011         * tree-ssa-address.c: Likewise.
13012         * tree-ssa-alias.c: Likewise.
13013         * tree-ssa-ccp.c: Likewise.
13014         * tree-ssa-coalesce.c: Likewise.
13015         * tree-ssa-copy.c: Likewise.
13016         * tree-ssa-copyrename.c: Likewise.
13017         * tree-ssa-dce.c: Likewise.
13018         * tree-ssa-dom.c: Likewise.
13019         * tree-ssa-dse.c: Likewise.
13020         * tree-ssa-forwprop.c: Likewise.
13021         * tree-ssa-ifcombine.c: Likewise.
13022         * tree-ssa-live.c: Likewise.
13023         * tree-ssa-loop-ch.c: Likewise.
13024         * tree-ssa-loop-im.c: Likewise.
13025         * tree-ssa-loop-ivcanon.c: Likewise.
13026         * tree-ssa-loop-ivopts.c: Likewise.
13027         * tree-ssa-loop-manip.c: Likewise.
13028         * tree-ssa-loop-niter.c: Likewise.
13029         * tree-ssa-loop-prefetch.c: Likewise.
13030         * tree-ssa-loop-unswitch.c: Likewise.
13031         * tree-ssa-loop.c: Likewise.
13032         * tree-ssa-loop.h: Likewise.
13033         * tree-ssa-math-opts.c: Likewise.
13034         * tree-ssa-operands.c: Likewise.
13035         * tree-ssa-phiopt.c: Likewise.
13036         * tree-ssa-phiprop.c: Likewise.
13037         * tree-ssa-pre.c: Likewise.
13038         * tree-ssa-propagate.c: Likewise.
13039         * tree-ssa-reassoc.c: Likewise.
13040         * tree-ssa-sccvn.c: Likewise.
13041         * tree-ssa-scopedtables.c: Likewise.
13042         * tree-ssa-sink.c: Likewise.
13043         * tree-ssa-strlen.c: Likewise.
13044         * tree-ssa-structalias.c: Likewise.
13045         * tree-ssa-tail-merge.c: Likewise.
13046         * tree-ssa-ter.c: Likewise.
13047         * tree-ssa-threadedge.c: Likewise.
13048         * tree-ssa-threadupdate.c: Likewise.
13049         * tree-ssa-uncprop.c: Likewise.
13050         * tree-ssa-uninit.c: Likewise.
13051         * tree-ssa.c: Likewise.
13052         * tree-ssanames.c: Likewise.
13053         * tree-stdarg.c: Likewise.
13054         * tree-streamer-in.c: Likewise.
13055         * tree-streamer-out.c: Likewise.
13056         * tree-streamer.c: Likewise.
13057         * tree-switch-conversion.c: Likewise.
13058         * tree-tailcall.c: Likewise.
13059         * tree-vect-data-refs.c: Likewise.
13060         * tree-vect-generic.c: Likewise.
13061         * tree-vect-loop-manip.c: Likewise.
13062         * tree-vect-loop.c: Likewise.
13063         * tree-vect-patterns.c: Likewise.
13064         * tree-vect-slp.c: Likewise.
13065         * tree-vect-stmts.c: Likewise.
13066         * tree-vectorizer.c: Likewise.
13067         * tree-vrp.c: Likewise.
13068         * tree.c: Likewise.
13069         * tsan.c: Likewise.
13070         * ubsan.c: Likewise.
13071         * valtrack.c: Likewise.
13072         * value-prof.c: Likewise.
13073         * var-tracking.c: Likewise.
13074         * varasm.c: Likewise.
13075         * varpool.c: Likewise.
13076         * vmsdbgout.c: Likewise.
13077         * vtable-verify.c: Likewise.
13078         * web.c: Likewise.
13079         * wide-int-print.cc: Likewise.
13080         * wide-int-print.h: Likewise.
13081         * wide-int.cc: Likewise.
13082         * xcoffout.c: Likewise.
13083         * config/aarch64/aarch64-builtins.c: Likewise.
13084         * config/aarch64/aarch64.c: Likewise.
13085         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13086         * config/alpha/alpha.c: Likewise.
13087         * config/arc/arc.c: Likewise.
13088         * config/arm/aarch-common.c: Likewise.
13089         * config/arm/arm-builtins.c: Likewise.
13090         * config/arm/arm-c.c: Likewise.
13091         * config/arm/arm.c: Likewise.
13092         * config/avr/avr-c.c: Likewise.
13093         * config/avr/avr-log.c: Likewise.
13094         * config/avr/avr.c: Likewise.
13095         * config/bfin/bfin.c: Likewise.
13096         * config/c6x/c6x.c: Likewise.
13097         * config/cr16/cr16.c: Likewise.
13098         * config/cris/cris.c: Likewise.
13099         * config/darwin-c.c: Likewise.
13100         * config/darwin.c: Likewise.
13101         * config/default-c.c: Likewise.
13102         * config/epiphany/epiphany.c: Likewise.
13103         * config/epiphany/mode-switch-use.c: Likewise.
13104         * config/epiphany/resolve-sw-modes.c: Likewise.
13105         * config/fr30/fr30.c: Likewise.
13106         * config/frv/frv.c: Likewise.
13107         * config/ft32/ft32.c: Likewise.
13108         * config/glibc-c.c: Likewise.
13109         * config/h8300/h8300.c: Likewise.
13110         * config/i386/i386-c.c: Likewise.
13111         * config/i386/i386.c: Likewise.
13112         * config/i386/msformat-c.c: Likewise.
13113         * config/i386/winnt-cxx.c: Likewise.
13114         * config/i386/winnt-stubs.c: Likewise.
13115         * config/i386/winnt.c: Likewise.
13116         * config/ia64/ia64-c.c: Likewise.
13117         * config/ia64/ia64.c: Likewise.
13118         * config/iq2000/iq2000.c: Likewise.
13119         * config/lm32/lm32.c: Likewise.
13120         * config/m32c/m32c-pragma.c: Likewise.
13121         * config/m32c/m32c.c: Likewise.
13122         * config/m32r/m32r.c: Likewise.
13123         * config/m68k/m68k.c: Likewise.
13124         * config/mcore/mcore.c: Likewise.
13125         * config/mep/mep-pragma.c: Likewise.
13126         * config/mep/mep.c: Likewise.
13127         * config/microblaze/microblaze-c.c: Likewise.
13128         * config/microblaze/microblaze.c: Likewise.
13129         * config/mips/mips.c: Likewise.
13130         * config/mmix/mmix.c: Likewise.
13131         * config/mn10300/mn10300.c: Likewise.
13132         * config/moxie/moxie.c: Likewise.
13133         * config/msp430/msp430-c.c: Likewise.
13134         * config/msp430/msp430.c: Likewise.
13135         * config/nds32/nds32-cost.c: Likewise.
13136         * config/nds32/nds32-fp-as-gp.c: Likewise.
13137         * config/nds32/nds32-intrinsic.c: Likewise.
13138         * config/nds32/nds32-isr.c: Likewise.
13139         * config/nds32/nds32-md-auxiliary.c: Likewise.
13140         * config/nds32/nds32-memory-manipulation.c: Likewise.
13141         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13142         * config/nds32/nds32-predicates.c: Likewise.
13143         * config/nds32/nds32.c: Likewise.
13144         * config/nios2/nios2.c: Likewise.
13145         * config/nvptx/nvptx.c: Likewise.
13146         * config/pa/pa.c: Likewise.
13147         * config/pdp11/pdp11.c: Likewise.
13148         * config/rl78/rl78-c.c: Likewise.
13149         * config/rl78/rl78.c: Likewise.
13150         * config/rs6000/rs6000-c.c: Likewise.
13151         * config/rs6000/rs6000.c: Likewise.
13152         * config/rx/rx.c: Likewise.
13153         * config/s390/s390-c.c: Likewise.
13154         * config/s390/s390.c: Likewise.
13155         * config/sh/sh-c.c: Likewise.
13156         * config/sh/sh-mem.cc: Likewise.
13157         * config/sh/sh.c: Likewise.
13158         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13159         * config/sh/sh_treg_combine.cc: Likewise.
13160         * config/sol2-c.c: Likewise.
13161         * config/sol2-cxx.c: Likewise.
13162         * config/sol2-stubs.c: Likewise.
13163         * config/sol2.c: Likewise.
13164         * config/sparc/sparc-c.c: Likewise.
13165         * config/sparc/sparc.c: Likewise.
13166         * config/spu/spu-c.c: Likewise.
13167         * config/spu/spu.c: Likewise.
13168         * config/stormy16/stormy16.c: Likewise.
13169         * config/tilegx/mul-tables.c: Likewise.
13170         * config/tilegx/tilegx-c.c: Likewise.
13171         * config/tilegx/tilegx.c: Likewise.
13172         * config/tilepro/mul-tables.c: Likewise.
13173         * config/tilepro/tilepro-c.c: Likewise.
13174         * config/tilepro/tilepro.c: Likewise.
13175         * config/v850/v850-c.c: Likewise.
13176         * config/v850/v850.c: Likewise.
13177         * config/vax/vax.c: Likewise.
13178         * config/visium/visium.c: Likewise.
13179         * config/vms/vms-c.c: Likewise.
13180         * config/vms/vms.c: Likewise.
13181         * config/vxworks.c: Likewise.
13182         * config/winnt-c.c: Likewise.
13183         * config/xtensa/xtensa.c: Likewise.
13184         * common/config/bfin/bfin-common.c: Likewise.
13186 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
13188         * tree.h (tree_code_for_canonical_type_merging): New function.
13189         * tree.c (gimple_canonical_types_compatible_p): Use
13190         tree_code_for_canonical_type_merging..
13192 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13194         PR c++/66192
13195         PR target/66200
13196         * doc/tm.texi: Regenerate.
13197         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
13198         * target.def (TARGET_RELAXED_ORDERING): Likewise.
13199         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
13200         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
13201         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
13202         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
13203         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
13204         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
13205         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
13207 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13209         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
13210         register fma steering pass.
13211         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
13212         AARCH64_TUNE_FMA_STEERING.
13214 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
13216         * tree.c (verify_type_variant): Verify that type and variant is
13217         compatible.
13218         (gimple_canonical_types_compatible_p): Look for main variants.
13220 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
13222         * config.gcc (powerpc*-*-*): Add support for a new configure
13223         option --with-advance-toolchain=<xxx> which overrides using the
13224         default header files, libraries and dynamic linker.
13226         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
13227         specs to support the configure --with-advance-toolchain=<xxx>
13228         option.
13229         (INCLUDE_EXTRA_SPEC): Likewise.
13230         (LINK_OS_EXTRA_SPEC32): Likewise.
13231         (LINK_OK_EXTRA_SPEC64): Likewise.
13232         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
13233         (DYNAMIC_LINKER_PREFIX): Likewise.
13234         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
13235         toolchain support.
13236         (GLIBC_DYNAMIC_LINKER32): Likewise.
13237         (GLIBC_DYNAMIC_LINKER64): Likewise.
13238         (LINK_OS_LINUX_SPEC32): Likewise.
13239         (LINK_OS_LINUX_SPEC64): Likewise.
13241         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
13242         configuration option.
13244 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
13246         PR target/66275
13247         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
13248         to determine current function ABI.
13249         (ix86_function_value_regno_p): Ditto.
13251 2015-06-03  Martin Liska  <mliska@suse.cz>
13253         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
13254         * bitmap.h (struct bitmap_usage): Likewise.
13255         * ggc-common.c (struct ggc_usage): Likewise.
13256         * mem-stats.h (struct mem_location): Likewise.
13257         (struct mem_usage): Likewise.
13258         * vec.c (struct vec_usage): Likewise.
13260 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
13262         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
13263         -Bsymbolic.
13265 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
13267         * doc/plugins.texi (enum plugin_event): New event.
13268         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
13269         and PLUGIN_FINISH_FUNCTION.
13270         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
13271         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
13273 2015-06-03  Richard Biener  <rguenther@suse.de>
13275         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
13276         compute GROUP_GAP for the first element.
13277         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
13278         on in-group gaps.
13280 2015-06-03  Nick Clifton  <nickc@redhat.com>
13282         * config/rl78/rl78-real.md: Add peepholes to avoid a register
13283         copy when calling a function.
13284         * config/rl78/rl78.c (need_to_save): Do not push the frame
13285         pointer in an interrupt handler prologue if it is never used.
13287 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13289         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
13291 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
13293         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
13294         reference when cloning alias node.
13296 2015-06-03  Martin Liska  <mliska@suse.cz>
13298         * alloc-pool.h (struct pool_usage): Correct space padding.
13299         * ggc-page.c (ggc_print_statistics): Align columns in a report.
13300         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
13301         * tree.c (dump_tree_statistics): Align columns in a report.
13303 2015-06-03  Martin Liska  <mliska@suse.cz>
13305         * alloc-pool.c (allocate_pool_descriptor): Remove.
13306         (struct pool_output_info): Likewise.
13307         (print_alloc_pool_statistics): Likewise.
13308         (dump_alloc_pool_statistics): Likewise.
13309         * alloc-pool.h (struct pool_usage): New struct.
13310         (pool_allocator::initialize): Change usage of memory statistics
13311         to a new interface.
13312         (pool_allocator::release): Likewise.
13313         (pool_allocator::allocate): Likewise.
13314         (pool_allocator::remove): Likewise.
13315         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
13316         for a pool allocator.
13317         * mem-stats.h (struct mem_location): Add new ctor.
13318         (struct mem_usage): Add counter for number of
13319         instances.
13320         (mem_alloc_description::register_descriptor): New overload of
13321         * mem-stats.h (mem_location::to_string): New function.
13322         * bitmap.h (struct bitmap_usage): Use this new function.
13323         * ggc-common.c (struct ggc_usage): Likewise.
13324         the function.
13326 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
13328         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
13329         of GCC_INSN_FLAGS_H block.
13331 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
13333         * explow.c (plus_constant): Update check after force_const_mem call
13334         to see if the value returned is not a NULL_RTX.
13336 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
13338         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
13339         remove instumentation thunks calling reachable functions.
13340         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
13341         * lto/lto-partition.c (privatize_symbol_name_1): New.
13342         (privatize_symbol_name): Privatize both decl and orig_decl
13343         names for instrumented functions.
13344         * cgraph.c (cgraph_node::verify_node): Add transparent
13345         alias chain check for instrumented node.
13347 2015-06-03  Marek Polacek  <polacek@redhat.com>
13349         PR c/64223
13350         PR c/29358
13351         * tree.c (attribute_value_equal): Handle attribute format.
13352         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
13354 2015-06-03  Richard Biener  <rguenther@suse.de>
13356         PR tree-optimization/63916
13357         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
13358         Forward-propagate non-invariant addresses by splicing their
13359         reference ops if the result isn't going to be used by PRE.
13360         (vn_reference_lookup_3): Remove pointless assert.
13362 2015-06-03  Richard Biener  <rguenther@suse.de>
13364         PR tree-optimization/66375
13365         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
13366         add to the evolution before following SSA edges.
13368 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
13370         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
13371         (dump_use, dump_cand, find_induction_variables): Pass new argument
13372         to dump_iv.
13373         (record_use): Preserve the ssa name information in IV.
13375 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
13377         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
13378         NO_MODE_TEST.
13379         (add_mode_tests): Don't add mode tests if the predicate only
13380         accepts scalar constant integers.  Otherwise, allow the mode
13381         of "op" to be VOIDmode if the predicate does accept such integers.
13383 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
13385         PR target/66258
13386         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
13387         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
13388         (aarch64_secondary_reload): Likewise
13389         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
13390         to !TARGET_FLOAT.
13391         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
13392         Likewise.
13394 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
13395             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
13397         PR target/65768
13398         * cprop.c (try_replace_reg): Check cost of constants before propagating.
13400 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13402         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
13403         provide access to the IBM extended double floating point mode if
13404         long double is IEEE 128-bit floating point.
13405         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
13406         point if long double is the IBM extended double type.
13408         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
13409         enable adding IEEE 128-bit floating point support.
13410         (-mfloat128-software): Likewise.
13411         (-mfloat128-sw): Likewise.
13413         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
13414         128-bit floating point types to occupy any register if
13415         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
13416         -mfloat128-software is enabled.
13417         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
13418         support.
13419         (rs6000_option_override_internal): Add -mfloat128-* support.
13420         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
13422         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
13423         and float128 type nodes.
13424         (ieee128_float_type_node): Likewise.
13425         (ibm128_float_type_node): Likewise.
13427 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
13429         PR target/66136
13430         * config/aarch64/geniterators.sh: Rewrite in awk.
13432 2015-06-02  Martin Liska  <mliska@suse.cz>
13434         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
13435         values to avoid -Wmaybe-uninitialized errors.
13437 2015-06-02  Richard Biener  <rguenther@suse.de>
13439         PR debug/65549
13440         * dwarf2out.c (lookup_context_die): New function.
13441         (resolve_addr): Avoid forcing a full DIE for the
13442         target of a DW_TAG_GNU_call_site during late compilation.
13443         Instead create a stub DIE without a type if we have a
13444         context DIE present.
13446 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
13448         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
13450 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
13452         PR tree-optimization/48052
13453         * cfgloop.h (struct control_iv): New.
13454         (struct loop): New field control_ivs.
13455         * tree-ssa-loop-niter.c : Include "stor-layout.h".
13456         (number_of_iterations_lt): Set no_overflow information.
13457         (number_of_iterations_exit): Init control iv in niter struct.
13458         (record_control_iv): New.
13459         (estimate_numbers_of_iterations_loop): Call record_control_iv.
13460         (loop_exits_before_overflow): New.  Interface factored out of
13461         scev_probably_wraps_p.
13462         (scev_probably_wraps_p): Factor loop niter related code into
13463         loop_exits_before_overflow.
13464         (free_numbers_of_iterations_estimates_loop): Free control ivs.
13465         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
13467 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
13469         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
13470         the target doesn't belong to the current function.
13472 2015-06-02  Marek Polacek  <polacek@redhat.com>
13474         PR middle-end/66345
13475         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
13476         get_maxval_strlen does not produce an INTEGER_CST.
13478 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
13480         * config/arc/constraints.md: Use lower-case names in match_code.
13481         * config/mmix/constraints.md: Likewise.
13483 2015-06-02  Richard Biener  <rguenther@suse.de>
13485         PR tree-optimization/65961
13486         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
13487         check and clarify dump message.
13488         (vect_build_slp_tree): If all children are built up from scalars
13489         build up the parent from scalars instead.
13490         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
13492 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
13494         PR other/65366
13495         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
13496         instead of print ... .
13498 2015-06-02  Alan Modra  <amodra@gmail.com>
13500         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
13501         2014-08-11 change.
13503 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
13505         PR tree-optimization/52563
13506         PR tree-optimization/62173
13507         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
13508         (alloc_iv, set_iv): New parameter.
13509         (determine_biv_step): Delete.
13510         (find_bivs): Inline original determine_biv_step.  Pass new
13511         argument to set_iv.
13512         (idx_find_step): Use no_overflow information for conversion.
13513         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
13514         resolve_mixers handle folded_casts.
13515         (instantiate_scev_name): Change bool parameter to bool pointer.
13516         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
13517         (instantiate_array_ref, instantiate_scev_not): Ditto.
13518         (instantiate_scev_3, instantiate_scev_2): Ditto.
13519         (instantiate_scev_1, instantiate_scev_r): Ditto.
13520         (instantiate_scev_convert, ): Change parameter.  Pass argument
13521         to chrec_convert_aggressive.
13522         (instantiate_scev): Change argument.
13523         (resolve_mixers): New parameter and set it.
13524         (scev_const_prop): New argument.
13525         * tree-scalar-evolution.h (resolve_mixers): New parameter.
13526         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
13527         of chrec_conert_1.
13528         (chrec_convert): New parameter.  Move definition below.
13529         (chrec_convert_aggressive): New parameter and set it.  Call
13530         convert_affine_scev.
13531         * tree-chrec.h (chrec_convert): New parameter.
13532         (chrec_convert_aggressive): Ditto.
13534 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
13536         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
13537         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
13538         the LHS of a no-return call if its type has variable size.
13539         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13540         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
13542 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
13544         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
13545         * config.in: Regenerate.
13547 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
13549         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
13550         consecutive accesses within outer-loop with force_vectorize
13551         for references with zero step in inner-loop.
13553 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
13555         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
13556         rather than from gcc/build directory.
13558 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
13560         PR target/65697
13561         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
13562         for __sync memory models, emit initial loads and final barriers as
13563         appropriate.
13565 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
13567         PR target/65697
13568         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
13569         (aarch64_split_atomic_op): Check for __sync memory models, emit
13570         appropriate initial loads and final barriers.
13572 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
13574         * Makefile.in: Fix gcov dependencies that should
13575         not point to a build folder.
13577 2015-06-01  Richard Biener  <rguenther@suse.de>
13579         Revert
13580         2015-05-29  Richard Biener  <rguenther@suse.de>
13582         PR tree-optimization/66314
13583         * tree-ssa-threadupdate.c (create_block_for_threading): Add
13584         parameter that says which loop the new block belongs to.
13585         (ssa_create_duplicates): Blocks duplicated for the threaded
13586         path belong to the loop of the thread destination.
13588 2015-06-01  Martin Liska  <mliska@suse.cz>
13590         * sched-deps.c: Include pool-alloc.h before
13591         cselib.h header file is included.
13593 2015-06-01  Richard Biener  <rguenther@suse.de>
13595         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
13596         functions.
13598 2015-06-01  Martin Liska  <mliska@suse.cz>
13600         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
13601         a function local variable.
13603 2015-06-01  Martin Liska  <mliska@suse.cz>
13605         * alloc-pool.c (create_alloc_pool): Remove.
13606         (empty_alloc_pool): Likewise.
13607         (free_alloc_pool): Likewise.
13608         (free_alloc_pool_if_empty): Likewise.
13609         (pool_alloc): Likewise.
13610         (pool_free): Likewise.
13611         * alloc-pool.h: Remove old declarations.
13613 2015-06-01  Martin Liska  <mliska@suse.cz>
13615         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
13616         (ira_create_object): Likewise.
13617         (ira_create_allocno): Likewise.
13618         (ira_create_live_range): Likewise.
13619         (copy_live_range): Likewise.
13620         (ira_finish_live_range): Likewise.
13621         (ira_free_allocno_costs): Likewise.
13622         (finish_allocno): Likewise.
13623         (finish_allocnos): Likewise.
13624         (initiate_prefs): Likewise.
13625         (ira_create_pref): Likewise.
13626         (finish_pref): Likewise.
13627         (finish_prefs): Likewise.
13628         (initiate_copies): Likewise.
13629         (ira_create_copy): Likewise.
13630         (finish_copy): Likewise.
13631         (finish_copies): Likewise.
13632         (finish_prefs): Likewise.
13634 2015-06-01  Martin Liska  <mliska@suse.cz>
13636         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
13637         (allocate_and_init_ipcp_value): Likewise.
13638         (ipcp_lattice::add_value): Likewise.
13639         (merge_agg_lats_step): Likewise.
13640         (ipcp_driver): Likewise.
13641         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
13642         (ipa_free_all_structures_after_iinln): Likewise.
13643         * ipa-prop.h: Likewise.
13645 2015-06-01  Martin Liska  <mliska@suse.cz>
13647         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
13648         pool allocator.
13649         (set_hint_predicate): Likewise.
13650         (inline_summary_alloc): Likewise.
13651         (reset_inline_edge_summary): Likewise.
13652         (reset_inline_summary): Likewise.
13653         (set_cond_stmt_execution_predicate): Likewise.
13654         (set_switch_stmt_execution_predicate): Likewise.
13655         (compute_bb_predicates): Likewise.
13656         (estimate_function_body_sizes): Likewise.
13657         (inline_free_summary): Likewise.
13659 2015-06-01  Martin Liska  <mliska@suse.cz>
13661         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
13662         (ipa_edge_duplication_hook): Likewise.
13663         (ipa_free_all_structures_after_ipa_cp): Likewise.
13664         (ipa_free_all_structures_after_iinln): Likewise.
13666 2015-06-01  Martin Liska  <mliska@suse.cz>
13668         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
13669         (ipa_profile_generate_summary): Likewise.
13670         (ipa_profile_read_summary): Likewise.
13671         (ipa_profile): Likewise.
13673 2015-06-01  Martin Liska  <mliska@suse.cz>
13675         * tree-ssa-structalias.c (new_var_info): Use new type-based
13676         pool allocator.
13677         (new_constraint): Likewise.
13678         (init_alias_vars): Likewise.
13679         (delete_points_to_sets): Likewise.
13681 2015-06-01  Martin Liska  <mliska@suse.cz>
13683         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
13684         (free_strinfo): Likewise.
13685         (pass_strlen::execute): Likewise.
13687 2015-06-01  Martin Liska  <mliska@suse.cz>
13689         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
13690         pool allocator.
13691         (vn_reference_insert_pieces): Likewise.
13692         (vn_phi_insert): Likewise.
13693         (visit_reference_op_call): Likewise.
13694         (copy_phi): Likewise.
13695         (copy_reference): Likewise.
13696         (process_scc): Likewise.
13697         (allocate_vn_table): Likewise.
13698         (free_vn_table): Likewise.
13700 2015-06-01  Martin Liska  <mliska@suse.cz>
13702         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
13703         pool allocator.
13704         (add_repeat_to_ops_vec): Likewise.
13705         (get_ops): Likewise.
13706         (maybe_optimize_range_tests): Likewise.
13707         (init_reassoc): Likewise.
13708         (fini_reassoc): Likewise.
13710 2015-06-01  Martin Liska  <mliska@suse.cz>
13712         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
13713         pool allocator.
13714         (bitmap_set_new): Likewise.
13715         (get_or_alloc_expr_for_constant): Likewise.
13716         (get_or_alloc_expr_for): Likewise.
13717         (phi_translate_1): Likewise.
13718         (compute_avail): Likewise.
13719         (init_pre): Likewise.
13720         (fini_pre): Likewise.
13722 2015-06-01  Martin Liska  <mliska@suse.cz>
13724         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
13725         (delete_dep_node): Likewise.
13726         (create_deps_list): Likewise.
13727         (free_deps_list): Likewise.
13728         (sched_deps_init): Likewise.
13729         (sched_deps_finish): Likewise.
13731 2015-06-01  Martin Liska  <mliska@suse.cz>
13733         * regcprop.c (free_debug_insn_changes): Use new type-based
13734         pool allocator.
13735         (replace_oldest_value_reg): Likewise.
13736         (pass_cprop_hardreg::execute): Likewise.
13738 2015-06-01  Martin Liska  <mliska@suse.cz>
13740         * ira-build.c (initiate_cost_vectors): Use new type-based
13741         pool allocator.
13742         (ira_allocate_cost_vector): Likewise.
13743         (ira_free_cost_vector): Likewise.
13744         (finish_cost_vectors): Likewise.
13746 2015-06-01  Martin Liska  <mliska@suse.cz>
13748         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
13749         pool allocator.
13750         (free_sched_pools): Likewise.
13751         * sel-sched-ir.h (_list_alloc): Likewise.
13752         (_list_remove): Likewise.
13754 2015-06-01  Martin Liska  <mliska@suse.cz>
13756         * stmt.c (add_case_node): Use new type-based pool allocator.
13757         (expand_case): Likewise.
13758         (expand_sjlj_dispatch_table): Likewise.
13760 2015-06-01  Martin Liska  <mliska@suse.cz>
13762         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
13763         (free_bb): Likewise.
13764         (pass_cse_reciprocals::execute): Likewise.
13766 2015-06-01  Martin Liska  <mliska@suse.cz>
13768         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
13769         (sra_deinitialize) Likewise.
13770         (create_access_1) Likewise.
13771         (build_accesses_from_assign) Likewise.
13772         (create_artificial_child_access) Likewise.
13774 2015-06-01  Martin Liska  <mliska@suse.cz>
13776         * dse.c (get_group_info):Use new type-based pool allocator.
13777         (dse_step0) Likewise.
13778         (free_store_info) Likewise.
13779         (delete_dead_store_insn) Likewise.
13780         (free_read_records) Likewise.
13781         (record_store) Likewise.
13782         (replace_read) Likewise.
13783         (check_mem_read_rtx) Likewise.
13784         (scan_insn) Likewise.
13785         (dse_step1) Likewise.
13786         (dse_step7) Likewise.
13788 2015-06-01  Martin Liska  <mliska@suse.cz>
13790         * df-scan.c (struct df_scan_problem_data):Use new type-based
13791         pool allocator.
13792         (df_scan_free_internal) Likewise.
13793         (df_scan_alloc) Likewise.
13794         (df_grow_reg_info) Likewise.
13795         (df_free_ref) Likewise.
13796         (df_insn_create_insn_record) Likewise.
13797         (df_mw_hardreg_chain_delete) Likewise.
13798         (df_insn_info_delete) Likewise.
13799         (df_free_collection_rec) Likewise.
13800         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
13801         (df_sort_and_compress_mws) Likewise.
13802         (df_ref_create_structure) Likewise.
13803         (df_ref_record) Likewise.
13805 2015-06-01  Martin Liska  <mliska@suse.cz>
13807         * df-problems.c (df_chain_create):Use new type-based pool allocator.
13808         (df_chain_unlink_1) Likewise.
13809         (df_chain_unlink) Likewise.
13810         (df_chain_remove_problem) Likewise.
13811         (df_chain_alloc) Likewise.
13812         (df_chain_free) Likewise.
13813         * df.h (struct dataflow) Likewise.
13815 2015-06-01  Martin Liska  <mliska@suse.cz>
13817         * cselib.c (new_elt_list):Use new type-based pool allocator.
13818         (new_elt_loc_list) Likewise.
13819         (unchain_one_elt_list) Likewise.
13820         (unchain_one_elt_loc_list) Likewise.
13821         (unchain_one_value) Likewise.
13822         (new_cselib_val) Likewise.
13823         (cselib_init) Likewise.
13824         (cselib_finish) Likewise.
13826 2015-06-01  Martin Liska  <mliska@suse.cz>
13828         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
13829         (sh_reorg) Likewise.
13831 2015-06-01  Martin Liska  <mliska@suse.cz>
13833         * cfg.c (initialize_original_copy_tables):Use new type-based
13834         pool allocator.
13835         (free_original_copy_tables) Likewise.
13836         (copy_original_table_clear) Likewise.
13837         (copy_original_table_set) Likewise.
13839 2015-06-01  Martin Liska  <mliska@suse.cz>
13841         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
13842         pool allocator.
13843         (asan_mem_ref_new) Likewise.
13844         (free_mem_ref_resources) Likewise.
13846 2015-06-01  Martin Liska  <mliska@suse.cz>
13848         * var-tracking.c (variable_htab_free):Use new type-based
13849         pool allocator.
13850         (attrs_list_clear) Likewise.
13851         (attrs_list_insert) Likewise.
13852         (attrs_list_copy) Likewise.
13853         (shared_hash_unshare) Likewise.
13854         (shared_hash_destroy) Likewise.
13855         (unshare_variable) Likewise.
13856         (var_reg_delete_and_set) Likewise.
13857         (var_reg_delete) Likewise.
13858         (var_regno_delete) Likewise.
13859         (drop_overlapping_mem_locs) Likewise.
13860         (variable_union) Likewise.
13861         (insert_into_intersection) Likewise.
13862         (canonicalize_values_star) Likewise.
13863         (variable_merge_over_cur) Likewise.
13864         (dataflow_set_merge) Likewise.
13865         (remove_duplicate_values) Likewise.
13866         (variable_post_merge_new_vals) Likewise.
13867         (dataflow_set_preserve_mem_locs) Likewise.
13868         (dataflow_set_remove_mem_locs) Likewise.
13869         (variable_from_dropped) Likewise.
13870         (variable_was_changed) Likewise.
13871         (set_slot_part) Likewise.
13872         (clobber_slot_part) Likewise.
13873         (delete_slot_part) Likewise.
13874         (loc_exp_insert_dep) Likewise.
13875         (notify_dependents_of_changed_value) Likewise.
13876         (emit_notes_for_differences_1) Likewise.
13877         (vt_emit_notes) Likewise.
13878         (vt_initialize) Likewise.
13879         (vt_finalize) Likewise.
13881 2015-06-01  Martin Liska  <mliska@suse.cz>
13883         * ira-color.c (init_update_cost_records):Use new type-based
13884         pool allocator.
13885         (get_update_cost_record) Likewise.
13886         (free_update_cost_record_list) Likewise.
13887         (finish_update_cost_records) Likewise.
13888         (initiate_cost_update) Likewise.
13890 2015-06-01  Martin Liska  <mliska@suse.cz>
13892         * lra.c (init_insn_regs): Use new type-based pool allocator.
13893         (new_insn_reg) Likewise.
13894         (free_insn_reg) Likewise.
13895         (free_insn_regs) Likewise.
13896         (finish_insn_regs) Likewise.
13897         (init_insn_recog_data) Likewise.
13898         (init_reg_info) Likewise.
13899         (finish_reg_info) Likewise.
13900         (lra_free_copies) Likewise.
13901         (lra_create_copy) Likewise.
13902         (invalidate_insn_data_regno_info) Likewise.
13904 2015-06-01  Martin Liska  <mliska@suse.cz>
13906         * lra-lives.c (free_live_range): Use new type-based pool allocator.
13907         (free_live_range_list) Likewise.
13908         (create_live_range) Likewise.
13909         (copy_live_range) Likewise.
13910         (lra_merge_live_ranges) Likewise.
13911         (remove_some_program_points_and_update_live_ranges) Likewise.
13912         (lra_live_ranges_init) Likewise.
13913         (lra_live_ranges_finish) Likewise.
13915 2015-06-01  Martin Liska  <mliska@suse.cz>
13917         * et-forest.c (et_new_occ): Use new type-based pool allocator.
13918         (et_new_tree): Likewise.
13919         (et_free_tree): Likewise.
13920         (et_free_tree_force): Likewise.
13921         (et_free_pools): Likewise.
13922         (et_split): Likewise.
13924 2015-06-01  Martin Liska  <mliska@suse.cz>
13926         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
13927         to header file.
13928         * alloc-pool.h (pool_allocator::pool_allocator): New function.
13929         (pool_allocator::release): Likewise.
13930         (inline pool_allocator::release_if_empty): Likewise.
13931         (inline pool_allocator::~pool_allocator): Likewise.
13932         (pool_allocator::allocate): Likewise.
13933         (pool_allocator::remove): Likewise.
13935 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13937         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
13938         in comment.
13940 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13942         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
13943         to fusible_ops.
13944         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
13945         (arm_macro_fusion_p): Likewise.
13946         (arm_macro_fusion_pair_p): Likewise.
13948 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
13950         * config/aarch64/aarch64-protos.h (tune_params): Rename
13951         fuseable_ops to fusible_ops.
13952         * config/aarch64/aarch64.c (generic_tunings): Rename
13953         fuseable_ops to fusible_ops.
13954         (cortexa53_tunings): Likewise.
13955         (cortexa57_tunings): Likewise.
13956         (thunderx_tunings): Likewise.
13957         (xgene1_tunings): Likewise.
13958         (aarch64_macro_fusion_p): Likewise.
13959         (aarch64_macro_fusion_pair_p): Likewise.
13961 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
13963         * config/s390/driver-native.c: New file.
13964         * config/s390/x-native: New file.
13965         * config.host: Add new files for s390.
13966         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
13967         and -march=native
13968         * config.gcc: Likewise.
13969         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
13970         * config/s390/s390-opts.h (enum processor_type): Ditto.
13971         * config/s390/s390.c (s390_option_override): Catch unhandled
13972         PROCESSOR_NATIVE
13974 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
13976         PR target/65527
13977         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
13978         redirection for instrumented calls.
13979         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
13980         (append_compiler_options): Append -fcheck-pointer-bounds.
13981         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
13982         (chkp_redirect_edge): New.
13983         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
13984         (chkp_redirect_edge): New.
13986 2015-06-01  Richard Biener  <rguenther@suse.de>
13988         PR tree-optimization/66280
13989         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
13990         def-use walking.
13992 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13994         * config/aarch64/aarch64.md
13995         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
13996         logic_shift_imm.
13998 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
14000         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
14001         Remove obsolete kludge.
14003 2015-06-01  Richard Biener  <rguenther@suse.de>
14005         * tree-ssa-reassoc.c (get_rank): Simplify.
14007 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14009         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
14010         * configure: Regenerated.
14012 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
14014         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
14015         issue (add space between string literal and macro).
14016         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
14018 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
14020         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
14021         implict or explicit -fPIE or -fpie.
14023 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
14025         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
14027 2015-05-28  DJ Delorie  <dj@redhat.com>
14029         * expmed.c (extract_bit_field_1): Avoid clobbering a
14030         yet-to-be-used base/index register.
14032 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
14034         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
14035         (alias_stats): Add num_universal.
14036         (alias_set_subset_of): Special case pointers; be ready for NULL
14037         children.
14038         (alias_sets_conflict_p): Special case pointers; be ready for NULL
14039         children.
14040         (init_alias_set_entry): Break out from ...
14041         (record_alias_subset): ... here; propagate new fields;
14042         allocate children only when really needed.
14043         (get_alias_set): Do less generous pointer globbing.
14044         (dump_alias_stats_in_alias_c): Update statistics.
14046 2015-05-30  Alan Modra  <amodra@gmail.com>
14048         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
14049         correct block for use of r12.
14050         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
14052 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
14054         PR target/66215
14055         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
14056         with -mhotpatch=.
14058 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
14060         PR tree-optimization/66142
14061         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
14062         virtual phis that feed themselves.
14064 2015-05-29  Richard Biener  <rguenther@suse.de>
14066         PR tree-optimization/66314
14067         * tree-ssa-threadupdate.c (create_block_for_threading): Add
14068         parameter that says which loop the new block belongs to.
14069         (ssa_create_duplicates): Blocks duplicated for the threaded
14070         path belong to the loop of the thread destination.
14072 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
14074         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
14075         to cleanup-saved-temps.
14076         * doc/sourcebuild.texi (Clean up generated test files): Expand
14077         introduction.
14078         (dg-keep-saved-temps): Document new proc.
14079         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
14080         cleanup-saved-temps): Remove.
14082 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
14084         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
14085         gcc_AC_CHECK_DECLS.
14086         * configure: Regenerate.
14088 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
14090         * config/nios2/linux.h (CPP_SPEC): Define.
14092 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
14094         * config/microblaze/linux.h (CPP_SPEC): Define.
14096 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
14098         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
14099         -pthread is specified.
14101 2015-05-28  Richard Biener  <rguenther@suse.de>
14103         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
14104         (vect_fixup_scalar_cycles_with_patterns): Likewise.
14105         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
14106         after pattern recog.
14107         (vect_create_epilog_for_reduction): Properly handle reductions
14108         with patterns.
14109         (vectorizable_reduction): Likewise.
14110         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
14111         reduction chains.
14112         (vect_get_constant_vectors): Create the correct number of
14113         initial values for reductions.
14114         (vect_schedule_slp_instance): Handle reduction chains that are
14115         type changing properly.
14116         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
14118 2015-05-28  Richard Biener  <rguenther@suse.de>
14120         PR tree-optimization/66142
14121         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
14122         values better in memcpy destination handling.  Handle non-aliasing
14123         we discover here.
14125 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
14127         PR target/63810
14128         * config/darwin-c.c (version_components): New global enum.
14129         (parse_version, version_as_legacy_macro)
14130         (version_as_modern_macro, macosx_version_as_macro): New functions.
14131         (version_as_macro): Remove.
14132         (darwin_cpp_builtins): Use new function.
14134 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
14136         * builtins.c (expand_builtin_acc_on_device): Mark parameters
14137         with ATTRIBUTE_UNUSED.
14139 2015-05-28  Julian Brown  <julian@codesourcery.com>
14141         PR libgomp/65742
14143         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
14144         sequence for !ACCEL_COMPILER.
14146 2015-05-28  Nick Clifton  <nickc@redhat.com>
14148         * config/rx/rx.c (push_regs): New function.  Extracts code from...
14149         (rx_expand_prologue): ... here.  Use push_regs to push even small
14150         spans of registers.
14151         (pop_regs): New function.
14152         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
14153         registers.
14155 2015-05-28  Richard Biener  <rguenther@suse.de>
14157         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
14158         member.
14159         (SLP_INSTANCE_BODY_COST_VEC): Remove.
14160         (vect_update_slp_costs_according_to_vf): Likewise.
14161         (vect_slp_analyze_operations): Update prototype.
14162         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
14163         vect_update_slp_costs_according_to_vf, adjust.
14164         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
14165         (vect_analyze_slp_cost_1): Likewise.
14166         (vect_analyze_slp_cost): Likewise.  Properly deal with
14167         widening reduction ops.  Commit body costs.
14168         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
14169         cost for loops from here.
14170         (vect_slp_analyze_operations): But do it from here when
14171         the vectorization factor is known and stmts are analyzed.
14172         (vect_bb_vectorization_profitable_p): Simplify.
14173         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
14174         (vect_update_slp_costs_according_to_vf): Remove.
14176 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
14177             H.J. Lu  <hongjiu.lu@intel.com>
14179         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
14180         (BUILD_CFLAGS): Likewise.
14181         (BUILD_CXXFLAGS): Likewise.
14182         (LINKER): Add @NO_PIE_FLAG@.
14183         (BUILD_LDFLAGS): Likewise.
14184         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
14185         --enable-default-pie.
14186         * common.opt (fPIE): Initialize to -1.
14187         (fpie): Likewise.
14188         (no-pie): New option.
14189         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
14190         * configure.ac: Add --enable-default-pie.
14191         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
14192         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
14193         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
14194         * gcc.c (NO_PIE_SPEC): New.
14195         (PIE_SPEC): Likewise.
14196         (NO_FPIE1_SPEC): Likewise.
14197         (FPIE1_SPEC): Likewise.
14198         (NO_FPIE2_SPEC): Likewise.
14199         (FPIE2_SPEC): Likewise.
14200         (NO_FPIE2_SPEC): Likewise.
14201         (FPIE_SPEC): Likewise.
14202         (NO_FPIE_SPEC): Likewise.
14203         (NO_FPIC1_SPEC): Likewise.
14204         (FPIC1_SPEC): Likewise.
14205         (NO_FPIC2_SPEC): Likewise.
14206         (FPIC2_SPEC): Likewise.
14207         (NO_FPIC2_SPEC): Likewise.
14208         (FPIC_SPEC): Likewise.
14209         (NO_FPIC_SPEC): Likewise.
14210         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
14211         (FPIE1_OR_FPIC1_SPEC): Likewise.
14212         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
14213         (FPIE2_OR_FPIC2_SPEC): Likewise.
14214         (NO_FPIE_AND_FPIC_SPEC): Likewise.
14215         (FPIE_OR_FPIC_SPEC): Likewise.
14216         (LD_PIE_SPEC): Likewise.
14217         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
14218         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
14219         * config/darwin.h (PIE_SPEC): Renamed to ...
14220         (DARWIN_PIE_SPEC): This.
14221         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
14222         * config/darwin9.h (PIE_SPEC): Renamed to ...
14223         (DARWIN_PIE_SPEC): This.
14224         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
14225         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
14226         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
14227         FPIE2_OR_FPIC2_SPEC.
14228         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
14229         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
14230         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
14231         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14232         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14233         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
14234         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
14235         * config/m32r/m32r.h (ASM_SPEC): Likewise.
14236         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
14237         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14238         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
14239         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
14240         * config/sparc/linux.h (ASM_SPEC): Likewise.
14241         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14242         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
14243         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
14244         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14245         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14246         * config/sparc/sparc.h (ASM_SPEC): Likewise.
14247         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
14248         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
14249         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
14250         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
14251         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
14252         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
14253         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
14254         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
14255         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
14256         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
14257         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
14258         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
14259         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14260         * config/vax/linux.h (ASM_SPEC): Likewise.
14261         * doc/install.texi: Document --enable-default-pie.
14262         * doc/invoke.texi: Document -no-pie.
14263         * config.in: Regenerated.
14264         * configure: Likewise.
14266 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14268         PR rtl-optimization/66168
14269         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
14270         can_move_invariant_reg.
14272 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
14274         PR target/66148
14275         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
14276         REG_EQUAL note when doing insert.
14278         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
14279         instead of "%d" for 'o' operand.
14281 2015-05-27  Nathan Sidwell  <nathan@acm.org>
14283         PR c++/66270
14284         * tree.c (build_pointer_type_for_mode): Canonical type does not
14285         inherit can_alias_all.
14286         (build_reference_type_for_mode): Likewise.
14288 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
14290         * expr.h (array_at_struct_end_p): Move to...
14291         (array_ref_element_size): Likewise.
14292         (component_ref_field_offset): Likewise.
14293         * tree.h (array_ref_element_size): ...here.
14294         (array_at_struct_end_p): Likewise.
14295         (component_ref_field_offset): Likewise.
14296         * expr.c (array_ref_element_size): Move to...
14297         (array_ref_low_bound): Likewise.
14298         (array_at_struct_end_p): Likewise.
14299         (array_ref_up_bound): Likewise.
14300         (component_ref_field_offset): Likewise.
14301         * tree.c (array_ref_element_size): ...here.
14302         (array_ref_low_bound): Likewise.
14303         (array_ref_up_bound): Likewise.
14304         (array_at_struct_end_p): Likewise.
14305         (component_ref_field_offset): Likewise.
14307 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
14308             Szabolcs Nagy  <szabolcs.nagy@arm.com>
14310         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
14312 2015-05-27  Jason Merrill  <jason@redhat.com>
14314         PR bootstrap/66304
14315         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
14316         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
14317         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
14319 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
14321         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
14322         is true.
14324         * statistics.c (statistics_fini_pass): Print pass name.
14326 2015-05-27  Richard Biener  <rguenther@suse.de>
14328         PR tree-optimization/66272
14329         Revert parts of
14330         2014-08-15  Richard Biener  <rguenther@suse.de>
14332         PR tree-optimization/62031
14333         * tree-data-ref.c (dr_analyze_indices): Do not set
14334         DR_UNCONSTRAINED_BASE.
14335         (dr_may_alias_p): All indirect accesses have to go the
14336         formerly DR_UNCONSTRAINED_BASE path.
14337         * tree-data-ref.h (struct indices): Remove
14338         unconstrained_base member.
14339         (DR_UNCONSTRAINED_BASE): Remove.
14341 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
14343         * dwarf2out.c: Remove block_map.
14344         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
14345         (gen_lexical_block_die): Same.
14346         (dwarf2out_function_decl): Remove block_map use.
14347         (dwarf2out_c_finalize): Same.
14348         * tree-core.h (struct tree_block): Add die field.
14349         * tree.h (BLOCK_DIE): New.
14351 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14353         PR target/65358
14354         * expr.c (memory_load_overlap): New function.
14355         (emit_push_insn): When pushing partial args to the stack would
14356         clobber the register part load the overlapping part into a pseudo
14357         and put it into the hard reg after pushing.  Change return type
14358         to bool.  Add bool argument.
14359         * expr.h (emit_push_insn): Change return type to bool.
14360         Add bool argument.
14361         * calls.c (expand_call): Cancel sibcall optimization when encountering
14362         partial argument on targets with ARGS_GROW_DOWNWARD and
14363         !STACK_GROWS_DOWNWARD.
14364         (emit_library_call_value_1): Update callsite of emit_push_insn.
14365         (store_one_arg): Likewise.
14367 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
14369         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
14371 2015-05-27  Martin Liska  <mliska@suse.cz>
14373         * Makefile.in: Add additional dependencies related to memory report
14374         enhancement.
14375         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
14376         * bitmap.c (struct bitmap_descriptor_d): Remove.
14377         (struct loc): Likewise.
14378         (struct bitmap_desc_hasher): Likewise.
14379         (bitmap_desc_hasher::hash): Likewise.
14380         (bitmap_desc_hasher::equal): Likewise.
14381         (get_bitmap_descriptor): Likewise.
14382         (bitmap_register): User new memory descriptor API.
14383         (register_overhead): Likewise.
14384         (bitmap_find_bit): Register nsearches and search_iter statistics.
14385         (struct bitmap_output_info): Remove.
14386         (print_statistics): Likewise.
14387         (dump_bitmap_statistics): Use new memory descriptor.
14388         * bitmap.h (struct bitmap_usage): New class.
14389         * genmatch.c: Extend header file inclusion.
14390         * genpreds.c: Likewise.
14391         * ggc-common.c (struct ggc_usage): New class.
14392         (struct ggc_loc_desc_hasher): Remove.
14393         (ggc_loc_desc_hasher::hash): Likewise.
14394         (ggc_loc_desc_hasher::equal): Likewise.
14395         (struct ggc_ptr_hash_entry): Likewise.
14396         (struct ptr_hash_hasher): Likewise.
14397         (ptr_hash_hasher::hash): Likewise.
14398         (ptr_hash_hasher::equal): Likewise.
14399         (make_loc_descriptor): Likewise.
14400         (ggc_prune_ptr): Likewise.
14401         (dump_ggc_loc_statistics): Use new memory descriptor.
14402         (ggc_record_overhead): Likewise.
14403         (ggc_free_overhead): Likewise.
14404         (final_cmp_statistic): Remove.
14405         (cmp_statistic): Likewise.
14406         (ggc_add_statistics): Liekwise.
14407         (ggc_prune_overhead_list): Likewise.
14408         * hash-map-traits.h: New file.
14409         * hash-map.h (struct default_hashmap_traits): Move the traits to a
14410         separate header file.
14411         * hash-set.h: Pass memory statistics info to ctor.
14412         * hash-table.c (void dump_hash_table_loc_statistics): New function.
14413         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
14414         (hash_table::~hash_table): Register memory release operation.
14415         (hash_table::alloc_entries): Handle memory allocation operation.
14416         (hash_table::expand): Likewise.
14417         * inchash.c (iterative_hash_hashval_t): Move implementation to header
14418         file.
14419         (iterative_hash_host_wide_int): Likewise.
14420         * inchash.h (class hash): Likewise.
14421         * mem-stats-traits.h: New file.
14422         * mem-stats.h: New file.
14423         (mem_location): Add new class.
14424         (mem_usage): Likewise.
14425         (mem_alloc_description): Likewise.
14426         * sese.c: Add new header file inclusision.
14427         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
14428         and hash_set.
14429         * tree-sra.c: Add new header file inclusision.
14430         * vec.c (struct vec_descriptor): Remove.
14431         (hash_descriptor): Likewise.
14432         (struct vec_usage): Likewise.
14433         (struct ptr_hash_entry): Likewise.
14434         (hash_ptr): Likewise.
14435         (eq_ptr): Likewise.
14436         (vec_prefix::register_overhead): Use new memory descriptor API.
14437         (vec_prefix::release_overhead): Likewise.
14438         (add_statistics): Remove.
14439         (dump_vec_loc_statistics): Use new memory descriptor API.
14440         * vec.h (struct vec_prefix): Likewise.
14441         (va_heap::reserve): Likewise.
14442         (va_heap::release): Likewise.
14443         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
14445 2015-05-27  Richard Biener  <rguenther@suse.de>
14447         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
14448         earlier and remove ??? comment.
14449         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
14450         and got called from loop analysis bail out.  Always pass the SLP
14451         node to the vectorizable_* functions.
14452         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
14453         the premature SLP check here.
14454         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
14455         detected SLP stmts.
14456         (vect_detect_hybrid_slp_1): Likewise.
14458 2015-05-26  Jeff Law  <law@redhat.com>
14460         * combine.c (find_split_point): Verify that the shift count is a
14461         constant when choosing (plus (ashift ...)) as a split point.
14463         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
14464         No functional changes.
14466 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
14468         * ipa-polymorphic-call.c
14469         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
14470         case when call target is already known.
14472 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
14474         PR target/65979
14475         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
14476         take into account the case that operands[1] and operands[2]
14477         are the same register.
14479 2015-05-26  Michael Matz  <matz@suse.de>
14481         PR middle-end/66251
14483         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
14484         stores.
14485         (vect_create_vectorized_demotion_stmts): Always set
14486         STMT_VINFO_VEC_STMT, also with SLP.
14487         (vectorizable_store): Handle strided group stores.
14489 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14491         PR target/66049
14492         * config/aarch64/aarch64.md
14493         (*adds_shift_imm_<mode>):  New pattern.
14494         (*subs_shift_imm_<mode>):  Likewise.
14495         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
14496         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
14497         (*add_uxt<mode>_shift2): Likewise.
14498         (*add_uxtsi_shift2_uxtw): Likewise.
14499         (*sub_uxt<mode>_shift2): Likewise.
14500         (*sub_uxtsi_shift2_uxtw): Likewise.
14502 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
14504         * config/rs6000/constraints.md (Y, U): Use match_test.
14506 2015-05-26  Christian Bruel  <christian.bruel@st.com>
14508         PR target/52144
14509         * config/arm/arm.c (arm_option_check_internal)
14510         (arm_option_params_internal): Check opts->target_flags to set macros.
14511         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
14512         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
14513         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
14514         (builtin_define): Replaced with def_or_undef_macro.
14515         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
14516         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
14517         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
14518         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
14519         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
14520         (TARGET_ARM_FEATURE_LDREX_P)
14521         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
14522         * config/arm/arm-c.c (def_or_undef_macro): New function.
14523         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
14525 2015-05-26  Christian Bruel  <christian.bruel@st.com>
14527         * c-common.h (builtin_define_with_int_value)
14528         (builtin_define_type_sizeof): Declare.
14529         * c-cppbuiltin.c (builtin_define_with_int_value)
14530         (builtin_define_type_sizeof): Externalize.
14531         (builtin_define_std): Cleanup declaration.
14532         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
14533         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
14534         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
14535         (builtin_define, builtin_assert): New macros.
14537 2015-05-26  Richard Biener  <rguenther@suse.de>
14539         PR tree-optimization/66142
14540         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
14541         MEM_REFs for the same base address.
14543 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14545         PR ipa/66181
14546         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
14548 2015-05-26  Jason Merrill  <jason@redhat.com>
14550         * configure.ac: Set CXXFLAGS for ISL test.
14551         * configure: Regenerate.
14553         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
14554         strstr and basename.
14555         * configure: Regenerate.
14557 2015-05-26  Richard Biener  <rguenther@suse.de>
14559         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
14560         X % C -> X & (C - 1) for C being a power-of two to ...
14561         * match.pd: ... patterns.
14563 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
14565         * match.pd (swapped_tcc_comparison): New operator list.
14566         (-A CMP -B): New simplification.
14567         * fold-const.c (fold_comparison): Remove corresponding code.
14569 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
14571         * caller-save.c (init_caller_save): Base temporary register numbers
14572         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
14573         * cfgloopanal.c (init_set_costs): Likewise.
14574         * dojump.c (prefer_and_bit_test): Likewise.
14575         * expr.c (init_expr_target): Likewise.
14576         * ira.c (setup_prohibited_mode_move_regs): Likewise.
14577         * lower-subreg.c (init_lower_subreg): Likewise.
14578         * postreload.c (reload_cse_regs_1): Likewise.
14580 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
14582         * gensupport.h (compute_test_codes): Declare.
14583         * gensupport.c (compute_predicate_codes): Rename to...
14584         (compute_test_codes): ...this.  Generalize error message.
14585         (process_define_predicate): Update accordingly.
14586         * genpreds.c (compute_maybe_allows): Delete.
14587         (add_constraint): Use compute_test_codes to determine whether
14588         something can accept a SUBREG, REG or MEM.
14590 2015-05-26  Torvald Riegel  <triegel@redhat.com>
14592         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
14593         'memory model' to align with C++11; fix description of memory orders;
14594         fix a few typos.
14596 2015-05-26  Richard Biener  <rguenther@suse.de>
14598         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
14599         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
14600         detect whether we apply SLP.  Remove call to
14601         vect_update_slp_costs_according_to_vf.
14602         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
14603         vect_update_slp_costs_according_to_vf from here.  Dispatch
14604         to vect_slp_analyze_operations to analyze SLP stmts.
14605         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
14606         unused bb_vec_info parameter, adjust assert.
14607         (vect_slp_analyze_operations): Pass in the slp instance tree
14608         instead of bb_vec_info.
14609         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
14610         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
14612 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
14614         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
14615         Q_REGS.  Expand comment.
14616         (REG_CLASS_NAMES): Ditto.
14617         (REG_CLASS_CONTENTS): Ditto.
14619 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
14621         PR target/66274
14622         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
14623         when LEGACY_INT_REGNO_P is processed.
14625 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
14627         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
14629 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
14631         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
14632         register if not marked dead/unused, before return.
14634 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
14636         PR lto/66180
14637         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
14638         is set; check for assembler name at LTO time.
14639         (type_in_anonymous_namespace): Remove hacks, check that all
14640         anonymous types are called "<anon>"
14641         (odr_type_p): Simplify; add check for "<anon>"
14642         (odr_subtypes_equivalent): Add odr_type_p check.
14643         * tree.c (need_assembler_name_p): Even anonymous namespace needs
14644         assembler name.
14646 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
14648         * ipa-utils.h (method_class_type): Remove.
14649         * cgraphunit.c (walk_polymorphic_call_targets): Use
14650         TYPE_METHOD_BASETYPE.
14651         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
14652         on main variants only.
14653         (method_class_type): Remove.
14654         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
14655         (build_type_inheritance_graph): Likewise.
14656         * ipa-icf.c (sem_function::equals_wpa): Likewise.
14657         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
14658         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
14660 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
14662         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
14663         is_typedef_decl, typedef_variant_p): Constify.
14664         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
14665         is_typedef_decl, typedef_variant_p): Constify.
14667 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14669         * defaults.h (gen_tablejump): New function.
14670         (HAVE_tablejump): Add default value.
14671         * expr.c: Adjust.
14672         * stmt.c: Likewise.
14674 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14676         * defaults.h (gen_store_multiple): New function.
14677         (HAVE_store_multiple): Add default value.
14678         * expr.c (move_block_from_reg): Adjust.
14680 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14682         * defaults.h (gen_load_multiple): New function.
14683         (HAVE_load_multiple): Add default value.
14684         * expr.c (move_block_to_reg): Adjust.
14686 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14688         * defaults.h (gen_mem_signal_fence): New function.
14689         (HAVE_mem_signal_fence): Add default value.
14690         * optabs.c: Adjust.
14692 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14694         * defaults.h (gen_memory_barrier): New function.
14695         (HAVE_memory_barrier): Add default value.
14696         * optabs.c: Adjust.
14698 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14700         * defaults.h (gen_mem_thread_fence): New function.
14701         (HAVE_mem_thread_fence): Add default definition.
14702         * optabs.c: Adjust.
14704 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14706         * combine.c (find_split_point): Check the value of HAVE_lo_sum
14707         instead of if it is defined.
14708         (combine_simplify_rtx): Likewise.
14709         * lra-constraints.c (process_address_1): Likewise.
14710         * config/darwin.c: Adjust.
14711         * genconfig.c (main): Always define HAVE_lo_sum.
14713 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14715         * genmatch.c (parser::parse_operation): Reject expanding
14716         operator-list inside 'for'.
14718 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14720         * genmatch.c (parser::parse_for): Reject iterator if used as
14721         operator-list.
14723 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14725         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
14726         after end of id-list.
14728 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
14730         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
14731         we do not try to compute canonical type for type that does not need
14732         alias set.
14733         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
14734         FUNCITON_TYPE.
14735         * tree.h (type_with_alias_set_p): New.
14737 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
14739         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
14740         function attributes.
14741         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
14743 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
14745         * Makefile.in (check_gcc_parallelize): Delete.
14746         (lang_checks_parallelized): Update comment.
14748 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
14750         PR rtl-optimization/66237
14751         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
14752         location of an "as_a" cast.
14754 2015-05-22  Jeff Law  <law@redhat.com>
14756         * config/pa/pa.md (non-canonical shift-add insns): Remove.
14757         (peepholes with non-canonical RTL sources): Remove.
14758         (peepholes for indexed stores of FP regs in integer modes): Match and
14759         generate canonical RTL.
14761 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
14763         PR tree-optimization/63387
14764         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
14765         ((x ord x) & (y ord y) -> (x ord y),
14766         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
14767         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
14768         vectors like scalars.
14770 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
14772         * convert.c (convert_to_integer, convert_to_vector): Include the
14773         types in the error message.
14775 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
14777         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
14778         simplifications.
14780 2015-05-22  Jeff Law  <law@redhat.com>
14782         * config/pa/pa.md (integer_indexed_store splitters): Use
14783         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
14784         insns -- adjusting the constant 2nd operand accordingly.
14786         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
14787         (plus (ashift X log2) Y) if it is a split point.
14789         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
14790         out of hppa_legitimize_address to handle both forms of a multiply
14791         by 2, 4 or 8.
14792         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
14793         Always generate the ASHIFT variant as the result is not directly
14794         used in a MEM.  Update comments and refactor slightly to improve
14795         readability.
14797 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14799         PR target/65491
14800         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
14801         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
14802         (aarch64_composite_type_p): Return false if given type and mode are
14803         for a short vector.
14805 2015-05-22  Richard Biener  <rguenther@suse.de>
14807         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
14808         member.
14809         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
14810         patterns when determining whether SLP is pure.
14811         (vect_is_slp_reduction): Remove check for pattern stmts.
14812         (vect_is_simple_reduction_1): Remove dead code.
14813         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
14814         (vect_get_and_check_slp_defs): Pass in the stmt number.
14815         Allow the first def in a reduction to be not a pattern stmt when
14816         the rest of the stmts def are patterns.
14817         (vect_build_slp_tree_1): Allow tcc_expression codes like
14818         SAD_EXPR and DOT_PROD_EXPR.
14819         (vect_build_slp_tree): Adjust.
14820         (vect_analyze_slp): Refactor and move BB vect error message ...
14821         (vect_slp_analyze_bb_1): ... here.
14823 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
14825         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
14826         for CSWTCH temporary.
14828 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14830         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
14831         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
14832         unknown unspecs.
14834 2015-05-22  Richard Biener  <rguenther@suse.de>
14836         PR tree-optimization/66251
14837         * tree-vect-stmts.c (vectorizable_conversion): Properly
14838         set STMT_VINFO_VEC_STMT even for the SLP case.
14840 2015-05-22  Marek Polacek  <polacek@redhat.com>
14842         * doc/extend.texi: Use @pxref instead of @xref.
14844 2015-05-22  hiraditya  <hiraditya@msn.com>
14846         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
14847         redundant if.
14849 2015-05-22  Richard Biener  <rguenther@suse.de>
14851         PR tree-optimization/65701
14852         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
14853         Move peeling cost models into one place.  Peel for alignment
14854         for single loads only if an aligned load is cheaper than
14855         an unaligned load.
14857 2015-05-22  Marek Polacek  <polacek@redhat.com>
14859         PR c/47043
14860         * doc/extend.texi (Enumerator Attributes): New section.
14861         Document syntax of enumerator attributes.
14863 2015-05-22  Richard Biener  <rguenther@suse.de>
14865         * tree-vect-loop.c (get_reduction_op): New function.
14866         (vect_model_reduction_cost): Use it, add reduc_index parameter.
14867         Make ready for BB reductions.
14868         (vect_create_epilog_for_reduction): Use get_reduction_op.
14869         (vectorizable_reduction): Init reduc_index to a valid value.
14870         Adjust vect_model_reduction_cost call.
14871         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
14872         operand for reduction defaults.  Add SAD_EXPR support.
14873         Assert we have a neutral op for SLP reductions.
14874         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
14875         walking pattern stmt ops only recurse to SSA names.
14877 2015-05-22  Richard Biener  <rguenther@suse.de>
14879         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
14880         assert with guard, remove check on detected reduction.
14881         (vect_recog_sad_pattern): Likewise.
14882         (vect_recog_widen_sum_pattern): Likewise.
14884 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14886         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
14887         __always_inline__ attribute.
14888         (vaesdq_u8): Likewise.
14889         (vaesmcq_u8): Likewise.
14890         (vaesimcq_u8): Likewise.
14891         (vsha1cq_u32): Likewise.
14892         (vsha1mq_u32): Likewise.
14893         (vsha1pq_u32): Likewise.
14894         (vsha1h_u32): Likewise.
14895         (vsha1su0q_u32): Likewise.
14896         (vsha1su1q_u32): Likewise.
14897         (vsha256hq_u32): Likewise.
14898         (vsha256h2q_u32): Likewise.
14899         (vsha256su0q_u32): Likewise.
14900         (vsha256su1q_u32): Likewise.
14901         (vmull_p64): Likewise.
14902         (vmull_high_p64): Likewise.
14904 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14906         * final.c (final_scan_insn): Don't check HAVE_peephole with the
14907         preprocessor.
14908         * output.h: Likewise.
14909         * genconfig.c (main): Alwways define HAVE_peephole.
14910         * genpeep.c: Don't emit checks of HAVE_peephole.
14912 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14914         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
14915         check HAVE_conditional_move with the preprocessor.
14917 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14919         * genconfig.c (main): Always define HAVE_conditional_move.
14920         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
14921         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
14922         is defined.
14924 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14926         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
14927         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
14928         and FRAME_POINTER_REGNUM with the preprocessor.
14930 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14932         * defaults.h: Add default for STACK_PUSH_CODE.
14933         * expr.c: Don't redefine STACK_PUSH_CODE.
14934         * recog.c: Likewise.
14936 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14938         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
14939         sched-deps.c: Use if instead of preprocessor checks with
14940         STACK_GROWS_DOWNWARD.
14942 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
14944         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
14945         is defined.
14946         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
14947         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
14948         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
14949         * doc/tm.texi: Regenerate.
14951 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
14953         PR target/66232
14954         * config/i386/constraints.md (Bg): New constraint for GOT memory
14955         operand.
14956         * config/i386/i386.md (*call_got_x32): New pattern.
14957         (*call_value_got_x32): Likewise.
14958         * config/i386/predicates.md (GOT_memory_operand): New predicate.
14960 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
14962         PR tree-optimization/66233
14963         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
14964         Simplify.
14966 2015-05-21  Jeff Law  <law@redhat.com>
14968         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
14969         than MULT for shadd sequences.
14971 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
14973         * alias.c (alias_stats): New static var.
14974         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
14975         (dump_alias_stats_in_alias_c): New function.
14976         * alias.h (dump_alias_stats_in_alias_c): Declare.
14977         * tree-ssa-alias.c (dump_alias_stats): Call it.
14979 2015-05-08  Michael Matz  <matz@suse.de>
14981         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
14982         to strided_p.
14983         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
14984         (STMT_VINFO_STRIDED_P): ... this.
14985         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
14986         (vect_verify_datarefs_alignment): Likewise.
14987         (vect_enhance_data_refs_alignment): Likewise.
14988         (vect_analyze_data_ref_access): Likewise.
14989         (vect_analyze_data_refs): Accept strided stores.
14990         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
14991         (vect_model_load_cost): Adjust for macro rename.
14992         (vectorizable_mask_load_store): Likewise.
14993         (vectorizable_load): Likewise.
14994         (vectorizable_store): Open code strided stores.
14996 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14998         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
14999         Document sqrt_insn.
15001 2015-05-21  Richard Biener  <rguenther@suse.de>
15003         PR c++/66211
15004         * match.pd: Guard pattern optimzing (int)(float)int
15005         conversions to apply only on GIMPLE.
15007 2015-05-21  Jeff Law  <law@redhat.com>
15009         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
15010         multiply-accumulate/shift-add insn generation.
15012 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
15014         PR target/54236
15015         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
15016         operands[1] are the same.
15018 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
15020         PR middle-end/66221
15021         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
15022         build_distinct_type_copy to copy bounds.
15024 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
15026         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
15027         Change to unsigned int.
15029 2015-05-20  Jeff Law  <law@redhat.com>
15031         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
15032         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
15033         (pa_shadd_constant_p): Allow constants for shadd insns rather
15034         than valid scaling constants for memory addresses.
15035         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
15036         * config/pa/predicates.md (mem_shadd_operand): New predicate.
15037         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
15038         (shift-add insns using ASHIFT): New patterns.
15040 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
15042         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
15043         feasible.
15044         (fix_up_fall_thru_edges): Likewise.
15045         (fix_crossing_conditional_branches): Likewise. Promote jump targets
15046         from to rtx_insn to rtx_code_label where feasible.
15047         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
15048         gen_move_insn (returned type changed to rtx_insn).
15049         * builtins.c (expand_errno_check): Fix arguments of
15050         do_compare_rtx_and_jump (now expects rtx_code_label).
15051         (expand_builtin_acc_on_device): Likewise.
15052         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
15053         invert_jump (now exprects rtx_jump_insn).
15054         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
15055         (construct_init_block): Use rtx_code_label.
15056         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
15057         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
15058         calling redirect_jump.
15059         (patch_jump_insn): Likewise.
15060         (redirect_branch_edge): Likewise.
15061         (force_nonfallthru_and_redirect): Likewise.
15062         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
15063         when suitable.
15064         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
15065         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
15066         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
15067         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
15068         to store the value retured by gen_label_rtx.
15069         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
15070         rtx_jump_insn.
15071         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
15072         (split_branches): Fix calls of redirect_jump.
15073         * dojump.c (jumpifnot): Promote argument type from rtx to
15074         rtx_code_label.
15075         (jumpifnot_1): Likewise.
15076         (jumpif): Likewise.
15077         (jumpif_1): Likewise.
15078         (do_jump_1): Likewise.
15079         (do_jump): Likewise. Use rtx_code_label when feasible.
15080         (do_jump_by_parts_greater_rtx): Likewise.
15081         (do_jump_by_parts_zero_rtx): Likewise.
15082         (do_jump_by_parts_equality_rtx): Likewise.
15083         (do_compare_rtx_and_jump): Likewise.
15084         * dojump.h: Update function prototypes.
15085         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
15086         returns rtx_insn).
15087         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
15088         rtx_jump_insn.
15089         (emit_label_before): Likewise.
15090         (emit_jump_insn_after_noloc): Likewise.
15091         (emit_jump_insn_after_setloc): Likewise.
15092         (emit_jump_insn_after): Likewise
15093         (emit_jump_insn_before_setloc): Likewise.
15094         (emit_jump_insn_before): Likewise.
15095         (emit_label_before): Promote return type to rtx_code_label.
15096         (emit_label): Likewise.
15097         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
15098         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
15099         gen_move_insn.
15100         (emit_stack_restore): Likewise.
15101         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
15102         (do_cmp_and_jump): Likewise.
15103         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
15104         from rtx to rtx_code_label.
15105         (gen_move_insn_uncast): New function.
15106         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
15107         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
15108         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
15109         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
15110         invert_jump_1 and redirect_jump_1.
15111         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
15112         do_compare_rtx_and_jump.
15113         (expand_addsub_overflow): Likewise.
15114         (expand_neg_overflow): Likewise.
15115         (expand_mul_overflow): Likewise.
15116         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
15117         return value of gen_move_insn.
15118         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
15119         * loop-doloop.c (add_test): Use rtx_code_label.
15120         (doloop_modify): Likewise.
15121         (doloop_optimize): Likewise.
15122         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
15123         * lra-constraints.c (emit_spill_move): Remove cast of value returned
15124         by gen_move_insn.
15125         (inherit_reload_reg): Add cast when calling dump_insn_slim.
15126         (split_reg): Likewise.
15127         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
15128         gen_move_insn.
15129         * optabs.c (expand_binop_directly): Remove casts of values returned by
15130         maybe_gen_insn.
15131         (expand_unop_direct): Likewise.
15132         (expand_abs): Likewise.
15133         (maybe_emit_unop_insn): Likewise.
15134         (maybe_gen_insn): Promote return type to rtx_insn.
15135         * optabs.h: Update prototype of maybe_gen_insn.
15136         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
15137         redundant cast.
15138         * recog.c (struct peep2_insn_data): Promote type of insn field to
15139         rtx_insn.
15140         (peep2_reinit_state): Use NULL instead of NULL_RTX.
15141         (peep2_attempt): Remove casts of insn in peep2_insn_data.
15142         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
15143         * recog.h (struct insn_gen_fn): Promote return types of function
15144         pointers and operator ().from rtx to rtx_insn.
15145         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
15146         (fill_eager_delay_slots): Likewise.
15147         (relax_delay_slots): Likewise.
15148         (make_return_insns): Likewise.
15149         (dbr_schedule): Likewise.
15150         (optimize_skips): Likewise.
15151         (reorg_redirect_jump): Likewise.
15152         (fill_slots_from_thread): Likewise.
15153         * reorg.h: Update prototypes.
15154         * resource.c (find_dead_or_set_registers): Use dyn_cast to
15155         rtx_jump_insn instead of check.  Use it's jump_target method.
15156         * rtl.h (rtx_jump_insn::jump_label): Define new method.
15157         (rtx_jump_insn::jump_target): Define new method.
15158         (rtx_jump_insn::set_jump_target): Define new method.
15159         * rtlanal.c (tablejump_p): Promote type of one local variable.
15160         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
15161         (sched_analyze_insn): Likewise.
15162         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
15163         (print_insn): Likewise.
15164         * stmt.c (label_rtx): Promote return type to rtx_insn.
15165         (force_label_rtx): Likewise.
15166         (jump_target_rtx): Define new function.
15167         (expand_label): Use it, get rid of one cast.
15168         (expand_naked_return): Promote rtx to rtx_code_label.
15169         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
15170         (expand_case): Use rtx_code_label instread of rtx where feasible.
15171         (expand_sjlj_dispatch_table): Likewise.
15172         (emit_case_nodes): Likewise.
15173         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
15174         * store-motion.c (insert_store): Make use of new return type of
15175         gen_move_insn and remove a cast.
15176         (replace_store_insn): Likewise.
15178 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
15180         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
15181         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
15183 2015-05-20  Jeff Law  <law@redhat.com>
15185         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
15186         dispose of the jump thread path when the jump threading
15187         opportunity is cancelled.
15189 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15191         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
15192         when printing the caret character.
15194 2015-05-20  Marek Polacek  <polacek@redhat.com>
15196         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
15198 2015-05-20  Marek Polacek  <polacek@redhat.com>
15200         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
15201         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
15202         * gimple-fold.c (canonicalize_bool): Likewise.
15203         (same_bool_result_p): Likewise.
15204         * tree-if-conv.c (parse_predicate): Likewise.
15206 2015-05-20  Marek Polacek  <polacek@redhat.com>
15208         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
15209         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
15211 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15213         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
15214         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
15215         values.
15217 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
15219         * config/mips/mips.h (micromips_globals): Declare.
15221 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
15223         * timevar.def (TV_INITIALIZE_RTL): New.
15224         * toplev.c (initialize_rtl): Use an auto_timevar to account this
15225         function's time to TV_INITIALIZE_RTL.
15227 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
15229         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
15230         gimple_build_nop calls.
15231         (chkp_find_bounds_for_elem): Likewise.
15232         (chkp_get_zero_bounds): Likewise.
15233         (chkp_get_none_bounds): Likewise.
15234         (chkp_get_bounds_by_definition): Likewise.
15235         (chkp_generate_extern_var_bounds): Likewise.
15236         (chkp_get_bounds_for_decl_addr): Likewise.
15237         (chkp_get_bounds_for_string_cst): Likewise.
15239 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
15241         PR tree-optimization/65447
15242         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
15243         (dump_use, dump_uses): Support to dump sub use.
15244         (record_use): New parameters to support sub use.  Remove call to
15245         dump_use.
15246         (record_sub_use, record_group_use): New functions.
15247         (compute_max_addr_offset, split_all_small_groups): New functions.
15248         (group_address_uses, rewrite_use_address): New functions.
15249         (strip_offset): New declaration.
15250         (find_interesting_uses_address): Call record_group_use.
15251         (add_candidate): New assertion.
15252         (infinite_cost_p): Move definition forward.
15253         (add_costs): Check INFTY cost and return immediately.
15254         (get_computation_cost_at): Clear setup cost and dependent bitmap
15255         for sub uses.
15256         (determine_use_iv_cost_address): Compute cost for sub uses.
15257         (rewrite_use_address_1): Rename from old rewrite_use_address.
15258         (free_loop_data): Free sub uses.
15259         (tree_ssa_iv_optimize_loop): Call group_address_uses.
15261 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
15262             Jim Wilson  <jim.wilson@linaro.org>
15264         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
15265         new  fields loadv and storev.
15266         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
15267         Initialize loadv and storev.
15268         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
15269         (cortexa53_extra_costs): Likewise.
15270         (cortexa57_extra_costs): Likewise.
15271         (xgene1_extra_costs): Likewise.
15272         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
15273         rtx_costs.
15275 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
15277         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
15278          storev.
15279         (cortexa8_extra_costs): Likewise.
15280         (cortexa5_extra_costs): Likewise.
15281         (cortexa7_extra_costs): Likewise.
15282         (cortexa12_extra_costs): Likewise.
15283         (cortexa15_extra_costs): Likewise.
15284         (v7m_extra_costs): Likewise.
15286 2015-05-20  Jeff Law  <law@redhat.com>
15288         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
15289         instead of open-coded version.  Also delete the jump thread created
15290         within this function.
15292 2015-05-20  Alan Modra  <amodra@gmail.com>
15294         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
15295         stack adjusting insn.  Formatting.
15296         (rs6000_emit_prologue): Track stack adjusting insn, and use of
15297         r12.  If possible, emit first -fsplit-stack arg pointer insn
15298         before stack adjust.  Don't use r12 to save cr if split-stack.
15300 2015-05-20  Alan Modra  <amodra@gmail.com>
15302         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
15303         Define.
15304         (rs6000_supports_split_stack): New function.
15305         * gcc/config/rs6000/rs6000.c (machine_function): Add
15306         split_stack_arg_pointer.
15307         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
15308         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
15309         rather than virtual_incoming_args_rtx.
15310         (rs6000_va_start): Likewise.
15311         (split_stack_arg_pointer_used_p): New function.
15312         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
15313         (morestack_ref): New var.
15314         (gen_add3_const, rs6000_expand_split_stack_prologue,
15315         rs6000_internal_arg_pointer, rs6000_live_on_entry,
15316         rs6000_split_stack_space_check): New functions.
15317         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
15318         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
15319         (UNSPECV_SPLIT_STACK_RETURN): Define.
15320         (split_stack_prologue, load_split_stack_limit,
15321         load_split_stack_limit_di, load_split_stack_limit_si,
15322         split_stack_return, split_stack_space_check): New expands and insns.
15323         * gcc/config/rs6000/rs6000-protos.h
15324         (rs6000_expand_split_stack_prologue): Declare.
15325         (rs6000_split_stack_space_check): Declare.
15327 2015-05-20  Alan Modra  <amodra@gmail.com>
15329         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
15330         (direct_return): Test vrsave_size rather than vrsave_mask.
15331         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
15332         (rs6000_emit_epilogue): Likewise.
15334 2015-05-20  Alan Modra  <amodra@gmail.com>
15336         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
15337         when not saving registers.
15338         (debug_stack_info): Adjust to omit printing unused offsets,
15339         as before.
15340         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
15341         expression.
15343 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
15345         PR c++/65835
15346         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
15347         value_type to const char *.
15349 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
15351         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
15352         to build a biarch toolchain again.
15354 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
15356         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
15357         or implicit declarations.
15358         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
15359         into it.
15360         (get_odr_type): Check type has linkage before adding bases.
15361         (register_odr_type): Check that type has linkage before adding it.
15362         (type_known_to_have_no_deriavations_p): Rename to ..
15363         (type_known_to_have_no_derivations_p): This one.
15364         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
15365         (type_known_to_have_no_derivations_p): This one.
15366         * ipa-polymorphic-call.c
15367         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
15368         type has linkage.
15370 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15372         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
15373         (layout_type): Use RECORD_OR_UNION_TYPE_P.
15375 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15377         * config/s390/s390.c (s390_vector_bool_type_p): New function.
15378         (s390_invalid_binary_op): New function.
15379         (TARGET_INVALID_BINARY_OP): Define macro.
15381 2015-05-19  David Sherwood  <david.sherwood@arm.com>
15383         * loop-invariant.c (create_new_invariant): Don't calculate address cost
15384         if mode is not a scalar integer.
15385         (get_inv_cost): Increase computational cost for unused invariants.
15387 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15389         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
15390         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
15391         * config/s390/s390-builtin-types.def: New file.
15392         * config/s390/s390-builtins.def: New file.
15393         * config/s390/s390-builtins.h: New file.
15394         * config/s390/s390-c.c: New file.
15395         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
15396         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
15397         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
15398         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
15399         prototypes.
15400         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
15401         Include.
15402         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
15403         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
15404         variable definitions.
15405         (s390_const_operand_ok): New function.
15406         (s390_expand_builtin): Rewrite.
15407         (s390_init_builtins): New function.
15408         (s390_handle_vectorbool_attribute): New function.
15409         (s390_attribute_table): Add s390_vector_bool attribute.
15410         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
15411         (s390_branch_condition_mask): Generate masks for new modes.
15412         (s390_expand_vec_compare_cc): New function.
15413         (s390_mangle_type): Add mangling for vector bool types.
15414         (enum s390_builtin): Remove.
15415         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
15416         efpc builtins.
15417         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
15418         s390_cpu_cpp_builtins.
15419         (REGISTER_TARGET_PRAGMAS): New macro.
15420         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
15421         (insn_cmp mode attribute): Add new CC modes.
15422         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
15423         (lcbb): New pattern definition.
15424         * config/s390/s390intrin.h: Include vecintrin.h.
15425         * config/s390/t-s390: New file.
15426         * config/s390/vecintrin.h: New file.
15427         * config/s390/vector.md: Include vx-builtins.md.
15428         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
15429         support.
15431 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15433         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
15434         CCVFHE.
15435         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
15436         (s390_select_ccmode): Likewise.
15437         (s390_canonicalize_comparison): Swap operands if necessary.
15438         (s390_expand_vec_compare_scalar): Expand DFmode compare using
15439         single element vector instructions.
15440         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
15441         (s390_branch_condition_mask): Generate CC masks for the new modes.
15442         * config/s390/s390.md (v0, vf, vd): New mode attributes.
15443         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
15444         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
15445         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
15446         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
15447         (*extend<DSF:mode><BFP:mode>2): New insn definition.
15448         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
15449         (extend<DSF:mode><BFP:mode>2): Turn into expander.
15450         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
15451         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
15452         (sqrt<mode>2): Add vector instruction.
15454 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15456         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
15457         constraints.
15458         * config/s390/predicates.md (const0_operand, constm1_operand)
15459         (constable_operand): Accept vector operands.
15460         * config/s390/s390-modes.def: Add supported vector modes.
15461         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
15462         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
15463         (s390_bytemask_vector_p, s390_expand_vec_strlen)
15464         (s390_expand_vec_compare, s390_expand_vcond)
15465         (s390_expand_vec_init): Add prototypes.
15466         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
15467         (s390_vector_mode_supported_p): New function.
15468         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
15469         (s390_contiguous_bitmask_vector_p): New function.
15470         (s390_bytemask_vector_p): New function.
15471         (s390_split_ok_p): Vector regs don't work either.
15472         (regclass_map): Add VEC_REGS.
15473         (s390_legitimate_constant_p): Handle vector constants.
15474         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
15475         (legitimate_reload_vector_constant_p): New function.
15476         (s390_preferred_reload_class): Handle CONST_VECTOR.
15477         (s390_reload_symref_address):  Likewise.
15478         (s390_secondary_reload): Vector memory instructions only support
15479         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
15480         (s390_emit_ccraw_jump): New function.
15481         (s390_expand_vec_strlen): New function.
15482         (s390_expand_vec_compare): New function.
15483         (s390_expand_vcond): New function.
15484         (s390_expand_vec_init): New function.
15485         (s390_dwarf_frame_reg_mode): New function.
15486         (print_operand): Handle addresses with 'O' and 'R' constraints.
15487         (NR_C_MODES, constant_modes): Add vector modes.
15488         (s390_output_pool_entry): Handle vector constants.
15489         (s390_hard_regno_mode_ok): Handle vector registers.
15490         (s390_class_max_nregs): Likewise.
15491         (s390_cannot_change_mode_class): New function.
15492         (s390_invalid_arg_for_unprototyped_fn): New function.
15493         (s390_function_arg_vector): New function.
15494         (s390_function_arg_float): Remove size variable.
15495         (s390_pass_by_reference): Handle vector arguments.
15496         (s390_function_arg_advance): Likewise.
15497         (s390_function_arg): Likewise.
15498         (s390_return_in_memory): Vector values are returned in a VR if
15499         possible.
15500         (s390_function_and_libcall_value): Handle vector arguments.
15501         (s390_gimplify_va_arg): Likewise.
15502         (s390_call_saved_register_used): Consider the arguments named.
15503         (s390_conditional_register_usage): Disable v16-v31 for non-vec
15504         targets.
15505         (s390_preferred_simd_mode): New function.
15506         (s390_support_vector_misalignment): New function.
15507         (s390_vector_alignment): New function.
15508         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
15509         (TARGET_VECTOR_MODE_SUPPORTED_P)
15510         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
15511         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
15512         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
15513         (TARGET_VECTOR_ALIGNMENT): Define target macro.
15514         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
15515         (FIRST_PSEUDO_REGISTER): Increase value.
15516         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
15517         (VECTOR_REG_P): Define macros.
15518         (FIXED_REGISTERS, CALL_USED_REGISTERS)
15519         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
15520         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
15521         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
15522         Add vector registers.
15523         (CANNOT_CHANGE_MODE_CLASS): Call C function.
15524         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
15525         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
15526         memory.
15527         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
15528         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
15529         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
15530         (VR*_REGNUM): New constants.
15531         (ALL): New mode iterator.
15532         (INTALL): Remove mode iterator.
15533         Include vector.md.
15534         (movti): Implement TImode moves for VRs.
15535         Disable TImode splitter for VR targets.
15536         Implement splitting TImode GPR<->VR moves.
15537         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
15538         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
15539         reload<mode>_la_in, reload<mode>_la_out.
15540         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
15541         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
15542         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
15543         (mov<mode> SF SD): Prefer lder, lde for loading.
15544         Add lrl and strl instructions.
15545         Add vector instructions.
15546         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
15547         Call s390_expand_vec_strlen on z13.
15548         (*cc_to_int): Change predicate to nonimmediate_operand.
15549         (addti3): Rename to *addti3.  New expander.
15550         (subti3): Rename to *subti3.  New expander.
15551         * config/s390/vector.md: New file.
15553 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15555         * common/config/s390/s390-common.c (processor_flags_table): Add
15556         z13.
15557         * config.gcc: Add z13.
15558         * config/s390/s390-opts.h (enum processor_type): Add
15559         PROCESSOR_2964_Z13.
15560         * config/s390/s390.c (s390_adjust_priority): Check for
15561         PROCESSOR_2964_Z13.
15562         (s390_reorg): Likewise.
15563         (s390_sched_reorder): Likewise.
15564         (s390_sched_variable_issue): Likewise.
15565         (s390_loop_unroll_adjust): Likewise.
15566         (s390_option_override): Likewise. Default to -mvx when available.
15567         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
15568         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
15569         (TARGET_VX_ABI): Define macros.
15570         macros.
15571         (TARGET_DEFAULT): Add MASK_OPT_VX.
15572         * config/s390/s390.md ("cpu" attribute): Add z13.
15573         ("cpu_facility" attribute): Add vec.
15574         * config/s390/s390.opt (processor_type): Add z13.
15575         (mvx): New options.
15576         * doc/invoke.texi: Add z13 option for -march.
15578 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15580         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
15581         mode check to make sure that only scalar integer values are
15582         accepted.
15584 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
15586         * tree.c (verify_type_variant): Fix #undef.
15587         (gimple_canonical_types_compatible_p): Move here from lto.c
15588         (verify_type): Verify TYPE_CANONICAL compatibility.
15589         * tree.h (gimple_canonical_types_compatible_p): Declare.
15591 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15593         PR middle-end/66199
15594         * tree.h (OMP_TEAMS_COMBINED): Define.
15595         * gimplify.c (enum gimplify_omp_var_data): Add
15596         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
15597         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
15598         (omp_notice_variable): Accept both ORT_TEAMS
15599         and ORT_COMBINED_TEAMS.  Don't recurse if
15600         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
15601         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
15602         GOVD_FIRSTPRIVATE.
15603         (omp_no_lastprivate): New function.
15604         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
15605         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
15606         notice_outer and set appropriate bits, otherwise make
15607         sure default(none) combined constructs won't complain.
15608         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
15609         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
15610         omp_no_lastprivate either remove the clause or turn it
15611         into OMP_CLAUSE_PRIVATE.
15612         (gimplify_omp_for): Fix up handling of implicit
15613         lastprivate or linear iterators.
15614         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
15615         ORT_COMBINED_TEAMS.
15616         * omp-low.c (lower_omp_for_lastprivate): For combined
15617         for simd use fd.loop.n2 from the for rather than simd.
15619 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15621         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
15622         instead of gen_rtx_raw_REG.
15623         (cris_expand_epilogue): Likewise.
15624         * config/microblaze/microblaze.c (microblaze_classify_address):
15625         Likewise.
15626         * config/sparc/sparc.md: Likewise.
15628 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
15630         * config/alpha/alpha.c (alpha_legitimize_reload_address)
15631         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
15632         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
15633         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
15634         Use CASE_CONST_SCALAR_INT.
15635         (print_operand) <case 'M'>: Use mode_width_operand to check the
15636         value of the constant.
15637         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
15638         * config/alpha/predicates.md (input_operand): Use general_operand
15639         instead of match_code as operand check.
15640         (symbolic_operand): Use match_code with subexpression digits.
15641         * config/alpha/constraints.md (Q): Ditto.
15643 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15645         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
15647 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15649         * config/s390/s390.c (s390_secondary_reload): Fix check for
15650         load/store relative.
15652 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
15654         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
15655         alternative_mask to uint64_t.
15657 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
15659         PR tree-optimization/66187
15660         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
15661         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
15662         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
15664 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
15666         * diagnostic.c (diagnostic_report_current_module): Strengthen
15667         local "new_map" from const line_map * to
15668         const line_map_ordinary *.
15669         * genmatch.c (error_cb): Likewise for local "map".
15670         (output_line_directive): Likewise for local "map".
15671         * input.c (expand_location_1): Likewise for local "map".
15672         Pass NULL rather than &map to
15673         linemap_unwind_to_first_non_reserved_loc, since the value is never
15674         read from there, and the value written back not read from here.
15675         (is_location_from_builtin_token): Strengthen local "map" from
15676         const line_map * to const line_map_ordinary *.
15677         (dump_location_info): Strengthen locals "map" from
15678         line_map *, one to const line_map_ordinary *, the other
15679         to const line_map_macro *.
15680         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
15681         const line_map * to const line_map_macro *.
15682         (maybe_unwind_expanded_macro_loc): Add a call to
15683         linemap_check_macro when writing to the "map" field of the
15684         loc_map_pair.
15685         Introduce local const line_map_ordinary * "ord_map", using it in
15686         place of "map" in the part of the function where we know we have
15687         an ordinary map.  Strengthen local "m" from const line_map * to
15688         const line_map_ordinary *.
15690 2015-05-19  Nick Clifton  <nickc@redhat.com>
15692         PR target/66156
15693         * config/msp430/msp430.md (zero_extendhisi2): Add support for
15694         separate source and destination registers.
15696 2015-05-19  Richard Biener  <rguenther@suse.de>
15698         PR tree-optimization/66165
15699         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
15700         for no load permutation.
15702         PR tree-optimization/66185
15703         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
15704         when building the SLP node from scalars.
15706 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
15707             Tristan Gingold  <gingold@adacore.com>
15709         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
15710         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
15711         (expand_stack_restore): Call record_new_stack_level.
15712         (expand_stack_save): Do not call do_pending_stack_adjust.
15713         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
15714         * calls.c (expand_call): Call record_new_stack_level for alloca.
15715         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
15716         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
15717         (update_sjlj_context): New global function.
15718         * except.h (update_sjlj_context): Declare.
15719         * explow.c (record_new_stack_level): New global function.
15720         (allocate_dynamic_stack_space): Call record_new_stack_level.
15721         * explow.h (record_new_stack_level): Declare.
15722         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
15723         * cfgrtl.c (duplicate_insn_chain): Likewise.
15725 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15727         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
15728         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
15729         STACK_GROWS_DOWNWARD as normal if.
15730         (expand_call): Likewise.
15732 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
15734         PR target/54236
15735         * config/sh/sh.md (*round_int_even): New insn_and_split and
15736         accompanying new unnamed split.
15738 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15740         * bitmap.c (bitmap_set_range): Handle count==1 specially.
15741         (bitmap_clear_range): Likewise.
15742         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
15743         bitmap_set_range unconditionally.
15744         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15745         * df-scan.c (df_mark_reg): Likewise.
15746         * haifa-sched.c (setup_ref_regs): Likewise.
15747         * sched-rgn.c (update_live_1): Likewise.
15749 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15751         * regs.h (END_HARD_REGNO): Delete.
15752         (END_REGNO): Move to...
15753         * rtl.h: ...here.
15754         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
15755         * caller-save.c (mark_set_regs): Likewise.
15756         * combine.c (move_deaths, distribute_notes): Likewise.
15757         * cse.c (invalidate, invalidate_for_call): Likewise.
15758         * df-scan.c (df_ref_record): Likewise.
15759         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
15760         (record_last_reg_set_info): Likewise.
15761         * reg-stack.c (convert_regs_exit): Likewise.
15762         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
15763         * resource.c (update_live_status): Likewise.
15764         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
15766 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15768         * rtl.h (reg_info): Add an nregs field.
15769         (REG_NREGS): Use it.
15770         (SET_REGNO_RAW): Delete.
15771         (set_regno_raw): New function.
15772         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
15773         (END_REGNO): Redefine in terms of REG_NREGS.
15774         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
15775         SET_REGNO_RAW.
15776         * emit-rtl.c (set_mode_and_regno): Likewise.
15777         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
15778         instead of SET_REGNO_RAW.
15780 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15782         * rtl.h (PUT_MODE_RAW): New macro.
15783         (PUT_REG_NOTE_KIND): Use it.
15784         (set_mode_and_regno): Declare.
15785         (gen_raw_REG): Change regno to "unsigned int".
15786         (gen_rtx_REG): Change "unsigned" to "unsigned int".
15787         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
15788         use set_mode_and_regno to change the mode of registers.
15789         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
15790         * emit-rtl.c (set_mode_and_regno): New function.
15791         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
15792         * caller-save.c (reg_save_code): Use set_mode_and_regno.
15793         * expr.c (init_expr_target): Likewise.
15794         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15795         * postreload.c (reload_cse_simplify_operands): Likewise.
15797 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15799         * caller-save.c (init_caller_save): Use word_mode and
15800         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
15801         * expr.c (init_expr_target): Likewise.
15802         * ira.c (setup_prohibited_mode_move_regs): Likewise.
15803         * postreload.c (reload_cse_regs_1): Likewise.
15805 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15807         * rtl.def (REG): Change format to "r".
15808         * rtl.h (rtunion): Remove rt_reg.
15809         (reg_info): New structure.
15810         (rtx_def): Add reg field to main union.
15811         (X0REGATTR): Delete.
15812         (REG_CHECK): New macro.
15813         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
15814         * rtl.c (rtx_format): Document "r".
15815         (rtx_code_size): Handle REG specially.
15816         * gengenrtl.c (special_format): Return true for formats
15817         that include 'r'.
15818         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
15819         Deal with REG_ATTRS after the field loop.
15820         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
15821         * expmed.c (init_expmed): Call gen_raw_REG instead of
15822         gen_rtx_raw_REG.
15823         * expr.c (init_expr_target): Likewise.
15824         * regcprop.c (maybe_mode_change): Likewise.
15825         * varasm.c (make_decl_rtl): Likewise.
15826         * final.c (leaf_renumber_regs_insn): Return early after
15827         handling REGs.
15828         * genemit.c (gen_exp): Handle 'r' fields.
15829         * genpeep.c (match_rtx): Likewise.
15830         * gensupport.c (subst_pattern_match): Likewise.
15831         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
15832         (alter_constraints, subst_dup): Likewise.
15833         * read-rtl.c (read_rtx_code): Likewise.
15834         * print-rtl.c (print_rtx): Likewise.
15835         * genrecog.c (find_operand, find_matching_operand): Likewise.
15836         (validate_pattern, match_pattern_2): Likewise.
15837         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
15838         (rtx_test::regno_field): New function.
15839         (operator ==, safe_to_hoist_p, transition_parameter_type)
15840         (parameter_type_string, print_parameter_value)
15841         (print_nonbool_test, print_test): Handle new enum values.
15842         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
15843         * lra-constraints.c (operands_match_p): Likewise.
15845 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15847         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
15848         Change type of new_regno to unsigned int.
15849         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
15850         new_regno to unsigned int.
15851         (df_ref_change_reg_with_loc): Remove old_regno parameter.
15852         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
15853         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
15854         (SET_REGNO_RAW): Add space after ",".
15856 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15858         * rtl.h (REG_NREGS): New macro
15859         * alias.c (record_set): Use it.
15860         * cfgcleanup.c (mark_effect): Likewise.
15861         * combine.c (likely_spilled_retval_1): Likewise.
15862         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
15863         (move_deaths, distribute_notes): Likewise.
15864         * cselib.c (cselib_record_set): Likewise.
15865         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
15866         * df-scan.c (df_mark_reg): Likewise.
15867         * dse.c (look_for_hardregs): Likewise.
15868         * dwarf2out.c (reg_loc_descriptor): Likewise.
15869         (multiple_reg_loc_descriptor): Likewise.
15870         * expr.c (write_complex_part, read_complex_part): Likewise.
15871         (emit_move_complex): Likewise.
15872         * haifa-sched.c (setup_ref_regs): Likewise.
15873         * ira-lives.c (mark_hard_reg_live): Likewise.
15874         * lra.c (lra_set_insn_recog_data): Likewise.
15875         * mode-switching.c (create_pre_exit): Likewise.
15876         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
15877         (reload_combine_recognize_pattern): Likewise.
15878         (reload_combine_note_use, move2add_record_mode): Likewise.
15879         (reload_cse_move2add): Likewise.
15880         * reg-stack.c (subst_stack_regs_pat): Likewise.
15881         * regcprop.c (kill_value, copy_value): Likewise.
15882         (copyprop_hardreg_forward_1): Likewise.
15883         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
15884         (build_def_use): Likewise.
15885         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
15886         (deps_analyze_insn): Likewise.
15887         * sched-rgn.c (check_live_1, update_live_1): Likewise.
15888         * sel-sched.c (count_occurrences_equiv): Likewise.
15889         * valtrack.c (dead_debug_insert_temp): Likewise.
15891 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
15893         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
15894         * dse.c (note_add_store): Likewise.
15895         * ira-lives.c (mark_hard_reg_dead): Likewise.
15896         * loop-invariant.c (mark_reg_store): Likewise.
15897         (mark_reg_death): Likewise.
15898         * postreload.c (reload_combine): Likewise.
15899         (reload_combine_note_store): Likewise.
15900         (reload_combine_note_use): Likewise.
15901         * recog.c (peep2_reg_dead_p): Likewise.
15903 2015-05-19  Alan Modra  <amodra@gmail.com>
15905         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
15906         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
15907         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
15908         unused predicates.
15909         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
15910         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
15911         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
15912         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
15914 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
15916         * config/mips/mips.md (JOIN_MODE): New mode iterator.
15917         (join2_load_Store<JOIN_MODE:mode>): New pattern.
15918         (join2_loadhi): Likewise.
15919         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
15920         load-load and store-stores.
15921         * config/mips/mips.opt (mload-store-pairs): New option.
15922         (TARGET_LOAD_STORE_PAIRS): New macro.
15923         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
15924         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
15925         * config/mips/mips.c (mips_load_store_bonding_p): New function.
15927 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
15929         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
15930         explicit swaps.
15931         * dojump.c (do_compare_rtx_and_jump): Likewise.
15932         * expmed.c (emit_store_flag_1): Likewise.
15933         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
15934         * final.c (sprint_ul): Use std::reverse for reversing a string.
15935         * fold-const.c (extract_muldiv_1): Use std::swap.
15936         * genmodes.c (emit_mode_int_n): Likewise.
15937         * ifcvt.c (dead_or_predicable): Likewise.
15938         * ira-build.c (ira_merge_live_ranges): Likewise.
15939         (swap_allocno_copy_ends_if_necessary): Likewise.
15940         * ira.c (ira_setup_alts): Likewise.
15941         * loop-iv.c (iv_analyze_expr): Likewise.
15942         (implies_p): Likewise.
15943         (canon_condition): Likewise.
15944         * lra-constraints.c (swap_operands): Likewise.
15945         * lra-lives.c (lra_merge_live_ranges): Likewise.
15946         * omega.c (swap): Remove.
15947         (bswap): Remove.
15948         (omega_unprotect_1): Use std::swap.
15949         (omega_solve_geq): Likewise.
15950         * optabs.c (expand_binop_directly): Likewise.
15951         (expand_binop): Likewise.
15952         (emit_conditional_move): Likewise.
15953         (emit_conditional_add): Likewise.
15954         * postreload.c (reload_cse_simplify_operands): Likewise.
15955         * reg-stack.c (emit_swap_insn): Likewise.
15956         (swap_to_top): Likewise.
15957         (compare_for_stack_reg): Likewise.
15958         (subst_asm_stack_regs): Likewise.
15959         * reload.c (find_reloads): Likewise.
15960         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
15961         * sel-sched.c (invoke_reorder_hooks): Likewise.
15962         (create_block_for_bookkeeping): Likewise.
15963         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
15964         (lambda_matrix_right_hermite): Use std::swap.
15965         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
15966         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
15967         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
15968         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
15969         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
15970         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
15971         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
15972         * tree-vrp.c (compare_ranges): Likewise.
15973         * var-tracking.c (add_with_sets): Likewise.
15974         (vt_find_locations): Likewise.
15976 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
15978         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
15979         pie executables.
15980         (FBSD_ENDFILE_SPEC): Likewise.
15981         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
15982         config/freebsd-spec.h.
15983         (ENDFILE_SPEC): Likewise.
15985 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
15986             Richard Henderson  <rth@redhat.com>
15988         PR target/57032
15989         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
15990         Check for a memory location that is not a reference (using an AND)
15991         to an unaligned location here.
15992         * config/alpha/predicates.md (normal_memory_operand): Remove.
15994 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
15996         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
15997         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
15999 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
16001         * config/mips/mips.c (micromips_globals): New variable.
16002         (mips_set_compression_mode): Save and reinitialize target-dependent
16003         state for microMIPS.
16005 2015-05-18  Martin Liska  <mliska@suse.cz>
16007         * dbgcnt.def: Add new counter.
16008         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
16010 2015-05-18  Martin Liska  <mliska@suse.cz>
16012         * dbgcnt.def: Sort counters.
16013         * opts.c (common_handle_option): Do not compile if
16014         -fdbg-cnt-list is enabled.
16016 2015-05-18  Tom de Vries  <tom@codesourcery.com>
16018         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
16019         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
16020         address operator to va_list operand.
16021         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
16022         unconditionally.
16023         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
16024         operand.
16025         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
16026         * config/s390/s390.c (s390_gimplify_va_arg): Same.
16027         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
16029 2015-05-18  Tom de Vries  <tom@codesourcery.com>
16031         * tree-ssa-tail-merge.c: Fix whitespace.
16033 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
16035         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
16036         cortex-a17, and cortex-a17.cortex-a7.
16038 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
16040         PR target/54236
16041         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
16043 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
16045         PR target/66174
16046         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
16047         QImode inner modes for TARGET_AVX512BW.  Force mask operand
16048         to a register for AVX512F modes.
16050 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16052         * toplev.c (emit_debug_global_declarations): Do not output debug info
16053         when doing slim LTO objects.
16055 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16057         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
16058         odr_types_equivalent_p): Declare.
16059         (odr_type_p): Use gcc_checking_assert.
16060         (type_in_anonymous_namespace_p) Declare.
16061         (type_with_linkage_p): Declare.
16062         * common.opt (Wlto-type-mismatch): New warning.
16063         * ipa-devirt.c (compound_type_base): New function.
16064         (odr_or_derived_type_p): New function.
16065         (odr_types_equivalent_p): New function.
16066         (add_type_duplicate): Simplify.
16067         (type_with_linkage_p): Add hack to prevent false positives on C types
16068         (type_in_anonymous_namespace_p): Likewise.
16069         * tree.c (need_assembler_name_p): Use type_with_linkage.
16070         * tree.h (type_in_anonymous_namespace_p): Remove.
16071         * doc/invoke.texi (-Wlto-type-mismatch): Document
16073 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
16075         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
16076         (verify_type): Verify STRING_FLAG.
16078 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16080         PR fortran/44054
16081         * tree-pretty-print.c (percent_K_format): Replace locus pointer
16082         with accessor function.
16083         * tree-diagnostic.c (diagnostic_report_current_function): Use
16084         diagnostic_location function.
16085         (maybe_unwind_expanded_macro_loc): Likewise.
16086         (virt_loc_aware_diagnostic_finalizer): Likewise.
16087         (default_tree_printer): Replace locus pointer with accessor function.
16088         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
16089         (diagnostic_set_info_translated): Initialize second location.
16090         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
16091         (diagnostic_show_locus): Handle two locations. Call
16092         diagnostic_print_caret_line.
16093         (diagnostic_print_caret_line): New.
16094         (default_diagnostic_starter): Use diagnostic_location function.
16095         (diagnostic_report_diagnostic): Use diagnostic_location function.
16096         (verbatim): Do not set text.locus.
16097         * diagnostic.h (struct diagnostic_info): Remove location field.
16098         (struct diagnostic_context): Make caret_chars an array of two.
16099         (diagnostic_location): New inline.
16100         (diagnostic_expand_location): Handle two locations.
16101         (diagnostic_same_line): New inline.
16102         (diagnostic_print_caret_line): Declare.
16103         (CARET_LINE_MARGIN): New constant.
16104         * pretty-print.c (pp_printf): Do not set text.locus.
16105         (pp_verbatim): Do not set text.locus.
16106         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
16107         (struct text_info): Replace locus pointer with locations
16108         array. Add accessor functions.
16110 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
16111             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16113         PR target/65768
16114         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
16115         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
16116          large constants in register instead of splitting them.
16118 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
16120         PR target/66140
16121         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
16122         replacements in memory addresses.
16123         (get_unaligned_address): Ditto.
16125 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
16127         * config/ft32/*: New files for FT32 port.
16128         * doc/install.texi: Add FT32 information.
16129         * doc/invoke.texi: Add FT32 information.
16130         * doc/md.texi: Add FT32 information.
16131         * doc/contrib.texi: Self added.
16133 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
16135         PR tree-optimization/64454
16136         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
16137         (-1 - A -> ~A): Remove unnecessary condition.
16139 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
16141         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
16142         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
16143         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
16145 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
16147         * ipa-chkp.h (chkp_wrap_function): New.
16148         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
16149         (chkp_wrap_function_name): New.
16150         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
16151         to get wrapper name.
16152         * lto-cgraph.c: Include ipa-chkp.h.
16153         (input_cgraph_1): Avoid alias chain for wrappers.
16155 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
16157         PR middle-end/66134
16158         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
16159         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
16161 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16163         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
16164         (AARCH64_FL_SLOWMUL): Delete.
16165         (AARCH64_FL_CRC): Redefine to 1<<3.
16166         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
16168 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16170         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
16171         casting.
16173 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
16175         * config/alpha/alpha.md (extendqidi2): Use general_operand
16176         instead of some_operand for operand[1] predicate.
16177         (extendhidi2): Ditto.
16178         (cbranchdi4): Use general_operand instead of some_operand
16179         for operand[1] and operands[2] predicates.
16180         (cstoredi4): Ditto.
16181         * config/alpha/predicates.md (some_operand): Remove unused predicate.
16182         (some_ni_operand): Ditto.
16184 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
16186         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
16187         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
16188         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
16189         low part of the constant using alpha_emit_set_const_1.
16190         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
16192 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
16194         * varasm.c (output_constant_pool_1): Pass down alignment from
16195         constant pool entry's descriptor to output_constant_pool_2.
16196         (output_object_block): Add comment prior to call to
16197         output_constant_pool_1.
16199 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
16201         PR rtl-optimization/65862
16202         * target.def (ira_change_pseudo_allocno_class): New hook.
16203         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
16204         value of the hook.
16205         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
16206         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
16207         hook.
16208         * ira-costs.c (find_costs_and_classes): Call the hook and change
16209         classes when it is necessary.
16210         * doc/tm.texi: Update.
16212 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
16214         * config/i386/i386.md (sibcall_memory): Check that register with
16215         callee address is not also used as one of the arguments, instead
16216         of checking that it is not live after the sibcall.
16217         (sibcall_pop_memory): Ditto.
16218         (sibcall_value_memory): Ditto.
16219         (sibcall_value_pop_memory): Ditto.
16221 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
16223         * generic-match-head.c (types_match): Handle non-types.
16224         * gimple-match-head.c (types_match): Likewise.
16225         * match.pd: Remove unnecessary TREE_TYPE for types_match.
16227 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
16229         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
16230         (csneg3<mode>_insn): Enable expansion of pattern.
16232 2015-05-14  Nick Clifton  <nickc@redhat.com>
16234         * config/rl78/rl78.c (rl78_select_section): Select the correct
16235         default section based upon the category of the decl.
16237 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
16239         PR rtl-optimization/30967
16240         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
16241         destination mode for the cost of scc patterns.
16243 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
16245         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
16246         using SWIM248 mode iterator.
16247         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
16248         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
16249         for operand[2] constraint.
16250         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
16252 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
16254         PR middle-end/66133
16255         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
16256         make sure it is never noreturn, even when the task body does not
16257         return.
16258         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
16259         right before GIMPLE_OMP_RETURN.
16260         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
16261         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
16262         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
16264 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16266         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
16267         * tree-ssa-math-opts.c: Include params.h
16268         (pow_synth_sqrt_info): New struct.
16269         (representable_as_half_series_p): New function.
16270         (get_fn_chain): Likewise.
16271         (print_nested_fn): Likewise.
16272         (dump_fractional_sqrt_sequence): Likewise.
16273         (dump_integer_part): Likewise.
16274         (expand_pow_as_sqrts): Likewise.
16275         (gimple_expand_builtin_pow): Use above to attempt to expand
16276         pow as series of square roots.  Removed now unused variables.
16278 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
16280         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
16281         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
16282         Remove *p0 and *p1 arguments.  Rewrite function.
16283         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
16284         (alpha_split_const_mov): Update calls to alpha_extract_integer and
16285         alpha_emit_set_long_const.
16286         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
16287         (alpha_output_mi_thunk_osf): Ditto.
16288         * config/alpha/alpha.md (movti): Do not check operands[1]
16289         for CONST_DOUBLE.
16291 2015-05-13  Richard Biener  <rguenther@suse.de>
16293         PR tree-optimization/66129
16294         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
16295         commutative.
16296         (vect_schedule_slp_instance): Fix typo.
16298 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
16300         * common.opt (fdump-internal-locations): New option.
16301         * input.c: Include diagnostic-core.h.
16302         (get_end_location): New function.
16303         (write_digit): New function.
16304         (write_digit_row): New function.
16305         (dump_location_range): New function.
16306         (dump_labelled_location_range): New function.
16307         (dump_location_info): New function.
16308         * input.h (dump_location_info): New prototype.
16309         * toplev.c (compile_file): Handle flag_dump_locations.
16311 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
16313         * gimple-expr.h (is_gimple_constant): Reorder.
16314         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
16316 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
16318         * combine.c (simplify_set): When generating a CC set, if the
16319         source already is in the correct mode, do not wrap it in a
16320         compare.  Simplify the rest of that code.
16322 2015-05-13  Richard Biener  <rguenther@suse.de>
16324         PR tree-optimization/66123
16325         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
16326         a taken edge.
16328 2015-05-13  Richard Biener  <rguenther@suse.de>
16330         PR middle-end/66110
16331         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
16332         specially.
16333         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
16335 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
16337         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
16338         * aclocal.m4: Regenerated with automake-1.11.6.
16340 2015-05-13  Tom de Vries  <tom@codesourcery.com>
16342         PR tree-optimization/66010
16343         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
16344         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
16345         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
16346         and rval based on do_deref.
16348 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
16350         PR target/65103
16351         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
16352         link time constants into adress expressions and therefore set
16353         their cost to 0.
16355 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
16357         PR target/66112
16358         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
16359         Use SWI248 iterator instead of SWI.
16360         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
16361         Use eq_attr "alternative" "0" instead of match_test in
16362         length_immediate attribute computation.
16363         (*mulvhi4, *mulvhi4_1): New define_insns.
16365         PR target/66112
16366         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
16367         SIGNED to get precision of non-negative value.
16369 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
16371         PR target/66048
16372         * function.c (diddle_return_value_1): Process bounds first.
16373         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
16374         register.
16376 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16378         PR rtl-optimization/64616
16379         * loop-invariant.c (can_move_invariant_reg): New.
16380         (move_invariant_reg): Call above new function to decide whether
16381         instruction can just be moved, skipping creation of temporary
16382         register.
16384 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
16386         PR target/pr66047.c
16387         * i386.c (ix86_function_sseregparm): Only return -1 if local function
16388         with implied regparm is called from -mno-sse function.
16389         (init_cumulative_args): Output error if ix86_function_sseregparm
16390         return -1 and SSE register would be needed.
16391         (function_arg_advance_32): Likewise.
16392         (function_arg_32): Likewise.
16393         * i386.h (ix86_args): Add decl field.
16395 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
16397         PR ipa/65873
16398         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
16399         inlines across optimization boundary.
16401 2015-05-12  Jason Merrill  <jason@redhat.com>
16403         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
16404         string literal and macro name.
16406 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
16408         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
16409         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
16410         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
16412 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
16414         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
16415         (-Wmisleading-indentation): New option.
16416         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
16418 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
16420         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
16421         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
16422         (alpha_extract_integer): Ditto.
16423         (alpha_legitimate_constant_p): Ditto.
16424         (alpha_split_tmode_pair): Ditto.
16425         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
16426         (alpha_expand_mov): Ditto.
16427         (print_operand): Remove handling of 'H' modifier.
16428         <case 'm'>: Remove CONST_DOUBLE handling.
16429         (summarize_insn): Handle CONST_WIDE_INT.
16430         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
16431         (anddi3): Ditto.
16432         (movti): Handle CONST_WIDE_INT.
16433         * config/alpha/constraints.md ('H'): Remove constraint definition.
16434         ('G'): Do not match MODE_FLOAT class.
16435         * config/alpha/predicates.md (const0_operand): Also match
16436         const_wide_int.
16437         (non_add_const_operand): Ditto.
16438         (non_zero_const_operand): Ditto.
16439         (some_operand): Ditto.
16440         (input_operand): Ditto.  Handle CONST_WIDE_INT.
16441         (and_operand): Do not match const_double.
16442         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
16444 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
16446         PR target/65697
16447         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
16448         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
16449         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
16450         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
16451         is_mm_seq_cst, is_mm_sync): New accessor functions.
16452         * builtins.c (expand_builtin_sync_operation,
16453         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
16454         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
16455         (get_memmodel,  expand_builtin_atomic_compare_exchange,
16456         expand_builtin_atomic_load, expand_builtin_atomic_store,
16457         expand_builtin_atomic_clear): Use new accessor routines.
16458         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
16459         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
16460         (maybe_emit_sync_lock_test_and_set): Use new accessors and
16461         MEMMODEL_SYNC_ACQUIRE.
16462         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
16463         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
16464         expand_atomic_store): Use new accessors.
16465         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
16466         * tsan.c (instrument_builtin_call): Update check for memory model beyond
16467         final enum to use MEMMODEL_LAST.
16468         * c-family/c-common.c: Use new accessor for memmodel_base.
16469         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
16470         accessors.
16471         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
16472         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
16473         mem_thread_fence, *dmb): Likewise.
16474         * config/alpha/alpha.c (alpha_split_compare_and_swap,
16475         alpha_split_compare_and_swap_12): Likewise.
16476         * config/arm/arm.c (arm_expand_compare_and_swap,
16477         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
16478         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
16479         atomic_loaddi): Likewise.
16480         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
16481         Likewise.
16482         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
16483         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
16484         use new accessors.
16485         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
16486         atomic_store<mode>, atomic_compare_and_swap<mode>,
16487         atomic_exchange<mode>): Use new accessors.
16488         * config/mips/mips.c (mips_process_sync_loop): Likewise.
16489         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
16490         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
16491         rs6000_post_atomic_barrier): Add new cases.
16492         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
16493         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
16494         (atomic_load<mode>): Add new cases and use new accessors.
16495         (store_quadpti): Add new cases.
16496         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
16497         accessors.
16498         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
16499         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
16500         model, not 8.
16502 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
16504         * ipa-devirt.c (type_with_linkage_p): New function.
16505         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
16506         type has linkage.
16507         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
16508         (can_be_name_hashed_p): Simplify.
16509         (hash_odr_name): Check that type has linkage before checking if it is
16510         anonymous.
16511         (types_same_for_odr): Likewise.
16512         (odr_name_hasher::equal): Likewise.
16513         (odr_subtypes_equivalent_p): Likewise.
16514         (warn_types_mismatch): Likewise.
16515         (get_odr_type): Likewise.
16516         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
16517         * ipa-utils.h (odr_type_p): Move offline.
16518         * tree.c (need_assembler_name_p): Fix handling of types
16519         without linkages.
16520         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
16522 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
16524         * timevar.c (timevar_enable): Delete in favor of...
16525         (g_timer): New global.
16526         (struct timevar_def): Move to timevar.h inside class timer.
16527         (struct timevar_stack_def): Likewise.
16528         (timevars): Delete global in favor of field "m_timevars" within
16529         class timer in timevar.h
16530         (stack): Likewise, in favor of field "m_stack".
16531         (unused_stack_instances): Likewise, in favor of field
16532         "m_unused_stack_instances".
16533         (start_time): Likewise, in favor of field "m_start_time".
16534         (get_time): Eliminate check for timevar_enable.
16535         (timer::timer): New function, built from part of timevar_init.
16536         (timevar_init): Rewrite idempotency test from using
16537         "timevar_enable" bool to using dynamic allocation of "g_timer".
16538         Move rest of implementation into timer's constructor.
16539         (timevar_push_1): Rename to...
16540         (timer::push): ...this, adding "m_" prefixes to variables that
16541         are now fields of timer.
16542         (timevar_pop_1): Likewise, rename to...
16543         (timer::pop): ...this, and add "m_" prefixes.
16544         (timevar_start): Replace test for "timevar_enable" with one for
16545         "g_timer", and move bulk of implementation to...
16546         (timer::start): ...here, adding "m_" prefixes.
16547         (timevar_stop): Likewise, from here...
16548         (timer::stop): ...to here.
16549         (timevar_cond_start): Likewise, from here...
16550         (timer::cond_start): ...to here.
16551         (timevar_cond_stop): Likewise, from here...
16552         (timer::cond_stop): ...to here.
16553         (validate_phases): Rename to...
16554         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
16555         locals "total" and "tv" const.
16556         (timevar_print): Rename to...
16557         (timer::print): ...this, and add "m_" prefixes.  Make locals
16558         "total" and "tv" const.  Eliminate test for timevar_enable.
16559         * timevar.h (timevar_enable): Eliminate.
16560         (g_timer): New declaration.
16561         (timevar_push_1): Eliminate.
16562         (timevar_pop_1): Eliminate.
16563         (timevar_print): Eliminate.
16564         (class timer): New class.
16565         (timevar_push): Rewrite to use g_timer.
16566         (timevar_pop): Likewise.
16567         * toplev.c (toplev::~toplev): Likewise.
16569 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
16571         * arm-protos.h (arm_sched_autopref): Delete.
16572         (tune_params): Re-organize, use enums for flag values.
16573         (FUSE_OPS): New macro.
16574         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
16575         (ARM_PREFETCH_BENEFICIAL): Likewise.
16576         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
16577         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
16578         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
16579         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
16580         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
16581         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
16582         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
16583         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
16584         format.
16585         (arm_option_override, thumb2_reorg, arm_print_tune_info)
16586         (aarch_macro_fusion_pair_p): Update uses of current_tune.
16587         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
16589 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
16591         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
16592         "break".
16594 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
16595             Sandra Loosemore <sandra@codesourcery.com>
16597         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
16598         value.
16599         (REG_CLASS_NAMES): Add "IJMP_REGS".
16600         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
16601         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
16602         use new "c" register constraint.
16603         * config/nios2/constraint.md (c): New register constraint
16604         corresponding to IJMP_REGS.
16606 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16608         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
16609         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
16610         define_splits): Delete, revamp, transmogrify into ...
16611         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16612         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16613         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16614         New.
16616 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16618         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
16619         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
16621 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16623         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
16624         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
16625         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
16626         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
16627         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
16628         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
16629         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
16630         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
16631         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
16632         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
16633         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
16634         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
16635         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
16636         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
16637         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
16638         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
16639         and 30 corresponding splitters): Delete.
16641 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16643         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
16644         zero_extract.
16646 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16648         * combine.c (recog_for_combine_1): New function, factored out
16649         from recog_for_combine.
16650         (change_zero_ext): New function.
16651         (recog_for_combine): If recog fails, try again with the pattern
16652         modified by change_zero_ext; if that still fails, restore the
16653         pattern.
16655 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
16657         * combine.c (get_undo_marker): New function.
16658         (undo_to_marker): New function, largely factored out from ...
16659         (undo_all): ... this.  Adjust.
16661 2015-05-12  Richard Biener  <rguenther@suse.de>
16663         PR tree-optimization/66101
16664         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
16665         fixup if we turn a loop exit edge to a fallthru edge.
16667 2015-05-12  Richard Biener  <rguenther@suse.de>
16669         PR tree-optimization/37021
16670         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
16671         (SLP_TREE_TWO_OPERATORS): New define.
16672         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
16673         SLP_TREE_TWO_OPERATORS.
16674         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
16675         SLP node.
16676         (vect_build_slp_tree): Adjust.
16677         (vect_analyze_slp_cost_1): Likewise.
16678         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
16679         emitting two vector stmts and mixing the results.
16681 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16683         * call.c (print_z_candidates): Remove dead code.
16685 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16687         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
16688         and zEC12_simple_fp.
16689         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
16690         to 1.
16692 2015-05-12  Tom de Vries  <tom@codesourcery.com>
16694         PR tree-optimization/66010
16695         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
16696         ifn_va_arg.
16697         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
16698         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
16699         va_lists are passed, and remove corresponding handling.
16700         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
16701         do_deref argument to ifn_va_arg.
16702         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
16703         ifn_va_arg.
16705 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16707         PR target/65955
16708         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
16709         REG before taking its REGNO.
16711 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16713         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
16714         rsp->sign_bit_copies and rsp->nonzero_bits into ...
16715         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
16716         present to get more accurate information about the number of sign bit
16717         copies and non zero bits.
16719 2015-05-12  Richard Biener  <rguenther@suse.de>
16721         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
16722         do not allow unrolling.
16724 2015-05-11  Richard Henderson  <rth@redhat.com>
16726         * config/i386/i386-modes.def (CCP): New.
16727         * config/i386/i386.c (put_condition_code): Handle it.
16728         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
16730 2015-05-11  Richard Henderson  <rth@redhat.com>
16732         * target.def (md_asm_clobbers): Replace with...
16733         (md_asm_adjust): this.
16734         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
16735         (TARGET_MD_ASM_ADJUST): New.
16736         * tm.texi: Rebuild.
16737         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
16738         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
16739         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
16741         * cfgexpand.c (check_operand_nalternatives): Accept vector of
16742         constraints instead of lists of outputs and inputs.
16743         (expand_asm_stmt): Save and restore input_location around the
16744         body of the function.  Move asm data into vectors instead of
16745         building tree lists.  Generate cleanup sequences as needed,
16746         rather than waiting til the end.  Use new md_asm_adjust hook.
16748         * config/vxworks.c: Include vec.h before target.h.
16749         * gimple.c: Likewise.
16750         * incpath.c: Likewise.
16751         * mode-switching.c: Likewise.
16753         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
16754         (cris_md_asm_adjust): this.
16755         (TARGET_MD_ASM_CLOBBERS): Remove.
16756         (TARGET_MD_ASM_ADJUST): New.
16757         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
16758         (ix86_md_asm_adjust): this.
16759         (TARGET_MD_ASM_CLOBBERS): Remove.
16760         (TARGET_MD_ASM_ADJUST): New.
16761         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
16762         (mn10300_md_asm_adjust): this.
16763         (TARGET_MD_ASM_CLOBBERS): Remove.
16764         (TARGET_MD_ASM_ADJUST): New.
16765         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
16766         (rs6000_md_asm_adjust): this.
16767         (TARGET_MD_ASM_CLOBBERS): Remove.
16768         (TARGET_MD_ASM_ADJUST): New.
16769         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
16770         (visium_md_asm_adjust): this.
16771         (TARGET_MD_ASM_CLOBBERS): Remove.
16772         (TARGET_MD_ASM_ADJUST): New.
16774 2015-05-11  Richard Henderson  <rth@redhat.com>
16776         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
16777         if noutputs is zero.
16778         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
16780         * cfgexpand.c (expand_asm_operands): Merge into...
16781         (expand_asm_stmt): ... here.
16783         * cfgexpand.c (expand_asm_operands): Don't call
16784         resolve_asm_operand_names.
16785         * stmt.c (resolve_asm_operand_names): Clarify block comment.
16787 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
16789         * dwarf2out.c (gen_member_die): Sanity check that we access
16790         TYPE_MAIN_VARIANT for TYPE_METHODS.
16791         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
16792         checking TYPE_METHODS.
16793         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
16794         if non-null.
16795         (build_distinct_type_copy): Clear TYPE_METHODS.
16796         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
16797         (verify_type): Allow TYPE_METHODS to be error_mark_node.
16798         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
16800 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
16802         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
16803         (emit_pattern_before_setloc): Likewise.
16805 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16807         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
16808         for define_peephole2s.
16809         (get_peephole2_pattern): New function.
16810         (main): Use it.  Call validate_pattern.
16812 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
16814         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
16815         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
16816         (Last callee saved reg is different for AVR_TINY architecture)
16818 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16820         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
16821         when looking for memory references.
16823 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
16825         PR target/65753
16826         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
16827         via function pointers.
16829 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
16831         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
16832         indirect call by forcing address into a pseudo with -fno-plt.
16833         * common.opt (flag_plt): New option.
16834         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
16835         ([-fno-plt]): Document.
16837 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
16839         PR bootstrap/66105
16840         * config/rs6000/option-defaults.h: Add space between string literal
16841         and macro name.
16843 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16845         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
16846         accross ARM targets.
16848 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16850         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
16851         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
16853 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
16855         PR rtl-optimization/66076
16856         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
16857         Don't grow the heap array if it is already big enough from a
16858         previous iteration.
16860 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16862         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
16863         (is_called_in_ARM_mode): Remove.
16864         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
16865         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
16866         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
16867          arm_declare_function_name.
16869 2015-05-11  Christian Bruel  <christian.bruel@st.com>
16871         * config/arm/arm.c (arm_option_override): Reoganized and split into :
16872         (arm_option_params_internal); New function.
16873         (arm_option_check_internal): New function.
16874         (arm_option_override_internal): New function.
16875         (thumb_code, thumb1_code): Remove.
16876         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
16877         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
16878         (thumb_code, thumb1_code): Remove.
16879         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
16881 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
16883         * config/alpha/alpha.c (alpha_emit_set_const_1)
16884         (alpha_emit_set_long_const, alpha_extract_integer)
16885         (alpha_legitimate_constant_p, alpha_split_const_mov)
16886         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
16887         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16888         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
16889         HOST_WIDE_INT_1U.
16890         * config/alpha/predicates.md (mode_mask_operand): Do not match
16891         const_double RTX.
16892         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16893         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
16894         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
16895         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
16896         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
16898 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
16900         PR target/65780
16901         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
16902         default_binds_local_p_2.
16903         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
16904         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
16906 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16908         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
16910 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16912         Patch by Richard Biener
16913         * coverage.c (coverage_obj_init): Delay building of type variant
16914         until the type is finished.
16916 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16918         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
16919         mismatch between C and C++ type; compoare correctly ARG_TYPES
16920         for non-prototypes and output correctly parameter index for METHOD_TYPE.
16921         (odr_types_equivalent_p): Fix wording of warning about attributes;
16922         it is OK to match prototype and non-prototype.
16924 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16926         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
16927         TYPE_ARG_TYPES list.
16928         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
16929         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
16931 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
16933         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
16934         * tree.h (is_lang_specific): Constify.
16936 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
16938         PR tree-optimization/64454
16939         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
16940         Rewrite.
16942 2015-05-08  Jason Merrill  <jason@redhat.com>
16944         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
16945         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
16946         config/darwin.h, config/darwin9.h, config/elfos.h,
16947         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
16948         config/microblaze/microblaze.h, config/mips/mips.h,
16949         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
16950         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
16951         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
16952         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
16953         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
16954         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
16955         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
16956         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
16957         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
16958         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
16959         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
16960         between string literal and macro name.
16962 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16964         * jump.c: Change argument types to rtx_insn *.
16965         * rtl.h: Adjust.
16967 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16969         * lra-constraints.c: Change argument type to rtx_insn *.
16971 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16973         * df-problems.c: Change argument type to rtx_insn *.
16975 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16977         * combine.c: Change argument type to rtx_insn *.
16979 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16981         * rtl.h: Adjust.
16982         * rtlanal.c: Change argument type to rtx_insn *.
16984 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16986         * sched-deps.c: Change argument types to rtx_insn *.
16987         * sched-int.h: Adjust.
16989 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16991         * dwarf2cfi.c: Change argument type to rtx_insn *.
16993 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
16995         * ira.c (decrease_live_ranges_number): Changetype of local
16996         variable to rtx_insn *.
16997         * recog.c: Change argument types to rtx_insn *.
16998         * recog.h: Adjust.
17000 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17002         * reorg.c: Change argument types to rtx_insn *.
17004 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17006         * ira-color.c: Change argument types to rtx_insn *.
17007         * lra-eliminations.c: Likewise.
17008         * ira.h: Adjust.
17010 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17012         * gcse.c: Change argument types to rtx_insn *.
17014 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17016         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
17018 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17020         * emit-rtl.c (emit_debug_insn_before): Change argument type to
17021         rtx_insn *.
17022         * rtl.h: Adjust.
17024 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17026         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
17027         * rtl.h: Adjust.
17029 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17031         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
17032         * rtl.h: Adjust.
17034 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17036         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
17037         * rtl.h: Adjust.
17039 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17041         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
17042         * rtl.h: Adjust.
17044 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17046         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
17047         to rtx_insn *.
17048         * rtl.h: Adjust.
17050 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17052         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
17053         to rtx_insn *.
17054         * rtl.h: Likewise.
17056 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17058         * except.c (can_nonlocal_goto): Change type of argument to
17059         rtx_insn *.
17060         * rtl.h: Adjust.
17062 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17064         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
17065         * rtl.h: Adjust.
17067 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17069         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
17070         * cfgrtl.c (can_delete_label_p): Adjust.
17071         * rtl.h: likewise.
17073 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17075         * reorg.c (stop_search_p): Change argument to rtx_insn *.
17077 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17079         * except.c (make_reg_eh_region_note): Change argument to
17080         rtx_insn *.
17081         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
17082         * except.h: Adjust.
17084 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17086         * mode-switching.c (commit_mode_sets): Change type of local
17087         variable from rtx to rtx_insn *.
17089 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
17091         * doc/install.texi (--enable-languages): Add missing jit and lto info.
17092         Add ^ to grep command.
17093         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
17094         arg to last gimple_simplify declaration.  Add missing gimple_build
17095         declaration for built-in function case with four tree args.
17097 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
17098             Szabolcs Nagy  <szabolcs.nagy@arm.com>
17100         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
17101         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
17102         (GNU_USER_DYNAMIC_LINKERN32): Update.
17104 2015-05-08  Richard Biener  <rguenther@suse.de>
17106         PR tree-optimization/66036
17107         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
17108         Handle strided group loads.
17109         (vect_verify_datarefs_alignment): Likewise.
17110         (vect_enhance_data_refs_alignment): Likewise.
17111         (vect_analyze_group_access): Likewise.
17112         (vect_analyze_data_ref_access): Likewise.
17113         (vect_analyze_data_ref_accesses): Likewise.
17114         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
17115         (vectorizable_load): Likewise.
17117 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
17119         * config/rs6000/rs6000.md: Require operand inequality in one
17120         of the peepholes.
17122 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
17123             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17125         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
17126         from (set ...).
17127         * config/rx/rx.md (movdi, movdf): Likewise.
17128         Likewise for define_peephole2s.
17130 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
17132         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
17133         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
17134         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
17135         vtst_u64): Rewrite using gcc vector extensions.
17137 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
17139         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
17140         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
17142 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
17144         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
17146 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17148         * config/glibc-stdint.h (OPTION_MUSL): Define.
17149         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
17150         Change the definition based on OPTION_MUSL for 64 bit targets.
17151         * config/linux.h (OPTION_MUSL): Redefine.
17152         * config/alpha/linux.h (OPTION_MUSL): Redefine.
17153         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
17154         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
17156 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
17157             Szabolcs Nagy  <szabolcs.nagy@arm.com>
17159         * config.gcc (LIBC_MUSL): New tm_defines macro.
17160         * config/linux.h (OPTION_MUSL): Define.
17161         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
17162         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
17163         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
17164         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
17165         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
17166         * config/linux.opt (mmusl): New option.
17167         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
17168         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
17169         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
17170         * configure: Regenerate.
17172 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
17173             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17175         PR target/48904
17176         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
17177         * config/i386/knetbsd-gnu64.h: New file.
17179 2015-05-08  Marek Polacek  <polacek@redhat.com>
17181         PR c/64918
17182         * doc/invoke.texi: Document -Woverride-init-side-effects.
17184 2015-05-07  Marek Polacek  <polacek@redhat.com>
17186         PR c/65179
17187         * doc/invoke.texi: Document -Wshift-negative-value.
17189 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
17191         * gcov-tool.c (do_merge): Refactore to remove int ret.
17192         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
17193         !type == FUNC to type != FUNC.
17194         * reload.h (struct target_reload): Changee to type of
17195         x_spill_indirect_levels from bool to unsigned char.
17197 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
17199         * rtl.h (always_void_p): New function.
17200         * gengenrtl.c (always_void_p): Likewise.
17201         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
17202         with code foo are always VOIDmode.
17203         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
17204         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
17205         compare-elim.c, config/aarch64/aarch64.c,
17206         config/aarch64/aarch64.md, config/alpha/alpha.c,
17207         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
17208         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
17209         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
17210         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
17211         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
17212         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
17213         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
17214         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
17215         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
17216         config/ia64/vect.md, config/iq2000/iq2000.c,
17217         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
17218         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
17219         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
17220         config/mep/mep.c, config/microblaze/microblaze.c,
17221         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
17222         config/mn10300/mn10300.c, config/msp430/msp430.c,
17223         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
17224         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
17225         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
17226         config/rs6000/altivec.md, config/rs6000/rs6000.c,
17227         config/rs6000/rs6000.md, config/rs6000/vector.md,
17228         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
17229         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
17230         config/sh/sh.md, config/sh/sh_treg_combine.cc,
17231         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
17232         config/spu/spu.md, config/stormy16/stormy16.c,
17233         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
17234         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
17235         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
17236         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
17237         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
17238         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
17239         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
17240         var-tracking.c: Update calls accordingly.
17242 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
17244         PR middle-end/192
17245         PR middle-end/54303
17246         * varasm.c (function_mergeable_rodata_prefix): New function.
17247         (mergeable_string_section): Use it.
17248         (mergeable_constant_section): Use it.
17250 2015-05-07  Jeff Law  <law@redhat.com>
17252         PR target/39726
17253         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17254         simplifier to narrow arithmetic.
17255         * generic-match-head.c: (types_match, single_use): New functions.
17256         * gimple-match-head.c: (types_match, single_use): New functions.
17258 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17260         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
17261         rtx type.
17263 2015-05-07  Richard Biener  <rguenther@suse.de>
17265         PR tree-optimization/66002
17266         * passes.def: Schedule another pass_merge_phi after ifcombine, right
17267         before phiopt.
17269 2015-05-07  Marek Polacek  <polacek@redhat.com>
17270             Martin Uecker  <uecker@eecs.berkeley.edu>
17272         * doc/invoke.texi: Document -fsanitize=bounds-strict.
17273         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
17274         into SANITIZE_NONDEFAULT.
17275         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
17277 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
17279         PR target/66015
17280         * config/alpha/alpha.c (alpha_override_options_after_change): New.
17281         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
17282         (alpha_override_options): Move align_loops, align_jumps and
17283         align_functions handling into alpha_override_options_after_change.
17285 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
17286             Chris Jones  <chrisj@nvidia.com>
17287             Joshua Conner  <jconner@nvidia.com>
17289         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
17290         linking of crtfastmath.o.
17291         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
17293 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17295         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
17296         (cstore<mode>4_unsigned_imm): New expander.
17297         (cstore<mode>4): Remove empty constraint strings.  Use the new
17298         expanders.
17300 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
17302         PR target/64208
17303         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
17304         alternatives.
17306 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17308         * config/aarch64/geniterators.sh: Use standard BRE in sed.
17310 2015-05-06  Alan Modra  <amodra@gmail.com>
17312         PR target/66033
17313         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
17314         (UNSPEC_NOP): Define.
17315         (reload_vsx_from_gpr<mode>): Add missing DONE.
17316         (reload_gpr_from_vsx<mode>): Likewise.
17317         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
17318         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
17320 2015-05-06  Christian Bruel  <christian.bruel@st.com>
17322         PR target/66015
17323         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
17324         align_jumps, align_functions into aarch64_override_options_after_change.
17326 2015-05-06  Richard Biener  <rguenther@suse.de>
17328         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
17329         vect_transform_slp_perm_load to check if we support a permutation
17330         for basic-block vectorization.
17332 2015-05-06  Nick Clifton  <nickc@redhat.com>
17334         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
17335         used, even if it is not being used as a frame pointer.
17337 2015-05-05  Jason Merrill  <jason@redhat.com>
17339         * dwarf2out.c (gen_member_die): Don't emit anything for an
17340         anonymous class constructor.
17342 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
17344         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
17345         that it reflects the block structure.
17346         (afdo_propagate_edge): Likewise.
17347         (afdo_calculate_branch_prob): Likewise.
17348         (afdo_annotate_cfg): Likewise.
17349         * cfgcleanup.c (equal_different_set_p): Likewise.
17350         (try_crossjump_to_edge): Likewise.
17351         * cgraph.c (cgraph_node::verify_node): Likewise.
17352         * cgraphunit.c (expand_all_functions): Likewise.
17353         * config/i386/i386.c (ix86_expand_copysign): Likewise.
17354         (exact_dependency_1): Likewise.
17355         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
17356         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
17357         * gensupport.c (process_define_subst): Likewise.
17358         * lto-wrapper.c (merge_and_complain): Likewise.
17359         * tree-if-conv.c (if_convertible_bb_p): Likewise.
17360         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
17361         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
17362         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
17363         * tree-vect-loop.c (vectorizable_reduction): Likewise.
17364         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
17365         * tree-vect-stmts.c (vectorizable_shift): Likewise.
17366         * tree-vrp.c (vrp_finalize): Likewise.
17367         * tree.c (variably_modified_type_p): Likewise.
17369 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
17371         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
17372         on darwin12 and later.
17373         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
17374         file to pass -rdynamic on darwin12 and later.
17375         * config/darwin.opt (rdynamic): Add.
17377 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
17379         * doc/extend.texi (C Extensions): Update menu for moved Variable
17380         Attributes and Type Attributes sections.
17382 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
17384         PR target/65990
17385         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
17386         if rep_8byte stringop strategy was specified for 32-bit target.
17388 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
17390         PR target/65915
17391         * config/i386/i386.md (vector convert to float spltiter): Check for
17392         xmm16+, when splitting scalar float conversion.
17393         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
17395 2015-05-05  Nick Clifton  <nickc@redhat.com>
17397         * config/msp430/msp430-opts.h (enum msp430_regions): New.
17398         * config/msp430/msp430.c (msp430_override_options): Complain if
17399         -mcode-region or -mdata-region is used on a non MSP430X.
17400         (msp430_section_attr): New function.  Checks lower, upper and
17401         either attributes.
17402         (msp430_attribute_table): Add lower, upper and either.
17403         (gen_prefix): New function.  Generates a prefix for a section
17404         name.
17405         (msp430_select_section): New function - handles the choice of
17406         section for an object.  Takes into account memory region
17407         attributes and options.
17408         (msp430_function_section): Use gen_prefix.
17409         (TARGET_SECTION_TYPE_FLAGS): Define.
17410         (msp430_section_type_flags): New function.
17411         (TARGET_ASM_UNIQUE_SECTION): Define.
17412         (msp430_unique_section): New function.
17413         (msp430_output_aligned_decl_common): New function.
17414         (msp430_do_not_relax_short_jumps): New function.
17415         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
17416         Define.
17417         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
17418         * config/msp430/msp430-protos.h
17419         (msp430_do_not_relax_short_jumps): New prototype.
17420         (msp430_output_aligned_decl_common): New prototype.
17421         * config/msp430/msp430.md (length): New attribute.
17422         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
17423         then use a long code sequence for short jumps.
17424         * config/msp430/msp430.opt (mcode-region): New.
17425         (mdata-region): New.
17426         * doc/invoke.texi: Document new options.
17427         * doc/extend.texi: Document new attributes.
17429 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
17431         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
17432         (tune_params): Add field branch_costs.
17433         (aarch64_branch_cost): Declare.
17434         * gcc/config/aarch64.c (generic_branch_cost): New.
17435         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
17436         (cortexa53_tunings): Likewise.
17437         (cortexa57_tunings): Likewise.
17438         (thunderx_tunings): Likewise.
17439         (xgene1_tunings): Likewise.
17440         (aarch64_branch_cost): Define.
17441         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
17443 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
17445         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
17446         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
17447         * config/i386/i386.md: Ditto.
17448         * config/i386/winnt.c: Ditto.
17450 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
17452         * doc/extend.texi (__atomic Builtins): Move implementation details
17453         to the end of the description, rewrite opening paragraphs, state
17454         difference with __sync builtins, state C11/C++11 assumptions,
17455         weaken itemized descriptions, add explanation of memory model
17456         behaviour, expand description of compare-exchange, simplify text.
17458 2015-05-05  Renlin Li  <renlin.li@arm.com>
17460         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
17462 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
17464         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
17465         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17466         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
17467         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
17468         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
17469         * configure: Regenerate.
17470         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
17471         * doc/install.texi (aarch64*-*-*): Document new
17472         --enable-fix-cortex-a53-843419 option.
17473         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
17474         and -mno-fix-cortex-a53-843419 options.
17476 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
17478         PR target/65871
17479         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
17481 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
17483         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
17484         fix overactive TYPE_MIN_VALUE check and add FIXME for type
17485         compatibility problems.
17487 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
17489         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
17490         constraints.
17491         (cbranchsi4_reg): New.
17492         * config/microblaze/microblaze.c
17493         (microblaze_expand_conditional_branch_reg): New.
17494         * config/microblaze/microblaze-protos.h
17495         (microblaze_expand_conditional_branch_reg): New prototype.
17497 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
17499         * config/microblaze/microblaze.md (peephole2): New.
17501 2015-05-04  Jeff Law  <law@redhat.com>
17503         Revert:
17504         2015-05-04  Jeff Law  <law@redhat.com>
17506         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17507         simplifier to narrow arithmetic.
17508         * generic-match-head.c: (types_match, single_use): New functions.
17509         * gimple-match-head.c: (types_match, single_use): New functions.
17511 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
17513         PR target/65987
17514         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
17515         (split_branches): Likewise.
17517 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
17519         * common.opt (fdelete-null-pointer-checks): Init to -1.
17520         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
17521         override flag_delete_null_pointer_checks default.
17522         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
17523         behavior re address zero.  Better document target-specific behavior.
17524         (-fisolate-errneous-paths-dereference): Mention relationship to
17525         -fdelete-null-pointer-checks.
17527 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
17529         PR tree-optimization/65984
17530         * ubsan.c: Include tree-cfg.h.
17531         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
17532         stmt_could_throw_p test, rename can_throw variable to ends_bb.
17534 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
17536         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
17537         to CONST_DOUBLE_P predicate.
17538         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
17539         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
17540         allow only operands that satisfy standard_sse_constant_p predicate.
17541         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
17542         to CONST_DOUBLE_P predicate.
17544 2015-05-04  Jeff Law  <law@redhat.com>
17546         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
17547         simplifier to narrow arithmetic.
17548         * generic-match-head.c: (types_match, single_use): New functions.
17549         * gimple-match-head.c: (types_match, single_use): New functions.
17551 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
17553         * config/arm/arm.c: Restore bootstrap.
17555 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
17557         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
17558         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
17559         as CONST_WIDE_INT, not CONST_DOUBLE.
17560         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
17561         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
17562         (ix86_find_base_term): Do not check for CONST_DOUBLE.
17563         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
17564         (ix86_build_signbit_mask): Rewrite using wide ints.
17565         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
17566         (ix86_rtx_costs): Handle CONST_WIDE_INT.
17567         (find_constant): Ditto.
17568         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
17569         using gen_int_mode.
17570         * config/i386/predicates.md (x86_64_immediate_operand)
17571         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
17572         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
17573         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
17574         (const0_operand): Also match const_wide_int.
17575         (constm1_operand): Ditto.
17576         (const1_operand): Ditto.
17578 2015-05-04  Richard Biener  <rguenther@suse.de>
17580         PR tree-optimization/65965
17581         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
17582         store groups at gaps.
17584 2015-05-04  Richard Biener  <rguenther@suse.de>
17586         PR tree-optimization/65935
17587         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
17588         then make sure to apply that swapping to the IL.
17590 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
17592         * Makefile.in (PATCHLEVEL_c): New variable.
17593         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
17594         expand the same way as if DEVPHASE_c was non-empty.
17596 2015-05-04  Kai Tietz  <ktietz@redhat.com>
17598         PR target/65559
17599         * lto-wrapper.c (run_gcc): Open filename
17600         in binary-mode.
17602 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
17604         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
17605         sections up in file, to immediately after the Function Attributes
17606         section.
17608 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
17610         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
17612 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17614         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
17615         (insert_partition_copy_on_edge): Adjust.
17616         (insert_rtx_to_part_on_edge): Likewise.
17617         (insert_part_to_rtx_on_edge): Likewise.
17619 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17621         * function.c (set_return_jump_label): Change type of argument to
17622         rtx_insn *.
17623         * function.h (set_return_jump_label): Adjust.
17625 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17627         * reload.h (struct reg_equivs_t): Change type of init to
17628         rtx_insn *.
17629         * ira.c (fix_reg_equiv_init): Adjust.
17630         * reload1.c (eliminate_regs_1): Likewise.
17631         (init_eliminable_invariants): Likewise.
17633 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17635         * cselib.c (fp_setter_insn): Take a rtx_insn *.
17636         * cselib.h (fp_setter_insn): Adjust.
17638 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17640         * recog.c (struct validate_replace_src_data): Change type of
17641         insn field to rtx_insn *.
17642         (validate_replace_src_group): Change type of argument to rtx_insn *.
17643         * recog.h (validate_replace_src_group): Adjust.
17645 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17647         * haifa-sched.c: Change the type of some variables to rtx_insn *.
17648         * sched-deps.c: Likewise.
17649         * sched-int.h: Likewise.
17650         * sched-rgn.c: Likewise.
17651         * sel-sched.c: Likewise.
17653 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17655         to rtx_insn *.
17656         * config/i386/i386.c: Change the type of some arguments to
17657         rtx_insn *.
17658         * config/arm/arm.c: Likewise.
17660 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17662         * lra-constraints.c: Change type of some arguments to rtx_insn *.
17664 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17666         * regcprop.c (kill_autoinc_value): Change type of argument to
17667         rtx_insn *.
17669 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17671         * genrecog.c (print_subroutine): Adjust.
17672         * recog.c (get_bool_attr_mask_uncached): Likewise.
17673         * recog.h (struct recog_data_d): Change the type of insn to
17674         rtx_insn *.
17676 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17678         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
17680 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17682         * df-problems.c (df_set_note): Change type of argument to
17683         rtx_insn *.
17685 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17687         * builtins.c (expand_builtin_trap): Change type of local
17688         variable to rtx_insn *.
17689         (add_sched_insns_for_speculation): Likewise.
17690         (ix86_emit_save_regs): Likewise.
17691         (get_scratch_register_on_entry): Likewise.
17692         (ix86_emit_restore_reg_using_pop): Likewise.
17693         (ix86_emit_leave): Likewise.
17694         (ix86_emit_restore_regs_using_mov): Likewise.
17695         (ix86_expand_epilogue): Likewise.
17696         Likewise.
17697         (rl78_alloc_physical_registers_umul): Likewise.
17698         * cselib.c (discard_useless_locs): Likewise.
17699         (cselib_invalidate_regno): Likewise.
17700         (cselib_invalidate_mem): Likewise.
17701         * function.c (expand_function_start): Likewise.
17702         (emit_use_return_register_into_block): Likewise.
17703         * gcse.c: Likewise.
17704         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
17705         * ifcvt.c (noce_get_alt_condition): Likewise.
17706         * loop-doloop.c (doloop_condition_get): Likewise.
17707         * lra-constraints.c (inherit_in_ebb): Likewise.
17708         * modulo-sched.c (sms_schedule_by_order): Likewise.
17709         * recog.c (next_insn_tests_no_inequality): Likewise.
17710         * reorg.c (emit_delay_sequence): Likewise.
17711         (update_reg_dead_notes): Likewise.
17712         (fix_reg_dead_note): Likewise.
17713         (fill_slots_from_thread): Likewise.
17714         (delete_computation): Likewise.
17716 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
17718         * doc/extend.texi (Variable Attributes): Add menu and proper
17719         @nodes to subsections.  Move Microsoft Windows attributes to
17720         their own subsection.
17721         (Type Attributes): Reorganize introduction to remove duplicate
17722         list of attributes.  Add menu and proper @nodes to subsections.
17723         Alphabetize the main table of common attributes.
17725 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
17727         * match.pd: New simplification patterns.
17728         (x + (x & 1))  -> ((x + 1) & ~1)
17729         (x & ~(x & y)) -> ((x & ~y))
17730         (x | ~(x | y)) -> ((x | ~y))
17732 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17734         * target.def (attribute_table): Mention that struct attribute_spec
17735         is defined in tree-core.h rather than tree.h
17736         * doc/tm.texi: Regenerate.
17738 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
17740         * genrecog.c (test): Rename to rtx_test.  Update rest of file
17741         accordingly.
17743 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
17745         PR translation/65959
17746         * params.h (DEFPARAM): Rename msgid to nocmsgid.
17748 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
17750         * gcc/config/aarch64/aarch64-protos.h (tune_params):
17751         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
17752         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
17753         Return value depending on target.
17754         (generic_tunings): Initialize new target settings.
17755         (cortexa53_tunings): Likewise.
17756         (cortexa57_tunings): Likewise.
17757         (thunderx_tunings): Likewise.
17758         (xgene1_tunings): Likewise.
17760 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
17762         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
17763         Make Cortex-A53 shift costs more accurate.
17765 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17767         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
17768         UNSIGNED_FLOAT.
17770 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
17772         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
17773         Calculate cost of op0 and op1 in PLUS and MINUS cases.
17775 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17777         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
17778         Add cost of op0 in the compare-with-fpzero case.
17780 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
17782         * builtins.c (fold_builtin_1): Remove spurious second
17783         semicolon.
17784         * cgraph.h (symtab_node::get_availability): Likewise.
17785         * opts.c (common_handle_option): Remove spurious second semicolon.
17786         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
17787         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
17789 2015-04-30  Caroline Tice  <cmtice@google.com>
17791         PR gcov-profile/65929
17792         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
17793         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
17794         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
17795         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
17796         * doc/tm.texi: Regenerate.
17797         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
17798         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
17799         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
17800         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
17802 2015-04-30  Marek Polacek  <polacek@redhat.com>
17804         * varasm.c (handle_cache_entry): Fix logic.
17806 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17808         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
17809         (*extrsi5_insn_uxtw_alt): Likewise.
17810         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
17811         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
17812         operations.
17814 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17816         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
17817         fabd in ABS case.
17819 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17821         * config/aarch64/aarch64.md
17822         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
17823         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
17824         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
17825         appropriately.  Handle alternative EON form.
17827 2015-04-30  Renlin Li  <renlin.li@arm.com>
17829         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
17830         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
17832 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
17834         PR ipa/65873
17835         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
17836         -fstrict-aliasing boundaries.
17838 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17840         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
17841         and [SU]MNEGL patterns.
17843 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17845         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
17846         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
17847         combined arithmetic-shift ops.  Properly handle all shift and extend
17848         operations that can occur in combination with PLUS/MINUS.
17849         Rename maybe_fma to compound_p.
17850         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
17851         arithmetic and shift operations.
17853 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17855         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
17856         rather than arith_shift cost when costing ADD/MINUS of an
17857         extended value.
17859 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
17861         PR lto/65948
17862         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
17863         to itself.
17865 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
17867         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
17868         are for the same position.
17870 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
17872         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
17873         vectorize_loops.
17874         (vectorize_loops): Use it.
17876 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17878         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
17879         for aggregate types.
17880         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
17881         type to be non_ODR.
17882         * tree.c (need_assembler_name_p): Compute mangled name for
17883         non-fundamental types and integer types.
17885 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
17887         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
17888         manual swaps.
17889         * expr.c (expand_expr_real_2): Likewise.
17891 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17893         * tree.c (build_common_builtin_nodes): Do not build
17894         __builtin_alloca_with_align as equivalent of library alloca.
17896 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
17898         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
17899         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
17900         bugus variants.
17901         * tree.c: Include print-tree.h and ipa-utils.h
17902         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
17903         (free_lang_data_in_cgraph): Call verify_type.
17904         (verify_type_variant): New function.
17905         (verify_type): New function.
17906         * tree.h (verify_type): Declare.
17908 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
17910         * config/mips/mips-cpus.def: (mips4): Change default processor
17911         from PROCESSOR_R8000 to PROCESSOR_R10000.
17913 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
17915         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
17916         la/jalr instead of jal.
17918 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
17920         PR target/65871
17921         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
17922         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
17923         (setcc+movzbl peephole2): Check also clobbered reg.
17924         (setcc+andl peephole2): Ditto.
17926 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17928         PR libgomp/65099
17929         * config/nvptx/mkoffload.c (target_ilp32): New variable.
17930         (main): Set it depending on "-foffload-abi=[...]".
17931         (compile_native, main): Use it to pass "-m32" or "-m64" to the
17932         compiler.
17934 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17936         PR target/65770
17937         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
17938         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
17939         Flip lane index back at assembly time for bigendian.
17941 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
17943         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
17944         * gimplify.c (gimplify_omp_workshare): Use it.
17946 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17948         * Makefile.in (build/genrecog.o): Depend on inchash.h.
17949         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
17950         build/inchash.o
17951         * genrecog.c: Rewrite most of the code except for the third page.
17953 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17955         * inchash.h, inchash.c: Include bconfig.h for build objects.
17956         * Makefile.in (build/inchash.o): New rule.
17958 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
17960         PR target/65924
17961         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
17962         number in type attribute expression.
17964 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17966         * loop-iv.c (canon_condition): Generalize to all types of integer
17967         constant.
17969 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
17971         * gimple-walk.c: Prune duplicate or unneeded includes.
17972         (walk_gimple_asm): Only call parse_input_constraint or
17973         parse_output_constraint if their findings are used.
17974         Honour parse_input_constraint and parse_output_constraint
17975         result.
17977 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
17979         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
17981 2015-04-29  Tom de Vries  <tom@codesourcery.com>
17983         PR tree-optimization/65893
17984         * passes.def (pass_all_optimizations): Move pass_stdarg to after
17985         pass_dce.
17987 2015-04-29  Richard Biener  <rguenther@suse.de>
17989         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17990         compute GROUP_SIZE for basic-block SLP.
17991         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
17992         take into account gaps.
17993         (vect_get_mask_element): Properly reject references to previous
17994         vectors.
17995         (vect_transform_slp_perm_load): Likewise.
17997 2015-04-29  Christian Bruel  <christian.bruel@st.com>
17999         PR target/64835
18000         * config/i386/i386.c (ix86_default_align): New function.
18001         (ix86_override_options_after_change): Call ix86_default_align.
18002         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
18003         (ix86_override_options_after_change): New function.
18005 2015-04-28  Jeff Law  <law@redhat.com>
18007         * tree-ssa-dom.c (record_equality); Fix comment typos.
18009 2015-04-28  Tom de Vries  <tom@codesourcery.com>
18011         PR tree-optimization/65887
18012         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
18014 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
18016         * doc/extend.texi (Declaring Attributes of Functions): Split into
18017         subsections by target.  Alphabetize the table of common attributes.
18018         Rewrite some of the introductory text to reflect the new structure.
18019         Update some cross-references to point to the new subsections.
18020         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
18021         duplicate copies in the discussion of function, label, and type
18022         attributes.
18024 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
18026         PR bootstrap/65910
18027         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
18029 2015-04-28  Jason Merrill  <jason@redhat.com>
18031         PR c++/65734
18032         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
18033         (finalize_type_size): Respect TYPE_USER_ALIGN.
18034         (layout_type) [ARRAY_TYPE]: Likewise.
18036 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
18038         * config/arm/arm.md (*arm_movt): Fix type attribute.
18039         (*cmpsi_shiftsi): Likewise.
18040         (*cmpsi_shiftsi_swp): Likewise.
18041         (*movsicc_insn): Likewise.
18042         (*cond_move): Likewise.
18043         (*if_plus_move): Likewise.
18044         (*if_move_plus): Likewise.
18045         (*if_arith_move): Likewise.
18046         (*if_move_arith): Likewise.
18047         (*if_shift_move): Likewise.
18048         (*if_move_shift): Likewise.
18049         (*arm_movtas_ze): Likewise.
18050         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
18051         redundancy and type attribute.
18052         (*thumb2_movsi_insn): Fix type attribute.
18053         (*thumb2_addsi_short): Likewise.
18054         (thumb2_addsi3_compare0): Likewise.
18055         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
18056         attributes accordingly.
18058 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
18060         PR other/65911
18061         * function.c (pad_to_arg_alignment): Add parentheses.
18063 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
18065         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
18066         libgcc/config/frv/elf-lib.h.
18068 2015-04-28  Tom de Vries  <tom@codesourcery.com>
18070         * tree-call-cdce.c: Fix example in header comment.
18072 2015-04-28  Richard Biener  <rguenther@suse.de>
18074         PR tree-optimization/62283
18075         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
18076         fails fatally and we are vectorizing a basic-block simply
18077         cause the child to be constructed piecewise.
18078         (vect_analyze_slp_cost_1): Adjust.
18079         (vect_detect_hybrid_slp_stmts): Likewise.
18080         (vect_bb_slp_scalar_cost): Likewise.
18081         (vect_get_constant_vectors): For piecewise constructed
18082         constants place them after the last def.
18083         (vect_get_slp_defs): Adjust.
18084         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
18085         externals for basic-block vectorization.
18087 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18089         PR target/63503
18090         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
18091         aarch64-*-*.
18092         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
18093         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
18094         (AARCH64_TUNE_FMA_STEERING): Likewise.
18095         * config/aarch64/aarch64-cores.def: Set
18096         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
18097         FMUL/FMADD instructions.
18098         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
18099         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
18100         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
18101         * config/aarch64/cortex-a57-fma-steering.h: New file.
18102         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18104 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
18106         * gensupport.c (std_preds): Add missing codes to address_operand entry.
18108 2015-04-28  Richard Biener  <rguenther@suse.de>
18110         PR tree-optimization/65851
18111         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
18112         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
18113         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
18114         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
18115         (ccp_visit_phi_node): Adjust.
18116         (evaluate_stmt): For simplifications to SSA names return its
18117         lattice value if that isn't VARYING.  Return immediately when
18118         simplified to a constant.
18119         (visit_assignment): Adjust.
18120         (ccp_visit_stmt): Likewise.
18122 2015-04-28  Tom de Vries  <tom@codesourcery.com>
18124         PR tree-optimization/65818
18125         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
18126         evaluated.
18128 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18130         * calls.c (save_fixed_argument_area): Don't check
18131         ARGS_GROW_DOWNWARD with the preprocessor.
18132         (restore_fixed_argument_area): Likewise.
18133         (mem_overlaps_already_clobbered_arg_p): Likewise.
18134         (check_sibcall_argument_overlap): Likewise.
18135         (expand_call): Likewise.
18136         (emit_library_call_value_1): Likewise.
18137         (store_one_arg): Likewise.
18138         * function.c (assign_parms): Likewise.
18139         (locate_and_pad_parm): Likewise.
18140         (pad_to_arg_alignment): Likewise.
18141         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18143 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18145         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
18146         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
18147         * calls.c (save_fixed_argument_area): Don't chekc if
18148         ARGS_GROW_DOWNWARD is defined.
18149         (restore_fixed_argument_area): Likewise.
18150         (mem_overlaps_already_clobbered_arg_p): Likewise.
18151         (check_sibcall_argument_overlap): Likewise.
18152         (expand_call): Likewise.
18153         (emit_library_call_value_1): Likewise.
18154         (store_one_arg): Likewise.
18155         * function.c (assign_parms): Likewise.
18156         (locate_and_pad_parm): Likewise.
18157         (pad_to_arg_alignment): Likewise.
18158         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
18160 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18162         * defaults.h (gen_epilogue): New function.
18163         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
18164         defined.
18165         * cfgrtl.c (cfg_layout_finalize): Likewise.
18166         * df-scan.c: Likewise.
18167         * function.c (thread_prologue_and_epilogue_insns): Likewise.
18168         (reposition_prologue_and_epilogue_notes): Likewise.
18169         * reorg.c (find_end_label): Likewise.
18170         * toplev.c: Likewise.
18172 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18174         * bb-reorder.c (HAVE_return): Don't check if its undefined.
18175         * defaults.h (gen_simple_return): New function.
18176         (gen_simple_return): Likewise.
18177         (HAVE_return): Add default definition to false.
18178         (HAVE_simple_return): Likewise.
18179         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
18180         HAVE_return and HAVE_simple_return are defined.
18181         * function.c (gen_return_pattern): Likewise.
18182         (convert_jumps_to_returns): Likewise.
18183         (thread_prologue_and_epilogue_insns): Likewise.
18184         * reorg.c (find_end_label): Likewise.
18185         (dbr_schedule): Likewise.
18186         * shrink-wrap.c: Likewise.
18187         * shrink-wrap.h: Likewise.
18189 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18191         * defaults.h (EPILOGUE_USES): Add default definition of false.
18192         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
18193         * resource.c (init_resource_info): Likewise.
18195 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18197         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
18198         to false.
18199         * dwarf2out.c (field_byte_offset): REmove check if
18200         PCC_BITFIELD_TYPE_MATTERS is defined.
18201         * stor-layout.c (layout_decl): Likewise.
18202         (update_alignment_for_field): Likewise.
18203         (place_field): Likewise.
18205 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18207         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
18208         true.
18209         * regrename.c (check_new_reg_p): Remove check if
18210         HARD_REGNO_RENAME_OK is defined.
18211         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
18213 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18215         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
18216         * cse.c (fold_rtx): Likewise.
18217         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
18218         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
18219         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
18220         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
18221         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
18222         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
18223         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
18224         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
18225         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
18226         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
18227         * Likewise.
18228         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
18229         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
18230         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
18231         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
18232         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
18233         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
18234         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
18235         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
18236         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
18237         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
18238         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
18239         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
18240         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
18241         * doc/tm.texi: Regenerate.
18242         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
18243         either true or false.
18245 2015-04-27  Jeff Law  <law@redhat.com>
18247         PR tree-optimization/65217
18248         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
18249         of them has a single use, make sure it is the LHS of the implied
18250         copy.
18252 2015-04-28  Alan Modra  <amodra@gmail.com>
18254         PR target/65810
18255         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
18256         (offsettable_ok_by_alignment): Use minimum of decl and toc
18257         pointer alignment.  Replace dead code with assertion.
18258         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
18259         case if size exceeds toc pointer alignment.
18260         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
18261         (rs6000_emit_move): Likewise.
18262         * configure.ac: Add linker toc pointer alignment check.
18263         * configure: Regenerate.
18264         * config.in: Regenerate.
18266 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
18268         * config.gcc: Add h8300-*-linux.
18269         * config/h8300/linux.h: New.
18270         * config/h8300/t-linux: New.
18271         * config/h8300/h8300.c (h8300_option_override): Normal mode
18272         is not supported for h8300-*-linux.
18273         (h8300_file_start): Target priority change.
18274         (get_shift_alg): Likewise.
18275         (h8300_shift_need_scratch_p): Likewise.
18276         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
18277         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
18279 2015-04-27  Caroline Tice  <cmtice@google.com>
18281         * final.c (final_scan_insn):  Output cold_function_name as function
18282         type.
18283         * varasm.c (cold_function_name):  Make global.
18284         (assemble_start_function):  Re-set cold_function_name.
18285         (assemble_end_function): Output cold partition size.
18286         * varasm.h (cold_function_name):  Declare global.
18288 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
18290         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
18291         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
18292         constraint.
18293         (*movxi_internal_avx512f): Ditto.
18294         (define_split): Check for xmm16+, when splitting scalar float_extend.
18295         (*extendsfdf2_mixed): Use "v" constraint.
18296         (define_split): Check for xmm16+, when splitting scalar float_truncate.
18297         (*truncdfsf_fast_sse): Use "v" constraint.
18298         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
18299         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
18300         (define_peephole2): Check for xmm16+, when converting scalar
18301         float_truncate.
18302         (define_peephole2): Check for xmm16+, when converting scalar
18303         float_extend.
18304         (*fop_<mode>_comm_mixed): Use "v" constraint.
18305         (*fop_<mode>_comm_sse): Ditto.
18306         (*fop_<mode>_1_mixed): Ditto.
18307         (*sqrt<mode>2_sse): Ditto.
18308         (*ieee_s<ieee_maxmin><mode>3): Ditto.
18310 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18312         * combine.c (simplify_if_then_else): Use std::swap instead
18313         of manually swapping.
18314         (known_cond): Likewise.
18315         (simplify_comparison): Likewise.
18317 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
18319         PR target/64579
18320         * config/rs6000/htm.md: Remove all define_expands.
18321         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
18322         UNSPECV_HTM_TABORTWCI): Remove.
18323         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
18324         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
18325         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
18326         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
18327         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
18328         tabortwci_internal): Remove define_insns.
18329         (tabort<wd>c, tabort<wd>ci): New define_insns.
18330         (tabort): Use gpc_reg_operand.
18331         (tcheck): Remove operand.
18332         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
18333         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
18334         expected value.
18335         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
18336         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
18337         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
18338         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
18339         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
18340         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
18341         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
18342         (tcheck): Remove builtin argument.
18343         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
18344         not TARGET_64BIT.
18345         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
18346         tabortdc and tabortdci builtins when not in 64-bit mode.
18347         Modify code to handle the loss of the HTM define_expands.
18348         Emit code to copy the CR register to TARGET.
18349         (htm_init_builtins): Modify code to handle the loss of the HTM
18350         define_expands.
18351         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
18352         (RS6000_BTC_64BIT): Likewise.
18353         (RS6000_BTC_CR): New macro.
18354         * doc/extend.texi: Update documentation for htm builtins.
18356 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18358         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
18359         of manually swapping.
18360         (simplify_associative_operation): Likewise.
18361         (simplify_binary_operation): Likewise.
18362         (simplify_plus_minus): Likewise.
18363         (simplify_relational_operation): Likewise.
18364         (simplify_ternary_operation): Likewise.
18366 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
18368         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
18369         (xs_hi_nonmemory_operand): Remove error.
18370         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
18371         general_operand rather than xs_hi_general_operand.
18373 2015-04-27  Richard Biener  <rguenther@suse.de>
18375         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
18376         (record_equivalences_from_stmt): Valueize rhs.
18377         (record_equality): Canonicalize x and y order via
18378         tree_swap_operands_p.  Do not swap operands for same loop depth.
18380 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
18382         PR target/65296
18383         PR target/65895
18384         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
18385         Add hint how to use own spec file.
18387 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
18389         PR tree-optimization/65875
18390         * tree-vrp.c (update_value_range): If in is_new case setting
18391         old_vr to VR_VARYING, also set new_vr to it.  Remove
18392         old_vr->type == VR_VARYING test.
18393         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
18394         SSA_PROP_INTERESTING if update_value_range returned true,
18395         but new range is VR_VARYING.
18397 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18399         * combine.c (sign_extend_short_imm): New.
18400         (set_nonzero_bits_and_sign_copies): Use above new function for sign
18401         extension of src short immediate.
18402         (reg_nonzero_bits_for_combine): Likewise for tem.
18404 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18406         * stor-layout.c (self_referential_component_ref_p): New predicate.
18407         (copy_self_referential_tree_r): Use it.
18408         (self_referential_size): Punt for simple operations directly involving
18409         self-referential component references.
18410         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
18412 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
18414         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
18416 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
18418         * vec.h (vec): Make splice arguments const.  Update definitions
18419         accordingly.
18421 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
18423         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
18424         alternatives.
18426 2015-04-26  Tom de Vries  <tom@codesourcery.com>
18428         PR tree-optimization/65826
18429         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
18431 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
18433         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
18434         (*madd3<mode>): Ditto.
18435         (*msub4<mode>): Ditto.
18436         (*msub3<mode>): Ditto.
18437         (*nmadd4<mode>): Ditto.
18438         (*nmadd3<mode>): Ditto.
18439         (*nmadd4<mode>_fastmath): Ditto.
18440         (*nmadd3<mode>_fastmath): Ditto.
18441         (*nmsub4<mode>): Ditto.
18442         (*nmsub3<mode>): Ditto.
18443         (*nmsub4<mode>_fastmath): Ditto.
18444         (*nmsub3<mode>_fastmath): Ditto.
18446 2015-04-24  Jason Merrill  <jason@redhat.com>
18448         PR c++/50800
18449         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
18450         down when building TYPE_CANONICAL.
18451         (build_pointer_type_for_mode): Likewise.
18453 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
18455         * genrecog.c (validate_pattern): Check matching constraint refers
18456         to a lower numbered operand.
18458 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
18460         PR target/65849
18461         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
18462         save to independent variables use the Save attribute.  This will
18463         allow these options to be modified with the #pragma/attribute
18464         target support.
18465         (-mallow-movmisalign): Likewise.
18466         (-mallow-df-permute): Likewise.
18467         (-msched-groups): Likewise.
18468         (-malways-hint): Likewise.
18469         (-malign-branch-targets): Likewise.
18470         (-mvectorize-builtins): Likewise.
18471         (-msave-toc-indirect): Likewise.
18473         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
18474         can be set via the #pragma/attribute target support.
18475         (rs6000_opt_vars): Likewise.
18476         (rs6000_inner_target_options): If VSX was set, also set
18477         -mno-avoid-indexed-addresses.
18479 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18481         * config/arm/iterators.md (shiftable_ops): Rename to...
18482         (SHIFTABLE_OPS): ... This.  Update use in comments.
18483         (ior_xor): Rename to...
18484         (IOR_XOR): ... This.
18485         (vqh_ops): Rename to...
18486         (VQH_OPS): ... This.
18487         (vqhs_ops): Rename to...
18488         (VQHS_OPS): ... This.
18489         (rshifts): Rename to...
18490         (RSHIFTS): ... This.
18491         (returns): Rename to...
18492         (RETURNS): ... This.
18493         * config/arm/arm.md: Update uses of the above.
18494         * config/arm/neon.md: Likewise.
18496 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18498         * config.host (case ${host}): Add aarch64*-*-linux case.
18499         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
18500         fields to all the cores.
18501         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
18502         Add MCPU_MTUNE_NATIVE_SPECS.
18503         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
18504         field to all extensions.
18505         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
18506         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
18507         Adjust definition of AARCH64_OPT_EXTENSION.
18508         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
18509         (MCPU_MTUNE_NATIVE_SPECS): Define.
18510         * config/aarch64/driver-aarch64.c: New file.
18511         * config/aarch64/x-arch64: New file.
18512         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
18513         -mtune and -march.
18515 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
18516             Wei Mi  <wmi@google.com>
18518         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
18519         * config/i386/i386.c (extract_base_offset_in_addr): New function.
18520         (ix86_operands_ok_for_move_multiple): Ditto.
18521         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
18522         (movlpd/movhpd to movupd peephole2): Ditto.
18524 2015-04-24  Marek Polacek  <polacek@redhat.com>
18526         PR c/61534
18527         * input.h (from_macro_expansion_at): Define.
18529         PR c/63357
18530         * doc/invoke.texi: Update description of -Wlogical-op.
18532 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18534         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
18535         ternary operator in fprintf and harmonize spacing.
18537 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
18539         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
18540         Mark operand1 commutative.
18542 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
18544         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
18545         input operands in memory.
18546         (*vec_concatv2si_sse4_1): Ditto.
18547         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
18548         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
18549         register_operand.
18550         (vec_extract_hi_v32hi): Ditto.
18551         (vec_extract_hi_v64hi): Ditto.
18552         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
18554 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
18555             Steven Bosscher <steven@gcc.gnu.org>
18557         PR rtl-optimization/34503
18558         * cprop.c (cprop_reg_p): New.
18559         (hash_scan_set): Use above function to check if register can be
18560         propagated.
18561         (find_avail_set): Return up to two sets, one whose source is a
18562         register and one whose source is a constant.  Sets are returned in an
18563         array passed as parameter rather than as a return value.
18564         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
18565         sets returned by find_avail_set, starting with the one whose source is
18566         a constant. Use cprop_reg_p to check if register can be propagated.
18567         (do_local_cprop): Use cprop_reg_p to check if register can be
18568         propagated.
18569         (implicit_set_cond_p): Likewise.
18571 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
18573         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
18574         (sem_function::equals): IGNORED_NODES parameter is now unused;
18575         update call of equals_private.
18576         (sem_function::equals_private): Do not call equals_wpa; skip
18577         gimple body matching if there is no body.
18578         (sem_function::init): Add logic to hash tthunk info.
18579         (sem_function::parse): Also parse thunks.
18580         * ipa-icf.h (equals_private): Update declaration.
18582 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18584         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
18585         asterisk from name so this can be generated directly.
18586         (*altivec_stvx_<mode>_internal): Likewise.
18587         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
18588         that this is never called during or after reload/lra.
18589         (rs6000_frame_related): Remove split_reg
18590         argument and logic that references it.
18591         (emit_frame_save): Remove last parameter from call to
18592         rs6000_frame_related.
18593         (rs6000_emit_prologue): Remove last parameter from eight calls to
18594         rs6000_frame_related.  Force generation of stvx instruction for
18595         Altivec register saves.  Remove split_reg handling, which is no
18596         longer needed.
18597         (rs6000_emit_epilogue):  Force generation of lvx instruction for
18598         Altivec register restores.
18600 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18602         * config/rs6000/rs6000.opt (mcrypto): Change option description to
18603         match category changes in ISA 2.07B.
18605 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18607         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
18608         iterators.
18609         (cmp_op, cmp_type): New code attributes.
18610         (NEON_VCMP, NEON_VACMP): New int iterators.
18611         (cmp_op_unsp): New int attribute.
18612         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
18613         (neon_vceq<mode>): Delete.
18614         (neon_vc<cmp_op><mode>_insn): New pattern.
18615         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
18616         (neon_vcgeu<mode>): Delete.
18617         (neon_vcle<mode>): Likewise.
18618         (neon_vclt<mode>: Likewise.
18619         (neon_vcage<mode>): Likewise.
18620         (neon_vcagt<mode>): Likewise.
18621         (neon_vca<cmp_op><mode>): New define_expand.
18622         (neon_vca<cmp_op><mode>_insn): New pattern.
18623         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
18625 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
18627         * tree.h (attribute_value_equal): Declare.
18628         * tree.c (attribute_value_equal): Export.
18630 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
18632         * ipa-icf.c (sem_item::compare_attributes): New function.
18633         (sem_item::compare_referenced_symbol_properties): Compare variable
18634         attributes.
18635         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
18636         (sem_function::param_used_p): New function.
18637         (sem_function::equals_wpa): Fix attribute comparsion; match
18638         parameter type codes; do not compare paremter flags when
18639         they are not used; compare edge flags; compare indirect calls.
18640         (sem_item::update_hash_by_addr_refs): Hash reference type.
18641         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
18642         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
18643         reference use type.
18644         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
18645         * ipa-icf.h (compare_attributes, param_used_p): Declare.
18647 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
18649         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
18650         cleanup.
18651         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
18652         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
18653         (sem_item::compare_referenced_symbol_properties): New.
18654         (sem_item::hash_referenced_symbol_properties): New.
18655         (sem_item::compare_cgraph_references): Rename to ...
18656         (sem_item::compare_symbol_references): ... this one; use
18657         compare_referenced_symbol_properties.
18658         (sem_function::equals_wpa): Do not compare
18659         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
18660         DECL_IS_OPERATOR_NEW; compare pointer sizes.
18661         (sem_item::update_hash_by_addr_refs): Call
18662         hash_referenced_symbol_properties.
18663         (sem_item::update_hash_by_local_refs): Cleanup.
18664         (sem_function::merge): Do not mix up symbol properties.
18665         (sem_variable::equals_wpa): Use compare_symbol_references.
18666         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
18667         (sem_item::hash_referenced_symbol_properties): New.
18668         (sem_item::compare_symbol_references): New.
18669         (sem_item::compare_cgraph_references): Remove.
18671 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
18673         PR target/26702
18674         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
18675         Emit size of local.
18677 2015-04-23  Nick Clifton  <nickc@redhat.com>
18679         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
18680         ATTRIBUTE_UNUSED to x parameter.
18681         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
18683 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18685         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
18686         TARGET_CRYPTO to TARGET_P8_VECTOR>
18687         (crypto_vpermxor_<mode>): Likewise.
18688         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
18689         (BU_CRYPTO_3A): Likewise.
18690         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
18691         (BU_CRYPTO_OVERLOAD_3A): New #define.
18692         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
18693         (VPMSUMH): Likewise.
18694         (VPMSUMW): Likewise.
18695         (VPMSUMD): Likewise.
18696         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
18697         (VPERMXOR_V4SI): Likewise.
18698         (VPERMXOR_V8HI): Likewise.
18699         (VPERMXOR_V16QI): Likewise.
18700         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
18701         BU_CRYPTO_OVERLOAD_2A.
18702         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
18703         BU_CRYPTO_OVERLOAD_3A.
18704         * config/rs6000/rs6000.opt (mcrypto): Change description of
18705         option.
18707 2015-04-23  Richard Biener  <rguenther@suse.de>
18709         * passes.def: Remove copy propagation passes run directly after CCP.
18710         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
18711         SSA names.
18712         (ccp_visit_phi_node): Rework to handle first executable edge
18713         specially.
18715 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
18717         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
18718         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
18719         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
18720         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
18721         (thumb_legimitimize_reload_address): Remove.
18722         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
18723         Remove.
18724         (thumb_legimitimize_reload_address): Remove.
18726 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18728         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
18730 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18732         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
18733         MAX_LDM_STM_OPS.
18734         (store_multiple): Likewise.
18736 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18738         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
18739         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
18740         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
18741         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
18742         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
18743         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
18744         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
18745         Specify issue_rate value.
18746         (arm_issue_rate): Look up issue rate from tuning structs. Remove
18747         large switch statement.
18748         (arm_marvell_pj4_tune): New struct.
18749         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
18750         struct.
18752 2015-04-23  Richard Biener  <rguenther@suse.de>
18754         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
18755         (vect_find_last_store_in_slp_instance): Rename to ...
18756         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
18757         (vect_analyze_slp_cost_1): Use vector_load for constant defs
18758         and vec_construct for external defs when estimating prologue cost.
18759         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
18760         Compute costs here only when vectorizing loops.
18761         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
18762         have been determined.
18763         (vect_schedule_slp_instance): Simplify vectorized code placement
18764         and prepare for in-BB external defs.
18765         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
18766         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
18767         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
18768         guard.
18769         (vect_model_load_cost): Likewise.
18770         (vectorizable_store): Instead add it here.
18771         (vectorizable_load): Likewise.
18772         (vect_is_simple_use): Dump def type textually.
18774 2015-04-23  Richard Biener  <rguenther@suse.de>
18776         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
18777         * cfgloop.c (verify_loop_structure): Verify the root loop node.
18778         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
18779         instead of get_eh_region_from_lp_number.
18780         * loop-init.c (fix_loop_structure): If we removed a loop, reset
18781         the SCEV cache.
18783 2015-04-23  Anton Blanchard  <anton@samba.org>
18785         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
18786         need for -mprofile-kernel to save LR to stack.
18788 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18790         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
18791         adjustments.
18792         (insn_is_swappable_p): Return 1 for a convert from double to
18793         single precision when all of its uses are splats of BE element
18794         zero.
18796 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
18798         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
18800 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18802         PR target/65456
18803         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
18804         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
18805         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
18806         option.
18807         (rs6000_builtin_mask_for_load): Return 0 for targets with
18808         efficient unaligned VSX accesses so that the vectorizer will use
18809         direct unaligned loads.
18810         (rs6000_builtin_support_vector_misalignment): Always return true
18811         for targets with efficient unaligned VSX accesses.
18812         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
18813         stores on targets with efficient unaligned VSX accesses is almost
18814         always the same as the cost of an aligned load or store, so model
18815         it that way.
18816         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
18817         unaligned vectors if we have efficient unaligned VSX accesses.
18818         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
18819         undocumented option.
18821 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18823         Revert:
18824         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
18826         * config.gcc (LIBC_MUSL): New tm_defines macro.
18827         * config/linux.h (OPTION_MUSL): Define.
18828         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18829         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18830         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18832         * config/linux.opt (mmusl): New option.
18833         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18834         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18836         * configure: Regenerate.
18838 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
18840         * config.gcc (LIBC_MUSL): New tm_defines macro.
18841         * config/linux.h (OPTION_MUSL): Define.
18842         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
18843         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
18844         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
18846         * config/linux.opt (mmusl): New option.
18847         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
18848         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
18850         * configure: Regenerate.
18852 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
18854         * doc/invoke.texi (-fsanitize-sections): Update description.
18855         * asan.c (set_sanitized_sections): Parse incoming arg.
18856         (section_sanitized_p): Support wildcards.
18858 2015-04-22  Tom de Vries  <tom@codesourcery.com>
18860         PR tree-optimization/65823
18861         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
18862         equality between ap_copy and ap.
18864 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18866         PR target/47098
18867         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
18869 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18871         PR target/47122
18872         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
18874 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18876         PR target/55144
18877         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
18878         remove already contained t-files.
18880 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18882         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
18883         Remove unneeded forward declarations.
18884         (suitable_for_tail_call_opt_p): Commentary typo fix.
18886 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18888         * varasm.c (emit_bss): Remove redundant guard.
18890 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18892         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
18894 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
18896         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
18898 2015-04-22  Hale Wang  <hale.wang@arm.com>
18899             Terry Guo  <terry.guo@arm.com>
18901         PR rtl-optimization/64818
18902         * combine.c (can_combine_p): Don't combine user-specified
18903         register if it is in an asm input.
18905 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
18907         PR ipa/65076
18908         * passes.def (early_optimizations): Add pass_dse.
18910 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18912         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
18913         * reorg.c (redundant_insn): Remove ifdef
18914         INSN_REFERENCES_ARE_DELAYED.
18915         * resource.c (mark_referenced_resources): Likewise.
18917 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18919         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
18920         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
18921         * resource.c (mark_set_resources): Likewise.
18923 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18925         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
18926         * cfgcleanup.c (flow_find_cross_jump): Likewise.
18927         (flow_find_head_matching_sequence): Likewise.
18928         (try_head_merge_bb): Likewise.
18929         * combine.c (can_combine_p): Likewise.
18930         (try_combine): Likewise.
18931         (distribute_notes): Likewise.
18932         * df-problems.c (can_move_insns_across): Likewise.
18933         * final.c (final): Likewise.
18934         * gcse.c (insert_insn_end_basic_block): Likewise.
18935         * ira.c (find_moveable_pseudos): Likewise.
18936         * reorg.c (try_merge_delay_insns): Likewise.
18937         (fill_simple_delay_slots): Likewise.
18938         (fill_slots_from_thread): Likewise.
18939         * sched-deps.c (sched_analyze_2): Likewise.
18941 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18943         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
18944         PIC_OFFSET_TABLE_REGNUM.
18946 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18948         * alias.c (init_alias_target): Remove ifdef
18949         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
18950         * df-scan.c (df_insn_refs_collect): Likewise.
18951         (df_get_regular_block_artificial_uses): Likewise.
18952         (df_get_eh_block_artificial_uses): Likewise.
18953         (df_get_entry_block_def_set): Likewise.
18954         (df_get_exit_block_use_set): Likewise.
18955         * emit-rtl.c (gen_rtx_REG): Likewise.
18956         * ira.c (ira_setup_eliminable_regset): Likewise.
18957         * reginfo.c (init_reg_sets_1): Likewise.
18958         * regrename.c (rename_chains): Likewise.
18959         * reload1.c (reload): Likewise.
18960         (eliminate_regs_in_insn): Likewise.
18961         * resource.c (mark_referenced_resources): Likewise.
18962         (init_resource_info): Likewise.
18964 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18966         * defaults.h (MASK_RETURN_ADDR): New definition.
18967         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18968         MASK_RETURN_ADDR.
18970 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18972         * defaults.h (RETURN_ADDR_OFFSET): New definition.
18973         * except.c (expand_builtin_extract_return_addr): Remove ifdef
18974         RETURN_ADDR_OFFSET.
18975         (expand_builtin_frob_return_addr): Likewise.
18977 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18979         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
18980         (try_redirect_by_replacing_jump): Likewise.
18981         (rtl_tidy_fallthru_edge): Likewise.
18982         * combine.c (insn_a_feeds_b): Likewise.
18983         (find_split_point): Likewise.
18984         (simplify_set): Likewise.
18985         * cprop.c (cprop_jump): Likewise.
18986         * cse.c (cse_extended_basic_block): Likewise.
18987         * df-problems.c (can_move_insns_across): Likewise.
18988         * function.c (emit_use_return_register_into_block): Likewise.
18989         * haifa-sched.c (sched_init): Likewise.
18990         * ira.c (find_moveable_pseudos): Likewise.
18991         * loop-invariant.c (find_invariant_insn): Likewise.
18992         * lra-constraints.c (curr_insn_transform): Likewise.
18993         * postreload.c (reload_combine_recognize_const_pattern):
18994         * Likewise.
18995         * reload.c (find_reloads): Likewise.
18996         * reorg.c (delete_scheduled_jump): Likewise.
18997         (steal_delay_list_from_target): Likewise.
18998         (steal_delay_list_from_fallthrough): Likewise.
18999         (redundant_insn): Likewise.
19000         (fill_simple_delay_slots): Likewise.
19001         (fill_slots_from_thread): Likewise.
19002         (delete_computation): Likewise.
19003         * sched-rgn.c (add_branch_dependences): Likewise.
19005 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19007         * genconfig.c (main): Always define HAVE_cc0.
19008         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
19009         HAVE_cc0.
19010         * cfgcleanup.c (flow_find_cross_jump): Likewise.
19011         (flow_find_head_matching_sequence): Likewise.
19012         (try_head_merge_bb): Likewise.
19013         * cfgrtl.c (rtl_merge_blocks): Likewise.
19014         (try_redirect_by_replacing_jump): Likewise.
19015         (rtl_tidy_fallthru_edge): Likewise.
19016         * combine.c (do_SUBST_MODE): Likewise.
19017         (insn_a_feeds_b): Likewise.
19018         (combine_instructions): Likewise.
19019         (can_combine_p): Likewise.
19020         (try_combine): Likewise.
19021         (find_split_point): Likewise.
19022         (subst): Likewise.
19023         (simplify_set): Likewise.
19024         (distribute_notes): Likewise.
19025         * cprop.c (cprop_jump): Likewise.
19026         * cse.c (cse_extended_basic_block): Likewise.
19027         * df-problems.c (can_move_insns_across): Likewise.
19028         * final.c (final): Likewise.
19029         (final_scan_insn): Likewise.
19030         * function.c (emit_use_return_register_into_block): Likewise.
19031         * gcse.c (insert_insn_end_basic_block): Likewise.
19032         * haifa-sched.c (sched_init): Likewise.
19033         * ira.c (find_moveable_pseudos): Likewise.
19034         * loop-invariant.c (find_invariant_insn): Likewise.
19035         * lra-constraints.c (curr_insn_transform): Likewise.
19036         * optabs.c (prepare_cmp_insn): Likewise.
19037         * postreload.c (reload_combine_recognize_const_pattern):
19038         * Likewise.
19039         * reload.c (find_reloads): Likewise.
19040         (find_reloads_address_1): Likewise.
19041         * reorg.c (delete_scheduled_jump): Likewise.
19042         (steal_delay_list_from_target): Likewise.
19043         (steal_delay_list_from_fallthrough): Likewise.
19044         (try_merge_delay_insns): Likewise.
19045         (redundant_insn): Likewise.
19046         (fill_simple_delay_slots): Likewise.
19047         (fill_slots_from_thread): Likewise.
19048         (delete_computation): Likewise.
19049         (relax_delay_slots): Likewise.
19050         * sched-deps.c (sched_analyze_2): Likewise.
19051         * sched-rgn.c (add_branch_dependences): Likewise.
19053 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19055         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
19056         that is trivially ded on non cc0 targets.
19057         (simplify_set): Likewise.
19058         (mark_used_regs_combine): Likewise.
19059         * cse.c (new_basic_block): Likewise.
19060         (fold_rtx): Likewise.
19061         (cse_insn): Likewise.
19062         (cse_extended_basic_block): Likewise.
19063         (set_live_p): Likewise.
19064         * rtlanal.c (canonicalize_condition): Likewise.
19065         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
19067 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19069         * conditions.h: Define macros even if HAVE_cc0 is undefined.
19070         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
19071         * final.c: Likewise.
19072         * jump.c: Likewise.
19073         * recog.c: Likewise.
19074         * recog.h: Declare functions even when HAVE_cc0 is undefined.
19075         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
19077 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
19079         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
19080         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
19081         * builtins.c (expand_builtin): Remove check if
19082         EH_RETURN_DATA_REGNO is defined.
19083         * df-scan.c (df_bb_refs_collect): Likewise.
19084         (df_get_exit_block_use_set): Likewise.
19085         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
19086         * ira-lives.c (process_bb_node_lives): Likewise.
19087         * lra-lives.c (process_bb_lives): Likewise.
19089 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
19091         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
19092         FIRST_PSEUDO_REG): New.
19093         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
19094         (ARG_POINTER_REGNUM): Define to ARGP_REG.
19095         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
19096         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
19097         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
19098         (FIRST_INT_REG): New.
19099         (LAST_INT_REG): New.
19100         (FIRST_*_REG): Define using *_REG.
19101         (LAST_*_REG): Ditto.
19102         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
19103         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
19104         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
19106 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19108         * expmed.c: (synth_mult): Only assume overlapping
19109         shift with previous steps in alg_sub_t_m2 case.
19111 2015-04-21  Richard Biener  <rguenther@suse.de>
19113         PR tree-optimization/65650
19114         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
19115         transitions involving copies.
19116         (set_lattice_value): Adjust for copy lattice state.
19117         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
19118         if that doesn't dominate the merge point.
19119         (bit_value_unop): Adjust what we treat as varying mask.
19120         (bit_value_binop): Likewise.
19121         (bit_value_assume_aligned): Likewise.
19122         (evaluate_stmt): When we simplified to a SSA name record a copy
19123         instead of dropping to varying.
19124         (visit_assignment): Simplify.
19126         * gimple-match.h (gimple_simplify): Add another callback.
19127         * gimple-fold.c (fold_stmt_1): Adjust caller.
19128         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
19129         for the 2nd callback.
19130         * gimple-match-head.c (gimple_simplify): Add a callback that is
19131         used to valueize the stmt operands and use it that way.
19133 2015-04-21  Richard Biener  <rguenther@suse.de>
19135         PR tree-optimization/65788
19136         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
19138 2015-04-21  Richard Biener  <rguenther@suse.de>
19140         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
19141         vec_construct cost by vec_stmt_cost.
19143 2015-04-21  Richard Biener  <rguenther@suse.de>
19145         * cfghooks.h (create_basic_block): Replace with two overloads
19146         for RTL and GIMPLE.
19147         (split_block): Likewise.
19148         * cfghooks.c (split_block): Rename to ...
19149         (split_block_1): ... this.
19150         (split_block): Add two type-safe overloads for RTL and GIMPLE.
19151         (split_block_after_labels): Call split_block_1.
19152         (create_basic_block): Rename to ...
19153         (create_basic_block_1): ... this.
19154         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
19155         (create_empty_bb): Call create_basic_block_1.
19156         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
19157         split_block_after_labels.
19158         * omp-low.c (expand_parallel_call): Likewise.
19159         (expand_omp_target): Likewise.
19160         (simd_clone_adjust): Likewise.
19161         * tree-chkp.c (chkp_get_entry_block): Likewise.
19162         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
19163         create_basic_block overload.
19164         (cgraph_node::expand_thunk): Likewise.
19165         * tree-cfg.c (make_blocks): Likewise.
19166         (handle_abnormal_edges): Likewise.
19167         * tree-inline.c (copy_bb): Likewise.
19169 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19171         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
19172         New pattern.
19173         (*xor_one_cmplsidi3_ze): Likewise.
19175 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19177         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
19178         use df_remove_problem rather than manually removing problems, leaving
19179         holes in df->problems_in_order[].
19181 2015-04-21  Tom de Vries  <tom@codesourcery.com>
19183         PR tree-optimization/65802
19184         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
19186 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19188         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
19189         Increase to 128.
19190         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
19191         at '.'.  Assert that there's enough space for everything.
19193 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
19195         PR tree-optimization/64950
19196         Revert:
19197         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
19199         PR target/41089
19200         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
19201         as volatile.
19203 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
19205         PR rtl-optimization/64916
19206         * cfgcleanup.c (values_equal_p): New function.
19207         (can_replace_by): Use it.
19209 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
19211         PR c++/65801
19212         * doc/invoke.texi ([-Wnarrowing]): Update.
19214 2015-04-20  Jeff Law  <law@redhat.com>
19216         PR tree-optimization/65658
19217         * tree-ssa-threadupdate.c (redirection_block_p): Remove
19218         redundant test for GIMPLE_ASSIGN in last change.
19220 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
19222         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
19223         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
19224         (legitimize_tls_address): Ditto.
19225         (ix86_expand_move): Ditto.
19226         (ix86_expand_binary_operator): Remove reload_in_progress checks.
19227         (ix86_expand_unary_operator): Ditto.
19228         * config/i386/predicates.md (index_register_operand): Ditto.
19230 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
19232         * reorg.c (try_merge_delay_insns): Improve correctness checking
19233         for targets with multiple delay slots.
19235 2015-04-20  Jeff Law  <law@redhat.com>
19237         PR tree-optimization/65658
19238         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
19239         statements too.
19241 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
19243         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
19244         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
19245         Delete.
19247 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
19249         PR debug/65807
19250         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
19252 2015-04-20  Richard Biener  <rguenther@suse.de>
19254         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
19255         * gimple-fold.c (gimple_build_valueize): New function.
19256         (gimple_build): Always use gimple_build_valueize as valueize hook.
19258 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
19260         PR target/64134
19261         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
19262         and overwrite variable parts if <= 1/2 the elements are variable.
19264 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
19266         PR rtl-optimization/65805
19267         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
19268         Don't use difference of offset and previous offset if
19269         update_sp_offset is non-zero.
19270         (eliminate_regs_in_insn): Ditto.
19271         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
19272         lra_eliminate_regs_1 call.
19273         * lra-constraints.c (get_equiv_with_elimination): Ditto.
19275 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
19277         * hash-table.h: Remove version of hash_table that stored value_type *.
19278         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
19279         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
19280         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
19281         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
19282         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
19283         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
19284         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19285         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
19286         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
19287         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
19288         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
19289         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
19290         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
19291         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19292         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
19293         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
19295 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19296             Jakub Jelinek  <jakub@redhat.com>
19298         PR target/65787
19299         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
19300         subsequent SH_NONE operand does not overwrite an existing *special
19301         value.
19302         (adjust_extract): Handle case where a vec_extract operation is
19303         wrapped in a PARALLEL.
19305 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
19307         PR target/65780
19308         * config/i386/i386.c (ix86_binds_local_p): Define only if
19309         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
19311 2015-04-17  Jeff Law  <law@redhat.com>
19313         PR tree-optimization/47679
19314         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
19315         * tree-ssa-scopedtables.c: New file.
19316         * tree-ssa-scopedtables.h: New file.
19317         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
19318         (const_and_copies): Change name/type.
19319         (record_const_or_copy): Move into tree-ssa-scopedtables.c
19320         (record_const_or_copy_1): Similarly.
19321         (restore_vars_to_original_value): Similarly.
19322         (pass_dominator::execute): Create and destroy const_and_copies table.
19323         (thread_across_edge): Update passing of const_and_copies.
19324         (record_temporary_equivalence): Use method calls rather than
19325         manipulating const_and_copies directly.
19326         (record_equality, cprop_into_successor_phis): Similarly.
19327         (dom_opt_dom_walker::before_dom_children): Similarly.
19328         (dom_opt_dom_walker::after_dom_children): Similarly.
19329         (eliminate_redundant_computations): Similarly.
19330         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
19331         (record_temporary_equivalence): Likewise.
19332         (invalidate_equivalences): Likewise.
19333         (record_temporary_equivalences_from_phis): Update due to type
19334         change of const_and_copies.  Use method calls rather than
19335         manipulating the stack directly.
19336         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
19337         (thread_through_normal_block, thread_across_edge): Likewise.
19338         (thread_across_edge): Likewise.
19339         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
19340         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
19341         of equiv_stack.
19342         (identify_jump_threads): Update due to type change of equiv_stack.
19343         (finalize_jump_threads): Delete the equiv_stack when complete.
19345 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
19347         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
19348         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
19349         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
19351 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
19353         PR target/65535
19354         * config.gcc: Exit with a comment when we do not have a major version
19355         number for the FreeBSD target.
19357 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
19359         PR target/65689
19360         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
19361         maybe_allows_mem bitfields.
19362         (maybe_allows_none_start, maybe_allows_none_end,
19363         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
19364         maybe_allows_mem_end): New variables.
19365         (compute_maybe_allows): New function.
19366         (add_constraint): Use it to initialize maybe_allows_reg and
19367         maybe_allows_mem fields.
19368         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
19369         is_address constraints such that those that allow neither mem nor
19370         reg come first, then those that only allow reg but not mem, then
19371         those that only allow mem but not reg, then the rest.
19372         (write_allows_reg_mem_function): New function.
19373         (write_tm_preds_h): Call it.
19374         * stmt.c (parse_output_constraint, parse_input_constraint): Use
19375         the generated insn_extra_constraint_allows_reg_mem function
19376         instead of always setting *allows_reg = true; *allows_mem = true;
19377         for unknown extra constraints.
19379 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
19381         PR target/65780
19382         * output.h (default_binds_local_p_3): New.
19383         * varasm.c (default_binds_local_p_3): Make it public.  Take an
19384         argument to indicate if common symbol may be local.  If common
19385         symbol may be local, treat non-external variable as defined
19386         locally.
19387         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
19388         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
19389         * config/i386/i386.c (ix86_binds_local_p): New.
19390         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
19391         ix86_binds_local_p.
19393 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
19395         PR debug/65771
19396         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
19397         trying mem_loc_descriptor on XEXP (rtl, 0).
19399 2015-04-17  Martin Liska  <mliska@suse.cz>
19401         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19402         Release symbol_compare_collection.
19403         * ipa-reference.c: Add TODO that a vector should be released.
19405 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
19407         PR target/65296
19408         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
19409         to new AVR-LibC file layout (bug #44574).
19410         (*avrlibc_devicelib): Same.
19411         * config/avr/avr-mcus.def: Adjust comments.
19412         * config/avr/avr.opt (nodevicelib): Adjust help.
19414 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
19416         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
19418 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
19420         PR c++/64527
19421         * gimplify.c (gimplify_init_constructor): Always emit a
19422         side-effecting constructor.
19424 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19426         PR tree-optimization/64950
19427         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
19428         in cfun->curr_properties.
19429         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
19430         if we generate an IFN_VA_ARG.
19431         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
19432         function if PROP_gimple_lva is not set in src function.
19434 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19435             Michael Matz  <matz@suse.de>
19437         PR tree-optimization/64950
19438         * gimple-iterator.c (update_modified_stmts): Remove static.
19439         * gimple-iterator.h (update_modified_stmts): Declare.
19440         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
19441         (gimplify_va_arg_internal): New function.
19442         (gimplify_va_arg_expr): Use IFN_VA_ARG.
19443         * gimplify.h (gimplify_va_arg_internal): Declare.
19444         * internal-fn.c (expand_VA_ARG): New unreachable function.
19445         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
19446         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
19447         (expand_ifn_va_arg): New function.
19448         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
19449         (pass_stdarg::execute): Call expand_ifn_va_arg.
19450         (pass_data_lower_vaarg): New pass_data.
19451         (pass_lower_vaarg): New gimple_opt_pass.
19452         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
19453         (make_pass_lower_vaarg): New function.
19454         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
19455         properties_required field.
19456         * passes.def (all_passes): Add pass_lower_vaarg.
19457         * tree-pass.h (PROP_gimple_lva): Add define.
19458         (make_pass_lower_vaarg): Declare.
19460 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19462         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
19463         * calls.c (call_expr_flags): Same.
19465 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19467         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
19468         (pass_stdarg::execute): ... here.
19470 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19471             Michael Matz  <matz@suse.de>
19473         * tree-cfg.c (make_blocks_1): Factor out of ...
19474         (make_blocks): ... here.
19475         (make_edges_bb): Factor out of ...
19476         (make_edges): ... here.
19477         (gimple_find_sub_bbs): New function.
19478         * tree-cfg.h (gimple_find_sub_bbs): Declare.
19480 2015-04-17  Tom de Vries  <tom@codesourcery.com>
19482         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
19484 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
19486         * asan.c (set_sanitized_sections): New function.
19487         (section_sanitized_p): Ditto.
19488         (asan_protect_global): Optionally sanitize user-defined
19489         sections.
19490         * asan.h (set_sanitized_sections): Declare new function.
19491         * common.opt (fsanitize-sections): New option.
19492         * doc/invoke.texi (-fsanitize-sections): Document new option.
19493         * opts-global.c (handle_common_deferred_options): Handle new
19494         option.
19496 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
19498         PR debug/65771
19499         * dwarf2out.c (loc_list_from_tree): Return NULL
19500         for DEBUG_EXPR_DECL.
19502 2015-04-17  Christian Bruel  <christian.bruel@st.com>
19504         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
19505         same attributes.
19507 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
19509         * ira-color.c (setup_left_conflict_sizes_p): Do not process
19510         node itself when computing left conflict subnode size.
19512 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
19514         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
19515         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
19516         *fop_<mode>_1_sse using enabled attribute.  Use
19517         register_mixssei387nonimm_operand operand 1 predicate. Change
19518         alternative 3 constraints from "x" to "v".
19520 2015-04-16  Richard Biener  <rguenther@suse.de>
19522         PR tree-optimization/65774
19523         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
19524         bit-value tracking on.
19526 2015-04-16  Richard Biener  <rguenther@suse.de>
19528         PR tree-optimization/64277
19529         * tree-vrp.c (check_array_ref): Fix anti-range handling,
19530         simplify upper bound handling.
19531         (search_for_addr_array): Simplify.
19532         (check_array_bounds): Handle ADDR_EXPRs here.
19533         (check_all_array_refs): Simplify.
19535 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
19537         * config/i386/i386.c (print_reg): Rewrite function.
19539 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19541         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
19542         Invert the condition.
19544 2015-04-16  Renlin Li  <renlin.li@arm.com>
19546         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
19547         simplifications for UNSIGNED_FLOAT.
19549 2015-04-16  Nick Clifton  <nickc@redhat.com>
19551         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
19552         MUL_UNINIT.
19553         (enum rl78_cpu_type): New.
19554         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
19555         (umulhi3_shift_virt): Remove m constraint from operand 1.
19556         (umulqihi3_virt): Likewise.
19557         * config/rl78/rl78.c (rl78_option_override): Add code to process
19558         -mcpu and -mmul options.
19559         (rl78_alloc_physical_registers): Add code to handle divhi and
19560         divsi valloc attributes.
19561         (set_origin): Likewise.
19562         * config/rl78/rl78.h (RL78_MUL_G14): Define.
19563         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
19564         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
19565         __RL78_Gxx__.
19566         (ASM_SPEC): Pass -mcpu on to assembler.
19567         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
19568         (mulqi3_rl78): Likewise.
19569         (mulhi3_g13): Likewise.
19570         (mulhi3): Generate the G13 or G14 versions of the insn directly.
19571         (mulsi3): Likewise.
19572         (mulhi3_g14): Add clobbers of AX and BC.
19573         (mulsi3_g14): Likewise.
19574         (mulsi3_g13): Likewise.
19575         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
19576         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
19577         * config/rl78/rl78.opt (mmul): Initialise value to
19578         RL78_MUL_UNINIT.
19579         (mcpu): New option.
19580         (m13, m14, mrl78): New option aliases.
19581         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
19582         (MULTILIB_DIRNAMES): Add g13 and g14.
19583         * doc/invoke.texi: Document -mcpu and -mmul options.
19585 2015-04-16  Richard Biener  <rguenther@suse.de>
19587         * tree-ssa-ccp.c (likely_value): See if we have operands that
19588         are marked as never simulate again and return CONSTANT in this
19589         case.
19590         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
19591         not have any operands that will be simulated again as
19592         not being simulated again.
19594 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
19596         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
19597         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
19598         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
19599         attribute.
19600         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
19601         enabled attribute.
19602         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
19603         *float<SWI48:mode><MODEF:mode>2_sse.
19604         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
19605         enabled attribute.
19606         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
19607         enabled attribute.
19609 2015-04-15  Tom de Vries  <tom@codesourcery.com>
19611         PR other/65487
19612         * function.c (push_dummy_function): New function.
19613         (init_dummy_function_start): Use push_dummy_function.
19614         (pop_dummy_function): New function.  Factored out of ...
19615         (expand_dummy_function_end): ... here.
19616         * function.h (push_dummy_function, pop_dummy_function): Declare.
19617         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
19618         pop_dummy_function.
19619         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
19621 2015-04-15  Jeff Law  <law@redhat.com>
19623         PR tree-optimization/47679
19624         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
19625         need for forward declaration in upcoming changes.
19626         (record_conditions, record_edge_info): Likewise.
19628         PR rtl-optimization/42522
19629         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
19630         SIGN_EXTRACT as a whole object rather than simplifying
19631         its operand.
19633 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
19635         PR ipa/65765
19636         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
19637         and GIMPLE_PREDICT use break instead of return true. For
19638         GIMPLE_EH_DISPATCH, compare dispatch region.
19640 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
19642         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
19643         details about the implementation.  Make clear preference for
19644         __atomic builtins.  Reduce possibility of future change.
19646 2015-04-15  Nick Clifton  <nickc@redhat.com>
19648         * config/rx/rx.opt (mallow-string-insns): New option.
19649         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
19650         builtin if string instructions are denied.
19651         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
19652         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
19653         appropriate.
19654         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
19655         * config/rx/rx.md (movstr): Enable pattern only if string
19656         instructions are allowed.
19657         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
19658         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
19659         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
19660         (MULTILIB_DIRNAMES): Add no-strings.
19661         * doc/invoke.texi: Document -mno-allow-string-insns.
19663 2015-04-15  Alan Modra  <amodra@gmail.com>
19665         PR target/65408
19666         PR target/58744
19667         PR middle-end/36043
19668         * calls.c (load_register_parameters): Don't load past end of
19669         mem unless suitably aligned.
19671 2015-04-15  Nick Clifton  <nickc@redhat.com>
19673         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
19674         decrement instruction as being frame related.
19675         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
19676         based addresses.
19677         If zero extending a function address enclose the operation in
19678         %code(...).
19679         (rl78_preferred_reload_class): New function.
19680         (TARGET_PREFERRED_RELOAD_CLASS): Define.
19681         * config/rl78/rl78.md: Remove useless constraints in expanders.
19682         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
19683         (mulhi3_rl78): Likewise.
19684         (mulhi3_g13): Likewise.
19685         (mulsi3_rl78): Likewise.
19686         (es_addr): Move to before the multiply patterns.
19688 2015-04-15  Alan Modra  <amodra@gmail.com>
19690         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
19691         and sequence_stack.  Add seq.
19692         (seq_stack): Delete.
19693         * function.c (prepare_function_start): Don't access x_last_insn.
19694         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
19695         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
19696         * emit_rtl.c (start_sequence, push_topmost_sequence,
19697         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
19698         sequence accessors.
19699         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
19700         remove_insn): Likewise.  Simplify.
19701         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
19702         and pop_topmost_sequence.
19703         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
19704         debug insns.
19705         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
19707 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
19709         PR target/65729
19710         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
19711         the assertiion.
19713 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
19715         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
19716         (LEGACY_INT_REGNO_P): Ditto.
19717         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
19718         (ANY_MASK_REG_P): Remove.
19719         (BND_REG_P): Rename from ANY_BND_REG_P.
19720         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
19721         legacy integer registers.  Do not handle MMX_REG_P in a special way.
19722         Merge 64byte and 32byte SSE handling.
19724 2015-04-14  Nick Clifton  <nickc@redhat.com>
19726         * expr.c (expand_assignment): Force an address offset computation
19727         into a register before changing its mode.
19728         (expand_expr_real_1): Likewise.
19730 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
19732         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
19733         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
19734         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
19735         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
19736         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
19737         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
19738         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
19739         and __aarch64_vget_lane_any.
19741 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
19743         PR rtl-optimization/65761
19744         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
19745         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
19747 2015-04-14  Richard Biener  <rguenther@suse.de>
19749         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
19750         (graphite_can_represent_scev): Use POINTER_TYPE_P.
19752 2015-04-14  Richard Biener  <rguenther@suse.de>
19754         PR tree-optimization/65758
19755         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
19756         against -1.
19757         (ccp_lattice_meet): Likewise.
19758         (bit_value_unop): Likewise.
19759         (bit_value_binop): Likewise.
19760         (bit_value_assume_aligned): Likewise.
19762 2015-04-14  Christian Bruel  <christian.bruel@st.com>
19764         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
19765         function.
19767 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
19769         PR tree-optimization/63387
19770         * match.pd ((x unord x) | (y unord y) -> (x unord y),
19771         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
19773 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
19775         * config/i386/predicates.md (any_QIreg_operand): Rename from
19776         q_regs_operand.  Do not process subregs.
19777         (QIreg_operand): Use QI_REGNO_P predicate.
19778         (ext_QIreg_operand): Ditto.
19779         (ext_register_operand): Ditto.
19780         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
19781         (AND splitters): Ditto.
19782         (AND with -65536 splitter): Add SWI48 mode for operand 0.
19783         (AND with -256 splitter): Use any_QIreg_operand predicate and
19784         SWI248 mode for operand 0.
19785         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
19786         mode for operand 0.
19787         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
19789 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
19791         * doc/plugins.texi: Rewrite first introductory paragraph.
19793 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19795         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
19796         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
19798 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19800         * ipa-profie.c (ipa_profile): Check number of parameters
19801         and possible polymorphic call targets before
19802         devirtualizing.
19804 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
19806         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
19807         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
19809 2015-04-13  Richard Biener  <rguenther@suse.de>
19811         PR tree-optimization/65204
19812         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
19813         takens for bit-CCP.
19815 2015-04-13  Richard Biener  <rguenther@suse.de>
19817         PR target/65660
19818         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
19819         and cond_not_taken_branch_cost to 4 and 2.
19820         (bdver2_cost): Likewise.
19821         (bdver3_cost): Likewise.
19822         (bdver4_cost): Likewise.
19824 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19826         * hash-table.h (hash_table constructor): Add mem stats.
19827         (alloc_entries): Likewise.
19829 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19831         * ipa-cp.c (ipcp_driver): Relase prev_edge.
19832         * passes.c (execute_one_pass): Only add transform if pass has one.
19834 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
19836         * config/i386/i386.c (ix86_option_override_internal): Don't set
19837         -fprefetch-loop-arrays if optimizing for size.
19839 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
19840             Gerald Pfeifer  <gerald@pfeifer.com>
19842         * doc/contrib.texi (Contributors): Add Martin Jambor and
19843         Michael Matz.
19845 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
19847         * BASE-VER: Set to 6.0.0.
19849         PR tree-optimization/65747
19850         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
19851         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
19853 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19855         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
19856         sentence.  Improve grammar.
19858 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
19860         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
19862 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19864         PR ipa/65743
19865         * ipa-inline-transform.c (speculation_removed): Remove static var.
19866         (check_speculations): New function.
19867         (clone_inlined_nodes): Do not check spculations.
19868         (inline_call): Call check_speculations.
19869         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
19870         consider non-invariants.
19872 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
19873             Martin Liska  <mliska@suse.cz>
19875         PR ipa/65722
19876         * ipa-icf.c (sem_item::compare_cgraph_references): function and
19877         variable can not match.
19878         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
19879         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
19881 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
19883         PR tree-optimization/65735
19884         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
19885         Remove visited_phis argument, add visited_bbs, avoid recursing into the
19886         same bb rather than just into the same phi node.
19887         (thread_through_normal_block): Adjust caller.
19889 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19891         * doc/contrib.texi (Contributors): Add Ira Rosen.
19893 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
19895         * gcov.c (find_source): Fix miswording in error message.
19896         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
19897         (ix86_expand_sse_comi_round): Fix typo in error message.
19899 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
19901         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
19903 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
19905         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
19907 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19909         PR target/65710
19910         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
19911         Print bad_spills_num and insn_pseudos_num.
19913 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19915         PR target/65694
19916         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
19917         when creating +1 values for SImode.
19919 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
19921         PR target/65729
19922         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
19923         assert.
19925 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
19926             Iain Sandoe  <iain@codesourcery.com>
19928         PR target/65351
19929         * configure: Regenerate.
19931 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19933         PR target/65671
19934         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
19936 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
19938         * doc/contrib.texi (Contributors): Add John Marino.
19940 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19942         PR tree-optimization/65709
19943         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
19944         TREE_TYPE (TREE_TYPE (t)).
19946 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
19948         PR target/65710
19949         * lra-int.h (lra_bad_spill_regno_start): New.
19950         * lra.c (lra_bad_spill_regno_start): New.
19951         (lra): Set up lra_bad_spill_regno_start.  Set up
19952         lra_constraint_new_regno_start unconditionally.
19953         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
19954         spill preferences.
19956 2015-04-09  Marek Polacek  <polacek@redhat.com>
19957             Jakub Jelinek  <jakub@redhat.com>
19959         PR middle-end/65554
19960         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
19961         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
19962         of STRIP_NOPS.
19964 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
19966         PR rtl-optimization/65693
19967         * combine.c (is_parallel_of_n_reg_sets): Move outside of
19968         #ifndef HAVE_cc0.
19970 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
19972         PR target/65296
19973         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
19974         device specs file if "device-specs%s" didn't resolve to a path.
19976 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
19978         PR target/65676
19979         * config/i386/i386.c (fixup_modeless_constant): New.
19980         (ix86_expand_args_builtin): Fixup modeless constant operand.
19981         (ix86_expand_round_builtin): Ditto.
19982         (ix86_expand_special_args_builtin): Ditto.
19983         (ix86_expand_builtin): Ditto.
19985 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
19987         PR target/65693
19988         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
19989         any pow2 integer in between 2 and 0x80000000U inclusive.
19991 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
19993         PR rtl-optimization/65693
19994         * combine.c (is_parallel_of_n_reg_sets): Change first argument
19995         from an rtx_insn * to an rtx.
19996         (try_combine): Adjust both callers.  Use it once more.
19998 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20000         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
20001         (chkp_make_static_const_bounds): Search existing
20002         symbol by assembler name.  Use make_decl_one_only.
20003         (chkp_get_zero_bounds_var): Remove node search which
20004         is now performed in chkp_make_static_const_bounds.
20005         (chkp_get_none_bounds_var): Likewise.
20007 2015-04-08  Michael Witten  <mfwitten@gmail.com>
20009         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
20010         to an example.
20012 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20014         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
20016 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
20018         * doc/extend.texi (__sync Builtins): Fix grammar.
20020 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20022         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
20024 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20026         * varasm.c (emit_local): Move definition of align.
20028 2015-04-08  Julian Brown  <julian@codesourcery.com>
20030         * config/nvptx/mkoffload.c (process): Support variable mapping.
20032 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
20034         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
20035         alpha_links **.
20036         (alpha_write_one_linkage): Correct typo.
20038 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20040         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
20042 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
20044         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
20046 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
20048         * tree-chkp.h (chkp_insert_retbnd_call): New.
20049         * tree-chkp.c (chkp_insert_retbnd_call): New.
20050         * ipa-split.c (insert_bndret_call_after): Remove.
20051         (split_function): Use chkp_insert_retbnd_call.
20052         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
20053         bounds for instrumented functions.
20055 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
20057         PR ipa/65540
20058         * calls.c (initialize_argument_information): When producing tail
20059         call also turn SSA_NAMES passed by references to original PARM_DECLs
20061 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
20063         PR target/65648
20064         * lra-remat.c (do_remat): Process input and non-input insn
20065         registers separately.
20067 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
20069         PR debug/65678
20070         * valtrack.c (debug_lowpart_subreg): New function.
20071         (dead_debug_insert_temp): Use it.
20073         PR middle-end/65680
20074         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
20075         into signed HOST_WIDE_INT the same as negative bit_offset.
20077 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
20079         * ipa-comdats.c (ipa_comdats): Visit all thunks
20080         to set proper comdat group.
20082 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20084         PR target/65489
20085         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
20086         on constants for NEON VSTRUCT modes.
20088 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
20089             Iain Sandoe  <iain@codesourcery.com>
20091         PR target/65351
20092         * configure: Regenerate.
20094 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
20096         PR target/65614
20097         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
20098         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
20099         that LFD is used to load double constants instead of LFS.  Add
20100         defaults for all costs structures.  Add comments for missing
20101         initialization fields.
20102         (size32_cost): Likewise.
20103         (size64_cost): Likewise.
20104         (rs64a_cost): Likewise.
20105         (mpccore_cost): Likewise.
20106         (ppc403_cost): Likewise.
20107         (ppc405_cost): Likewise.
20108         (ppc440_cost): Likewise.
20109         (ppc476_cost): Likewise.
20110         (ppc601_cost): Likewise.
20111         (ppc603_cost): Likewise.
20112         (ppc604_cost): Likewise.
20113         (ppc604e_cost): Likewise.
20114         (ppc620_cost): Likewise.
20115         (ppc630_cost): Likewise.
20116         (ppccell_cost): Likewise.
20117         (ppc750_cost): Likewise.
20118         (ppc7450_cost): Likewise.
20119         (ppc8540_cost): Likewise.
20120         (ppce300c2c3_cost): Likewise.
20121         (ppce500mc_cost): Likewise.
20122         (ppce500mc64_cost): Likewise.
20123         (ppce5500_cost): Likewise.
20124         (ppce6500_cost): Likewise.
20125         (titan_cost): Likewise.
20126         (power4_cost): Likewise.
20127         (power6_cost): Likewise.
20128         (power7_cost): Likewise.
20129         (power8_cost): Likewise.
20130         (ppca2_cost): Likewise.
20131         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
20133         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
20134         instead of XXLOR to copy SFmode to clear out dirty bits created
20135         when SFmode denormals are generated.
20136         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
20137         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
20139 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
20141         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
20142         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
20143         * config/aarch64/aarch64-tune.md: Regenerate.
20145 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
20147         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
20148         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
20149         * config/arm/arm-cores.def (exynos-m1): New core.
20150         * config/arm/arm-tune.md: Regenerate.
20151         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
20152         * config/arm/bpabi.h: Likewise.
20154 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
20156         * ipa-cp (set_single_call_flag): Remove too
20157         restrictive assert.
20159 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
20161         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
20162         GOMP_offload_unregister from the destructor.
20164 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
20166         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
20167         flags for instrumentation thunk.
20168         (chkp_produce_thunks): Likewise.
20170 2015-04-05  Martin Liska  <mliska@suse.cz>
20172         PR ipa/65665
20173         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
20174         has computed data structure.
20175         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20177 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
20179         * invoke.texi (inline-unit-growth): Increase growth to 20%
20180         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
20182 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
20184         PR target/65647
20185         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
20186         value checking.
20187         (lra_rematerialization_iter): New.
20188         * lra.c (lra): Initialize lra_rematerialization_iter.
20189         Stop updating lra_constraint_new_regno_start after switching of
20190         inheritance and rematerialization.
20191         * lra-remat.c (lra_rematerialization_iter): New.
20192         (lra_remat): Add printing pass iteration.  Do rematerialization
20193         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
20195 2015-04-04  Richard Biener  <rguenther@suse.de>
20197         PR tree-optimization/64909
20198         PR tree-optimization/65660
20199         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
20200         to take a cost vector for scalar iteration cost.
20201         (vect_get_single_scalar_iteration_cost): Likewise.
20202         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
20203         Compute the scalar iteration cost into a cost vector.
20204         (vect_get_known_peeling_cost): Use the scalar cost vector to
20205         account for the cost of the peeled iterations.
20206         (vect_estimate_min_profitable_iters): Likewise.
20207         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
20208         Likewise.
20210 2015-04-04  Alan Modra  <amodra@gmail.com>
20212         PR target/65576
20213         PR target/65240
20214         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
20215         0.0 constant unless TARGET_VSX.
20216         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
20217         alternative.
20219 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
20221         PR ipa/65654
20222         * ipa-inline-transform.c (inline_call): Skip sanity check to work
20223         around the ICE
20225 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
20227         PR ipa/65655
20228         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
20229         speculative indirect edges to avoid ordering issue.
20231 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
20233         PR ipa/65076
20234         * ipa-inline.c (edge_badness): Add combined size to the denominator.
20236 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
20238         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
20239         TYPE_ARTIFICIAL on the .omp_data* types.
20241 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
20243         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
20244         instrumentation thunks.
20246 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
20248         * config/i386/i386.c (ix86_expand_call): Avoid nested
20249         PARALLEL in returned call value.
20251 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
20253         * lto-cgraph.c (input_cgraph_1): Always link instrumented
20254         assembler name with original one.
20256 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
20258         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
20260 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
20262         Revert parts of r216820.
20263         * config/i386/i386.md (movqi_internal): Correct type calculation
20264         for alternatives 3 and 5.
20266 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
20268         PR preprocessor/61977
20269         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
20270         predefine __vector/__bool/__pixel macros nor context sensitive
20271         macros for CLK_ASM.
20272         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
20274 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
20276         * config/pa/pa.c (pa_output_move_double): Directly handle register
20277         indexed memory operand.  Simplify handling of scaled register indexed
20278         memory operands.
20280 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
20282         PR driver/65444
20283         * config/i386/linux-common.h (MPX_SPEC): New.
20284         (CHKP_SPEC): Add MPX_SPEC.
20285         * doc/invoke.texi (-fcheck-pointer-boudns): Document
20286         possible issues with '-z bndplt' support in linker.
20288 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
20290         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
20291         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
20292         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
20293         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
20294         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
20296 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
20298         * config/i386/sync.md (UNSPEC_MOVA): Remove.
20299         (atomic_load<mode>): Change operand 0 predicate to
20300         nonimmediate_operand and fix up the destination when needed.
20301         Use UNSPEC_LDA.
20302         (atomic_loaddi_fpu): Use UNSPEC_LDA.
20303         (atomic_store<mode>): Change operand 1 predicate to
20304         nonimmendate_operand and move the source to register when needed.
20305         Use UNSPEC_STA.
20306         (atomic_store<mode>_1): Use UNSPEC_STA.
20307         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
20308         Fix moves from memory operand.  Use UNSPEC_STA.
20310 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20312         * expmed.c (strict_volatile_bitfield_p): Check that the access will
20313         not cross a MODESIZE boundary.
20314         (store_bit_field, extract_bit_field): Added assertions in the
20315         strict volatile bitfields code path.
20317 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
20319         PR target/65624
20320         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
20321         Increase args array size by one to avoid buffer overflow.
20323 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
20325         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
20326         split_part.
20327         * ipa-inline.c (edge_badness): Add wrapper penalty.
20328         (sum_callers): Move up.
20329         (inline_small_functions): Set single_caller.
20330         * ipa-inline.h (inline_summary): Add single_caller.
20331         * ipa-split.c (split_function): Set split_part.
20332         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
20333         * cgraph.h (cgraph_node): Add split_part.
20335 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
20337         PR target/58945
20338         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
20339         Do not split operands 0 and operands 2 to halfmode.
20340         (atomic_compare_and_swap<mode>): Update for
20341         atomic_compare_and_swap<dwi>_doubleword changes.
20343 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
20345         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
20346         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
20347         no caching is done.
20349 2015-03-31  Martin Liska  <mliska@suse.cz>
20351         PR ipa/65557
20352         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
20353         has already filled up function summary.
20354         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
20356 2015-03-31  Richard Biener  <rguenther@suse.de>
20358         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
20359         of types.
20361 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20363         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
20364         nested functions.
20365         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
20366         (s390_asm_output_function_label): Adapt to new signature of
20367         s390_function_num_hotpatch_hw
20368         Optimise the code generating assembler output.
20369         Add comments to assembler file.
20371 2015-03-31  Richard Biener  <rguenther@suse.de>
20373         PR middle-end/65626
20374         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
20375         of the noreturn call so it is last and cleanup_control_flow_bb
20376         can do the CFG part.
20378 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
20380         PR target/65531
20381         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
20382         same_comdat_group for external symbols.
20383         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
20384         infinite same_comdat_group traversal loop.
20386 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
20388         PR plugins/61176
20389         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
20390         automatically to $headers.
20392 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
20394         PR ipa/65610
20395         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
20396         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
20397         function.
20398         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
20399         Use it.
20400         * ipa-prop.c (param_type_may_change_p): Likewise.
20401         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
20402         (remove_unused_scope_block_p): Add in_ctor_dtor_block
20403         argument.  Before inlining, preserve
20404         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
20405         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
20406         recursive calls.
20407         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
20409 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
20411         PR ipa/65076
20412         * ipa-inline.c (edge_badness): Base denominator on callee's
20413         grwoth squared.
20415 2015-03-27  Martin Jambor  <mjambor@suse.cz>
20417         PR ipa/65478
20418         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
20419         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
20420         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
20421         node_calling_single_call.
20422         * ipa-cp.c (count_callers): New function.
20423         (set_single_call_flag): Likewise.
20424         (initialize_node_lattices): Count callers and set single_flag_call if
20425         necessary.
20426         (incorporate_penalties): New function.
20427         (good_cloning_opportunity_p): Use it, dump new flags.
20428         (propagate_constants_topo): Set node_within_scc flag if appropriate.
20429         * doc/invoke.texi (ipa-cp-recursion-penalty,
20430         ipa-cp-single-call-pentalty): Document.
20432 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
20434         PR ipa/65588
20435         * symtab.c (symtab_node::get_partitioning_class): Register vars
20436         are duplicated.
20437         * varpool.c (symbol_table::output_variables) Do not assemble unefined
20438         decls for non-symbols.
20440 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
20442         PR target/65248
20443         * output.h (default_binds_local_p_2): New.
20444         * varasm.c (default_binds_local_p_2): Renamed to ...
20445         (default_binds_local_p_3): This.  Don't return true on protected
20446         data symbol if protected data may be external.
20447         (default_binds_local_p): Use default_binds_local_p_3.
20448         (default_binds_local_p_1): Likewise.
20449         (default_binds_local_p_2): New.
20450         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
20451         default_binds_local_p_2 if TARGET_MACHO is undefined.
20453 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
20455         PR target/65593
20456         * config/i386/i386.c (legitimize_pic_address): If base
20457         is SYMBOL_REF or LABEL_REF using %rip addressing, force
20458         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
20460 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
20462         PR target/65531
20463         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
20464         comdat groups.
20466 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
20468         PR ipa/65600
20469         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
20470         of optimized out indirect call.
20471         (redirect_to_unreachable): Always build symbol table node for
20472         BUILT_IN_UNREACHABLE
20474 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
20476         PR target/65407
20477         * ira-costs.c (record_reg_classes): Process all constraint string
20478         containing 0-9.
20480 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
20482         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
20483         memory_operand.
20485         PR target/65052
20486         * config/c6x/constraints.md (S3): New constraint.
20487         * config/c6x/c6x.md (real_jump): Use it.
20489 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20491         PR middle-end/65595
20492         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
20493         do redirection if the call is not optimized out.
20495 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
20497         PR target/65495
20498         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
20499         (fchkp-check-incomplete-type): Add LTO.
20500         (fchkp-zero-input-bounds-for-main): Likewise.
20501         (fchkp-first-field-has-own-bounds): Likewise.
20502         (fchkp-narrow-bounds): Likewise.
20503         (fchkp-narrow-to-innermost-array): Likewise.
20504         (fchkp-use-static-bounds): Likewise.
20505         (fchkp-use-static-const-bounds): Likewise.
20506         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20508 2015-03-27  Marek Polacek  <polacek@redhat.com>
20510         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
20512 2015-03-27  Marek Polacek  <polacek@redhat.com>
20514         PR sanitizer/65583
20515         * ubsan.c (ubsan_create_edge): New function.
20516         (instrument_bool_enum_load): Call it.
20517         (instrument_nonnull_arg): Likewise.
20518         (instrument_nonnull_return): Likewise.
20519         (instrument_object_size): Likewise.
20521 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20523         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
20524         auto_vec.
20526 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20528         PR lto/65536
20529         * lto-streamer.h (class lto_location_cache): New.
20530         (struct data_in): Add location_cache.
20531         (lto_input_location): Update prototype.
20532         (stream_input_location_now): New.
20533         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
20534         pointer to location.
20535         (stream_input_location): Update.
20536         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
20537         (warn_odr): Apply location cache before warning.
20538         (lto_input_location): Update prototype.
20539         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
20540         Use stream_input_location_now.
20541         * lto-streamer-in.c (lto_location_cache::current_cache): New static
20542         variable.
20543         (lto_location_cache::cmp_loc): New function.
20544         (lto_location_cache::apply_location_cache): New function.
20545         (lto_location_cache::accept_location_cache): New function.
20546         (lto_location_cache::revert_location_cache): New function.
20547         (lto_location_cache::input_location): New function.
20548         (lto_input_location): Do location caching.
20549         (stream_input_location_now): New function.
20550         (input_eh_region, input_struct_function_base): Use
20551         stream_input_location_now.
20552         (lto_data_in_create): use new.
20553         (lto_data_in_delete): Use delete.
20554         * tree-streamer-in.c (unpack_ts_block_value_fields,
20555         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
20556         lto_input_ts_exp_tree_pointers): Update for cached location api.
20558 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20560         PR ipa/65076
20561         * passes.def: Add pass_nothrow.
20562         * ipa-pure-const.c: (pass_data_nothrow): New.
20563         (pass_nothrow): New.
20564         (pass_nothrow::execute): New.
20565         (make_pass_nothrow): New.
20566         * tree-pass.h (make_pass_nothrow): Declare.
20568 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20570         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
20571         edge to change by speculation resolution or redirection.
20572         (edge_set_predicate): Likewise.
20573         (inline_summary_t::duplicate): Likewise.
20574         (remap_edge_summaries): Likewise.
20576 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20578         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
20579         New macros.
20580         (can_inline_edge_p): Relax option matching for always inline functions.
20582 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
20584         PR target/65561
20585         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
20586         Check operand 4 and operand 0 for equality.
20587         (avx512f_vextract<shuffletype>32x4_1_maskm):
20588         Check operand 6 and operand 0 for equality.
20589         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
20590         for equality.
20591         (vec_extract_hi_<mode>_maskm): Ditto.
20593 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20595         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
20596         dead calls back to live.
20597         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
20598         cross check to ...
20599         (cgraph_node::verify_node): ... here; verify only callee edges,
20600         not caller.
20601         * cif-code.def (CILK_SPAWN): New code.
20603 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
20605         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
20606         (edge_set_predicate): Use it to mark unreachable edges.
20607         (inline_summary_t::duplicate): Remove unnecesary code.
20608         (remap_edge_summaries): Likewise.
20609         (dump_inline_summary): Report contains_cilk_spawn.
20610         (compute_inline_parameters): Compute contains_cilk_spawn.
20611         (inline_read_section, inline_write_summary): Stream
20612         contains_cilk_spawn.
20613         * ipa-inline.c (can_inline_edge_p): Do not touch
20614         DECL_STRUCT_FUNCTION that may not be available;
20615         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
20616         remove check for callee_fun->can_throw_non_call_exceptions and
20617         replace it by optimization attribute check; check for flag_exceptions.
20618         * ipa-inline-transform.c (inline_call): Maintain
20619         DECL_FUNCTION_PERSONALITY
20620         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
20622 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
20624         PR tree-optimization/65551
20625         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
20626         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
20628 2015-03-26  Richard Biener  <rguenther@suse.de>
20630         PR middle-end/65555
20631         * tree-cfg.c (verify_gimple_call): Do not require a call to
20632         have no LHS if it wasn't recognized as control altering yet.
20634 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
20636         PR tree-optimization/64715
20637         * passes.def: Add another instance of pass_object_sizes before ccp1.
20638         * tree-object-size.c (pass_object_sizes::execute): In
20639         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
20640         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
20641         __bos result and the computed constant.  Remove redundant
20642         checks, obsoleted by gimple_call_builtin_p test.
20644         * var-tracking.c (variable_tracking_main_1): Don't track
20645         variables for targetm.no_register_allocation targets.
20647 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
20649         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
20650         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
20652 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
20654         PR target/65569
20655         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
20656         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
20657         0.0 is correctly setup.
20658         (extenddftf2_internal): Likewise.
20660 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
20662         PR tree-optimization/65177
20663         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
20664         (bb_in_bbs): New.
20665         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
20666         edges not adjacent on the path to the original code.
20668 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
20670         PR bootstrap/65537
20671         * doc/install.texi (Building a native compiler): Document new
20672         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
20673         configuration assumes that the host supports the linker plugin.
20675 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
20677         PR target/65508
20678         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
20679         chain for generated call.
20681 2015-03-25  Richard Biener  <rguenther@suse.de>
20683         * passes.c (pass_manager::execute_early_local_passes): Guard
20684         execution of pass_chkp_instrumentation_passes with
20685         flag_check_pointer_bounds.
20686         (pass_chkp_instrumentation_passes::gate): Likewise.
20688 2015-03-25  Martin Liska  <mliska@suse.cz>
20690         PR tree-optimization/65538
20691         * symbol-summary.h (function_summary::~function_summary):
20692         Relese memory for allocated summaries.
20693         (function_summary::release): New function.
20695 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
20697         PR lto/65515
20698         * lto-streamer-out.c (DFS::worklist): New struct.
20699         (DFS::worklist_vec): New data member.
20700         (DFS::next_dfs_num): Remove.
20701         (DFS::DFS): Rewritten using worklist instead of recursion,
20702         using most of code from DFS::DFS_write_tree.
20703         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
20704         pass it to DFS_write_tree calls.
20705         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
20706         quick initial checks push it into worklist_vec and return.
20708 2015-03-25  Richard Biener  <rguenther@suse.de>
20710         PR middle-end/65519
20711         * genmatch.c (expr::gen_transform): Re-write to avoid
20712         using gimple_build.
20714 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
20716         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
20718 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
20720         * config/arm/arm.opt (print_tune_info): New option.
20721         * config/arm/arm.c (arm_print_tune_info): New function.
20722         (arm_file_start): Call arm_print_tune_info.
20723         * config/arm/arm-protos.h (struct tune_params): Add comment.
20724         * doc/invoke.texi (@item -mprint-tune-info): New item.
20725         (-mtune): mention it in ARM Option Summary.
20727 2015-03-25  DJ Delorie  <dj@redhat.com>
20729         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
20730         correct clause.
20732 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
20733             Martin Liska  <mliska@suse.cz>
20735         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
20736         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
20737         (sem_item::add_type): New function.
20738         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
20739         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
20740         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
20741         (sem_function::equals_wpa): Fix typo.
20742         * ipa-icf.h (sem_item::add_type): New function.
20743         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
20744         order.
20746 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
20748         PR tree-optimization/65533
20749         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
20750         with swapped operands, call vect_free_slp_tree on
20751         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
20752         vector.
20754 2015-03-24  Richard Biener  <rguenther@suse.de>
20756         PR middle-end/65517
20757         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
20758         for fixup if necessary.
20760 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
20762         * doc/extend.texi (Function Attributes): Add @cindex entries
20763         for all attributes and regularize their format.  Delete text
20764         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
20765         information about "eightbit_data", "tiny_data", and "model"
20766         variable attributes to the Variable Attributes section.  Fix
20767         some obvious typos and copy-editing issues.
20768         (Variable Attributes, Type Attributes): Likewise add/fix
20769         @cindex entries for all attributes.
20771 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
20773         PR target/65523
20774         * tree-chkp.c (chkp_build_returned_bound): Ignore
20775         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
20777 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
20779         PR target/65505
20780         * config/sh/predicates.md (simple_mem_operand,
20781         displacement_mem_operand): Add test for reg.
20782         (short_displacement_mem_operand): Test for displacement_mem_operand
20783         before invoking sh_disp_addr_displacement.
20784         * config/sh/constraints.md (Sdd, Sra): Simplify.
20785         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
20786         Remove redundant displacement_mem_operand tests.
20788 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
20790         PR target/65296
20791         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
20792         the same -mmcu=MCU more than once.
20794 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
20796         PR bootstrap/65522
20797         * ipa-devirt.c: Remove duplicate demangle.h include.
20799         PR target/65504
20800         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
20801         on the pseudo.
20802         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
20803         REG_POINTER on *destptr after adjusting it for prologue size.
20805         PR ipa/65521
20806         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
20807         ultimate_alias_target ()->order ints instead of
20808         ultimate_alias_target () pointers.
20810 2015-03-23  Richard Biener  <rguenther@suse.de>
20812         PR tree-optimization/65518
20813         * tree-vect-stmts.c (vectorizable_load): Reject single-element
20814         interleaving cases we generate absymal code for.
20816 2015-03-23  Richard Biener  <rguenther@suse.de>
20818         PR tree-optimization/65494
20819         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
20820         matches here.
20821         (vect_analyze_slp_instance): But do that here, always and once.
20823 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20825         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
20826         adding T or multiplying by T+1 and subracting T.
20828 2015-03-22  Jeff Law  <law@redhat.com>
20830         PR rtl-optimization/64317
20831         * Makefile.in (OBJS): Add gcse-common.c
20832         * gcse.c: Include gcse-common.h
20833         (struct modify_pair_s): Move structure definition to gcse-common.h
20834         (compute_transp): Move function to gcse-common.c.
20835         (canon_list_insert): Similarly.
20836         (record_last_mem_set_info): Break out some code and put it into
20837         gcse-common.c.  Call into the new common code.
20838         (compute_local_properties): Pass additional arguments to compute_transp.
20839         * postreload-gcse.c: Include gcse-common.h and df.h
20840         (modify_mem_list_set, blocks_with_calls): New variables.
20841         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
20842         (get_bb_avail_insn): Pass in the expression index too.
20843         (alloc_mem): Allocate memory for the new bitmaps and lists.
20844         (free_mem): Free memory for the new bitmaps and lists.
20845         (insert_expr_in_table): Record a bitmap index for each entry we
20846         add to the table.
20847         (record_last_mem_set_info): Call into common code in gcse-common.c.
20848         (get_bb_avail_insn): If no available insn was found in the requested
20849         BB.  If BB has a single predecessor, see if the expression is
20850         transparent in BB and available in that single predecessor.
20851         (compute_expr_transp): New wrapper for compute_transp.
20852         (eliminate_partially_redundant_load): Pass expression's bitmap_index
20853         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
20854         (gcse_after_reload_main): If there are elements in the hash table,
20855         then compute transparency for all the elements in the hash table.
20856         * gcse-common.h: New file.
20857         * gcse-common.c: New file.
20859 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
20861         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
20862         as an adjective.
20863         (System Headers): Likewise.
20864         (Ifdef): Likewise.
20865         (Traditional macros): Likewise.
20866         (Invocation): Likewise.
20867         (Option Index): Likewise.
20868         * doc/cppopts.texi (-M): Likewise.
20869         (-finput-charset): Likewise.
20870         (--help): Likewise.
20871         * doc.invoke.texi (AVR Options): Likewise.
20872         (V850 Options): Likewise.
20874 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
20876         PR ipa/65475
20877         * ipa-devirt.c: Include demangle.h
20878         (odr_type_d): Add field rtti_broken.
20879         (odr_subtypes_equivalent_p): Do not require name to match.
20880         (compare_virtual_tables): Fix typo; if type already has ODR violation,
20881         bypass the tests; be ready for function referneces in vtables that are
20882         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
20883         (warn_odr): Give up for nameless types.
20884         (warn_types_mismatch): Report mismatch in mangled names;
20885         report mismatch in anonymous namespaces; look into component types to
20886         give useful error; report when mismatch is dragged in from other ODR
20887         type.
20888         (odr_types_equivalent_p): Match types for being polymorphic; avoid
20889         duplicated diagnostics.
20890         (add_type_duplicate): Reorder checks so more informative ones come
20891         first; fix typo; do not output "the extra base is defined here" when
20892         we did not warn.
20893         (BINFO_N_BASE_BINFOS): Relax sanity check.
20895 2015-03-22  Martin Liska  <mliska@suse.cz>
20896             Jakub Jelinek  <jakub@redhat.com>
20898         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
20899         masks that can potentially include a builtin.
20900         (ix86_add_new_builtins): Introduce fast filter for isa values
20901         that cannot trigger builtin inclusion.
20903 2015-03-22  Martin Liska  <mliska@suse.cz>
20905         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
20906         (sem_item::update_hash_by_local_refs): Likewise.
20907         (sem_variable::get_hash): Empty line is fixed.
20908         (sem_item_optimizer::execute): Include adding of hash references.
20909         (sem_item_optimizer::update_hash_by_addr_refs): New function.
20910         (sem_item_optimizer::build_hash_based_classes): Use local hash.
20911         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
20912         (sem_item::update_hash_by_local_refs): Likewise.
20914 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20916         PR ipa/65502
20917         * ipa-comdats.c (enqueue_references): Walk through thunks.
20918         (ipa_comdats): Likewise.
20919         (set_comdat_group_1): New function.
20921 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
20923         PR ipa/65475
20924         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
20925         non-polymorphic
20927 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
20928             Gerald Pfeifer  <gerald@pfeifer.com>
20930         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
20932 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
20933             Sandra Loosemore  <sandra@codesourcery.com>
20935         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
20936         function parameter declaration.
20937         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
20938         Update arguments to nios2_adjust_call_address().
20939         (sibcall_internal): Rename from *sibcall.
20940         (sibcall_value_internal): Rename from *sibcall_value.
20941         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
20942         (nios2_large_got_address): Add target temp reg parameter.
20943         (nios2_got_address): Adjust call to nios2_large_got_address, add
20944         force_reg around it.
20945         (nios2_load_pic_address): Add target temp reg parameter, replace call
20946         to nios2_got_address with corresponding code.
20947         (nios2_legitimize_constant_address): Update call to
20948         nios2_load_pic_address.
20949         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
20950         to use temp reg for PIC loading purposes.
20951         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
20952         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
20953         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
20955 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20957         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
20958         usage of "the @option{...}".
20959         (-Wopenmp-simd): Likewise.
20960         (-fsanitize-recover): Likewise.
20961         (-fsanitize-undefined-trap-on-error): Likewise.
20962         (-flto): Likewise.
20963         (tracer-dynamic-coverage-feedback): Likewise.
20964         (reorder-block-duplicate-feedback): Likewise.
20965         (loop-unroll-jam-size): Likewise.
20966         (-B): Likewise.
20967         (-I-): Likewise.
20968         (-mabs=legacy): Likewise.
20969         (-mupper-regs-df): Likewise.
20970         (-mupper-regs-sf): Likewise.
20971         (-mpointers-to-nested-functions): Likewise.
20973 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20975         * doc/extend.texi (Cilk Plus Builtins): Add markup.
20977 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
20979         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
20980         additional index entries and cross-references.
20981         (-fchkp-check-incomplete-type): Likewise.
20982         (-fchkp-first-field-has-own-bounds): Likewise.
20983         (-fchkp-narrow-to-innermost-array): Likewise.
20984         (-fchkp-use-fast-string-functions): Likewise.
20985         (-fchkp-use-nochk-string-functions): Likewise.
20986         (-fchkp-use-static-const-bounds): Likewise.
20987         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
20988         (-fchkp-instrument-marked-only): Likewise.
20989         (-fchkp-use-wrappers): Likewise.
20990         (-static-libmpx): Likewise.
20991         (-static-libmpxwrappers): Likewise.
20992         * doc/extend.texi (bnd_legacy): Likewise.
20993         (bnd_instrument): Likewise.
20994         (bnd_variable_size): Likewise.
20995         (Pointer Bounds Checker builtins): Likewise.
20997 2015-03-21  Tom de Vries  <tom@codesourcery.com>
20999         PR tree-optimization/65458
21000         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
21001         * cgraph.h (cgraph_node): Add parallelized_function field.
21002         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
21003         (input_overwrite_node): Read parallelized_function field.
21004         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
21005         parallelized_function on cgraph_node for child_fn.
21006         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
21007         Remove include of gt-tree-parloops.h.
21008         (parallelized_functions): Remove static variable.
21009         (parallelized_function_p): Rewrite using parallelized_function field of
21010         cgraph_node.
21011         (create_loop_fn): Remove adding to parallelized_functions.
21012         * Makefile.in (GTFILES): Remove tree-parloops.c
21014 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
21016         PR rtl-optimization/64366
21017         * lra.c (lra_update_insn_regno_info): Consider regs in
21018         CALL_INSN_FUNCTION_USAGE memory.
21020 2015-03-20  Richard Biener  <rguenther@suse.de>
21022         PR middle-end/64715
21023         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
21024         for type comparison and gcc_checking_assert.
21025         (chrec_fold_plus_poly_poly): Likewise.
21026         (chrec_fold_multiply_poly_poly): Likewise.
21027         (chrec_convert_1): Likewise.
21028         * gimplify.c (gimplify_expr): Remove premature folding of
21029         &X + CST to &MEM[&X, CST].
21031 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
21033         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
21034         already is final.
21035         (ipa_inline): Recompute inline_failed codes.
21036         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
21037         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
21038         CIF_FINAL_ERROR.
21040 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
21042         PR rtl-optimization/60851
21043         * recog.c (constrain_operands): Accept a pseudo register before reload
21044         for LRA enabled targets.
21046 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21048         PR target/65240
21049         * config/rs6000/predicates.md (easy_fp_constant): Remove special
21050         -ffast-math handling that kept non-0 constants live in the RTL
21051         until reload.  Remove logic testing the number of instructions it
21052         took to create a constant in a GPR that was never used, due to a
21053         test for soft-float earlier.
21054         (memory_fp_constant): Delete, no longer used.
21056         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
21057         alternatives for loading non-0 constants into GPRs for hard
21058         floating point that is no longer needed due to changes in
21059         easy_fp_constant.  Add support for loading 0.0 into GPRs.
21060         (mov<mode>_hardfloat32): Likewise.
21061         (mov<mode>_hardfloat64): Likewise.
21062         (mov<mode>_64bit_dm): Likewise.
21063         (movtd_64bit_nodm): Likewise.
21064         (pre-reload move FP constant define_split): Delete define_split,
21065         since it is no longer used.
21066         (extenddftf2_internal): Remove GHF constraints that are not valid
21067         for extenddftf2.
21069 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
21071         PR rtl-optimization/63491
21072         * lra-constraints.c (check_and_process_move): Use src instead of
21073         sreg.  Remove some dead code.
21075 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
21077         PR ipa/65380
21078         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
21079         (sem_variable::merge): Likewise.
21081 2015-03-19  Martin Liska  <mliska@suse.cz>
21083         PR ipa/65465
21084         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
21085         all fields of cgraph_thunk_info.
21087 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
21089         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
21090         clone instrumented thunks.
21092 2015-03-19  Richard Biener  <rguenther@suse.de>
21094         Revert
21095         2015-03-10  Richard Biener  <rguenther@suse.de>
21097         PR middle-end/63155
21098         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21099         * tree-ssa-coalesce.c: Include timevar.h.
21100         (attempt_coalesce): Handle graph being NULL.
21101         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21102         Split out abnormal coalescing to ...
21103         (perform_abnormal_coalescing): ... this function.
21104         (coalesce_ssa_name): Perform abnormal coalescing without computing
21105         live/conflict.
21106         (verify_ssa_coalescing_worker): New function.
21107         (verify_ssa_coalescing): Likewise.
21109 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21110             Jakub Jelinek  <jakub@redhat.com>
21112         PR sanitizer/65400
21113         * tsan.c (instrument_gimple): Clear tail call flag on
21114         calls.
21116 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
21118         PR sanitizer/65400
21119         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
21120         call in the return bb.
21121         (find_split_points): Add RETURN_BB argument, don't call
21122         find_return_bb.
21123         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
21124         if true append TSAN_FUNC_EXIT internal call after the call to
21125         the split off function.
21126         (execute_split_functions): Call find_return_bb here.
21127         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
21128         Adjust find_split_points and split_function calls.
21130 2015-03-18  DJ Delorie  <dj@redhat.com>
21132         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
21133         (iorqi3_virt): Likewise.
21135 2015-03-18  Tom de Vries  <tom@codesourcery.com>
21137         * tree-parloops.c (parallelize_loops): Make static.
21138         * tree-parloops.h (parallelize_loops): Remove extern declaration.
21140 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
21142         PR middle-end/64491
21143         Revert:
21144         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
21146         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
21147         condition would be removed due to undefined behaviour.
21149 2015-03-18  Martin Liska  <mliska@suse.cz>
21151         PR ipa/65432
21152         * cgraph.c (cgraph_node::get_create): Remove unnecessary
21153         xstrdup_for_dump wrapper.
21154         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
21155         sem_item::name.
21156         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
21157         with xstrdup_for_dump.
21158         (sem_variable::equals): Likewise.
21159         (sem_item_optimizer::read_section): Use symtab_node::name instead of
21160         sem_item::name.
21161         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
21162         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
21163         symtab_node::asm_name with xstrdup_for_dump.
21164         (congruence_class::dump): Use symtab_node::name instead of
21165         sem_item::name.
21166         * ipa-icf.h (symtab_node::name): Remove.
21167         (symtab_node::asm_name): Likewise.
21169 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
21171         PR tree-optimization/65450
21172         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
21173         function.
21174         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
21175         it instead of duplicate_ssa_name_ptr_info.
21177         PR target/65222
21178         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
21180 2015-03-18  Richard Biener  <rguenther@suse.de>
21182         * tree-data-ref.h (struct access_matrix): Remove.
21183         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
21184         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
21185         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
21186         (am_vector_index_for_loop): Likewise.
21187         (struct data_reference): Remove access_matrix member.
21188         (DR_ACCESS_MATRIX): Remove.
21189         (lambda_vector_new): Add comment.
21190         (lambda_matrix_new): Use XOBNEWVEC.
21192 2015-03-18  Richard Biener  <rguenther@suse.de>
21194         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
21195         (pass_ch::execute): Cleanup the CFG only if we did sth.
21196         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
21198 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21200         * expmed.c (synth_mult): Use std::swap instead of manually
21201         swapping algorithms.
21203 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
21205         PR target/65078
21206         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
21208 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
21210         PR target/65296
21211         * config/avr/avr.opt (-nodevicelib): New option.
21212         * doc/invoke.texi (AVR Options): Document it.
21213         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
21214         libgcc.a, libc.a, libm.a.
21215         * config/avr/specs.h: Same.
21216         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
21217         which don't (directly) depend on the device.  Print more help.
21218         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
21219         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
21220         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
21221         case of an error.
21222         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
21223         for specs file name.
21224         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
21225         * config/avr/avr-mcus.def: Adjust initializers and comments.
21227 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
21229         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
21230         DECL_ONE_ONLY to check if decl is one only.
21231         * ipa-split.c (consider_split): Limit splitt of one only functions.
21233 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
21235         PR tree-optimization/65427
21236         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
21237         functions.
21238         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
21240 2015-03-16  Marek Polacek  <polacek@redhat.com>
21242         * cgraph.h (add_new_static_var): Remove declaration.
21243         * varpool.c (add_new_static_var): Remove function.
21245 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
21247         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
21248         instead of vec<tree> * with vec_alloc and release for args.
21249         Adjust all users.
21251         PR middle-end/65431
21252         * omp-low.c (delete_omp_context): Only splay_tree_delete
21253         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
21254         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
21256 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
21258         PR sanitizer/64820
21259         * cfgexpand.c (align_base): New function.
21260         (alloc_stack_frame_space): Call it.
21261         (expand_stack_vars): Align prev_frame to be sure
21262         data->asan_vec elements aligned properly.
21264 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
21266         PR middle-end/65409
21267         * expr.c (store_field): Do not do a direct block copy if the source is
21268         a PARALLEL with BLKmode.
21270 2015-03-16  Tom de Vries  <tom@codesourcery.com>
21272         PR middle-end/65414
21273         Revert:
21274         2015-03-12  Tom de Vries  <tom@codesourcery.com>
21276         PR rtl-optimization/64895
21277         * lra-lives.c (check_pseudos_live_through_calls): Use
21278         actual_call_used_reg_set instead of call_used_reg_set, if available.
21280 2015-03-16  Alan Modra  <amodra@gmail.com>
21282         PR target/63150
21283         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
21284         Modify Z->r bswapdi splitter to use dest in place of scratch.
21285         In r->Z and Z->r bswapdi splitter rename word_high, word_low
21286         to word1, word2 and rearrange logic to suit.
21287         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
21288         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
21289         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
21290         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
21291         early clobber.
21293 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
21295         PR tree-optimization/65369
21296         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
21297         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
21298         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
21300         PR tree-optimization/65418
21301         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
21302         are casts in the first PLUS_EXPR operand, ensure tbias and
21303         *totallowp are in the inner type.
21305         PR rtl-optimization/65401
21306         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
21307         argument.  If true, adjust_address_nv of x with big-endian
21308         correction for the mode widening to GET_MODE (y).
21309         (make_field_assignment): Don't do MEM mode widening here.
21310         Use MEM_P instead of GET_CODE == MEM.
21312 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
21314         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
21315         the external decls.
21317 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21319         PR target/64600
21320         * config/arm/arm.c (arm_gen_constant, AND case): Use
21321         ARM_SIGN_EXTEND when constructing AND mask.
21323 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21325         * graph.c (print_graph_cfg): Make function names visible and append
21326         parenthesis to it.  Also make groups of basic blocks belonging to the
21327         same function visible.
21329 2015-03-12  Richard Biener  <rguenther@suse.de>
21331         PR middle-end/44563
21332         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
21333         to avoid quadratic behavior with inline expansion splitting blocks.
21334         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
21335         with the successor if the predecessor will be merged with it.
21336         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
21337         entry block with its successor.
21339 2015-03-13  Richard Biener  <rguenther@suse.de>
21341         PR middle-end/44563
21342         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
21343         (cleanup_tree_cfg_1): Do not call it.
21344         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
21345         (fixup_noreturn_call): Mark the stmt as control altering.
21346         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
21347         here.
21348         (pass_data_fixup_cfg): Produce a dump file.
21349         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
21350         (need_noreturn_fixup): New global.
21351         (pass_dominator::execute): Fixup queued noreturn calls.
21352         (optimize_stmt): Queue calls that became noreturn for fixup.
21353         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
21354         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
21355         (el_to_fixup): New global.
21356         (eliminate_dom_walker::before_dom_childre): Queue calls that
21357         became noreturn for fixup.
21358         (eliminate): Fixup queued noreturn calls.
21359         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
21360         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
21361         (substitute_and_fold_dom_walker::before_dom_children): Queue
21362         alls that became noreturn for fixup.
21363         (substitute_and_fold): Fixup queued noreturn calls.
21365 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
21367         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
21368         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
21369         are building; for methods check ODR type of class they belong to if
21370         they may lead to a polymorphic call.
21371         (sem_function::compare_polymorphic_p): Be bit smarter about testing
21372         when function may lead to a polymorphic call.
21373         (sem_function::compare_type_list): Remove.
21374         (sem_variable::equals): Update use of compatible_types_p.
21375         (sem_variable::parse_tree_refs): Remove.
21376         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
21377         cdtor.
21378         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
21379         matching here.
21380         (func_checker::compatible_polymorphic_types_p): Break out from ...
21381         (unc_checker::compatible_types_p): ... here.
21382         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
21383         Declare.
21384         (unc_checker::compatible_types_p): Update.
21385         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
21386         Remove.
21388 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21390         PR rtl-optimization/65235
21391         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
21392         When first element of vec_concat is const_int, calculate its size
21393         using second element.
21395 2015-03-12  Richard Biener  <rguenther@suse.de>
21397         PR middle-end/65270
21398         * fold-const.c (operand_equal_p): Fix ordering of resetting
21399         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
21401 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21403         * config/s390/s390.c (s390_reorg): Move code to output nops after label
21404         to s390_reorg ().
21405         (s390_asm_output_function_label): Likewise.
21406         * config/s390/s390.c (s390_asm_output_function_label):
21407         Fix function label alignment with -mhtopatch.
21408         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
21409         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
21410         ("nop_2_byte"): New define_insn.
21411         ("nop_4_byte"): Likewise.
21412         ("nop_6_byte"): Likewise.
21413         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
21414         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
21416 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
21418         PR target/65103
21419         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
21420         register.
21422 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
21424         PR target/65044
21425         * toplev.c (process_options): Restrict Pointer Bounds Checker
21426         usage with Address Sanitizer.
21428 2015-03-12  Richard Biener  <rguenther@suse.de>
21430         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
21431         to split on.
21432         * omp-low.c (expand_omp_taskreg): Split block before removing
21433         the stmt.
21434         (expand_omp_target): Likewise.
21435         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
21436         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
21437         stmt to split_block.
21439 2015-03-12  Tom de Vries  <tom@codesourcery.com>
21441         PR rtl-optimization/64895
21442         * lra-lives.c (check_pseudos_live_through_calls): Use
21443         actual_call_used_reg_set instead of call_used_reg_set, if available.
21445 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
21447         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
21448         (cgraph_node::remove): Likewise.
21449         (cgraph_node::get_untransformed_body): Likewise.
21450         * varpool.c (varpool_node::remove): Likewise.
21451         (varpool_node::get_constructor): Add sanity check.
21453 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
21455         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
21456         old GCC versions.
21457         (-fabi-compat-version): Likewise.
21458         (-ffriend-injection): Likewise.
21459         (-Wdeclaration-after-statement): Likewise.
21460         (-fomit-frame-pointer): Likewise.
21461         (-ftree-coalesce-inlined-vars): Likewise.
21462         (-fvisibility=): Likewise.
21463         * doc/extend.texi (Typeof): Likewise.
21464         (Zero Length): Likewise.
21465         (Escaped Newlines): Likewise.
21466         (Compound Literals): Likewise.
21467         (Function Attributes): Likewise.
21468         (Label Attributes): Likewise.
21469         (Type Attributes): Likewise.
21470         (Function Names): Likewise.
21471         (Other Builtins): Likewise.
21472         (Function Specific Option Pragmas): Likewise.
21473         (C++ Interface): Likewise.
21475 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
21477         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
21479 2015-03-11  Marek Polacek  <polacek@redhat.com>
21481         PR tree-optimization/65388
21482         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
21484 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
21486         PR target/65296
21487         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
21488         * configure: Regenerate.
21489         * config.in: Regenerate.
21490         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
21491         [-mn-flash]: Document it.
21492         [__AVR_ARCH__]: Document avrtiny.
21494         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
21495         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
21496         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
21498 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21500         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
21502 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21504         PR target/65242
21505         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
21506         allow reloads of PLUS in floating point/VSX registers.
21508 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
21510         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
21511         crypto_sha256_fast.
21512         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
21514 2015-03-11  Richard Biener  <rguenther@suse.de>
21516         PR tree-optimization/65310
21517         * tree-sra.c (build_ref_for_offset): Also preserve larger
21518         alignment.
21520 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
21522         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
21524 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
21526         PR target/65368
21527         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
21528         new define_expand.
21529         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
21531 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
21533         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
21534         (sem_function::equals_wpa): ... here.
21536 2015-03-10  Marek Polacek  <polacek@redhat.com>
21537             Jakub Jelinek  <jakub@redhat.com>
21539         PR sanitizer/65367
21540         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
21541         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
21542         separately.
21544 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
21546         PR target/65286
21547         * config/rs6000/t-linux: For powerpc64* target set
21548         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
21550 2015-03-10  Richard Biener  <rguenther@suse.de>
21552         PR middle-end/44563
21553         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
21554         for redirect_all_calls.
21556 2015-03-10  Marek Polacek  <polacek@redhat.com>
21558         * gdbinit.in (pcfun): Define and document.
21560 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
21562         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
21563         of libgomp-plugin.h.
21564         (find_target_compiler): Support a case when the path to gcc is
21565         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
21566         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
21567         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
21568         libgomp-plugin.h.
21569         (main): Use GCC_INSTALL_NAME as target_driver_name.
21570         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
21571         define.
21572         (mkoffload.o): Remove obsolete include path and defines.
21573         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
21575 2015-03-10  Richard Biener  <rguenther@suse.de>
21577         PR middle-end/63155
21578         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
21579         * tree-ssa-coalesce.c: Include timevar.h.
21580         (attempt_coalesce): Handle graph being NULL.
21581         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
21582         Split out abnormal coalescing to ...
21583         (perform_abnormal_coalescing): ... this function.
21584         (coalesce_ssa_name): Perform abnormal coalescing without computing
21585         live/conflict.
21586         (verify_ssa_coalescing_worker): New function.
21587         (verify_ssa_coalescing): Likewise.
21589 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
21591         PR target/65296
21592         * config.gcc (extra_options) [avr]: Remove.
21593         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
21594         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
21595         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
21597         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
21598         (-mmcu=): Add Var and MissingArgError properties.
21599         (-march=): Remove.
21600         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
21601         * config/avr/t-multilib: Regenerate.
21602         * config/avr/specs.h: New file.
21603         * config/avr/driver-avr.c: New file.
21604         * config/avr/genopt.sh: Remove file.
21605         * config/avr/avr-tables.opt: Remove file.
21606         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
21607         * config/avr/avr-c.c: Same.
21608         * avr-arch.h: Same.
21609         (avr_current_device): Remove proto.
21610         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
21611         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
21612         (EXTRA_SPEC_FUNCTIONS): Define.
21613         (avr_devicespecs_file): New specs function proto.
21614         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
21615         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
21616         (avr_current_device): Remove definition and usage.
21617         (avr_set_core_architecture): New static function.
21618         (avr_option_override): Use it.
21619         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
21620         (mcu_name): New static array.
21621         (comparator, avr_archs_str, avr_mcus_str): New static functions.
21622         (avr_inform_devices, avr_inform_core_architectures): New functions.
21623         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
21624         (avrlibc.h) [WITH_AVRLIBC]: Include.
21625         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
21626         (print_mcu): Rewrite from scratch.
21627         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
21628         Forward to avr-specific specs defined in device-specs file.
21629         * config/avr/t-avr (driver-avr.o): New rule.
21630         (avr-devices.o): Depend on avr-arch.h.
21631         (avr-mcus): No more depend on avr-tables.opt.
21632         (avr-tables.opt): Remove rule.
21633         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
21635 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21637         * c-family/c.opt (fchkp-use-wrappers): New.
21638         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
21639         (chkp_wrap_function): New.
21640         (chkp_build_instrumented_fndecl): Support wrapped
21641         functions.
21642         * doc/invoke.texi (-fcheck-pointer-bounds): New.
21643         (-fchkp-check-incomplete-type): New.
21644         (-fchkp-first-field-has-own-bounds): New.
21645         (-fchkp-narrow-bounds): New.
21646         (-fchkp-narrow-to-innermost-array): New.
21647         (-fchkp-optimize): New.
21648         (-fchkp-use-fast-string-functions): New.
21649         (-fchkp-use-nochk-string-functions): New.
21650         (-fchkp-use-static-bounds): New.
21651         (-fchkp-use-static-const-bounds): New.
21652         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
21653         (-fchkp-check-read): New.
21654         (-fchkp-check-write): New.
21655         (-fchkp-store-bounds): New.
21656         (-fchkp-instrument-calls): New.
21657         (-fchkp-instrument-marked-only): New.
21658         (-fchkp-use-wrappers): New.
21659         (-static-libmpx): New.
21660         (-static-libmpxwrappers): New.
21662 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21664         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
21665         (CHKP_SPEC): Add wrappers library.
21666         * c-family/c.opt (static-libmpxwrappers): New.
21668 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
21670         * config/i386/linux-common.h (LIBMPX_LIBS): New.
21671         (LIBMPX_SPEC): New.
21672         (CHKP_SPEC): New.
21673         * gcc.c (CHKP_SPEC): New.
21674         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
21675         * c-family/c.opt (static-libmpx): New.
21677 2015-03-10  Richard Biener  <rguenther@suse.de>
21679         PR middle-end/44563
21680         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
21681         for compare_type.
21682         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
21683         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
21684         (cgraph_add_edge_to_call_site_hash): Likewise.
21685         (cgraph_node::get_edge): Likewise.
21686         (cgraph_edge::set_call_stmt): Likewise.
21687         (cgraph_edge::remove_caller): Likewise.
21689 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
21691         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
21692         (callee_saved_gpr_regs_size): ... this.
21693         (callee_saved_regs_first_regno): Rename to ...
21694         (callee_saved_first_gpr_regno): ... this.
21695         (callee_saved_regs_last_regno) Rename to ...
21696         (callee_saved_last_gpr_regno): ... this.
21697         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
21698         variables.
21699         (nds32_initial_elimination_offset): Likewise.
21700         (nds32_expand_prologue): Likewise.
21701         (nds32_expand_epilogue): Likewise.
21702         (nds32_expand_prologue_v3push): Likewise.
21703         (nds32_expand_epilogue_v3pop): Likewise.
21704         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
21705         Adjust renamed variables.
21706         (nds32_output_stack_pop): Likewise.
21708 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21710         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
21711         code in comment.
21713 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
21715         PR rtl-optimization/65321
21716         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
21717         than shift mode.
21718         * var-tracking.c (use_narrower_mode): Likewise.
21720 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
21722         PR tree-optimization/65355
21723         * varasm.c (notice_global_symbol): Do not produce RTL.
21724         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
21725         anchor.
21726         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
21727         check for section anchors.
21729 2015-03-10  Alan Modra  <amodra@gmail.com>
21731         PR target/65286
21732         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
21733         to be single-arch by default.  Set cpu_is_64bit for powerpc64
21734         given --with-cpu=native.
21735         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
21736         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
21737         and powerpc64le.
21738         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
21739         rs6000_isa_flags rather than TARGET_64BIT.
21741 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
21742             Kaz Kojima  <kkojima@gcc.gnu.org>
21744         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
21746 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
21748         PR lto/65361
21749         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
21750         on a TREE_BINFO, instead use BINFO_TYPE.
21752 2015-03-09  Richard Biener  <rguenther@suse.de>
21754         PR middle-end/65270
21755         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
21756         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
21757         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
21758         of that.  When comparing dereferences compare alignment.
21759         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
21761 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
21763         * ipa-inline-analysis.c (check_callers): Check
21764         node->can_remove_if_no_direct_calls_and_refs_p.
21765         (growth_likely_positive): Reorganize to call
21766         can_remove_if_no_direct_calls_p later.
21767         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
21768         will_be_removed_from_program_if_no_direct_calls_p): Add
21769         will_inline parameter.
21770         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
21771         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21772         Handle inliner case correctly.
21774 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21776         PR tree-optimization/63743
21777         * cfgexpand.c (reorder_operands): Also reorder if only second operand
21778         had its definition forwarded by TER.
21780 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
21782         PR lto/65316
21783         * ipa-utils.h (types_odr_comparable): Add strict argument.
21784         * ipa-devirt.c: Fix whitespace;
21785         (odr_hasher): Remove.
21786         (odr_name_hasher, odr_vtable_hasher): New hashers.
21787         (can_be_name_hashed_p): New predicate.
21788         (hash_type_name): remove.
21789         (hash_odr_name): New.
21790         (odr_name_hasher::hash): new.
21791         (can_be_vtable_hashed_p): New.
21792         (hash_odr_vtable): New.
21793         (odr_vtable_hasher::hash): New.
21794         (types_same_for_odr): Add strict parameter.
21795         (types_odr_comparable): Likewise.
21796         (odr_name_hasher::equal): New.
21797         (odr_vtable_hasher::equal): New.
21798         (odr_name_hasher::remove): New.
21799         (odr_hash_type): Change to hash_table<odr_name_hasher>.
21800         (odr_vtable_hash_type): New.
21801         (odr_vtable_hash): New.
21802         (odr_subtypes_equivalent_p): Do strict comparsion.
21803         (add_type_duplicate): Merge type names; cleanup; avoid type
21804         duplicates.
21805         (register_odr_type): Initialize vtable hash.
21806         (build_type_inheritance_graph): Likewise
21807         (get_odr_type): Reorg to use two hashes.
21808         (dump_possible_polymorphic_call_targets): Move sanity check after debug
21809         output.
21810         (ipa_devirt): Dump type_inheritance_graph.
21811         (types_same_for_odr): Add strict mode.
21813 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21815         PR ipa/65334
21816         * cgraph.h (symtab_node): Add definition_alignment,
21817         can_increase_alignment_p and increase_alignment.
21818         * symtab.c (symtab_node::can_increase_alignment_p,
21819         increase_alignment_1, symtab_node::increase_alignment,
21820         symtab_node::definition_alignment): New.
21821         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
21822         can_increase_alignment_p.
21823         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
21824         * tree-vect-stmts.c (ensure_base_align): Likewise.
21825         * varasm.c (function_section_1): Use definition_alignment.
21826         (assemble_start_function): Likewise.
21827         (emit_local): likewise.
21828         (build_constant_desc): Likewsie.
21829         (output_constant_def_contents): Likewise.
21830         (place_block_symbol): Likewise.
21831         (output_object_block): Likewise.
21833 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21835         PR ipa/65316
21836         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
21837         when outputting debug.
21839 2015-03-07  Marek Polacek  <polacek@redhat.com>
21840             Martin Uecker  <uecker@eecs.berkeley.edu>
21842         PR sanitizer/65280
21843         * doc/invoke.texi: Update description of -fsanitize=bounds.
21845 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
21847         * tree-ssa-phiopt.c (neg_replacement): Remove.
21848         (tree_ssa_phiopt_worker): Remove negate optimization.
21850 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21852         PR ipa/65302
21853         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
21855 2015-03-06  Richard Biener  <rguenther@suse.de>
21857         PR middle-end/64928
21858         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
21859         and liveout_obstack members.
21860         (calculate_live_on_exit): Remove.
21861         (calculate_live_ranges): Change declaration.
21862         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
21863         (new_tree_live_info): Adjust.
21864         (calculate_live_ranges): Delete livein when not wanted.
21865         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
21866         Deal with partly deleted live info.
21867         (loe_visit_block): Remove temporary bitmap by using
21868         bitmap_ior_and_compl_into.
21869         (live_worklist): Adjust accordingly.
21870         (calculate_live_on_exit): Make static.
21871         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
21872         we do not need livein.
21874 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
21876         * real.c (real_from_string): Fix typo in assertion.
21878 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
21880         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
21881         the patch.
21883 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
21885         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
21887 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
21889         PR target/64342
21890         * lra-assigns.c (find_hard_regno_for): Rename to
21891         find_hard_regno_for_1.  Add a new parameter.
21892         (find_hard_regno_for): New function using find_hard_regno_for_1.
21894 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21896         PR rtl-optimization/65067
21897         * expmed.c (store_bit_field, extract_bit_field): Reworked the
21898         strict volatile bitfield handling.
21900 2015-03-05  Martin Liska  <mliska@suse.cz>
21902         PR ipa/65318
21903         * ipa-icf.c (sem_variable::equals): Compare variables types.
21905 2015-03-05  Richard Henderson  <rth@redhat.com>
21907         PR target/65121
21908         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
21909         correctly check weak symbol binding.
21911 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
21913         PR middle-end/65315
21914         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
21915         needed alignment.
21917 2015-03-05  Martin Liska  <mliska@suse.cz>
21919         * ipa-inline.c (inline_small_functions): Set default value to
21920         prevent warning during bootstrap.
21921         * tree.h: Add pragma guard that ignores false positives during
21922         bootstrap.
21924 2015-03-05  Richard Biener  <rguenther@suse.de>
21926         PR tree-optimization/65310
21927         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
21928         Properly preserve alignment of the base of the access.
21930 2015-03-05  Richard Biener  <rguenther@suse.de>
21932         PR ipa/65270
21933         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
21934         Compare dependence info.
21936 2015-03-05  Richard Biener  <rguenther@suse.de>
21938         PR middle-end/65233
21939         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
21940         tree-into-ssa.h.
21941         (walk_ssa_copies): Revert last chage.  Instead do not walk
21942         SSA names registered for SSA update.
21944 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21946         PR ipa/65270
21947         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
21948         vtable references for their containing type.
21949         (sem_function::equals_wpa): Compare TYPE_RESTRICT
21950         and type attributes.
21952 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
21954         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
21955         before negating it.
21956         * stor-layout.c (finalize_record_size): Revert latest change.
21958 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
21960         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
21962 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21964         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
21965         for correct comdat handling.
21966         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
21967         Likewise.
21968         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
21969         (used_from_object_file_p_worker): Remove.
21970         (cgraph_node::only_called_directly_or_alised): Add
21971         used_from_object_file_p.
21972         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
21973         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
21974         can_remove_if_no_direct_calls_and_refs_p.
21976 2015-03-04  Nick Clifton  <nickc@redhat.com>
21978         * config/rl78/rl78.h (enum reg_class): Remove real registers from
21979         General register class.
21980         * config/rl78/rl78-real.md: Replace general register constraints
21981         with real+virtual register constraints.
21983 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21985         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
21986         from checking for -mhtm option.
21988 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
21990         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
21991         (struct ipa_sra_check_caller_data): Add has_thunk field.
21992         (ipa_sra_check_caller): Check for thunk.
21993         (ipa_sra_preliminary_function_checks): Give up on function with
21994         thunks.
21995         (ipa_early_sra): Use call_for_symbol_and_aliases.
21997 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
21999         PR target/65249
22000         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
22001         called for __stack_chk_guard symbol.
22003 2015-03-03  DJ Delorie  <dj@redhat.com>
22005         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
22006         inc/dec.
22007         (*addhi3_real): Likewise.
22008         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
22009         pattern to match incrementing memory.
22010         * config/rl78/predicates.md (rl78_1_2_operand): New.
22011         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
22012         it's the same and only mem.
22013         (rl78_alloc_physical_registers_op2): If there's effectively only
22014         one MEM, transcode it into HL.
22015         (rl78_far_p): Reject addresses that aren't legitimate.
22017 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
22019         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
22020         negating it.
22022         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
22024 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
22026         Implement call0 ABI for xtensa
22027         * config/xtensa/constraints.md ("a" constraint): Include stack
22028         pointer in case of call0 ABI.
22029         ("q" constraint): Make empty in case of call0 ABI.
22030         ("D" constraint): Include stack pointer in case of call0 ABI.
22031         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
22032         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
22033         prototypes.
22034         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
22035         variable.
22036         (xtensa_regno_to_class): Make it a local variable in the
22037         function xtensa_regno_to_class.
22038         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
22039         macro, function prototype and implementation.
22040         (reg_nonleaf_alloc_order): Make it a local variable in the
22041         function order_regs_for_local_alloc.
22042         (xtensa_conditional_register_usage): New function.
22043         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
22044         (xtensa_valid_move): Allow direct moves to stack pointer
22045         register in call0 ABI.
22046         (xtensa_setup_frame_addresses): Only spill register windows in
22047         windowed ABI.
22048         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
22049         call0 ABI respectively.
22050         (xtensa_function_arg_1): Only mark a7 register for copying in
22051         windowed ABI.
22052         (xtensa_call_save_reg): New function.
22053         (compute_frame_size): Add space for callee saved register
22054         storage to the frame size in call0 ABI.
22055         (xtensa_expand_prologue): Generate code to set up stack frame
22056         and save callee-saved registers in call0 ABI.
22057         (xtensa_expand_epilogue): New function.
22058         (xtensa_set_return_address): New function.
22059         (xtensa_return_addr): Calculate return address in call0 ABI.
22060         (xtensa_builtin_saveregs): Only mark a7 register for copying and
22061         emit copying code in windowed ABI.
22062         (order_regs_for_local_alloc): Add preferred register allocation
22063         order for non-leaf function in call0 ABI.
22064         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
22065         (xtensa_asm_trampoline_template): Add trampoline generation for
22066         call0 ABI.
22067         (xtensa_trampoline_init): Add trampoline initialization for
22068         call0 ABI.
22069         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
22070         functions.
22071         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
22072         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
22073         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
22074         ABI call-used registers.
22075         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
22076         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
22077         call0 ABI.
22078         (REG_CLASS_CONTENTS): Include all registers into the preferred
22079         reload registers set, adjust the set in the
22080         xtensa_conditional_register_usage.
22081         (xtensa_regno_to_class): Drop variable declaration.
22082         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
22083         function.
22084         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
22085         respectively.
22086         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
22087         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
22088         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
22089         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
22090         location in call0 ABI.
22091         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
22092         stack adjustment size when handling exception.
22093         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
22094         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
22095         definitions.
22096         ("return" pattern): Generate ret.n/ret in call0 ABI.
22097         ("epilogue" pattern): Expand epilogue.
22098         ("nonlocal_goto" pattern): Use default in call0 ABI.
22099         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
22100         emit eh_set_a0_* depending on ABI.
22101         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
22102         ("eh_set_a0_call0", "blockage"): New patterns.
22104 2015-03-03  Martin Liska  <mliska@suse.cz>
22106         PR ipa/65287
22107         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
22109 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22111         PR 65138/target
22112         * config/rs6000/rs6000-tables.opt: Regenerate table.
22114 2015-03-03  Renlin Li  <renlin.li@arm.com>
22116         * doc/md.texi (@item ^): Change ? into ^.
22118 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
22120         * doc/tm.texi: Regenerated.
22122 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
22124         * builtins.c (expand_builtin_return_addr): Add
22125         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
22126         surrounding #ifdef.
22127         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
22128         definition to 1.
22129         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
22130         Likewise.
22131         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
22132         undefined.
22133         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
22134         paragraph.
22136 2015-03-03  Martin Jambor  <mjambor@suse.cz>
22137             Eric Botcazou  <ebotcazou@adacore.com>
22139         * tree-sra.c (ipa_sra_check_caller_data): New type.
22140         (has_caller_p): Removed.
22141         (ipa_sra_check_caller): New function.
22142         (ipa_sra_preliminary_function_checks): Use it.
22144 2015-03-03  Martin Liska  <mliska@suse.cz>
22146         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
22147         instead of if branch.
22149 2015-03-03  Martin Liska  <mliska@suse.cz>
22151         PR ipa/65282
22152         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
22154 2015-03-23  Jeff Law  <law@redhat.com>
22156         PR tree-optimization/65241
22157         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
22158         hash table if INSERT is true.
22160 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
22162         PR target/65296
22163         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
22165 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
22167         PR target/64331
22168         * config/avr/avr.c (context.h, tree-pass.h): Include them.
22169         (avr_pass_data_recompute_notes): New static variable.
22170         (avr_pass_recompute_notes): New class.
22171         (avr_register_passes): New static function.
22172         (avr_option_override): Call it.
22174 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
22176         Fix various problems with specs file generation.
22178         PR target/65296
22179         * config.gcc (extra_gcc_objs) [avr]: Remove.
22180         * config/avr/driver-avr.c: Remove file.
22181         * config/avr/t-avr (driver-avr.o): Remove rule.
22182         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
22183         INCLUDES to build.  Depend on TM_H.
22184         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
22185         build warnings.  Fix non-matching types and non-existing %-codes.
22186         (tm.h): Include.
22187         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
22188         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
22189         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
22190         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
22191         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
22192         (LIBGCC_SPEC): Remove definitions.
22194 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
22196         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
22197         to create a register in testing mode.
22199 2015-03-03  Martin Liska  <mliska@suse.cz>
22200             Jan Hubicka  <hubicka@ucw.cz>
22202         PR ipa/65263
22203         * cgraph.c (cgraph_node::has_thunk_p): New function.
22204         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
22205         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
22206         (sem_function::merge): Assert is changed.
22208 2015-03-03  Martin Liska  <mliska@suse.cz>
22209             Martin Jambor  <mjambor@suse.cz>
22211         PR ipa/65087
22212         * ipa-icf.c (sem_item_optimizer::execute): Change function
22213         return value to boolean.
22214         (sem_item_optimizer::merge_classes): Likewise.
22215         (ipa_icf_driver): Return TODO_remove_functions in case there's
22216         a merge operation processed.
22217         * ipa-icf.h: Change function return value to boolean.
22219 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22221         PR 65138/target
22222         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
22223         processor type for 64-bit little endian PowerPC.
22225         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22226         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
22227         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
22228         printing built-in mask so it does not pass NULL pointers.
22230         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
22231         -mcpu=powerpc64le.
22233 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
22235         PR target/58158
22236         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
22237         !ISA_HAS_FP_CONDMOVE.
22239 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
22241         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
22242         reload_completed.
22244 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
22246         * doc/invoke.texi (Options for Code Generation Conventions):
22247         Fix URL of DSO paper.
22249 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
22251         PR ipa/65130
22252         * ipa-inline.c (check_callers): Looks for recursion.
22253         (inline_to_all_callers): Give up on uninlinable or recursive edges.
22254         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
22255         summary of inline clones.
22256         (do_estimate_growth_1): Fix recursion check.
22258 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
22260         PR ipa/64988
22261         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
22262         comdat groups.
22264 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
22265             Aldy Hernandez  <aldyh@redhat.com>
22267         PR lto/65276
22268         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
22269         when checking TYPE_BINFO.
22271 2015-03-02  Richard Biener  <rguenther@suse.de>
22273         PR ipa/65270
22274         * ipa-icf-gimple.c: Include builtins.h.
22275         (func_checker::compare_memory_operand): Compare base alignment.
22277 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22279         PR target/65184
22280         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
22281         are never passed by reference.
22283 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
22285         PR target/65183
22286         * tree-chkp.c (chkp_check_lower): Don't check against
22287         zero bounds for already instrumented functions.
22288         (chkp_check_upper): Likewise.
22289         (chkp_fini): Clean pass local data to avoid wrong reusage.
22291 2015-02-28  Martin Liska  <mliska@suse.cz>
22292             Jan Hubicka  <hubicka@ucw.cz>
22294         * ipa-icf.c (sem_variable::equals): Improve debug output;
22295         get variable constructor.
22296         (sem_variable::parse): Do not filter out too early; give up on
22297         volatile and register vars.
22298         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
22299         variables.
22300         * ipa-icf.h (sem_variable::init): Do not set ctor.
22301         (sem_variable::ctor): Remove.
22303 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
22305         PR middle-end/65233
22306         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
22308 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22310         * ipa-icf.c: Include stor-layout.h
22311         (sem_function::compare_cgraph_references): Rename to ...
22312         (sem_item::compare_cgraph_references): ... this one.
22313         (sem_variable::equals_wpa): New function
22314         (sem_variable::equals): Do not check stuff already verified by
22315         equals_wpa.
22316         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
22317         * ipa-icf.h (sem_item): Add compare_cgraph_references.
22318         (sem_function): Remove compare_cgraph_references.
22319         (sem_variable): Turns equals_wpa into non-inline.
22321 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22323         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
22324         (sem_item::add_expr): New function.
22325         (sem_function::hash_stmt): Handle operands of most statements.
22326         (sem_variable::get_hash): Hash the actual constructor.
22327         * ipa-icf.h (sem_item): Add add_expr.
22328         (sem_function): Update prototype of hash_stmt
22330 2015-02-28  Martin Liska  <mliska@suse.cz>
22331             Jan Hubicka  <hubicka@ucw.cz>
22333         PR ipa/65245
22334         * ipa-icf-gimple.c (func_checker::compare_function_decl):
22335         Remove.
22336         (func_checker::compare_variable_decl): Skip symtab vars.
22337         (func_checker::compare_cst_or_decl): Update.
22338         * ipa-icf.c (sem_function::parse): Do not consider aliases.
22339         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
22340         use correct symtab predicates.
22341         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
22342         (sem_variable::parse):  Update comment.
22343         (sem_item_optimizer::build_graph): Consider ultimate aliases
22344         for references.
22346 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22348         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
22349         of OBJ_TYPE_REF.
22351 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22353         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
22354         (sem_variable::merge) Likewise.
22356 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22358         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
22359         target; also match flag_ipa_devirt.
22361 2015-03-01  Martin Liska  <mliska@suse.cz>
22362             Jan Hubicka  <hubicka@ucw.cz>
22364         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
22365         Validate variable alignment.
22366         * ipa-icf.c (sem_function::equals_private): Be more precise
22367         about non-common function attributes.
22368         (sem_variable::equals): Likewise.
22370 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22372         PR ipa/65237
22373         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
22374         across COMDAT group boundary.
22376 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22378         PR ipa/65232
22379         * ipa-icf.c (clear_decl_rtl): New function.
22380         (sem_function::merge): Clear RTL before forming alias.
22381         (sem_variable::merge): Clear RTL before forming alias.
22383 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
22385         PR ipa/65236
22386         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
22388 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
22390         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
22391         to neon_to_gp<q>.
22393 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
22395         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
22396         a typo in the description.
22398 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
22400         PR target/64317
22401         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22402         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
22403         * lra-constraints.c: Include "params.h".
22404         (EBB_PROBABILITY_CUTOFF): Use
22405         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
22406         (lra_inheritance): Use '<' instead of '<=' for
22407         EBB_PROBABILITY_CUTOFF.
22408         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
22409         Document change.
22411 2015-02-27  Martin Liska  <mliska@suse.cz>
22413         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
22414         vector length condition.
22416 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
22418         * doc/extend.texi (x86 transactional memory intrinsics):
22419         Reorganize discussion of _xbegin.  Clarify that the return
22420         value is a bit mask.  Expand example and move to end of section.
22422 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
22423             Aldy Hernandez  <aldyh@redhat.com>
22425         PR rtl-optimization/65220
22426         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
22428 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
22430         PR target/65032
22431         * lra-remat.c (update_scratch_ops): New.
22432         (do_remat): Call it.
22433         * lra.c (lra_register_new_scratch_op): New. Take code from ...
22434         (remove_scratches): ... here.
22435         * lra-int.h (lra_register_new_scratch_op): New prototype.
22437 2015-02-27  Marek Polacek  <polacek@redhat.com>
22439         PR c/65040
22440         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
22441         -Wformat-signedness anymore.
22443 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22445         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
22446         function.
22447         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
22449 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22451         * config/s390/s390.c (enum s390_builtin):
22452         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
22453         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
22454         (s390_init_builtins): Generate new builtin functions.
22455         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
22456         (s390_sfpc, s390_efpc): New pattern definitions.
22458 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22460         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
22461         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
22462         (s390_builtin_decls): New array.
22463         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
22464         (s390_builtin_decl): New function.
22465         (TARGET_BUILTIN_DECL): Define macro.
22467 2015-02-27  Richard Biener  <rguenther@suse.de>
22469         PR middle-end/63175
22470         * builtins.c (get_object_alignment_2): Make sure to re-apply
22471         the ANDed mask after recursing to its operand gets us a new
22472         misalignment bit position.
22474 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
22475             Martin Liska  <mliska@suse.cz>
22477         PR bootstrap/65150
22478         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
22479         Use address_matters_p.
22480         (redirect_all_callers, set_addressable): New functions.
22481         (sem_function::merge): Reorganize and fix merging issues.
22482         (sem_variable::merge): Likewise.
22483         (sem_variable::compare_sections): Remove.
22484         * common.opt (fmerge-all-constants, fmerge-constants): Remove
22485         Optimization flag.
22486         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
22487         redirect them.
22488         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
22489         decl is used.
22490         (address_matters_1): New function.
22491         (symtab_node::address_matters_p): New function.
22492         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
22493         check for merged flag.
22494         * cgraph.h (address_matters_p): Declare.
22495         (symtab_node::address_taken_from_non_vtable_p): Remove.
22496         (symtab_node::address_can_be_compared_p): New method.
22497         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
22498         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
22499         Remove.
22500         (comdat_can_be_unshared_p_1) Use address_matters_p.
22501         (update_vtable_references): Fix formating.
22502         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
22503         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
22504         * cgraphclones.c: Preserve merged and icf_merged flags.
22506 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
22508         * doc/extend.texi (Function Attributes): Fix spelling and typos.
22509         (Label Attributes): Likewise.
22510         (Cilk Plus Builtins): Likewise.
22511         (ARC SIMD Built-in Functions): Likewise.
22512         (ARM C Language Extensions (ACLE)): Likewise.
22513         (PowerPC Built-in Functions): Likewise.
22514         (PowerPC Hardware Transactional Memory Built-in Functions):
22515         Likewise.
22517 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
22519         PR tree-optimization/65216
22520         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
22521         new stmt and new SSA_NAME for lhs whenever the arguments have
22522         changed and weren't just swapped.  Fix comment typo.
22524         PR tree-optimization/65215
22525         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
22526         for PDP endian targets.
22527         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
22528         Fix up formatting issues.
22529         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
22530         size is smaller than the original, adjust MEM_REF offset by the
22531         difference of sizes.  Use is_gimple_mem_ref_addr instead of
22532         is_gimple_min_invariant test to avoid adding address temporaries.
22534 2015-02-26  Martin Liska  <mliska@suse.cz>
22535             Jan Hubicka  <hubicka@ucw.cz>
22537         PR ipa/64693
22538         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
22539         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
22540         (sem_item_optimizer::process_cong_reduction): Include division by
22541         sensitive references.
22542         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
22543         * ipa-ref.c (ipa_ref::address_matters_p): New function.
22544         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
22546 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
22548         PR target/65192
22549         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
22550         Remove.
22551         * config/avr/avr.c: Same.
22552         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
22553         Refuse any constant address not in 0..0xbf.
22554         * config/avr/avr.md (*mov<mode>, *movsf): Remove
22555         tiny_valid_direct_memory_access_range from insn conditions.
22556         (mov<mode>): Don't special-case expansion of avrtiny addresses.
22558 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
22560         PR target/61142
22561         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
22562         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
22563         * config/sh/predicates.md (const_logical_operand): New predicate.
22564         * config/sh/sh.md: Add new peephole2 patterns.
22566 2015-02-26  Marek Polacek  <polacek@redhat.com>
22568         PR ipa/65008
22569         * ipa-inline.c (early_inliner): Recompute inline parameters.
22571 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22573         PR target/65171
22574         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
22575         instructions with TImode operands are included in the analysis.
22577 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
22579         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
22580         of an EDGE_FSM_THREAD.
22582 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22584         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
22586 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
22588         PR debug/46102
22589         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
22591 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
22593         PR tree-optimization/65048
22594         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
22595         (thread_through_all_blocks): Call valid_jump_thread_path.
22596         Remove invalid FSM jump-thread paths.
22598 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
22600         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
22601         (ipa_write_optimization_summaries): Likewise.
22602         * tree-streamer.h: Include data-streamer.h.
22603         (streamer_mode_table): Declare extern variable.
22604         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
22605         * lto-streamer-out.c (lto_output_init_mode_table,
22606         lto_write_mode_table): New functions.
22607         (produce_asm_for_decls): Call lto_write_mode_table when streaming
22608         offloading LTO.
22609         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
22610         (lto_create_simple_input_block): Add mode_table argument to the
22611         lto_input_block constructors.
22612         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
22613         Likewise.
22614         * data-streamer-in.c (string_for_index): Likewise.
22615         * ipa-inline-analysis.c (inline_read_section): Likewise.
22616         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
22617         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
22618         * lto-streamer-in.c (lto_read_body_or_constructor,
22619         lto_input_toplevel_asms): Likewise.
22620         (lto_input_mode_table): New function.
22621         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
22622         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
22623         Use bp_pack_machine_mode.
22624         * real.h (struct real_format): Add name field.
22625         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
22626         (class lto_input_block): Add mode_table member.
22627         (lto_input_block::lto_input_block): Add mode_table_ argument,
22628         initialize mode_table.
22629         (struct lto_file_decl_data): Add mode_table field.
22630         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
22631         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
22632         unpack_ts_decl_common_value_fields,
22633         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
22634         * tree-streamer.c (streamer_mode_table): New variable.
22635         * real.c (ieee_single_format, mips_single_format,
22636         motorola_single_format, spu_single_format, ieee_double_format,
22637         mips_double_format, motorola_double_format,
22638         ieee_extended_motorola_format, ieee_extended_intel_96_format,
22639         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
22640         ibm_extended_format, mips_extended_format, ieee_quad_format,
22641         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
22642         decimal_single_format, decimal_double_format, decimal_quad_format,
22643         ieee_half_format, arm_half_format, real_internal_format): Add name
22644         field.
22645         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
22647 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
22649         PR target/65161
22650         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
22651         reordering for selective scheduling.
22653 2015-02-26  Terry Guo  <terry.guo@arm.com>
22655         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
22656         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
22657         (arm_arch_no_volatile_ce): Declare new global variable.
22658         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
22659         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
22660         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
22661         (TARGET_NO_VOLATILE_CE): New macro.
22662         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
22663         volatile memory access in IT block
22665 2015-02-25  Kai Tietz  <ktietz@redhat.com>
22667         PR tree-optimization/61917
22668         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
22669         that reduc_def_stmt is null.
22671 2015-02-25  Martin Liska  <mliska@suse.cz>
22673         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
22674         hard register variables.
22676 2015-02-25  Kai Tietz  <ktietz@redhat.com>
22678         PR target/64212
22679         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
22680         (symtab::noninterposable_alias): Likewise.
22682 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
22684         PR target/65167
22685         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
22686         bounds registers.
22687         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
22689 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
22691         PR target/64997
22692         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
22693         as split condition; force split via '#' in output pattern.
22695 2015-02-25  Richard Biener  <rguenther@suse.de>
22696             Kai Tietz  <ktietz@redhat.com>
22698         PR tree-optimization/61917
22699         * tree-vect-loop.c (vectorizable_reduction): Allow
22700         vect_internal_def without reduction to exit graceful.
22702 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
22704         PR target/65196
22705         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
22706         only with NONDEBUG_INSN_P.
22708 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
22710         Use variadic macros with avr-log.c.
22712         * config/avr/avr-protos.h (avr_vdump): New prototype.
22713         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
22714         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
22715         * config/avr/avr-log.c: Adjust comments.
22716         (avr_vdump): New function.
22717         (avr_vadump): Pass caller as 2nd argument instead of format string.
22718         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
22719         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
22721 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
22723         PR lto/64374
22724         * target.def (target_option_stream_in): New target hook.
22725         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
22726         targetm.target_option.post_stream_in if non-NULL.
22727         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
22728         * doc/tm.texi: Updated.
22729         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
22730         function.
22731         (TARGET_OPTION_POST_STREAM_IN): Redefine.
22733 2015-02-24  Jeff Law  <law@redhat.com>
22735         PR target/65117
22736         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
22737         of operand 0 and operand 2.
22738         (zero_cost_loop_end, loop_end): Similarly.
22740 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
22742         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
22743         CXX_MEM_STAT_INFO.
22745 2015-02-24  DJ Delorie  <dj@redhat.com>
22747         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
22748         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
22749         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
22750         instead of hardcoding SImode.
22752 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
22754         * omp-low.c (create_omp_child_function): Tag entrypoint
22755         functions with a special attribute.
22757 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22759         PR target/65058
22760         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
22762 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
22764         PR rtl-optimization/65123
22765         * lra-remat.c (operand_to_remat): Check hard regs in insn
22766         definition too.
22768 2015-02-24  Nick Clifton  <nickc@redhat.com>
22770         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
22771         to the assembler.
22773 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
22775         PR libgomp/64625
22776         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
22777         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
22778         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
22779         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
22780         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
22781         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
22782         (BUILT_IN_GOACC_PARALLEL): Specify as
22783         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
22784         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
22785         * builtin-types.def
22786         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22787         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22788         Remove function types.
22789         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
22790         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22791         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22792         New function types.
22794 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
22796         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
22798 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
22800         PR tree-optimization/65170
22801         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
22802         if val[1] < 0, clear also val[2] and return 3.
22804 2015-02-24  Alan Modra  <amodra@gmail.com>
22806         PR target/65172
22807         * config/rs6000/rs6000.c (get_memref_parts): Only return true
22808         when *base is a reg.  Handle nested plus addresses.  Simplify
22809         pre_modify test.
22811 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
22813         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
22814         use natural alignment when optimizing for size.
22816 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
22818         PR target/65153
22819         * config/sh/sh.md (movsicc_true+3): Remove peephole.
22820         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
22821         * config/sh/sh.c (replace_n_hard_rtx): Remove.
22823 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
22825         PR fortran/63427
22826         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
22827         too big for a wide_int.  Implement missing wrapping operation.
22829 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
22831         PR target/65163
22832         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
22833         instead of const_int 4294901760.
22835 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
22837         * config/avr/t-avr: Fix typo in comment.
22839 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
22841         * doc/rtl.texi (fma): Clarify documentation.
22843 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
22845         PR debug/58123
22846         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
22847         over input_location.
22849 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22851         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
22852         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
22853         restrict alignments to absolute_biggest_alignment.
22854         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
22855         Define.
22856         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
22857         * doc/tm.texi: Regenerate.
22858         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
22860 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
22862         PR target/64172
22863         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
22865 2015-02-20  Richard Biener  <rguenther@suse.de>
22867         PR tree-optimization/65136
22868         * tree-ssa-propagate.c: Include cfgloop.h.
22869         (replace_phi_args_in): Avoid replacing loop latch edge PHI
22870         arguments with constants.
22872 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
22873             Martin Liska  <mliska@suse.cz>
22875         PR target/63892
22876         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
22877         don't try to create_thunk if stdarg_p.  If
22878         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
22879         redirect_callers if possible.
22880         (sem_item_optimizer::execute): Call unregister_hooks here...
22881         (ipa_icf_driver): ... instead of here.
22883 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22885         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
22886         Mark operand 0 as earlyclobber in 2nd alternative.
22887         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
22888         Write negated shift amount into QI lowpart operand 0 and use it
22889         in the shift step.
22890         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
22892 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22894         * cgraph.h (clone_function_name_1): Declare.
22895         * cgraphclones.c (clone_function_name_1): New function.
22896         (clone_function_name): Use it.
22897         * lto-partition.c: Include "stringpool.h".
22898         (must_not_rename, maybe_rewrite_identifier)
22899         (validize_symbol_for_target): New static functions.
22900         (privatize_symbol_name): Use must_not_rename.
22901         (promote_symbol): Call validize_symbol_for_target.
22902         (lto_promote_cross_file_statics): Likewise.
22903         (lto_promote_statics_nonwpa): Likewise.
22905 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
22907         PR target/64452
22908         * config/avr/avr.md (pushhi_insn): New insn.
22909         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
22911 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
22912             Jakub Jelinek  <jakub@redhat.com>
22914         * tree-streamer.c (preload_common_nodes): Don't preload
22915         TI_VA_LIST* for offloading.
22916         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
22917         in_lto_p.
22919 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
22921         * config/pa/pa.c (pa_emit_move_sequence): Always force
22922         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
22923         note on insn.
22925         * config/pa/pa.c (pa_reloc_rw_mask): New function.
22926         (TARGET_ASM_RELOC_RW_MASK): Define.
22927         (pa_cannot_force_const_mem): Revert previous change.
22929 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
22930             Jan Hubicka  <hubicka@ucw.cz>
22932         PR ipa/65028
22933         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
22934         across jump functions.
22936 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
22938         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
22940 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
22942         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
22944 2015-02-19  Richard Henderson  <rth@redhat.com>
22946         PR middle-end/65074
22947         * varasm.c (default_binds_local_p_2): Don't test node->definition;
22948         test DECL_EXTERNAL independent of symtab_node.
22950 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
22952         PR lto/65012
22953         * varpool.c (varpool_node::get_constructor): Return early
22954         if this->lto_file_data is NULL.
22956 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
22958         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
22959         (rank_for_schedule_debug): Update.
22960         (ready_sort): Make static.  Move sorting logic to ...
22961         (ready_sort_debug, ready_sort_real): New static functions.
22962         (schedule_block): Sort both debug insns and real insns in preparation
22963         for ready list trimming.  Improve debug output.
22964         * sched-int.h (ready_sort): Remove global declaration.
22966 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
22968         * ipa-icf.c (sem_function::equals_private): Adjust.
22969         (sem_function::bb_dict_test): Take a vec<int> * instead of
22970         auto_vec<int>.
22971         * ipa-icf.h (bb_dict_test): Likewise.
22973 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22975         PR gcov-profile/64634
22976         * tree-eh.c (frob_into_branch_around): Fix up typos
22977         in function comment.
22978         (lower_catch): Put eh_seq resulting from EH lowering of
22979         the cleanup sequence after the cleanup rather than before it.
22981 2015-02-18  Tom de Vries  <tom@codesourcery.com>
22983         * common.opt (fstdarg-opt): New option.
22984         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
22985         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
22986         (@item -fstdarg-opt): New item.
22988 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
22990         PR target/65064
22991         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
22992         for common symbols.
22994 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
22996         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
22997         insn-modes.h.
22998         (ALL_HOST_OBJS): Add mkoffload.o.
22999         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
23001 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
23003         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
23004         (compare_virtual_tables): Be smarter about skipping typeinfos;
23005         do sane output on virtual table table mismatch.
23006         (warn_odr): Be ready for forward declarations of enums;
23007         output sane info on base mismatch and virtual table mismatch.
23008         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
23009         when only one type is polymorphic.
23010         (get_odr_type): Fix hashtable corruption.
23011         (dump_odr_type): Dump mangled names.
23013 2015-02-18  Richard Biener  <rguenther@suse.de>
23015         PR tree-optimization/65063
23016         * tree-predcom.c (determine_unroll_factor): Return 1 if we
23017         have replaced looparound PHIs.
23019 2015-02-18  Martin Liska  <mliska@suse.cz>
23021         * lto-streamer.c (lto_streamer_init): Encapsulate
23022         streamer_check_handled_ts_structures with checking macro.
23024 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
23026         PR ipa/65087
23027         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
23028         section if !implicit_section.
23029         (cgraph_node::create_version_clone_with_body): Likewise.
23030         * trans-mem.c (ipa_tm_create_version): Likewise.
23032 2015-02-18  Richard Biener  <rguenther@suse.de>
23034         PR tree-optimization/62217
23035         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
23036         into BIVs.
23038 2015-02-18  Marek Polacek  <polacek@redhat.com>
23040         PR sanitizer/65081
23041         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
23042         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
23043         is in range [-16K, -1].  Don't issue run-time error if
23044         (ptr > ptr + offset).
23046 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
23048         * doc/install.texi (nvptx-*-none): New section.
23049         * doc/invoke.texi (Nvidia PTX Options): Likewise.
23050         * config/nvptx/nvptx.opt: Update.
23052         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
23053         (access_check): New functions, copied from
23054         config/i386/intelmic-mkoffload.c.
23055         (main): For non-installed testing, look in all COMPILER_PATHs for
23056         GCC_INSTALL_NAME.
23058         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
23060 2015-02-18  Andrew Pinski  <apinski@cavium.com>
23061             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23063         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
23064         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
23066 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
23068         * ipa-visibility.c (function_and_variable_visibility): Only
23069         check locality if node is not already local.
23070         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23071         call_for_symbol_and_aliases instead of
23072         call_for_symbol_thunks_and_aliases.
23073         (ipa_inline): Likewise.
23074         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23075         first walk aliases.
23076         * ipa.c (symbol_table::remove_unreachable_nodes): Use
23077         call_for_symbol_and_aliases.
23078         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23079         (ipa_propagate_frequency_1): Use it; use opt_for_fn
23080         (ipa_propagate_frequency): Update.
23081         (ipa_profile): Add opt_for_fn gueards.
23083 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
23085         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
23086         * doc/invoke.texi (SH options): Document it.
23087         * config/sh/sh.c (sh_insn_length_adjustment): Check
23088         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
23090 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
23092         * common.opt (fipa-cp-alignment): New.
23093         * ipa-cp.c (ipcp_store_alignment_results): Check
23094         flag_ipa_cp_alignment.
23095         * opts.c (default_options_table): Enable -fipa-cp-alignment for
23096         -O2.
23097         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
23098         * doc/invoke.texi: Document -fipa-cp-alignment.
23100 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
23102         PR target/64793
23103         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
23104         to nil.  Adjust comments.
23106 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
23108         * ipa-visibility.c (function_and_variable_visibility): Only
23109         check locality if node is not already local.
23110         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
23111         call_for_symbol_and_aliases instead of
23112         call_for_symbol_thunks_and_aliases.
23113         (ipa_inline): Likewise.
23114         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
23115         first walk aliases.
23116         * ipa.c (symbol_table::remove_unreachable_nodes): Use
23117         call_for_symbol_and_aliases.
23118         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
23119         (ipa_propagate_frequency_1): Use it; use opt_for_fn
23120         (ipa_propagate_frequency): Update.
23121         (ipa_profile): Add opt_for_fn guards.
23123 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
23125         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
23126         skipping of "strange" tokens.
23128 2015-02-17  Jeff Law  <law@redhat.com>
23130         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
23131         obsolete comment.
23133 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
23135         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
23136         as forcing a HARD_DEP between instructions, thereby
23137         disallowing rewriting to break dependencies.
23139 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
23141         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
23142         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
23143         variables in boundary that have no inlitalizer encoded and are
23144         not aliases.
23145         * varasm.c (default_binds_local_p_2): External definitions do not
23146         count as definitions here.
23148 2015-02-16  Jeff Law  <law@redhat.com>
23150         PR tree-optimization/64823
23151         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
23152         statements.
23153         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23154         threading through blocks with PHIs, but no statements.
23155         (thread_through_normal_block): Distinguish between blocks where
23156         we did not process all the statements and blocks with no statements.
23158 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
23159             James Greenhalgh  <james.greenhalgh@arm.com>
23161         PR ipa/64963
23162         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
23163         section if not linkonce.  Fix up formatting.
23164         (cgraph_node::create_version_clone_with_body): Copy section.
23165         * trans-mem.c (ipa_tm_create_version): Likewise.
23167 2015-02-16  Richard Biener  <rguenther@suse.de>
23169         PR tree-optimization/65077
23170         * tree-ssa-structalias.c (get_constraint_for_1): Handle
23171         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
23172         (find_func_aliases): Allow float values to carry pointers again.
23174 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
23176         * doc/install.texi (Specific): Reorder targets list to put
23177         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
23178         from the top menu.
23180 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
23181             David Edelsohn  <dje.gcc@gmail.com>
23183         PR target/65058
23184         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
23185         mapping class to external variable or function reference.
23186         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
23187         mapping class.
23189 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
23191         PR target/53348
23192         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
23193         ASM_WEAKEN_DECL if defined.
23195 2015-02-16  Richard Biener  <rguenther@suse.de>
23197         PR lto/65015
23198         * varasm.c (default_file_start): For LTO produced units
23199         emit <artificial> as file directive.
23201 2015-02-16  Richard Biener  <rguenther@suse.de>
23203         PR tree-optimization/63593
23204         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
23205         stmts and releasing SSA names until...
23206         (execute_pred_commoning): ... after processing all chains.
23208 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
23210         PR ipa/65059
23211         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
23212         external functions.
23214 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
23216         * doc/bugreport.texi: Adjust section titles throughout the file
23217         to use "Title Case".
23218         * doc/extend.texi: Likewise.
23219         * doc/gcov.texi: Likewise.
23220         * doc/implement-c.texi: Likewise.
23221         * doc/implement-cxx.texi: Likewise.
23222         * doc/invoke.texi: Likewise.
23223         * doc/objc.texi: Likewise.
23224         * doc/standards.texi: Likewise.
23225         * doc/trouble.texi: Likewise.
23227 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
23229         * cgraph.h (symtab_node::has_aliases_p): Simplify.
23230         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
23231         * tree.c (lookup_binfo_at_offset): Make static.
23232         (get_binfo_at_offset): Do not shadow offset; add explanatory
23233         comment.
23235 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
23237         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
23238         for all floading point loads and stores except those using a register
23239         index address.
23240         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
23241         to a register.
23243 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
23245         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
23246         (do_estimate_growth_1): Record if any uninlinable edge was seen.
23247         (estimate_growth): Handle uninlinable edges correctly.
23248         (check_callers): New.
23249         (growth_likely_positive): Handle aliases correctly.
23251 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
23253         * ipa-chkp.c: Use iterate_direct_aliases.
23254         * symtab.c (resolution_used_from_other_file_p): Move inline.
23255         (symtab_node::create_reference): Fix formating.
23256         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23257         (symtab_node::iterate_reference): Move inline.
23258         (symtab_node::iterate_referring): Move inline.
23259         (symtab_node::iterate_direct_aliases): Move inline.
23260         (symtab_node::used_from_object_file_p_worker): Inline into ...
23261         (symtab_node::used_from_object_file_p): ... this one; move inline.
23262         (symtab_node::call_for_symbol_and_aliases): Move inline;
23263         use iterate_direct_aliases.
23264         (symtab_node::call_for_symbol_and_aliases_1): New method.
23265         (cgraph_node::call_for_symbol_and_aliases): Move inline;
23266         use iterate_direct_aliases.
23267         (cgraph_node::call_for_symbol_and_aliases_1): New method.
23268         (varpool_node::call_for_node_and_aliases): Rename to ...
23269         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
23270         use iterate_direct_aliases.
23271         (varpool_node::call_for_symbol_and_aliases_1): New method.
23272         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
23273         (ipa_discover_readonly_nonaddressable_var): Update.
23274         * ipa-devirt.c: Fix formating.
23275         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
23276         Move inline.
23277         (cgraph_node::call_for_symbol_and_aliases): Move inline.
23278         (cgraph_node::call_for_symbol_and_aliases_1): New function..
23279         * cgraph.h (used_from_object_file_p_worker): Remove.
23280         (resolution_used_from_other_file_p): Move inline.
23281         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
23282         (symtab_node::iterate_reference): Move inline.
23283         (symtab_node::iterate_referring): Move inline.
23284         (symtab_node::iterate_direct_aliases): Move inline.
23285         (symtab_node::used_from_object_file_p_worker): Inline into ...
23286         (symtab_node::used_from_object_file_p): Move inline.
23287         * tree-emutls.c (ipa_lower_emutls): Update.
23288         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
23289         (varpool_node::call_for_node_and_aliases): Remove.
23291 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
23293         PR tree-optimization/62209
23294         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
23295         op == range->exp, insert seq and gimplified code after labels
23296         instead of after the phi.
23298 2015-02-13  Jeff Law  <law@redhat.com>
23300         PR bootstrap/65060
23301         Revert my change for tree-optimization/64823.
23303 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
23305         PR tree-optimization/65053
23306         * tree-ssa-phiopt.c (value_replacement): When moving assign before
23307         cond, either reset VR on lhs or set it to phi result VR.
23309 2015-02-13  Jeff Law  <law@redhat.com>
23311         PR tree-optimization/64823
23312         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
23313         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
23314         threading through blocks with PHIs, but no statements.
23315         (thread_through_normal_block): Distinguish between blocks where
23316         we did not process all the statements and blocks with no statements.
23318         PR rtl-optimization/47477
23319         * match.pd (convert (plus/minus (convert @0) (convert @1): New
23320         simplifier to narrow arithmetic.
23322 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
23324         PR ipa/65028
23325         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
23326         polymorphic call info when type is not known to be preserved.
23328 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
23330         PR ipa/65028
23331         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
23332         (inline_call): Use it.
23334 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
23336         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
23337         GOMP_DEVICE_NVIDIA_PTX.
23339 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
23341         PR ipa/65034
23342         * stmt.c (emit_case_nodes): Use void_type_node instead of
23343         NULL_TREE as LABEL_DECL type.
23345 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
23347         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
23348         constraints.
23349         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
23350         symbolic references to data to be forced to constant memory on the
23351         SOM target.
23353 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
23355         PR tree-optimization/65002
23356         * tree-cfg.c (pass_data_fixup_cfg): Don't update
23357         SSA on start.
23358         * tree-sra.c (some_callers_have_no_vuse_p): New.
23359         (ipa_early_sra): Reject functions whose callers
23360         assume function is read only.
23362 2015-02-13  Richard Biener  <rguenther@suse.de>
23364         PR lto/65015
23365         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
23366         for LTO produced CUs.
23368 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
23370         PR tree-optimization/64705
23371         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
23372         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
23373         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
23374         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
23375         expand_simple_operations.
23377 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
23378             Richard Henderson  <rth@redhat.com>
23380         PR rtl/32219
23381         * cgraphunit.c (cgraph_node::finalize_function): Set definition
23382         before notice_global_symbol.
23383         (varpool_node::finalize_decl): Likewise.
23384         * varasm.c (default_binds_local_p_2): Rename from
23385         default_binds_local_p_1, add weak_dominate argument.  Use direct
23386         returns instead of assigning to local variable.  Unify varpool and
23387         cgraph paths via symtab_node.  Reject undef weak variables before
23388         testing visibility.  Reorder tests for simplicity.
23389         (default_binds_local_p): Use default_binds_local_p_2.
23390         (default_binds_local_p_1): Likewise.
23391         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
23392         via symtab_node.
23393         (default_elf_asm_output_external): Emit visibility when specified.
23395 2015-02-13  Alan Modra  <amodra@gmail.com>
23397         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
23398         code setting up r11 for out-of-line fp restore.
23400 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
23402         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
23403         (muser-mode): Likewise.
23405 2015-02-13  Alan Modra  <amodra@gmail.com>
23407         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
23408         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
23410 2015-02-12  David Howells  <dhowells@redhat.com>
23412         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
23413         warning.
23414         * tree-ssa-uninit.c (dump_predicates): Likewise.
23415         * opts.c (print_filtered_help): Likewise.
23417 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
23419         * dwarf2out.c (output_die): Use "%s", name instead of name to
23420         avoid -Wformat-security warning.
23422         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
23423         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23424         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
23425         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
23427 2015-02-12  Jason Merrill  <jason@redhat.com>
23429         * common.opt (-flifetime-dse): New.
23431 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
23433         PR sanitizer/65019
23434         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
23436         PR tree-optimization/65014
23437         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
23438         use original second operand of arg0 or arg1 instead of
23439         that adjusted by STRIP_NOPS.
23441 2015-02-11  Jeff Law  <law@redhat.com>
23443         PR target/63347
23444         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
23445         that needs to be queued, just queue it for a single cycle.
23447 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
23449         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
23450         bodies of thunks; comment on why.
23451         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
23452         symbols are extern.
23454 2015-02-11  Richard Henderson  <rth@redhat.com>
23456         PR sanitize/65000
23457         * tree-eh.c (mark_reachable_handlers): Mark source and destination
23458         regions of __builtin_eh_copy_values.
23460 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
23462         PR middle-end/65003
23463         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
23464         ultimate alias is MEM with SYMBOL_REF satisfying
23465         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
23466         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
23468 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
23470         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
23471         "diagnostic-core.h".
23472         (main): Initialize progname, and call diagnostic_initialize.
23474         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
23475         instead of __OPENMP_TARGET__.
23477         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
23478         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
23479         hard-coding PTX_ID.
23481 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
23483         * doc/sourcebuild.texi (pie_enabled): Document.
23485 2015-02-11  Martin Liska  <mliska@suse.cz>
23487         PR ipa/64813
23488         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
23489         a return value for call to a function that is noreturn.
23491 2015-02-11  Richard Biener  <rguenther@suse.de>
23493         PR lto/65015
23494         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
23495         and -fresolution.
23497 2015-02-11  Andrew Pinski  <apinski@cavium.com>
23499         PR target/64893
23500         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
23501         Change the first argument type to size_type_node and add another
23502         size_type_node.
23503         (aarch64_simd_expand_builtin): Handle the new argument to
23504         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
23505         print an out when the first two arguments are not
23506         nonzero integer constants.
23507         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
23508         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
23510 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
23512         PR target/61925
23513         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
23514         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
23515         (ix86_set_current_function): Rewritten.
23516         (ix86_add_new_builtins): Temporarily clear current_target_pragma
23517         when creating builtin fndecls.
23519 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
23521         PR ipa/65005
23522         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
23523         function.
23524         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
23525         have no comdat group.
23526         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
23527         (lto_output_varpool_node): Always output alias info.
23528         (output_refs): Output refs of boundary aliases, too.
23529         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
23530         (output_symtab): Output call eges in thunks in boundary.
23531         (get_alias_symbol): Remove.
23532         (input_node, input_varpool_node): Do not special case weakrefs.
23533         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
23534         alias and thunks targets in the boundary; do not take removed symbols
23535         from their comdat groups.
23536         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
23537         (cgraph_node::global_info): Remove.
23538         (cgraph_node::rtl_info): Look through aliases and thunks.
23539         * cgrpah.h (global_info): Remove.
23540         (non_local_p): Remove.
23542 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
23543             Sandra Loosemore  <sandra@codesourcery.com>
23545         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
23546         to inline asm.  List dialects in proper order.
23548 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
23549             Sandra Loosemore  <sandra@codesourcery.com>
23551         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
23553 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
23555         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
23556         modified) reference to Solaris.
23558 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
23560         * doc/extend.texi (Extended Asm): Fix typos.
23562 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
23564         PR sanitizer/65004
23565         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
23567 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
23569         PR target/64661
23570         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
23571         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
23572         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
23573         * config/sh/constraints.md (Ara, Add): New constraints.
23574         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
23575         predicates.
23576         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
23577         atomic_mem_operand_0.  Don't use force_reg on the memory address.
23578         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
23579         Sra constraint.  Convert to insn_and_split.  Add workaround for
23580         PR 64974.
23581         (atomic_compare_and_swap<mode>_hard): Copy to
23582         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
23583         Use atomic_mem_operand_0 predicate.
23584         (atomic_compare_and_swap<mode>_soft_gusa,
23585         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
23586         AraAdd constraints.
23587         (atomic_compare_and_swap<mode>_soft_tcb,
23588         atomic_compare_and_swap<mode>_soft_imask,
23589         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
23590         atomic_mem_operand_0 predicate and SraSdd constraints.
23591         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
23592         constraint.
23593         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
23594         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
23595         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
23596         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
23597         force_reg on the memory address.
23598         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
23599         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
23600         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
23601         atomic_mem_operand_1 predicate and Sra constraint.
23602         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
23603         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
23604         Use atomic_mem_operand_1 predicate.
23605         (atomic_<fetchop_name><mode>_hard): Copy to
23606         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
23607         Use atomic_mem_operand_1 predicate.
23608         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
23609         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
23610         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
23611         insn_and_split.  Use atomic_mem_operand_1 predicate.
23612         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
23613         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
23614         Use atomic_mem_operand_1 predicate.
23615         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
23616         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
23617         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
23618         in generated insn with original mem operand before emitting the insn.
23619         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
23620         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
23621         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
23622         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
23623         Use atomic_mem_operand_1 predicate and AraAdd constraints.
23624         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
23625         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
23626         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
23627         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
23628         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
23629         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
23630         atomic_not_fetch<mode>_soft_tcb,
23631         atomic_<fetchop_name>_fetch<mode>_soft_imask,
23632         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
23633         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
23634         Use atomic_mem_operand_1 predicate and SraSdd constraints.
23636 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
23638         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
23639         and 3 earlyclobber operands.
23641 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
23643         * common.opt (fstack-reuse): Mark as optimization.
23645 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
23647         PR ipa/64982
23648         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
23650 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
23652         PR tree-optimization/64326
23653         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
23655 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
23657         PR gcov-profile/61889
23658         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
23660 2015-02-10  Richard Biener  <rguenther@suse.de>
23662         PR tree-optimization/64995
23663         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
23664         value we use is final.
23665         (visit_reference_op_store): Always valueize op.
23666         (visit_use): Properly valueize vuses.
23668 2015-02-10  Richard Biener  <rguenther@suse.de>
23670         PR tree-optimization/64909
23671         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
23672         pass a scalar-stmt count estimate to the cost model.
23673         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
23675 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
23677         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
23678         enabled by default together with var-tracking.
23680 2015-02-10  Nick Clifton  <nickc@redhat.com>
23682         * config/rl78/rl78.c: Remove DIV attribute code accidentally
23683         included in previous rl78 commit.
23685 2015-02-10  Richard Biener  <rguenther@suse.de>
23687         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
23688         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
23689         return the bitpack.
23691 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
23693         PR gcov-profile/61889
23694         * config.in: regenerate.
23695         * configure.in: Likewise.
23696         * configure.ac: Check for ftw.h.
23697         * gcov-tool.c: Check for ftw.h before using nftw.
23699 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
23701         PR lto/64076
23702         * ipa-visibility.c (update_visibility_by_resolution_info): Only
23703         assert when not in lto mode.
23705 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
23707         * ira-color.c (setup_left_conflict_sizes_p): Simplify
23708         initialization/assignment of conflict_size.
23710 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
23712         PR ipa/64978
23713         * ipa-cp.c (gather_caller_stats): Skip thunks.
23714         (propagate_constants_topo): Skip aliases.
23716 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
23718         PR target/64761
23719         * config/sh/sh.c (sh_option_override): Don't change
23720         -freorder-blocks-and-partition to -freorder-blocks even when
23721         unwinding is enabled.
23722         (sh_can_follow_jump): Return false if the followee jump is
23723         a crossing jump when -freorder-blocks-and-partition is specified.
23724         * config/sh/sh.md (*jump_compact_crossing): New insn.
23726 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
23727             Kaz Kojima  <kkojima@gcc.gnu.org>
23729         PR target/64761
23730         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
23731         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
23732         (sh_can_redirect_branch): Rename to ...
23733         (sh_can_follow_jump): ... this.  Constify argument types.
23734         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
23735         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
23736         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
23737         * doc/tm.texi: Regenerate.
23739 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
23741         PR sanitizer/64981
23742         * builtins.c (expand_builtin): Call targetm.expand_builtin
23743         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
23745 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23747         PR ipa/61548
23748         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
23750 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23752         PR ipa/63566
23753         * ipa-icf.c (set_local): New function.
23754         (sem_function::merge): Use it.
23756 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23758         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
23759         (add_type_duplicate): Fix comparison of BINFOs.
23761 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23763         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
23764         on getting VOID pointer.
23766 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
23768         PR target/64979
23769         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
23770         va_list escapes.
23772 2015-02-09  Richard Biener  <rguenther@suse.de>
23774         * genmatch.c (replace_id): Copy expr_type.
23776 2015-02-09  Richard Biener  <rguenther@suse.de>
23778         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
23779         (streamer_write_tree_bitfields): Declare.
23780         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
23781         properly unpack padding.
23782         (unpack_value_fields): Inline ...
23783         (streamer_read_tree_bitfields): ... here.
23784         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
23785         and properly add padding bits.
23786         (streamer_pack_tree_bitfields): Fold into ...
23787         (streamer_write_tree_bitfields): ... this new function,
23788         exposing the bitpack object.
23789         * lto-streamer-out.c (lto_write_tree_1): Call
23790         streamer_write_tree_bitfields.
23792 2015-02-09  Richard Biener  <rguenther@suse.de>
23794         PR tree-optimization/54000
23795         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
23796         (struct ivopts_data): Add loop_loc member.
23797         (tree_ssa_iv_optimize_loop): Dump loop location.
23798         (create_new_ivs): Likewise, also dump number of IVs generated.
23800 2015-02-09  Martin Liska  <mliska@suse.cz>
23802         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
23803         just if not yet registered.
23804         (ipa_icf_generate_summary): Register callgraph hooks.
23806 2015-02-08  Andrew Pinski  <apinski@cavium.com>
23808         * config/aarch64/aarch64.c (gty_dummy): Delete.
23810 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23812         PR ipa/63566
23813         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
23814         (cgraph_node::local_p): Remove thunk related FIXME.
23816 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23818         PR ipa/63566
23819         * i386.c (ix86_function_regparm): Look through aliases to see if callee
23820         is local and optimized.
23821         (ix86_function_sseregparm): Likewise; also use target's SSE math
23822         settings; error out instead of silently generating wrong code
23823         on mismatches.
23824         (init_cumulative_args): Look through aliases.
23826 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23828         PR ipa/63566
23829         * ipa-split.c (execute_split_functions): Split if function has aliases.
23831 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
23833         PR ipa/63566
23834         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
23835         aliases before trying to expand it.
23836         (cgraph_node::expand_thunk): Fix formating.
23838 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
23840         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
23841         (Using Assembly Language with C): Expand introduction.
23842         (Basic Asm): Copy-edit.  Add more information about uses of
23843         basic asm.
23844         (Extended Asm): Copy-edit.  Document new escape syntax and
23845         %l[label] syntax.
23846         (Global Reg Vars): Copy-edit.
23847         (Local Reg Vars): Likewise.
23849 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
23851         PR debug/2714
23852         PR bootstrap/64256
23853         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
23854         (DBX_CONTIN_CHAR): Define.
23856 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
23857             Brian Rzycki  <b.rzycki@samsung.com>
23859         PR tree-optimization/64878
23860         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
23861         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
23862         Stop recursion at loop phi nodes after having visited a loop phi node.
23864 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23866         * toplev.c (process_options): Change flag_ipa_ra before creating
23867         optimization_{default,current}_node.
23869         PR ipa/64896
23870         * cgraphunit.c (cgraph_node::expand_thunk): If
23871         restype is not is_gimple_reg_type nor the thunk_fndecl
23872         returns aggregate_value_p, set restmp to a temporary variable
23873         instead of resdecl.
23875 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
23877         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
23879 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23881         PR target/64205
23882         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
23883         add a general secondary reload handler for SDmode, unless we have
23884         both read/write support for SDmode.
23886 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23888         PR middle-end/64937
23889         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
23890         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
23891         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
23892         1 before, push it to abstract_vec.
23893         (dwarf2out_abstract_function): Adjust caller.  Don't call
23894         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
23895         DECL_ABSTRACT_P flags for all abstract_vec elts.
23897 2015-02-06  Renlin Li  <renlin.li@arm.com>
23899         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
23900         complex gimple.
23901         * tree-ssa.c (execute_update_addresses_taken): Likewise.
23903 2015-02-06  Jeff Law  <law@redhat.com>
23905         PR target/64889
23906         * config/h8300/h8300.c (push): New argument "in_prologue".
23907         Pass "in_prologue" along to "F".
23908         (h8300_push_pop): Corresponding changes.
23909         (h8300_expand_prologue): Likewise.
23910         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
23912 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
23914         PR rtl-optimization/64957
23915         PR debug/64817
23916         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
23917         IOR rather than for AND.
23919 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23921         PR target/62631
23922         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
23923         of shift-add and (add + shift) operations.  Rename local variable.
23925 2015-02-05  Jeff Law  <law@redhat.com>
23927         PR target/17306
23928         * config/h8300/constraints.md (U): Correctly dectect
23929         "eightbit_data" memory addresses.
23930         * config/h8300/h8300.c (eightbit_constant_address_p): Also
23931         handle (const (plus (symbol_ref (x)))) where x is declared
23932         as an 8-bit data memory address.
23933         * config/h8300/h8300.md (call, call_value): Correctly detect
23934         "funcvec" functions.
23936         PR target/43264
23937         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
23938         24 to 28 bits for the H8/300.
23940 2015-02-06  Alan Modra  <amodra@gmail.com>
23942         PR target/64876
23943         * config/rs6000/rs6000.c (chain_already_loaded): New function.
23944         (rs6000_call_aix): Use it.
23946 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
23948         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
23949         check.
23951 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
23953         * config/h8300/constraints.md ("U" constraint): Use strict
23954         variant of REG_OK_FOR_BASE_P after reload has started.
23956 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
23958         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
23959         define to zero if !TARGET_NEON.
23960         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
23962 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23963             Trevor Saunders  <tsaunders@mozilla.com>
23965         PR ipa/61548
23966         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
23968 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23970         PR ipa/61548
23971         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
23972         when removing varpool nodes.
23974 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23976         PR ipa/61548
23977         * varpool.c (varpool_node::remove): Fix order of variables.
23979 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23981         PR ipa/64686
23982         * ipa-inline.c (inline_small_functions): Fix ordering issue between
23983         speculation resolution and key updates.
23985 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23987         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
23988         about not letting any speculative edges unupdated.
23990 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23992         PR gcov/64123
23993         * gcov-io.c (gcov_var): Export.
23995 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
23997         PR middle-end/64922
23998         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
23999         edges that become speculative.
24001 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
24003         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
24004         or DW_LANG_Fortran08.
24005         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
24006         DW_LANG_Fortran08.
24007         (gen_compile_unit_die): Handle "GNU Fortran2003" and
24008         "GNU Fortran2008" language strings.
24009         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
24010         * langhooks.h (lang_GNU_Fortran): New prototype.
24011         * langhooks.c (lang_GNU_Fortran): New function.
24012         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
24013         lang_GNU_Fortran.
24015 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
24017         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
24018         (RTX_OK_FOR_OLO10_P): Likewise.
24020 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
24022         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
24024 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
24026         PR middle-end/64922
24027         * gimple.c: Include gimple-ssa.h.
24028         (maybe_remove_unused_call_args): New function.
24029         * gimple.h (maybe_remove_unused_call_args): Declare.
24030         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
24031         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
24032         * gimple-fold.c (gimple_fold_call): Likewise.
24034 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
24036         PR rtl-optimization/64905
24037         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
24038         pointer alignment if it isn't needed.
24040 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
24042         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
24043         cortex-a72.cortex-a53.
24044         * config/aarch64/aarch64-tune.md: Regenerate.
24045         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
24047 2015-02-04  Nick Clifton  <nickc@redhat.com>
24049         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
24050         inside a MEM.
24052 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
24054         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
24055         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
24056         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
24057         of DEF_BUILTIN.
24058         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
24059         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
24060         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
24061         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
24062         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
24063         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
24064         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
24065         * tree-core.h (enum built_in_function): In between
24066         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
24067         for builtins that use DEF_BUILTIN_CHKP macro.
24069 2015-02-04  Alexandre Oliva <aoliva@redhat.com>
24071         PR debug/64817
24072         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
24073         operands for tcc_comparison exprs.  Fix typos.
24075         PR debug/64817
24076         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
24077         of two XORs that have an intervening AND or IOR.
24079         PR debug/64817
24080         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
24081         simplification of XOR of AND to not allocate new rtx before
24082         committing to a simplification.
24084 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24086         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
24087         manual swaps in all peepholes.
24089 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24091         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
24092         of manual swapping implementation.
24093         (aarch64_expand_vec_perm_const_1): Likewise.
24095 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
24097         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
24098         (generic_addrcost_table): Remove NAMED_PARAM.
24099         (cortexa57_addrcost_table): Likewise.
24100         (xgene1_addrcost_table): Likewise.
24101         (generic_regmove_table): Likewise.
24102         (cortexa53_regmove_table): Likewise.
24103         (xgene1_regmove_table): Likewise.
24104         (generic_vector_table): Likewise.
24105         (cortexa57_vector_table): Likewise.
24106         (xgene1_vector_table): Likewise.
24107         (generic_tunings): Likewise.
24108         (cortexa53_tunings): Likewise.
24109         (cortexa57_tunings): Likewise.
24110         (xgene1_tunings): Likewise.
24112 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
24114         * config/arm/arm-cores.def: Add cortex-a72 and
24115         cortex-a72.cortex-a53.
24116         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
24117         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
24118         * config/arm/arm-tune.md: Regenerate.
24119         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
24120         "cortex-a72.cortex-a53".
24121         * doc/invoke.texi (ARM Options/-mtune): Likewise.
24123 2015-02-04  Nick Clifton  <nickc@redhat.com>
24125         PR target/64408
24126         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
24127         of accepted codes.
24128         (nonimmediate_di_operand): Likewise.
24130         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
24131         prefixes of known F5 using MSP430 MCUs.
24133 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24135         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
24136         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
24137         instead of __builtin_sqrt.
24139 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
24141         * varasm.c (do_assemble_alias): Follow transparent alias
24142         chain for target.
24143         (default_assemble_visibility): Follow transparent alias
24144         chain for decl name.
24146 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24148         PR middle-end/62103
24149         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
24150         to compute size of referenced value in the constant case.
24152 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
24154         PR rtl-optimization/64756
24155         * cse.c (invalidate_dest): New function.
24156         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
24157         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
24158         invalidate and do not record it.
24160 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
24162         PR target/64660
24163         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
24164         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
24165         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
24166         atomic_nand<mode>_soft_tcb): New insns.
24167         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
24168         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
24169         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
24170         Split into atomic_not_fetchsi_hard if operands[0] is unused.
24171         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
24172         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24173         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
24174         atomic_not<mode>_hard if operands[0] is unused.
24175         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
24176         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
24177         if operands[0] is unused.
24178         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
24179         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
24180         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
24181         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24182         unused.
24183         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
24184         into atomic_not<mode>_soft_tcb if operands[0] is unused.
24185         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
24186         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
24187         if operands[0] is unused.
24188         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
24189         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
24190         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
24191         atomic_nand_fetchsi_hard if operands[0] is unused.
24192         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
24193         atomic_nand<mode>_hard if operands[0] is unused.
24194         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
24195         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
24196         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
24197         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24198         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
24199         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
24200         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
24201         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
24202         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
24203         atomic_not<mode>_hard if operands[0] is unused.
24204         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
24205         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
24206         unused.
24207         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
24208         into atomic_not<mode>_soft_tcb if operands[0] is unused.
24209         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
24210         atomic_nand<mode>_hard if operands[0] is unused.
24211         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
24212         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
24214 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
24216         PR jit/64810
24217         * Makefile.in (GCC_OBJS): Add gcc-main.o.
24218         * gcc-main.c: New file, containing "main" taken from gcc.c.
24219         * gcc.c (do_self_spec): Free decoded_options.
24220         (class driver): Move declaration to gcc.h.
24221         (main): Move declaration and implementation to new file
24222         gcc-main.c.
24223         (driver_get_configure_time_options): New function.
24224         * gcc.h (class driver): Move this declaration here, from
24225         gcc.c.
24226         (driver_get_configure_time_options): New declaration.
24228 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
24230         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
24231         cross-module inlining.
24232         * cgraph.h (cgraph_node): Add flag merged.
24233         * ipa-icf.c (sem_function::merge): Maintain it.
24235 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
24237         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
24238         instead of OBJECT_P.
24240 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
24242         PR target/62631
24243         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
24244         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
24245         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
24246         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
24248 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
24250         PR other/63504
24251         * combine.c (reg_n_sets_max): New variable.
24252         (can_change_dest_mode, reg_nonzero_bits_for_combine,
24253         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
24254         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
24255         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
24256         (rest_of_handle_combine): Initialize reg_n_sets_max.
24258 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
24260         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
24261         if some always_inline was inlined, apply changes before inlining
24262         heuristically.
24264 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
24266         PR jit/64810
24267         * config/arm/arm.c (arm_option_override): Set
24268         arm_selected_arch/cpu/tune to NULL on entry.
24270 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
24271             Andrew Pinski  <pinskia@gcc.gnu.org>
24272             Jakub Jelinek  <jakub@gcc.gnu.org>
24274         PR target/64231
24275         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
24276         integer typing for small model. Use IN_RANGE.
24278 2015-02-02  Richard Biener  <rguenther@suse.de>
24280         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
24281         * tree-vrp.c (vrp_valueize_1): Likewise.
24283 2015-02-02  Alan Modra  <amodra@gmail.com>
24285         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
24286         than mem for toc_restore.
24287         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
24288         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
24289         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
24291 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
24293         PR target/64047
24294         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
24295         explicit default options.
24297 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
24299         PR ipa/64872
24300         * ipa-utils.c (ipa_merge_profiles): Add release argument.
24301         * ipa-icf.c (sem_function::merge): Do not release body when merging.
24302         * ipa-utils.h (ipa_merge_profiles): Update prototype.
24304 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
24306         PR debug/64817
24307         * cfgexpand.c (deep_ter_debug_map): New variable.
24308         (avoid_deep_ter_for_debug): New function.
24309         (expand_debug_expr): If TERed SSA_NAME is in
24310         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
24311         instead of trying to expand SSA_NAME's def stmt.
24312         (expand_debug_locations): When expanding debug bind
24313         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
24314         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
24315         value.
24316         (pass_expand::execute): Call avoid_deep_ter_for_debug on
24317         all debug bind stmts.  Delete deep_ter_debug_map after
24318         expand_debug_location if non-NULL and clear it.
24320 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
24322         PR target/64851
24323         * config/sh/sync.md (atomic_fetch_notsi_hard,
24324         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
24325         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
24326         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
24327         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
24328         atomic_not_fetch<mode>_soft_imask): New insns.
24330 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24332         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
24333         (rank_for_schedule_debug): Split from ...
24334         (rank_for_schedule): ... this.
24335         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
24336         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
24338 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
24340         * doc/md.texi (Machine Constraints): Alphabetize table by target.
24341         * doc/extend.texi (x86 Variable Attributes): Move section to
24342         correct alphabetization after renaming.
24343         (x86 Type Attributes): Likewise.
24344         (Target Builtins): Re-alphabetize menu.
24345         (x86 Built-in Functions): Move section to correct alphabetization
24346         after renaming.
24347         (x86 transactional memory intrinsics): Likewise.
24348         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
24349         and x86 Windows Options in table and menu.
24350         (x86 Options): Move section to correct alphabetization after
24351         renaming.
24352         (x86 Windows Options): Likewise.
24354 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
24356         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
24357         preferred names of the architecture and its 32- and 64-bit
24358         variants.
24359         * doc/invoke.texi: Likewise.
24360         * doc/md.texi: Likewise.
24362 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
24364         PR target/64882
24365         * config/i386/predicates.md (address_no_seg_operand): Reject
24366         non-CONST_INT_P operands in invalid mode.
24368 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
24370         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
24371         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
24372         * config/i386/predicates.md (address_no_seg_operand): Call
24373         address_operand with VOIDmode.
24374         (vsib_address_operand): Ditto.
24375         (address_mpx_no_base_operand): Ditto.
24376         (address_mpx_no_index_operand): Ditto.
24378 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
24380         PR target/64688
24381         * lra-constraints.c (original_subreg_reg_mode): New.
24382         (simplify_operand_subreg): Try to simplify subreg of const.  Use
24383         original_subreg_reg_mode for it.
24384         (swap_operands): Update original_subreg_reg_mode.
24385         (curr_insn_transform): Set up original_subreg_reg_mode.
24387 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
24389         PR target/64617
24390         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
24391         function.
24392         (process_alt_operands): Use it.
24393         (curr_insn_transform): Check the optional reload pseudo class is
24394         ok for the mode.
24396 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
24398         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
24399         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
24400         prototype.
24401         * toplev.h (init_asm_output): Update comment on use of
24402         UNKNOWN_LOCATION with fatal_error.
24403         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
24404         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
24405         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
24406         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
24407         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
24408         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
24409         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
24410         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
24411         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
24412         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
24413         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
24414         fatal_error changed to pass input_location as first argument.
24416 2015-01-30  Martin Liska  <mliska@suse.cz>
24418         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
24419         in #pragma GCC diagnostic guards.
24421 2015-01-30  Richard Biener  <rguenther@suse.de>
24423         PR tree-optimization/64829
24424         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
24425         not add a widening conversion pattern but hand off extra
24426         widenings to callers.
24427         (vect_recog_widen_mult_pattern): Handle extra widening produced
24428         by vect_handle_widen_op_by_const.
24429         (vect_recog_widen_shift_pattern): Likewise.
24430         (vect_pattern_recog_1): Remove excess vertical space in dumping.
24431         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
24432         (vect_init_vector_1): Likewise.
24433         (vect_get_vec_def_for_operand): Likewise.
24434         (vect_finish_stmt_generation): Likewise.
24435         (vectorizable_load): Likewise.
24436         (vect_analyze_stmt): Likewise.
24437         (vect_is_simple_use): Likewise.
24439 2015-01-29  Jeff Law  <law@redhat.com>
24441         * combine.c (try_combine): Fix typo in comment.
24443 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
24445         PR target/64580
24446         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
24447         (rs6000_stack_info): Add assert.
24448         (rs6000_output_savres_externs): New function, split off from...
24449         (rs6000_output_function_prologue): ... here.  Do not call it for
24450         thunks.
24452 2015-01-29  Jeff Law  <law@redhat.com>
24454         PR target/15184
24455         * combine.c (try_combine): If I0 is a memory load and I3 a store
24456         to a related address, increase the "goodness" of doing a 4-insn
24457         combination with I0-I3.
24458         (make_field_assignment): Handle SUBREGs in the ior+and case.
24460 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
24462         PR tree-optimization/64746
24463         * tree-if-conv.c (mask_exists): New function.
24464         (predicate_mem_writes): Save created mask with given size for further
24465         use.
24466         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
24467         (ifcvt_repair_bool_pattern): Collect all statements that are root
24468         of bool pattern and use iterative algorithm to remove multiple uses
24469         of predicates, display number of required iterations.
24471 2015-01-29  Richard Biener  <rguenther@suse.de>
24473         PR tree-optimization/64853
24474         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
24475         stmt will get simulated again.
24476         * tree-ssa-ccp.c (valueize_op_1): Likewise.
24478 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24480         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
24481         return_in_pc.  Remove redundant assignments.
24482         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
24483         (arm_expand_epilogue): Don't compare boolean with true in if condition.
24485 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
24487         * config/i386/i386.c (ix86_mode_after): Make static.
24489 2015-01-29  Richard Biener  <rguenther@suse.de>
24491         PR tree-optimization/64844
24492         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
24493         dump cost model analysis.
24494         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24495         Do not register adjusted load/store costs here.
24497 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
24498             Uros Bizjak  <ubizjak@gmail.com>
24500         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
24501         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
24502         using x86_use_pseudo_pic_reg.
24503         * config/i386/i386.c (ix86_conditional_register_usage): Remove
24504         support for fixed PIC register.
24505         (ix86_use_pseudo_pic_reg): Not static any more.
24507 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
24509         PR middle-end/64805
24510         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
24511         to avoid error in cgraph node verification.
24513 2015-01-29  Marek Polacek  <polacek@redhat.com>
24515         * doc/standards.texi: Reflect that the default for C is gnu11.
24517 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
24519         PR target/64761
24520         * reorg.c (switch_text_sections_between_p): New function.
24521         (relax_delay_slots): Call it when testing if the jump insn
24522         is removable.  Use targetm.can_follow_jump when testing if
24523         the conditional branch can follow an unconditional jump.
24525 2015-01-27  Caroline Tice  <cmtice@google.com>
24527         Committing VTV Cywin/Ming patch for Patrick Wollgast
24528         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
24529         if -fvtable-verify=preinit/std is used.
24530         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
24531         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
24532         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
24533         if -fvtable-verify=preinit/std is used.
24534         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
24535         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
24536         if -fvtable-verify=preinit/std is used.
24537         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
24538         * config/i386/mingw32.h (LIB_SPEC): Likewise.
24539         * varasm.c (assemble_variable): Add code to properly set the comdat
24540         section and name for the .vtable_map_vars section in case the
24541         target is PE or COFF.
24543 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
24545         PR ipa/64801
24546         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
24547         make sane BB profile.
24548         (cgraph_node::expand_thunk): Make sane BB profile.
24549         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
24550         * cgraph.h (init_lowered_empty_function): Update prototype.
24551         * config/i386/i386.c (make_resolver_func): Update call.
24552         * predict.c (gate): Disable branch prediction pass if
24553         profile is already there.
24555 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
24557         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
24558         * opth-gen.awk: Likewise.
24559         * common.opt: Mark flag_fp_contract_mode as Optimization.
24561 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24563         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
24564         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
24566 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
24568         PR target/64659
24569         * config/sh/predicates.md (atomic_arith_operand,
24570         atomic_logical_operand): Remove.
24571         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
24572         (atomic_arith_operand_0): New predicate.
24573         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
24574         Use atomic_arith_operand_0 for input values.
24575         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
24576         atomic_compare_and_swap<mode>_soft_gusa,
24577         atomic_compare_and_swap<mode>_soft_tcb,
24578         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
24579         arith_reg_operand instead of register_operand.
24580         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
24581         atomic_arith_operand_0 for newval input.
24582         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
24583         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
24584         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
24585         arith_reg_operand instead of register_operand.
24586         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
24587         fetchop_predicate_1, fetchop_constraint_1_llcs,
24588         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
24589         fetchop_constraint_1_imask): New code iterator attributes.
24590         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
24591         register_operand.  Use fetchop_predicate_1.
24592         (atomic_fetch_<fetchop_name>si_hard,
24593         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
24594         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
24595         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
24596         and arith_reg_operand instead of register_operand.  Use
24597         fetchop_predicate_1, fetchop_constraint_1_gusa.
24598         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
24599         and arith_reg_operand instead of register_operand.  Use
24600         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
24601         to allow R0 usage.
24602         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
24603         and arith_reg_operand instead of register_operand.  Use
24604         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
24605         to allow R0 usage.
24606         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
24607         register_operand.  Use atomic_logical_operand_1.
24608         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
24609         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
24610         arith_reg_operand instead of register_operand.
24611         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
24612         Use arith_reg_dest and arith_reg_operand instead of register_operand.
24613         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
24614         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
24615         register_operand.  Use fetchop_predicate_1.
24616         (atomic_<fetchop_name>_fetchsi_hard,
24617         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
24618         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
24619         fetchop_constraint_1_llcs.
24620         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
24621         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
24622         fetchop_constraint_1_gusa.
24623         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
24624         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
24625         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
24626         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
24627         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
24628         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
24629         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
24630         register_operand.  Use atomic_logical_operand_1.
24631         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
24632         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
24633         arith_reg_operand instead of register_operand.
24634         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
24635         arith_reg_operand instead of register_operand.  Use logical_operand
24636         and K08.  Adjust asm sequence to allow R0 usage.
24637         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
24638         arith_reg_operand instead of register_operand.  Use logical_operand
24639         and K08.
24641 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
24643         PR other/63504
24644         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
24645         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
24646         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
24647         only get_full_len HOST_WIDE_INTs from get_val () array rather than
24648         all bits in *val_wide.
24650 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
24652         * varpool.c (tls_model_names): Fix names.
24653         (varpool_node::dump): Dump tls- prefix for tls models.
24655 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
24656             Bernd Schmidt  <bernds@codesourcery.com>
24657             Nathan Sidwell  <nathan@codesourcery.com>
24659         * config/nvptx/mkoffload.c: New file.
24660         * config/nvptx/t-nvptx: Add build rules for it.
24661         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
24662         (extra_programs): Add mkoffload.
24663         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
24664         function.
24665         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
24667 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
24669         PR middle-end/64809
24670         * cfgexpand.c (reorder_operands): Skip debug gimples.
24672 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
24674         PR tree-optimization/64277
24675         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
24676         range info when possible to refine estimation.
24678 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24680         PR tree-optimization/64718
24681         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
24682         be a 16bit unsigned integer when n->range is 16.
24683         (bswap_replace): Convert src to that type if necessary for all bswap
24684         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
24685         set in pass_optimize_bswap::execute ().
24687 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
24689         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
24690         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
24691         integer and floating point variants.
24692         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
24694 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
24696         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
24697         for all vector modes.
24699 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
24701         PR bootstrap/64612
24702         * doc/sourcebuild.texi (comdat_group): Document.
24704 2015-01-28  Terry Guo  <terry.guo@arm.com>
24706         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
24708 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
24710         * toplev.c (print_version): Add param "show_global_state", and
24711         only print GGC and plugin information if it is true.
24712         (init_asm_output): Pass in "true" for the new param when calling
24713         print_version.
24714         (process_options): Likewise.
24715         (toplev::main): Likewise.
24716         * toplev.h (print_version): Add new param to decl.
24718 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
24720         PR ipa/60871
24721         PR ipa/64139
24722         * tree.c (lookup_binfo_at_offset): New function.
24723         (get_binfo_at_offset): Use it.
24725 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
24727         PR ipa/64282
24728         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
24729         on vtable being vtable.
24731 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24733         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
24734         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
24735         -mhotpatch= option.
24736         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
24737         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
24738         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
24739         Renamed.
24740         (s390_hotpatch_trampoline_halfwords_max): Renamed.
24741         (s390_hotpatch_hw_max): New name.
24742         (s390_hotpatch_trampoline_halfwords): Renamed.
24743         (s390_hotpatch_hw_before_label): New name.
24744         (get_hotpatch_attribute): Removed.
24745         (s390_hotpatch_hw_after_label): New name.
24746         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
24747         attribute.
24748         (s390_attribute_table): Ditto.
24749         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
24750         (s390_function_num_hotpatch_hw): New name.
24751         Remove special handling of inline functions and hotpatching.
24752         Return number of nops before and after the function label.
24753         (s390_can_inline_p): Removed.
24754         (s390_asm_output_function_label): Emit a configurable number of nops
24755         after the function label.
24756         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
24757         (TARGET_CAN_INLINE_P) Removed.
24758         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
24760 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24761             Jiong Wang  <jiong.wang@arm.com>
24763         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
24764         of scratch reg.
24765         (cb<optab><mode>1): Likewise.
24766         * config/aarch64/iterators.md (bcond): New define_code_attr.
24768 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24770         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
24771         memory accesses.
24773 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24775         * config/s390/s390.c (s390_register_move_cost): Increase costs for
24776         FPR->GPR moves.
24778 2015-01-27  Richard Biener  <rguenther@suse.de>
24780         * tree-vrp.c (update_value_range): Intersect the range with
24781         old recorded SSA name range information.
24783 2015-01-27  Nick Clifton  <nickc@redhat.com>
24785         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
24786         BC, DE and HL registers directly, not via AX.
24787         When decrementing the stack pointer by a large amount, transfer SP
24788         into AX and perform the subtraction there.
24789         (rl78_expand_epilogue): Perform the inverse of the above
24790         enhancements.
24792 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24794         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
24796 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24797             Yury Gribov  <y.gribov@samsung.com>
24799         PR ubsan/64741
24800         * ubsan.c (ubsan_source_location): Refactor code.
24801         (ubsan_type_descriptor): Update type size. Refactor code.
24803 2015-01-27  Richard Biener  <rguenther@suse.de>
24805         PR tree-optimization/56273
24806         PR tree-optimization/59124
24807         PR tree-optimization/64277
24808         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
24809         from the first VRP pass.
24811 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24813         PR ipa/64776
24814         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
24815         handle the first argument in the same loop as all the other arguments.
24817         PR rtl-optimization/61058
24818         * jump.c (cleanup_barriers): Update basic block boundaries
24819         if BLOCK_FOR_INSN is non-NULL on PREV.
24821 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
24823         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
24824         bounds narrowing, already instrumented calls and calls to
24825         not instrumentable functions.
24827 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
24829         PR tree-optimization/64807
24830         * wide-int.cc (wi::divmod_internal): Clear
24831         b_dividend[dividend_blocks_needed].
24833 2015-01-26  DJ Delorie  <dj@redhat.com>
24835         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
24836         volatile memory references.
24838 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
24840         PR target/49263
24841         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
24842         remove_insn.
24843         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
24844         shifts if it already fits into K08.
24846 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24848         PR ipa/64730
24849         * ipa-inline.c (inline_small_functions): Print "unknown" even
24850         if edge->call_stmt is non-NULL, but has builtins or unknown
24851         location.
24853         PR middle-end/64421
24854         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
24855         with asterisk, skip the first character.
24857 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24859         PR target/64806
24860         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
24861         order change.
24863 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
24865         PR target/64795
24866         * config/i386/i386.md (*movdi_internal): Also check operand 0
24867         to determine TYPE_LEA operand.
24868         (*movsi_internal): Ditto.
24870 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
24872         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
24873         OPTION_MASK_QUAD_MEMORY_ATOMIC.
24875 2015-01-26  Renlin Li  <renlin.li@arm.com>
24877         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
24878         the comment.
24879         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
24880         for higher part.
24882 2015-01-26  Richard Biener  <rguenther@suse.de>
24884         PR middle-end/64764
24885         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
24886         combining two BIT_AND_EXPR predicates.
24888 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
24890         PR bootstrap/64754
24891         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
24893 2015-01-26  Terry Guo  <terry.guo@arm.com>
24895         * config/arm/arm.c (arm_file_start): Update the assignment of
24896         Tag_ABI_HardFP_use.
24898 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
24900         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
24901         pipeline model.
24902         config/arm/arm.md: Include the new Cortex-A57 model.
24903         (generic_sched): Don't use generic_sched when tuning for
24904         Cortex-A57.
24906 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
24907             Uros Bizjak  <ubizjak@gmail.com>
24909         * config/i386/i386.c (get_builtin_code_for_version): Add
24910         support for BMI and BMI2 multiversion functions.
24912 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24914         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
24915         (extract_bit_field): Likewise.
24916         (extract_low_bits): Likewise.
24917         (expand_mult): Likewise.
24918         (expand_mult_highpart_adjust): Likewise.
24920 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
24922         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
24923         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
24924         * config/i386/i386.c (processor_model): Add
24925         M_INTEL_COREI7_BROADWELL.
24926         (arch_names_table): Add "broadwell".
24928 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
24930         PR target/49263
24931         PR target/53987
24932         PR target/64345
24933         PR target/59533
24934         PR target/52933
24935         PR target/54236
24936         PR target/51244
24937         * config/sh/sh-protos.h
24938         (sh_extending_set_of_reg::can_use_as_unextended_reg,
24939         sh_extending_set_of_reg::use_as_unextended_reg,
24940         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
24941         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
24942         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
24943         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
24944         (sh_treg_insns): New class.
24945         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
24946         (scope_counter): New class.
24947         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
24948         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
24949         sh_extending_set_of_reg::can_use_as_unextended_reg,
24950         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
24951         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
24952         sh_split_treg_set_expr): New functions.
24953         (addsubcosts): Handle treg_set_expr.
24954         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
24955         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
24956         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
24957         (sh_insn_operands_modified_between_p): Make non-static.
24958         * config/sh/predicates.md (zero_extend_movu_operand): Allow
24959         simple_mem_operand in addition to displacement_mem_operand.
24960         (zero_extend_operand): Don't allow zero_extend_movu_operand.
24961         (treg_set_expr, treg_set_expr_not_const01,
24962         arith_reg_or_treg_set_expr): New predicates.
24963         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
24964         arith_or_int_operand instead of logical_operand.  Convert to
24965         insn_and_split.  Try to optimize constant operand in splitter.
24966         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
24967         (*tstqi_t_zero): Delete.
24968         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
24969         (tstsi_t_and_not): Delete.
24970         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
24971         Convert to insn_and_split.
24972         (unnamed split, tstsi_t_zero_extract_xor,
24973         tstsi_t_zero_extract_subreg_xor_little,
24974         tstsi_t_zero_extract_subreg_xor_big): Delete.
24975         (*tstsi_t_shift_mask): New insn_and_split.
24976         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
24977         to recombine with surrounding insns when splitting.
24978         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
24979         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
24980         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
24981         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
24982         (*cbranch_div0s: Delete.
24983         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24984         Try to recombine with surrounding insns when splitting.  Add operand
24985         order variants.
24986         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
24987         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
24988         *addc_r_r_msb, *addc_2r_msb): Delete.
24989         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
24990         order variant.
24991         (*addc_negreg_t): New insn_and_split.
24992         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
24993         Try to recombine with surrounding insns when splitting.
24994         Add operand order variants.
24995         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
24996         insn_and_split patterns.
24997         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
24998         surrounding insns when splitting.
24999         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
25000         (*rotcl): Likewise.  Add zero_extract variant.
25001         (*ashrsi2_31): New insn_and_split.
25002         (*negc): Convert to insn_and_split.  Use treg_set_expr.
25003         (*zero_extend<mode>si2_disp_mem): Update comment.
25004         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
25005         condition.
25006         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
25007         with surrounding insns when splitting.
25008         (any_treg_expr_to_reg): New insn_and_split.
25009         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
25010         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
25011         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
25012         *zero_extract_2): New single bit zero extract patterns.
25013         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
25014         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
25015         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
25016         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
25017         set destination.
25018         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
25019         register_operand for set source.
25021 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
25023         * i386.opt (prefetch_sse): New targetsave.
25024         * i386.c (ix86_function_specific_save): Save prefetch_sse.
25025         (ix86_function_specific_restore): Restore prefetch_sse and initialize
25026         ix86_cost/ix86_tune_cost.
25028 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
25030         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
25031         Support the JIT by using 0 as the language type.
25033 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
25035         PR target/64317
25036         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
25037         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
25038         (mark_regno_live, process_bb_lives): Pass new parameter value to
25039         make_hard_regno_born.
25041 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
25043         PR rtl-optimization/63637
25044         PR rtl-optimization/60663
25045         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
25046         if elt->cost is MAX_COST for ASM_OPERANDS.
25047         (find_sets_in_insn): Fix up comment typo.
25048         (cse_insn): Don't set src_volatile for all non-volatile
25049         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
25050         or with "memory" clobber.  Set elt->cost to MAX_COST
25051         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
25052         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
25054 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
25056         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
25057         alternative 1.
25059 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
25061         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
25062         libgcc/config/i386/elf-lib.h.
25064 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
25066         PR driver/64737
25067         * gcc.c (print_configuration): Don't print a blank line at the end
25068         here...
25069         (run_attempt): ... but here unstead.
25071         PR middle-end/64734
25072         * omp-low.c (scan_sharing_clauses): Don't ignore
25073         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
25074         on target data/update constructs.
25076 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25078         PR target/50928
25079         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
25080         (DEBUG_RELOAD): Removed define.
25081         (m32c_limit_reload_class): Enable traces with if DEBUG0.
25082         (m32c_function_arg): Added a type cast.
25083         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
25084         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
25085         * config/m32c/bitops.md (andqi3_16): Likewise.
25086         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
25087         (push_a01_l): Likewise.
25089 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
25091         PR jit/64721
25092         * main.c (main): Construct toplev instances with init_signals=true.
25093         * toplev.c (general_init): Add param "init_signals", and use it to
25094         conditionalize the calls to signal and host_hooks.extra_signals.
25095         (toplev::toplev): Add param "init_signals".
25096         (toplev::main): When invoking general_init, pass m_init_signals
25097         to control whether signal-handlers are installed.
25098         * toplev.h (toplev::toplev): Add param "init_signals".
25099         (toplev::m_init_signals): New field.
25101 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
25103         PR jit/64722
25104         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
25105         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
25106         latter may be affected by the former (e.g. on i686).
25108 2015-01-23  Martin Liska  <mliska@suse.cz>
25110         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
25111         false positive during profiledbootstrap.
25113 2015-01-23  Tom de Vries  <tom@codesourcery.com>
25115         PR libgomp/64672
25116         * lto-opts.c (lto_write_options): Output non-explicit conservative
25117         -fno-openacc.
25118         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
25119         (append_compiler_options): Pass -fopenacc through.
25121 2015-01-23  Tom de Vries  <tom@codesourcery.com>
25123         PR libgomp/64707
25124         * lto-opts.c (lto_write_options): Output non-explicit conservative
25125         -fno-openmp.
25126         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
25127         (append_compiler_options): Pass -fopenmp through.
25129 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
25131         PR debug/64511
25132         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
25133         GTY markup.
25135         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
25136         * diagnostic.def (DK_ICE_NOBT): New kind.
25137         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
25138         like DK_ICE, but never print backtrace.
25139         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
25140         (internal_error_no_backtrace): New function.
25141         * gcc.c (execute): Use internal_error_no_backtrace instead of
25142         internal_error.
25144 2015-01-22  Jeff Law  <law@redhat.com>
25146         PR target/52076
25147         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
25148         improve code density for small immediate to memory case.
25149         (insv): Better handle bitfield assignments when the field is
25150         being set to all ones.
25151         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
25152         operand predicate.
25154 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25155             Jakub Jelinek  <jakub@redhat.com>
25157         PR middle-end/64729
25158         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
25159         for !TARGET_LIBC_PROVIDES_SSP version and
25160         -fstack-protector-{all,strong,explicit} otherwise.
25161         * config/freebsd.h (LINK_SSP_SPEC): Handle
25162         -fstack-protector-{strong,explicit}.
25164 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
25165             H.J. Lu  <hongjiu.lu@intel.com>
25167         PR ipa/64694
25168         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
25169         heap.
25171 2015-01-22  Wei Mi  <wmi@google.com>
25173         PR rtl-optimization/64557
25174         * dse.c (record_store): Call get_addr for mem_addr.
25175         (check_mem_read_rtx): Likewise.
25177 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
25179         * fold-const.c (const_binop): Add early return for non-tcc_binary.
25181 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
25183         * toplev.c (init_local_tick): Process the failure when read
25184         fails for random_seed.
25186         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
25187         'pretty_name' to avoid memory overflow.
25189 2015-01-22  Richard Biener  <rguenther@suse.de>
25191         PR middle-end/64728
25192         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
25193         abnormal coalescing on undefined SSA names.
25195 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
25197         PR target/64688
25198         PR target/64477
25199         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
25200         for alternative 3.
25201         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
25203 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
25205         PR middle-end/63325
25206         * fold-const.c (fold_checksum_tree): Don't include value of
25207         expr->decl_with_vis.symtab_node in the checksum.
25209 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25211         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
25213 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
25215         PR driver/64690
25216         * gcc.c (insert_comments): New function.
25217         (try_generate_repro): Call it.
25218         (append_text): Removed.
25220 2015-01-22  Richard Biener  <rguenther@suse.de>
25222         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
25223         with IL incompatible options.  Properly honor user optimize
25224         attributes.
25226 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
25228         PR rtl-optimization/64682
25229         * combine.c (distribute_notes): When moving a death note for
25230         a register that is set in the new I2, make sure to put it
25231         before that new I2.
25233 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
25235         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
25236         not TARGET_DEFAULT.
25238 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
25240         PR debug/64511
25241         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
25242         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
25243         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
25245         PR sanitizer/64706
25246         * doc/invoke.texi (-fsanitize=vptr): Document.
25248         PR rtl-optimization/62078
25249         * dse.c: Include cfgcleanup.h.
25250         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
25251         anything call purge_all_dead_edges and cleanup_cfg at the end
25252         of the pass.
25254 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
25256         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
25257         edges.
25259 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25261         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
25262         decl attribute.
25264 2015-01-21  David Sherwood  <david.sherwood@arm.com>
25265             Tejas Belagod <Tejas.Belagod@arm.com>
25267         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
25268         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
25269         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
25270         Removed.
25272 2015-01-21  David Sherwood  <david.sherwood@arm.com>
25273             Tejas Belagod <Tejas.Belagod@arm.com>
25275         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
25276         (aarch64_reverse_mask): New decls.
25277         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
25278         (insn_count): New mode_attr.
25279         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
25280         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
25281         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
25282         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
25283         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
25284         (aarch64_simd_st4): New patterns.
25285         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
25286         (aarch64_reverse_mask): New functions.
25288 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
25290         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
25291         Declare.
25292         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
25293         addressing modes for BE.
25294         (aarch64_print_operand): Add 'R' specifier.
25295         (aarch64_simd_disambiguate_copy): Delete.
25296         (aarch64_simd_emit_reg_reg_move): New function.
25297         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
25298         in define_splits for structural moves.
25299         (mov<mode>): Use less restrictive predicates.
25300         (*aarch64_mov<mode>): Simplify and only allow for LE.
25301         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
25303 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
25305         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
25307 2015-01-21  Richard Henderson  <rth@redhat.com>
25309         PR target/64669
25310         * ccmp.c (used_in_cond_stmt_p): Remove.
25311         (expand_ccmp_expr): Don't use it.
25313 2015-01-21  Nick Clifton  <nickc@redhat.com>
25315         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
25316         PARALLELs.
25318 2015-01-21  Richard Biener  <rguenther@suse.de>
25320         PR middle-end/64313
25321         * tree-core.h (builtin_info, builtin_info_type): Turn from
25322         an object with two arrays into an array of an object with
25323         decl and two flags, implicit_p and declared_p.
25324         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
25325         set_builtin_decl, set_builtin_decl_implicit_p,
25326         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
25327         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
25328         * builtins.c (builtin_info): Adjust.
25329         * gimplify.c (gimplify_addr_expr): References to builtins
25330         that have been declared by the user makes them eligible for
25331         use by the compiler.  Call set_builtin_decl_implicit_p on them.
25333 2015-01-20  Jeff Law  <law@redhat.com>
25335         PR target/59946
25336         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
25337         allow pc-relative addresses in operand predicates or constraints.
25339 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
25341         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
25342         neon on aarch32 processors for stringops.
25344 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25346         PR ipa/63576
25347         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
25349 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25351         PR lto/45375
25352         * ipa-inline.c: Include lto-streamer.h
25353         (report_inline_failed_reason): Output source file differences and
25354         flags on optimization/target node mismatch.
25355         (can_inline_edge_p): Consider caller to be the outer inline function;
25356         be less restrictive about matching opimize and optimize_size attributes.
25357         (inline_account_function_p): Break out from ...
25358         (inline_small_functions): ... here.
25359         * ipa-inline-transform.c (clone_inlined_nodes): Use
25360         inline_account_function_p.
25361         (inline_call): Use optimize attribution; use inline_account_function_p.
25362         (inline_transform): Use opt_for_fn.
25363         * ipa-inline.h (inline_account_function_p): Declare.
25365 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
25367         PR debug/64663
25368         * dwarf2out.c (decl_piece_node): Don't put bitsize into
25369         mode if bitsize <= 0.
25370         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
25371         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
25372         sizes and positions.
25374 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
25376         * config/nios2/nios2.c (nios2_asm_file_end): Implement
25377         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
25378         needed.
25379         (TARGET_ASM_FILE_END): Define.
25381 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25383         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
25384         (struct tune_params): Use the enum.
25385         * arm.c (arm_*_tune): Update.
25386         (arm_option_override): Update.
25388 2015-01-20  Richard Biener  <rguenther@suse.de>
25390         PR ipa/64684
25391         * ipa-reference.c (add_static_var): Inline ...
25392         (analyze_function): ... here after splitting out from ...
25393         (is_proper_for_analysis): ... this.
25395 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
25397         PR target/64149
25398         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
25399         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
25400         replace the conditional with it's true branch.
25401         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
25402         (arm_lra_p): Remove.
25404 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
25406         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
25408 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25410         * config/tilegx/mul-tables.c: Move symtab.h include after
25411         coretypes.h include.
25412         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
25413         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
25414         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
25415         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
25416         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
25418 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
25420         PR bootstrap/64676
25421         Revert:
25422         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
25424         PR rtl-optimization/64081
25425         * loop-iv.c (def_pred_latch_p): New function.
25426         (latch_dominating_def): Allow specific cases with non-single
25427         definitions.
25428         (iv_get_reaching_def): Likewise.
25429         (check_complex_exit_p): New function.
25430         (check_simple_exit): Use check_complex_exit_p to allow certain cases
25431         with exits not executing on any iteration.
25433 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25435         PR lto/45375
25436         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
25437         to set branch cost.
25439 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25441         PR lto/45375
25442         * i386.c (gate): Check flag_expensive_optimizations and
25443         optimize_size.
25444         (ix86_option_override_internal): Drop optimize_size condition
25445         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
25446         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
25447         MASK_PREFER_AVX128.
25448         (ix86_avx256_split_vector_move_misalign,
25449         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
25450         * sse.md (all uses of TARGET_PREFER_AVX128): Add
25451         optimize_insn_for_speed_p check.
25453 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
25455         * config/mips/mips.h (FP_ASM_SPEC): New define.
25456         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
25457         instead.
25459 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
25461         PR target/53988
25462         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
25463         nullptr for insn when reaching the first insn.
25464         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
25465         (sh_insn_operands_modified_between_p): Add nullptr check.
25466         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
25467         sign extending mem load if the insn contains any UNSPEC or
25468         UNSPEC_VOLATILE.
25470 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25472         * params.def (inline-unit-growth): Drop to 15%.
25473         * invoke.texi (inline-unit-growth): Document change.
25475 2015-01-19  Martin Liska  <mliska@suse.cz>
25477         PR ipa/64668
25478         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
25479         function for second argument of OBJ_TYPE_REF.
25481 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25483         PR ipa/64218
25484         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
25485         whether function is an alias.
25487 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
25489         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
25490         cases.
25492 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
25494         PR rtl-optimization/64671
25495         * lra-remat.c (operand_to_remat): Don't consider jump and call
25496         insns.
25498 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
25500         PR target/59828
25501         * config/rs6000/default64.h: Include rs6000-cpus.def.
25502         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
25503         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
25504         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
25505         and POWER8.
25506         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
25507         POWER8.
25508         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
25509         pseudo-op to specify assembler dialect.
25511 2015-01-19  Martin Liska  <mliska@suse.cz>
25513         PR ipa/64664
25514         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
25515         Handle safe potentially removed nodes during filtering.
25517 2015-01-19  Martin Liska  <mliska@suse.cz>
25519         * doc/extend.texi (no_icf): Add new attribute description.
25520         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
25521         where the pass attempts to merge a function with no_icf attribute.
25523 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25525         PR target/64532
25526         * doc/md.texi (ARM Options): Document register constraints.
25528 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
25529             Andrew Pinski  <apinski@cavium.com>
25531         PR target/64304
25532         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
25533         (ashl<mode>3): Don't expand if operands[2] is not constant.
25535 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25537         PR target/64448
25538         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
25539         Match xor-and-xor RTL pattern.
25541 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
25543         PR rtl-optimization/64081
25544         * loop-iv.c (def_pred_latch_p): New function.
25545         (latch_dominating_def): Allow specific cases with non-single
25546         definitions.
25547         (iv_get_reaching_def): Likewise.
25548         (check_complex_exit_p): New function.
25549         (check_simple_exit): Use check_complex_exit_p to allow certain cases
25550         with exits not executing on any iteration.
25552 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
25554         * common.opt (fgraphite): Fix a typo.
25556 2015-01-19  Felix Yang  <felix.yang@huawei.com>
25558         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
25559         pattern.
25560         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
25561         uminp, smax_nanp, smin_nanp): New builtins.
25562         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
25563         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
25564         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
25565         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
25566         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
25567         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
25568         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
25569         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
25570         vpminnms_f32): Rewrite using builtin functions.
25572 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
25574         PR libgomp/64625
25575         * omp-low.c (offload_symbol_decl): Remove variable.
25576         (get_offload_symbol_decl): Remove function.
25577         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
25578         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
25579         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
25580         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
25581         BUILT_IN_GOACC_UPDATE don't pass it at all.
25583 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
25585         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
25586         callers.
25588 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
25590         * ipa-chkp.c (chkp_produce_thunks): Add early param
25591         to split thunks production into two passes.  Keep
25592         'always_inline' function bodies after the first pass.
25593         (pass_data_ipa_chkp_early_produce_thunks): New.
25594         (pass_ipa_chkp_early_produce_thunks): New.
25595         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
25596         chkp_produce_thunks signature.
25597         (make_pass_ipa_chkp_early_produce_thunks): New.
25598         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
25599         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
25600         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
25602 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
25604         * cgraph.c (cgraph_node::dump): Dump profile flags.
25606 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
25608         PR target/64652
25609         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
25610         reg appear first in the parallel.
25612 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
25614         * ipa-reference.c (set_reference_optimization_summary,
25615         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
25616         disabled.
25617         (ignore_module_statics): New static var.
25618         (propagate_bits): If ipa-reference is disabled, do not look into local
25619         properties.
25620         (analyze_function): Disable analysis when ipa_reference is disabled.
25621         (generate_summary): Do not dump when reference is disabled;
25622         collect vars accessed from functions with ipa-reference disabled.
25623         (get_read_write_all_from_node): When ipa-reference is disabled, use the
25624         node flags.
25625         (gate): Enable for LTO.
25626         (ignore_edge_p): New function.
25627         (propagate): Skip functions w/o ipa-reference analysis.
25628         * optc-save-gen.awk: Handle optimize_debug correctly.
25629         * opth-gen.awk: Likewise.
25630         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
25631         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
25632         fira-share-save-slots, fira-share-spill-slots,
25633         fmodulo-sched-allow-regmoves, fpartial-inlining,
25634         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
25635         ftracer, ftree-parallelize-loops, fassociative-math,
25636         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
25637         Optimization
25638         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
25639         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
25640         Optimization.
25641         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
25642         Fix for IPA.
25644 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
25646         PR ipa/64378
25647         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
25648         flag correctly.
25649         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
25651 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
25653         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
25654         Remove duplicate option listings.
25656 2015-01-18  Felix Yang  <felix.yang@huawei.com>
25658         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
25659         (autofdo_source_profile::get_callsite_total_count,
25660         function_instance::get_function_instance_by_decl,
25661         string_table::get_index, string_table::get_index_by_decl,
25662         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
25663         Fix comment typos. Reformatting and minor code rearrangement.
25665 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
25667         * config/rs6000/rs6000.md (probe_stack): Delete.
25668         (probe_stack_address): New.
25670 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
25672         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
25673         to test for 32-bit ABIs, not !TARGET_POWERPC64.
25675 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
25677         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
25678         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
25679         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
25680         snafu.
25681         (rs6000_libcall_value): Use the new function.
25683 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
25685         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
25687 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
25689         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
25690         implement a more precise life analysis for it during backward scan.
25692 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
25694         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
25696 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
25698         PR rtl-optimization/52773
25699         * calls.c (emit_library_call_value): When pushing arguments use
25700         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
25701         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
25702         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
25704 2015-01-17  Jeff Law  <law@redhat.com>
25706         PR rtl-optimization/32790
25707         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
25708         not ZERO_EXTEND in SET_DESTs.
25710 2015-01-17  Alan Modra  <amodra@gmail.com>
25712         * cprop.c (do_local_cprop): Revert last change.
25714 2015-01-16  DJ Delorie  <dj@redhat.com>
25715             Nick Clifton  <nickc@redhat.com>
25717         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
25718         (addhi3_real): Likewise.  Fix [HL+0] syntax.
25719         (subqi3_real): Likewise.
25720         (subhi3_real): Likewise.
25721         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
25722         (cbranchhi4_real): Likewise.
25723         (cbranchhi4_real_inverted): Likewise.
25724         (cbranchsi4_real_lt): Likewise.
25725         (cbranchsi4_real_ge): Likewise.
25726         (cbranchsi4_real_ge): Likewise.
25727         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
25728         (sub<mode>3_virt): Likewise.
25729         (cbranchqi4_virt): Likewise.
25730         (cbranchhi4_virt): Likewise.
25731         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
25732         always use '[reg+imm]' even when imm is zero.
25733         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
25734         (rl78_general_operand): New.
25735         (rl78_nonimmediate_operand): New.
25736         (rl78_nonfar_operand): Use them.
25737         (rl78_nonfar_nonimm_operand): Likewise.
25738         (rl78_stack_based_mem): Fix.
25739         * config/rl78/constraints.md (Ibqi): New.
25740         (IBqi): New.
25741         (Wsa): New.
25742         (Wsf): New.
25743         (Cs1): Fix.
25744         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
25745         (iorqi3): Likewise.
25746         (xorqi3): Likewise.
25747         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
25749         * config/rl78/constrains (Qs8): New constraint.
25750         * config/rl78/rl78.c (rl78_flags_already_set): New function.
25751         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
25752         * config/rl78/rl78-real.md (update_Z): New attribute.
25753         Update patterns to set it.
25754         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
25755         shorter compare and branch sequence can be used.
25756         (cbranchhi4_real): Likewise.
25757         (cbranchhi4_real_inverted): Likewise.
25759         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
25760         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
25761         address space.
25762         * config/rl78/rl78.c (rl78_get_name_encoding): New.
25763         (rl78_option_override): Allow -mes0 only if C.
25764         (characterize_address): Support subregs of symbol_refs.
25765         (rl78_addr_space_address_mode): Move.  Add __near.
25766         (rl78_far_p): Likewise.
25767         (rl78_addr_space_pointer_mode): Likewise.
25768         (rl78_as_legitimate_address): Likewise.
25769         (rl78_addr_space_subset_p): Likewise.
25770         (rl78_addr_space_convert): Likewise.
25771         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
25772         symbols with -mes0.
25773         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
25774         addressing.
25775         (rl78_alloc_physical_registers_op1): Change logic to prefer
25776         symbol[BC] addressing.
25777         (frodata_section): New.
25778         (rl78_asm_init_sections): Initialize it.
25779         (rl78_select_section): Put __far readonly symbols in .frodata.
25780         (rl78_make_type_far): New.
25781         (rl78_insert_attributes): Force all readonly symbols to be
25782         __far when -mes0.
25783         (rl78_asm_out_integer): New.
25784         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
25785         * config/rl78/rl78.opt (-mes0): New.
25787         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
25788         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
25789         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
25790         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
25791         (rl78_saddr_p): New.
25792         (rl78_output_aligned_common): New.
25793         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
25794         (rl78_handle_saddr_attribute): New.
25795         (rl78_handle_naked_attribute): New.
25796         (rl78_attribute_table): Add saddr.
25797         (rl78_print_operand_1): Don't print '!' on saddr operands.
25798         (rl78_print_operand_1): Strip encodings.
25799         (rl78_sfr_p): New.
25800         (rl78_strip_name_encoding): New.
25801         (rl78_attrlist_to_encoding): New.
25802         (rl78_encode_section_info): New.
25803         (rl78_asm_init_sections): New.
25804         (rl78_select_section): New.
25805         (rl78_output_labelref): New.
25806         (rl78_output_aligned_common): New.
25807         (rl78_asm_out_integer): New.
25808         (rl78_asm_ctor_dtor): New.
25809         (rl78_asm_constructor): New.
25810         (rl78_asm_destructor): New.
25812         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
25813         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
25814         (transcode_memory_rtx): Update.
25815         (rl78_expand_epilogue): Use A_REG instead of 0.
25817 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25819         * config/arm/arm-protos.h (struct tune_params): New field
25820         sched_autopref_queue_depth.
25821         * config/arm/arm.c (sched-int.h): Include header.
25822         (arm_first_cycle_multipass_dfa_lookahead_guard,)
25823         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
25824         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
25825         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
25826         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
25827         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
25828         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
25829         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
25830         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
25831         * config/arm/t-arm (arm.o): Update.
25832         * haifa-sched.c (update_insn_after_change): Update.
25833         (rank_for_schedule): Use auto-prefetcher model, if requested.
25834         (autopref_multipass_init): New static function.
25835         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
25836         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
25837         variable for debug dumps.
25838         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
25839         (autopref_multipass_dfa_lookahead_guard): New global function that
25840         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
25841         (init_h_i_d): Update.
25842         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
25843         * sched-int.h (enum autopref_multipass_data_status): New const enum.
25844         (autopref_multipass_data_): Structure for auto-prefetcher data.
25845         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
25846         (struct _haifa_insn_data:autopref_multipass_data): New field.
25847         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
25848         (autopref_multipass_dfa_lookahead_guard): Declare.
25850 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25852         * rtlanal.c (get_base_term): Handle SCRATCH.
25854 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
25856         * config/aarch64/aarch64.c
25857         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
25858         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25859         * config/arm/arm.c
25860         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
25861         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
25863 2015-01-17  Alan Modra  <amodra@gmail.com>
25865         * cprop.c (do_local_cprop): Disallow replacement of fixed
25866         hard registers.
25868 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25870         PR target/62066
25871         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
25872         early return 0.
25874 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25876         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
25877         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
25879 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25881         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
25882         * config/arm/thumb1.md: ... Here.
25884 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25886         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
25887         TImode for TARGET_32BIT.
25889 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25891         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
25892         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
25893         as ...
25894         (rs6000_abi_word_mode): New function.
25896 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25898         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
25899         instead of UNITS_PER_WORD to describe the size of stack slots.
25901 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25903         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
25904         as rs6000_promote_function_mode.  Move comment to there.
25905         (rs6000_promote_function_mode): New function.
25907 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
25909         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
25910         -mpowerpc64 is active.
25912 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25914         PR middle-end/64353
25915         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
25916         virtuals on start.
25918 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25920         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
25921         introduced in revision 219724.
25923 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25924             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25926         PR target/64263
25927         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
25928         destination is not a GP reg.
25929         (*movdi_aarch64): Likewise.
25931 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
25933         PR target/64623
25934         * config/rs6000/default64.h: Revert ISA change.
25936 2015-01-16  Richard Biener  <rguenther@suse.de>
25938         PR middle-end/64614
25939         * tree-ssa-uninit.c: Include tree-cfg.h.
25940         (MAX_SWITCH_CASES): New define.
25941         (convert_control_dep_chain_into_preds): Handle switch statements.
25942         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
25943         (normalize_one_pred_1): Do not split bit-manipulations.
25944         Record (x & CST).
25946 2015-01-16  Richard Biener  <rguenther@suse.de>
25948         PR tree-optimization/64568
25949         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
25950         complex load rewriting for TARGET_MEM_REFs.
25952 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
25954         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
25956 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
25958         PR target/64149
25959         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
25960         variable.
25961         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
25962         (aarch64_lra_p): Remove.
25964 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
25966         PR target/64363
25967         * ipa-chkp.h (chkp_instrumentable_p): New.
25968         * ipa-chkp.c: Include tree-inline.h.
25969         (chkp_instrumentable_p): New.
25970         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
25971         Fix processing of not instrumentable functions.
25972         (chkp_versioning): Use chkp_instrumentable_p. Warn about
25973         not instrumentable functions.
25974         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
25975         chkp_instrumentable_p.
25976         * tree-inline.h (copy_forbidden): New.
25977         * tree-inline.c (copy_forbidden): Not static anymore.
25979 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25981         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
25982         ptr1, ptr2 unused.
25984 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25986         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
25987         type OP_OUT to OP_INOUT.
25989 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
25991         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
25992         (high x) y) to y if x and y have the same base.
25994 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
25996         * config/arm/cortex-a57.md: New.
25997         * config/aarch64/aarch64.md: Include it.
25998         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
25999         * config/aarch64/aarch64-tune.md: Regenerate.
26001 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
26003         PR target/64015
26004         * ccmp.c (expand_ccmp_next): New function.
26005         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
26006         and compare insn sequence.
26007         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
26008         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
26009         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
26010         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
26011         (*ccmp_ior): Changed to ccmp_ior<mode>.
26012         (cmp<mode>): New pattern.
26013         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
26014         parameters.
26015         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
26017 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
26019         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
26020         _mm256_bsrli_epi128): New.
26021         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
26023 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
26025         * expmed.c (store_bit_field_using_insv): Improve warning message.
26026         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
26028 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
26030         PR rtl-optimization/64011
26031         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
26032         there is partial overflow.
26034 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26036         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
26037         prototype.
26038         (nds32_expand_epilogue_v3pop): Likewise.
26039         * config/nds32/nds32.md (sibcall): Define this for sibling call
26040         optimization.
26041         (sibcall_register): Likewise.
26042         (sibcall_immediate): Likewise.
26043         (sibcall_value): Likewise.
26044         (sibcall_value_register): Likewise.
26045         (sibcall_value_immediate): Likewise.
26046         (sibcall_epilogue): Likewise.
26047         (epilogue): Pass false to indicate this is not a sibcall epilogue.
26048         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
26049         (nds32_expand_epilogue_v3pop): Likewise.
26051 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26053         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
26054         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
26055         (return_internal): New.
26056         (return): Define this named pattern.
26057         (simple_return): Define this named pattern.
26058         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
26059         pattern instead of unspec_volatile_func_return.
26060         (nds32_expand_epilogue_v3pop): Likewise.
26061         (nds32_can_use_return_insn): New function.
26063 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26065         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
26066         * config/nds32/nds32.md (pop25return): New.
26067         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
26068         pop25return pattern.
26070 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26072         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
26073         -mforbid-fp-as-gp, and -mex9 options.
26075 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
26077         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
26078         remove -mgp-direct option.
26080 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26082         * doc/invoke.texi (--param early-inlining-insns): Update default value.
26083         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
26085 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26087         * ipa-inline.c (inline_small_functions): Work around hints
26088         cache issue.
26090 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
26092         PR target/59710
26093         * doc/invoke.texi (Option Summary): Document new Nios II
26094         -mgpopt= syntax.
26095         (Nios II Options): Likewise.
26096         * config/nios2/nios2.opt: Add -mgpopt= option support.
26097         Modify existing -mgpopt and -mno-gpopt options to be aliases.
26098         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
26099         * config/nios2/nios2.c (nios2_option_override): Adjust
26100         -mgpopt defaulting.
26101         (nios2_in_small_data_p): Return true for explicit small data
26102         sections even with -G0.
26103         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
26104         option choices.
26106 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26108         PR ipa/64612
26109         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
26110         of comdat locals.
26111         (inline_call): Fix removal of aliases.
26113 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
26115         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
26116         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
26117         * opts.c (common_handle_option): Add -fsanitize=vptr.
26118         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
26119         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
26120         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
26121         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
26122         (ubsan_expand_vptr_ifn): New prototype.
26123         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
26124         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
26125         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
26126         expand_LOOP_VECTORIZED): Make argument nameless, remove
26127         ATTRIBUTE_UNUSED.
26128         (expand_UBSAN_VPTR): New function.
26129         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
26130         in fn spec.
26131         (UBSAN_VPTR): New internal function.
26132         * sanopt.c (tree_map_traits): Renamed to ...
26133         (sanopt_tree_map_traits): ... this.
26134         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
26135         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
26136         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
26137         (maybe_optimize_ubsan_vptr_ifn): New function.
26138         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
26139         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
26140         -fsanitize=vptr.
26141         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
26142         internal calls like pure functions for aliasing, even when they
26143         have other side-effects that prevent making them ECF_PURE.
26144         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
26145         (ubsan_expand_vptr_ifn): New function.
26147 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
26149         PR rtl-optimization/64110
26150         * stmt.c (parse_output_constraint): Process '^' and '$'.
26151         (parse_input_constraint): Ditto.
26152         * lra-constraints.c (process_alt_operands): Process the new
26153         constraints.
26154         * ira-costs.c (record_reg_classes): Process the new constraint
26155         '^'.
26156         * genoutput.c (indep_constraints): Add '^' and '$'.
26157         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
26158         * doc/md.texi: Add description of the new constraints.
26160 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
26161             Bernd Schmidt  <bernds@codesourcery.com>
26162             Cesar Philippidis  <cesar@codesourcery.com>
26163             James Norris  <jnorris@codesourcery.com>
26164             Tom de Vries  <tom@codesourcery.com>
26165             Ilmir Usmanov  <i.usmanov@samsung.com>
26166             Dmitry Bocharnikov  <dmitry.b@samsung.com>
26167             Evgeny Gavrin  <e.gavrin@samsung.com>
26168             Jakub Jelinek  <jakub@redhat.com>
26170         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
26171         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26172         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26173         New function types.
26174         * builtins.c: Include "gomp-constants.h".
26175         (expand_builtin_acc_on_device): New function.
26176         (expand_builtin, is_inexpensive_builtin): Handle
26177         BUILT_IN_ACC_ON_DEVICE.
26178         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
26179         New macros.
26180         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
26181         flag_openmp.
26182         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
26183         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
26184         i386/intelmic-offload.h.
26185         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
26186         to libgomp and its dependencies.
26187         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
26188         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
26189         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
26190         * config/ia64/hpux.h (LIB_SPEC): Likewise.
26191         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
26192         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
26193         * doc/generic.texi: Update for OpenACC changes.
26194         * doc/gimple.texi: Likewise.
26195         * doc/invoke.texi: Likewise.
26196         * doc/sourcebuild.texi: Likewise.
26197         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
26198         GF_OMP_FOR_KIND_OACC_LOOP.
26199         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
26200         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
26201         GF_OMP_TARGET_KIND_OACC_UPDATE,
26202         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26203         Dump more data.
26204         * gimple.c: Update comments for OpenACC changes.
26205         * gimple.def: Likewise.
26206         * gimple.h: Likewise.
26207         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
26208         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26209         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
26210         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
26211         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
26212         appropriate place.
26213         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
26214         * gimplify.c: Include "gomp-constants.h".
26215         Update comments for OpenACC changes.
26216         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
26217         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
26218         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26219         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
26220         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26221         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26222         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
26223         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26224         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
26225         OMP_CLAUSE_SEQ.
26226         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
26227         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
26228         OMP_CLAUSE_SET_MAP_KIND.
26229         (gimplify_oacc_cache): New function.
26230         (gimplify_omp_for): Handle OACC_LOOP.
26231         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
26232         OACC_DATA.
26233         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
26234         OACC_EXIT_DATA, OACC_UPDATE.
26235         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
26236         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
26237         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
26238         (gimplify_body): Consider flag_openacc next to flag_openmp.
26239         * lto-streamer-out.c: Include "gomp-constants.h".
26240         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
26241         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
26242         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
26243         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
26244         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
26245         (BUILT_IN_ACC_ON_DEVICE): New builtins.
26246         * omp-low.c: Include "gomp-constants.h".
26247         Update comments for OpenACC changes.
26248         (struct omp_context): Add reduction_map, gwv_below, gwv_this
26249         members.
26250         (extract_omp_for_data, use_pointer_for_field, install_var_field)
26251         (new_omp_context, delete_omp_context, scan_sharing_clauses)
26252         (create_omp_child_function, scan_omp_for, scan_omp_target)
26253         (check_omp_nesting_restrictions, lower_reduction_clauses)
26254         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
26255         Update for OpenACC changes.
26256         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
26257         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
26258         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
26259         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
26260         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
26261         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
26262         OMP_CLAUSE_MAP_*.
26263         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26264         Handle GF_OMP_FOR_KIND_OACC_LOOP.
26265         (expand_omp_target, lower_omp_target): Handle
26266         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
26267         GF_OMP_TARGET_KIND_OACC_UPDATE,
26268         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
26269         GF_OMP_TARGET_KIND_OACC_DATA.
26270         (pass_expand_omp::execute, execute_lower_omp)
26271         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
26272         flag_openmp.
26273         (offload_symbol_decl): New variable.
26274         (oacc_get_reduction_array_id, oacc_max_threads)
26275         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
26276         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
26277         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
26278         (oacc_gimple_assign, oacc_initialize_reduction_data)
26279         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
26280         functions.
26281         (is_targetreg_ctx): Remove function.
26282         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
26283         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
26284         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
26285         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
26286         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
26287         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
26288         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
26289         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
26290         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
26291         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
26292         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
26293         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
26294         * tree-core.h: Update comments for OpenACC changes.
26295         (enum omp_clause_map_kind): Remove.
26296         (struct tree_omp_clause): Change type of map_kind member from enum
26297         omp_clause_map_kind to unsigned char.
26298         * tree-inline.c: Update comments for OpenACC changes.
26299         * tree-nested.c: Likewise.  Include "gomp-constants.h".
26300         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
26301         (convert_tramp_reference_stmt, convert_gimple_call): Update for
26302         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
26303         OMP_CLAUSE_SET_MAP_KIND.
26304         * tree-pretty-print.c: Include "gomp-constants.h".
26305         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
26306         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
26307         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
26308         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
26309         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
26310         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
26311         instead of OMP_CLAUSE_MAP_*.
26312         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
26313         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
26314         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
26315         * tree-streamer-in.c: Include "gomp-constants.h".
26316         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
26317         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
26318         * tree-streamer-out.c: Include "gomp-constants.h".
26319         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
26320         OMP_CLAUSE_MAP_*.
26321         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
26322         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
26323         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
26324         * tree.c (omp_clause_num_ops): Update accordingly.
26325         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
26326         Likewise.
26327         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
26328         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
26329         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
26330         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
26331         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
26332         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
26333         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
26334         (OMP_CLAUSE_SET_MAP_KIND): New macro.
26335         * varpool.c (varpool_node::get_create): Consider flag_openacc next
26336         to flag_openmp.
26337         * config/i386/intelmic-offload.h: New file.
26338         * config/nvptx/offload.h: Likewise.
26340 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26342         * explow.h: Remove duplicate contents.
26343         * dojump.h: Likewise.
26345 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
26347         * arm.c (arm_xgene_tune): Add default initializer for instruction
26348         fusion.
26350 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
26352         PR ipa/64068
26353         PR ipa/64559
26354         * ipa.c (symbol_table::remove_unreachable_nodes):
26355         Do not put abstract origins into boundary.
26357 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
26359         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
26360         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
26362 2015-01-15  Steve Ellcey  <sellcey@mips.com>
26364         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
26365         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
26366         builtins.def, and chkp-builtins.def.
26368 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
26370         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
26371         ISA 2.7 (POWER8).
26373 2015-01-15  Richard Biener  <rguenther@suse.de>
26375         PR tree-optimization/61743
26376         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
26377         information on PHIs for some simple cases.
26379 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
26381         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
26382         Include xgene1.md.
26383         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
26384         * config/arm/arm-cores.def (xgene1): New entry.
26385         * config/arm/arm-tables.opt: Regenerate.
26386         * config/arm/arm-tune.md: Regenerate.
26387         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
26389 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
26391         * tree-if-conv.c: Include hash-map.h.
26392         (aggressive_if_conv): New variable.
26393         (fold_build_cond_expr): Add simplification of non-zero condition.
26394         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
26395         destination block is not always executed.
26396         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
26397         than two predecessors if AGGRESSIVE_IF_CONV is true.
26398         (if_convertible_stmt_p): Fix commentary.
26399         (all_preds_critical_p): New function.
26400         (has_pred_critical_p): New function.
26401         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
26402         BB can have more than two predecessors and all incoming edges can be
26403         critical.
26404         (predicate_bbs): Skip predication for loop exit block, use build2_loc
26405         to compute predicate for true edge.
26406         (find_phi_replacement_condition): Delete this function.
26407         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
26408         Allow interchange PHI arguments if EXTENDED is false.
26409         Change check that block containing reduction statement candidate
26410         is predecessor of phi-block since phi may have more than two arguments.
26411         (phi_args_hash_traits): New helper structure.
26412         (struct phi_args_hash_traits): New type.
26413         (phi_args_hash_traits::hash): New function.
26414         (phi_args_hash_traits::equal_keys): New function.
26415         (gen_phi_arg_condition): New function.
26416         (predicate_scalar_phi): Add handling of phi nodes with more than two
26417         arguments, delete COND and TRUE_BB arguments, insert body of
26418         find_phi_replacement_condition to predicate ordinary phi nodes.
26419         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
26420         delete call of find_phi_replacement_condition and invoke
26421         predicate_scalar_phi with two arguments.
26422         (insert_gimplified_predicates): Add assert that non-predicated block
26423         don't have statements to insert.
26424         (ifcvt_split_critical_edges): New function.
26425         (ifcvt_split_def_stmt): Likewise.
26426         (ifcvt_walk_pattern_tree): Likewise.
26427         (stmt_is_root_of_bool_pattern): Likewise.
26428         (ifcvt_repair_bool_pattern): Likewise.
26429         (ifcvt_local_dce): Likewise.
26430         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
26431         is copy of inner or outer loop force_vectorize field, invoke
26432         ifcvt_split_critical_edges, ifcvt_local_dce and
26433         ifcvt_repair_bool_pattern for aggressive if-conversion.
26435 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
26437         * config/aarch64/aarch64.md: Include xgene1.md.
26438         * config/aarch64/xgene1.md: New file.
26440 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
26442         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
26443         xgene1 (APM XGene-1) core definition.
26444         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
26445         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
26446         * doc/invoke.texi: Document -mcpu=xgene1.
26448 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
26450         * dojump.h: New header file.
26451         * explow.h: Likewise.
26452         * expr.h: Remove includes.
26453         Move expmed.c prototypes to expmed.h.
26454         Move dojump.c prototypes to dojump.h.
26455         Move alias.c prototypes to alias.h.
26456         Move explow.c prototypes to explow.h.
26457         Move calls.c prototypes to calls.h.
26458         Move emit-rtl.c prototypes to emit-rtl.h.
26459         Move varasm.c prototypes to varasm.h.
26460         Move stmt.c prototypes to stmt.h.
26461         (saved_pending_stack_adjust): Move to dojump.h.
26462         (adjust_address): Move to explow.h.
26463         (adjust_address_nv): Move to emit-rtl.h.
26464         (adjust_bitfield_address): Likewise.
26465         (adjust_bitfield_address_size): Likewise.
26466         (adjust_bitfield_address_nv): Likewise.
26467         (adjust_automodify_address_nv): Likewise.
26468         * explow.c (expr_size): Move to expr.c.
26469         (int_expr_size): Likewise.
26470         (tree_expr_size): Likewise.
26471         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26472         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
26473         * genemit.c (main): Generate includes statistics.h, real.h,
26474         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
26475         stmt.h.
26476         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
26477         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
26478         explow.h, emit-rtl.h, stmt.h.
26479         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
26480         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
26481         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
26482         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
26483         emit-rtl.h, varasm.h, stmt.h.
26484         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
26485         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
26486         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
26487         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
26488         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
26489         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
26490         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
26491         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
26492         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
26493         tm.h tree.h varasm.h vec.h wide-int.h.
26494         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26495         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
26496         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
26497         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
26498         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
26499         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
26500         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
26501         * loop-iv.c: Likewise.
26502         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
26503         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
26504         statistics.h stmt.h tree.h varasm.h wide-int.h.
26505         * lra-constraints.c: Likewise.
26506         * lra-eliminations.c: Likewise.
26507         * lra-lives.c: Likewise.
26508         * lra-remat.c: Likewise.
26509         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26510         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
26511         statistics.h stmt.h tree.h varasm.h wide-int.h.
26512         * hw-doloop.c: Likewise.
26513         * ira-color.c: Likewise.
26514         * ira-emit.c: Likewise.
26515         * loop-doloop.c: Likewise.
26516         * loop-invariant.c: Likewise.
26517         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26518         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
26519         statistics.h stmt.h tree.h varasm.h wide-int.h.
26520         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
26521         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
26522         statistics.h stmt.h tree.h varasm.h wide-int.h.
26523         * combine-stack-adj.c: Likewise.
26524         * cse.c: Likewise.
26525         * ddg.c: Likewise.
26526         * ifcvt.c: Likewise.
26527         * ira-costs.c: Likewise.
26528         * jump.c: Likewise.
26529         * lra-coalesce.c: Likewise.
26530         * lra-spills.c: Likewise.
26531         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26532         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
26533         stmt.h varasm.h wide-int.h.
26534         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
26535         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
26536         varasm.h.
26537         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
26538         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
26539         statistics.h stmt.h varasm.h wide-int.h.
26540         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
26541         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
26542         varasm.h wide-int.h.
26543         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
26544         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26545         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
26546         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
26547         statistics.h stmt.h.
26548         * config/tilepro/tilepro.c: Likewise.
26549         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
26550         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
26551         * config/pdp11/pdp11.c: Likewise.
26552         * config/xtensa/xtensa.c: Likewise.
26553         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
26554         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
26555         varasm.h.
26556         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26557         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
26558         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
26559         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26560         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
26561         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
26562         * rtl-chkp.c: Likewise.
26563         * tree-chkp-opt.c: Likewise.
26564         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
26565         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
26566         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
26567         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26568         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
26569         statistics.h stmt.h.
26570         * tree-vect-data-refs.c: Likewise.
26571         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
26572         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26573         rtl.h statistics.h stmt.h varasm.h.
26574         * internal-fn.c: Likewise.
26575         * ipa-icf-gimple.c: Likewise.
26576         * lto-section-out.c: Likewise.
26577         * tree-data-ref.c: Likewise.
26578         * tree-nested.c: Likewise.
26579         * tree-outof-ssa.c: Likewise.
26580         * tree-predcom.c: Likewise.
26581         * tree-pretty-print.c: Likewise.
26582         * tree-scalar-evolution.c: Likewise.
26583         * tree-ssa-strlen.c: Likewise.
26584         * tree-vect-loop.c: Likewise.
26585         * tree-vect-patterns.c: Likewise.
26586         * tree-vect-slp.c: Likewise.
26587         * tree-vect-stmts.c: Likewise.
26588         * tsan.c: Likewise.
26589         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26590         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
26591         stmt.h.
26592         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
26593         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26594         statistics.h stmt.h varasm.h.
26595         * loop-unroll.c: Likewise.
26596         * ubsan.c: Likewise.
26597         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
26598         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
26599         stmt.h varasm.h.
26600         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26601         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
26602         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
26603         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
26604         statistics.h stmt.h.
26605         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
26606         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
26607         statistics.h stmt.h varasm.h.
26608         * gimple-match-head.c: Likewise.
26609         * lto-cgraph.c: Likewise.
26610         * lto-section-in.c: Likewise.
26611         * lto-streamer-in.c: Likewise.
26612         * lto-streamer-out.c: Likewise.
26613         * tree-affine.c: Likewise.
26614         * tree-cfg.c: Likewise.
26615         * tree-cfgcleanup.c: Likewise.
26616         * tree-if-conv.c: Likewise.
26617         * tree-into-ssa.c: Likewise.
26618         * tree-ssa-alias.c: Likewise.
26619         * tree-ssa-copyrename.c: Likewise.
26620         * tree-ssa-dse.c: Likewise.
26621         * tree-ssa-forwprop.c: Likewise.
26622         * tree-ssa-live.c: Likewise.
26623         * tree-ssa-math-opts.c: Likewise.
26624         * tree-ssa-pre.c: Likewise.
26625         * tree-ssa-sccvn.c: Likewise.
26626         * tree-tailcall.c: Likewise.
26627         * tree-vect-generic.c: Likewise.
26628         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26629         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
26630         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26631         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
26632         * varasm.c: Likewise.
26633         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26634         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
26635         varasm.h.
26636         * init-regs.c: Likewise.
26637         * ira.c: Likewise.
26638         * omp-low.c: Likewise.
26639         * stack-ptr-mod.c: Likewise.
26640         * tree-ssa-reassoc.c: Likewise.
26641         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26642         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
26643         varasm.h.
26644         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26645         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
26646         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26647         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
26648         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26649         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
26650         * tree-ssa-phiopt.c: Likewise.
26651         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26652         fixed-value.h hashtab.h real.h statistics.h stmt.h.
26653         * config/fr30/fr30.c: Likewise.
26654         * config/frv/frv.c: Likewise.
26655         * expr.c: Likewise.
26656         * final.c: Likewise.
26657         * optabs.c: Likewise.
26658         * passes.c: Likewise.
26659         * simplify-rtx.c: Likewise.
26660         * stmt.c: Likewise.
26661         * toplev.c: Likewise.
26662         * var-tracking.c: Likewise.
26663         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26664         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26665         * lower-subreg.c: Likewise.
26666         * postreload-gcse.c: Likewise.
26667         * ree.c: Likewise.
26668         * reginfo.c: Likewise.
26669         * store-motion.c: Likewise.
26670         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26671         fixed-value.h hashtab.h real.h stmt.h varasm.h.
26672         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26673         fixed-value.h hashtab.h statistics.h stmt.h.
26674         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26675         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
26676         * except.c: Likewise.
26677         * explow.c: Likewise.
26678         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26679         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
26680         varasm.h.
26681         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26682         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
26683         * tree-ssa-structalias.c: Likewise.
26684         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26685         fixed-value.h insn-config.h real.h statistics.h.
26686         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26687         fixed-value.h insn-config.h real.h statistics.h stmt.h.
26688         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26689         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26690         * cfgbuild.c: Likewise.
26691         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26692         fixed-value.h real.h rtl.h statistics.h stmt.h.
26693         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26694         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26695         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26696         fixed-value.h real.h statistics.h stmt.h.
26697         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
26698         fixed-value.h real.h statistics.h stmt.h varasm.h.
26699         * cprop.c: Likewise.
26700         * modulo-sched.c: Likewise.
26701         * postreload.c: Likewise.
26702         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
26703         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
26704         statistics.h stmt.h varasm.h.
26705         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
26706         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26707         rtl.h statistics.h stmt.h varasm.h.
26708         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
26709         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
26710         varasm.h.
26711         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
26712         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
26713         varasm.h.
26714         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
26715         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
26716         varasm.h.
26717         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
26718         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26719         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26720         function.h real.h statistics.h stmt.h varasm.h.
26721         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26722         insn-config.h real.h statistics.h stmt.h.
26723         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
26724         statistics.h stmt.h.
26725         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
26726         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
26727         statistics.h stmt.h varasm.h.
26728         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
26729         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
26730         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26731         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
26732         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
26733         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
26734         statistics.h stmt.h varasm.h.
26735         * ipa-polymorphic-call.c: Likewise.
26736         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
26737         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26738         statistics.h stmt.h.
26739         * config/c6x/c6x.c: Likewise.
26740         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
26741         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
26742         statistics.h stmt.h varasm.h.
26743         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
26744         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
26745         stmt.h varasm.h.
26746         * ipa-split.c: Likewise.
26747         * tree-eh.c: Likewise.
26748         * tree-ssa-dce.c: Likewise.
26749         * tree-ssa-loop-niter.c: Likewise.
26750         * tree-vrp.c: Likewise.
26751         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
26752         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
26753         stmt.h.
26754         * config/nds32/nds32-fp-as-gp.c: Likewise.
26755         * config/nds32/nds32-intrinsic.c: Likewise.
26756         * config/nds32/nds32-isr.c: Likewise.
26757         * config/nds32/nds32-md-auxiliary.c: Likewise.
26758         * config/nds32/nds32-memory-manipulation.c: Likewise.
26759         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26760         * config/nds32/nds32-predicates.c: Likewise.
26761         * config/nds32/nds32.c: Likewise.
26762         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
26763         fixed-value.h hashtab.h real.h statistics.h.
26764         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
26765         fixed-value.h hashtab.h real.h statistics.h stmt.h.
26766         * config/arm/arm.c: Likewise.
26767         * config/avr/avr.c: Likewise.
26768         * config/bfin/bfin.c: Likewise.
26769         * config/h8300/h8300.c: Likewise.
26770         * config/i386/i386.c: Likewise.
26771         * config/ia64/ia64.c: Likewise.
26772         * config/iq2000/iq2000.c: Likewise.
26773         * config/m32c/m32c.c: Likewise.
26774         * config/m32r/m32r.c: Likewise.
26775         * config/m68k/m68k.c: Likewise.
26776         * config/mcore/mcore.c: Likewise.
26777         * config/mep/mep.c: Likewise.
26778         * config/mips/mips.c: Likewise.
26779         * config/mn10300/mn10300.c: Likewise.
26780         * config/moxie/moxie.c: Likewise.
26781         * config/pa/pa.c: Likewise.
26782         * config/rl78/rl78.c: Likewise.
26783         * config/rx/rx.c: Likewise.
26784         * config/s390/s390.c: Likewise.
26785         * config/sh/sh.c: Likewise.
26786         * config/sparc/sparc.c: Likewise.
26787         * config/spu/spu.c: Likewise.
26788         * config/stormy16/stormy16.c: Likewise.
26789         * config/v850/v850.c: Likewise.
26790         * config/vax/vax.c: Likewise.
26791         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
26792         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
26793         * config/msp430/msp430.c: Likewise.
26794         * predict.c: Likewise.
26795         * value-prof.c: Likewise.
26796         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
26797         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
26798         * config/microblaze/microblaze.c: Likewise.
26799         * config/nios2/nios2.c: Likewise.
26800         * config/rs6000/rs6000.c: Likewise.
26801         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26802         insn-config.h real.h rtl.h statistics.h stmt.h.
26803         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
26804         insn-config.h real.h statistics.h stmt.h.
26805         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
26806         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
26807         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
26808         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
26809         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
26810         fixed-value.h real.h statistics.h stmt.h.
26811         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
26812         fixed-value.h statistics.h stmt.h.
26813         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
26814         stmt.h.
26816 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
26818         * gengtype.c (create_user_defined_type): Workaround
26819         -Wmaybe-uninitialized false positives.
26820         * cse.c (fold_rtx): Likewise.
26821         * loop-invariant.c (gain_for_invariant): Likewise.
26823 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
26825         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
26826         set the memory attributes in all cases but clear MEM_EXPR if need be.
26828 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
26830         PR tree-optimization/64434
26831         * cfgexpand.c (reorder_operands): New function.
26832         (expand_gimple_basic_block): Insert call of reorder_operands if
26833         optimized is true.
26835 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
26837         * config/mips/micromips.md (*swp): Remove explicit parallel.
26838         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
26839         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
26840         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
26841         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
26842         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
26843         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
26844         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
26845         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
26846         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
26847         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
26848         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
26849         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
26850         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
26851         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
26852         (mips_wrdsp): Likewise.
26853         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
26854         parallel.
26855         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
26856         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
26857         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
26858         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
26859         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
26860         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
26861         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
26862         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
26863         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
26865 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26867         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
26868         (mips_print_operand): Support 'y' to print exact log2 in decimal
26869         of a const_int.
26870         * config/mips/mips.h (ISA_HAS_LSA): New define.
26871         (ISA_HAS_DLSA): Likewise.
26872         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
26873         * config/mips/predicates.md (const_immlsa_operand): New predicate.
26875 2015-01-15  Martin Liska  <mliska@suse.cz>
26877         PR target/64377
26878         * optc-save-gen.awk: Add support for array types.
26880 2015-01-15  Richard Biener  <rguenther@suse.de>
26882         PR middle-end/64365
26883         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
26884         for MEM_REF access functions with the same base can never partially
26885         overlap.
26887 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
26889         * common.opt: New option -fstack-protector-explicit.
26890         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
26891         (stack_protect_decl_phase): Handle stack_protect attribute for
26892         explicit stack protection requests.
26893         (expand_used_vars): Similarly.
26894         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
26895         * doc/extend.texi: Add documentation for "stack_protect" attribute.
26896         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
26898 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
26900         PR target/53988
26901         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
26902         reg-reg copies.
26903         (sh_extending_set_of_reg): New struct.
26904         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
26905         sh_remove_reg_dead_or_unused_notes): New Declarations.
26906         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
26907         sh_find_extending_set_of_reg, sh_split_tst_subregs,
26908         sh_extending_set_of_reg::use_as_extended_reg): New functions.
26909         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
26910         convert to insn_and_split and use new function sh_split_tst_subregs.
26912 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
26914         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
26915         option.
26916         (Optimization Options): Move -fuse-ld documentation to...
26917         (Link Options): ...here.
26919 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
26921         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
26922         offsets.
26923         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
26924         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
26925         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
26926         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
26927         instead of ZR for the memory operand of LL/SC.
26928         (compare_and_swap_12, sync_add<mode>): Likewise.
26929         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
26930         (sync_new_<optab>_12, sync_nand_12): Likewise.
26931         (sync_old_nand_12, sync_new_nand_12): Likewise.
26932         (sync_sub<mode>, sync_old_add<mode>): Likewise.
26933         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
26934         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
26935         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
26936         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
26937         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
26938         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
26939         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
26940         * doc/md.texi (ZC): Update description.
26942 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26944         * builtins.c (expand_builtin_atomic_exchange): Remove error when
26945         memory model is CONSUME.
26946         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
26947         expand_builtin_atomic_store): Change invalid memory model errors to
26948         warnings.
26949         (expand_builtin_atomic_clear): Change invalid model errors to warnings
26950         and issue warning for CONSUME.
26952 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
26954         * lto-cgraph: Update function comments for
26955         lto_symtab_encoder_encode_*.
26957 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26959         * Makefile.in (site.exp): Do not set ENABLE_LTO.
26961 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
26963         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
26964         * lto-cgraph.c (select_what_to_stream): Remove argument, use
26965         lto_stream_offload_p instead.
26966         * lto-streamer.h (select_what_to_stream): Remove argument.
26967         * passes.c (ipa_write_summaries): Likewise.
26968         * tree-pass.h (ipa_write_summaries): Likewise.
26970 2015-01-14  Richard Biener  <rguenther@suse.de>
26972         PR tree-optimization/59354
26973         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
26974         groups larger than the slp group size as having gaps.
26976 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
26978         PR middle-end/59448
26979         * builtins.c (get_memmodel): Promote consume to acquire always.
26981 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26983         PR target/64386
26984         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
26985         V32HImode.
26987 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26989         PR target/64393
26990         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
26991         Enable AVX512BW.
26992         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
26993         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
26994         AVX512VBMI, as it implies AVX512BW.
26996 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
26998         PR target/64387
26999         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
27000         (vec_unpacks_hi_v16sf): Ditto.
27002 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27004         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
27005         is not available.
27007 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27009         * doc/invoke.texi (mapcs): Mention deprecation.
27010         (mapcs-frame): Likewise.
27012 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27014         PR target/64453
27015         * config/arm/arm.c (callee_saved_reg_p): Define.
27016         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
27017         register is callee saved instead of !call_used_regs[reg].
27018         (thumb1_compute_save_reg_mask): Likewise.
27020 2015-01-14  Hale Wang  <hale.wang@arm.com>
27022         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
27023         Cortex-M7.
27025 2015-01-14  Richard Biener  <rguenther@suse.de>
27027         PR lto/64415
27028         * tree-inline.c (insert_debug_decl_map): Check destination
27029         function MAY_HAVE_DEBUG_STMTS.
27030         (insert_init_debug_bind): Likewise.
27031         (insert_init_stmt): Remove redundant check.
27032         (remap_gimple_stmt): Drop debug stmts if the destination
27033         function has var-tracking assignments disabled.
27035 2015-01-14  Martin Liska  <mliska@suse.cz>
27037         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
27038         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
27040 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27042         PR target/64460
27043         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
27044         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
27046 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
27048         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
27049         level from an ARCH; do not inject the default.
27050         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
27051         MIPS_ISA_LEVEL_SPEC.
27052         (MIPS_ISA_NAN2008_SPEC): Update comment.
27053         (BASE_DRIVER_SELF_SPECS): Likewise.
27054         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
27055         MIPS_DEFAULT_ISA_LEVEL_SPEC.
27056         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
27057         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
27058         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
27060 2015-01-14  Richard Biener  <rguenther@suse.de>
27062         PR tree-optimization/64493
27063         PR tree-optimization/64495
27064         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
27065         assign the proper vectorized PHI to the inner loop exit PHIs.
27067 2015-01-14  Joey Ye  <joey.ye@arm.com>
27069         * config/arm/arm.c (arm_compute_save_reg_mask):
27070         Do not save lr in case of tail call.
27071         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
27073 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
27075         * tree-vrp.c (check_array_ref): Emit more warnings
27076         for warn_array_bounds >= 2.
27077         * common.opt: New option -Warray-bounds=.
27078         * doc/invoke.texi: Document -Warray-bounds=.
27080 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
27082         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
27083         (mforbid-fp-as-gp): Remove.
27084         (mex9): Remove.
27085         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
27086         (nds32_symbol_load_store_p): Remove.
27087         (nds32_fp_as_gp_check_available): Clean up implementation.
27088         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
27089         cases.
27090         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
27091         fp-as-gp and ex9 cases.
27093 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
27095         * tree-profile.c (init_ic_make_global_vars): Drop workaround
27096         for bintuils bug 14342.
27097         (init_ic_make_global_vars): Likewise.
27098         (gimple_init_edge_profiler): Likewise.
27099         (gimple_gen_ic_func_profiler): Likewise.
27101 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27103         * ipa-inline.c (inline_small_functions): Swap the operands in
27104         enum.
27106 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
27108         PR ipa/64481
27109         * ipa-inline-analysis.c (node_growth_cache): Remove.
27110         (initialize_growth_caches): Do not initialize it.
27111         (free_growth_caches): Do not free it.
27112         (do_estimate_growth): Rename to ...
27113         (estimate_growth): ... this one; drop growth cache code.
27114         (growth_likely_positive): Always go the heuristics way.
27115         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
27116         (reset_edge_caches): Do not reset node growth.
27117         (heap_edge_removal_hook): Do not maintain cache.
27118         (inline_small_functions): Likewise; strenghten sanity check.
27119         (ipa_inline): Do not maintain caches.
27120         * ipa-inline.h (node_growth_cache): Remove.
27121         (do_estimate_growth): Remove to ...
27122         (estimate_growth): this one; remove inline version.
27123         (reset_node_growth_cache): Remove.
27125 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
27127         PR ipa/64565
27128         * ipa-inline.c (inline_small_functions): Update callee keys after
27129         resolving speculation
27130         (inline_small_functions): Always check monotonicity of the queue.
27132 2015-01-13  Marek Polacek  <polacek@redhat.com>
27134         PR middle-end/64391
27135         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
27137 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
27139         PR rtl-optimization/64286
27140         * ree.c (combine_reaching_defs): Move part of comment earlier,
27141         remove !SCALAR_INT_MODE_P check.
27142         (add_removable_extension): Don't add vector mode
27143         extensions if all uses of the source register aren't the same
27144         vector extensions.
27146 2015-01-13  Renlin Li  <renlin.li@arm.com>
27148         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
27149         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
27151 2015-01-13  Martin Liska  <mliska@suse.cz>
27153         * ipa-icf.c (sem_function::equals_private): Call new functions
27154         cl_target_option_print_diff and cl_optimization_print_diff.
27155         * optc-save-gen.awk (cl_target_option_print_diff): New function.
27156         (cl_optimization_print_diff): Likewise.
27157         * opth-gen.awk: Likewise.
27159 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
27161         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
27162         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
27163         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
27164         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
27165         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
27166         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
27168 2015-01-13  Andrew Pinski  <apinski@cavium.com>
27170         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
27171         instead of src mode.
27173 2015-01-13  Richard Biener  <rguenther@suse.de>
27175         PR lto/64373
27176         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
27177         DECL_CONTEXT.
27179 2015-01-13  Andrew Pinski  <apinski@cavium.com>
27181         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
27182         volatile mems.
27183         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
27185 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
27187         PR middle-end/63974
27188         * cfgexpand.c (expand_computed_goto): Don't call
27189         convert_memory_address here.
27191 2015-01-13  Richard Biener  <rguenther@suse.de>
27193         PR tree-optimization/64406
27194         * tree-loop-distibution.c (pass_loop_distribution::execute):
27195         Reset the SCEV hashtable if we distributed anything.
27197 2015-01-13  Richard Biener  <rguenther@suse.de>
27199         PR tree-optimization/64404
27200         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
27201         SLP types for CSEd loads.
27203 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27205         PR tree-optimization/64436
27206         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
27207         merge of two symbolic numbers for a bitwise OR to ...
27208         (perform_symbolic_merge): This. Also fix computation of the range and
27209         end of the symbolic number corresponding to the result of a bitwise OR.
27211 2015-01-13  Richard Biener  <rguenther@suse.de>
27213         PR tree-optimization/64568
27214         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
27215         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
27217 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27219         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
27220         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
27222 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27224         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
27225         target-specific symbol_ref flag.
27226         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
27227         resides in rodata section.
27228         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
27229         (nds32_encode_section_info): New function.
27231 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27233         * config/nds32/nds32.md (call): Use pseudo instruction bal which
27234         clobbers TA_REGNUM if large code model is specified.
27235         (call_register): Likewise.
27236         (call_immediate): Likewise.
27237         (call_value): Likewise.
27238         (call_value_register): Likewise.
27239         (call_value_immediate): Likewise.
27241 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27243         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
27244         (TARGET_CMODEL_MEDIUM): New macro.
27245         (TARGET_CMODEL_LARGE): New macro.
27246         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
27247         code model setting in assembly code.
27249 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27251         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
27252         Remove MASK_GP_DIRECT flag.
27253         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
27254         one of the multilib default options.
27255         * config/nds32/nds32.opt (mgp-direct): Remove.
27256         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
27257         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
27259 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
27261         * config/nds32/nds32.opt (mcmodel): Add new option.
27262         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
27263         to describe code model.
27265 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
27267         PR target/64479
27268         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
27270 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
27272         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
27273         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
27274         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
27275         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
27276         __builtin_sh_set_fpscr.
27278 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
27280         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
27281         after a funtion name just to indicate it is a function.
27282         ([-fsanitize-undefined-trap-on-error]): Likewise.
27283         ([-fdbg-cnt=]): Likewise.
27284         ([-mmemcpy]): Likewise.
27285         ([-mflush-func]): Likewise.
27286         ([-msynci]): Likewise.
27288 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
27290         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
27291         example.
27293 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
27295         PR tree-optimization/64563
27296         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
27297         instead of != VR_VARYING.
27299         PR target/64513
27300         * config/i386/i386.c (ix86_expand_prologue): Add
27301         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
27303         PR tree-optimization/64454
27304         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
27305         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
27306         for signed or [0, op1 - 1] for unsigned modulo.
27307         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
27308         even if op1 does not satisfy integer_pow2p.
27310         PR other/64370
27311         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
27313 2015-01-12  Jeff Law  <law@redhat.com>
27315         PR target/64461
27316         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
27317         (trunchiqi2, truncsihi2): Similarly.
27319         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
27320         rather than calling F.
27322 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27324         * tsan.c (instrument_expr): Use force_gimple_operand.
27325         Use may_be_nonaddressable_p instead of is_gimple_addressable.
27327 2015-01-12  Richard Biener  <rguenther@suse.de>
27329         PR tree-optimization/64530
27330         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
27331         back dr1.
27333 2015-01-12  Richard Biener  <rguenther@suse.de>
27335         PR middle-end/64357
27336         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
27337         latches properly.
27339 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27341         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
27342         Cortex-A17 tuning parameters.
27343         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
27345 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27347         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
27348         * config/arm/arm.c (arm_macro_fusion_p): New function.
27349         (arm_macro_fusion_pair_p): Likewise.
27350         (TARGET_SCHED_MACRO_FUSION_P): Define.
27351         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
27352         (ARM_FUSE_NOTHING): Likewise.
27353         (ARM_FUSE_MOVW_MOVT): Likewise.
27354         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
27355         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
27356         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
27357         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
27358         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
27359         arm_cortex_a5_tune): Specify fuseable_ops value.
27361 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
27363         PR bootstrap/64561
27364         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
27365         test for PIE with copy reloc.
27366         * configure: Regenerated.
27368 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27370         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
27371         in gen_rtx_REG.
27372         (arm_tls_descseq_addr): Likewise.
27373         (arm_gen_movmemqi): Likewise.
27374         (arm_expand_epilogue_apcs_frame): Likewise.
27375         (arm_expand_epilogue): Likewise.
27376         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
27377         in gen_rtx_REG.
27379 2015-01-12  Martin Liska  <mliska@suse.cz>
27381         PR ipa/64550
27382         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
27383         volatility for correct operands.
27385 2015-01-12  Martin Liska  <mliska@suse.cz>
27387         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
27388         indication that a function is not leaf.
27389         (sem_function::compare_polymorphic_p): Likewise.
27391 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27393         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
27394         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
27395         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
27396         fold-const.h, tree-check.h.
27398 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
27400         PR ipa/63967
27401         PR ipa/64425
27402         * ipa-inline.c (compute_uninlined_call_time,
27403         compute_inlined_call_time): Use counts for extra precision when
27404         needed possible.
27405         (big_speedup_p): Fix formating.
27406         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
27407         (relative_time_benefit): Remove.
27408         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
27409         merge guessed and read profile paths.
27410         (inline_small_functions): Count only !optimize_size functions into
27411         initial size; be more lax about sanity check when profile is used;
27412         be sure to update inlined function profile when profile is read.
27414 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
27416         PR ipa/63470
27417         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
27418         cost when edge becomes direct.
27419         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
27420         is resolved or when introducing new speculation.
27422 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
27424         PR ipa/64551
27425         PR ipa/64552
27426         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
27427         '||' to fix typo issue.
27429         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
27430         accept and return NULL.
27432 2015-01-12  Martin Liska  <mliska@suse.cz>
27434         * cgraph.c (cgraph_edge::remove_callee): Move function to header
27435         file for being inlined.
27436         (cgraph_set_edge_callee): Delete.
27437         (cgraph_edge::redirect_callee): Move function to header file
27438         for being inlined.
27439         (cgraph_edge::make_direct): Use new function.
27440         (cgraph_edge::dump_edge_flags): New function created from
27441         static dump_edge_flags function.
27442         (cgraph_node::dump): Use new function.
27443         (cgraph_edge::verify_count_and_frequency): New function created
27444         from verify_edge_count_and_frequency.
27445         (cgraph_edge::verify_corresponds_to_fndecl): New function created
27446         from verify_edge_corresponds_to_fndecl.
27447         (verify_edge_corresponds_to_fndecl): Delete.
27448         (cgraph_node::verify_node): Use new function.
27449         * cgraph.h (cgraph_edge::set_callee): New function.
27450         (cgraph_edge::dump_edge_flags): Likewise.
27451         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
27453 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
27455         * ipa-utils.c (estimate_function_body_sizes): Do not
27456         free node params when called late with early=true.
27458 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
27460         * doc/md.texi (Instruction Patterns): Rewrite text for
27461         clarity.
27462         (Example): Likewise.
27464 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
27466         * doc/invoke.texi (Option Summary): Break long lines.
27467         [(-fdiagnostics-color)]: Put long literal in @smallexample
27468         instead of inline.
27469         [(-fsanitize-recover)]: Likewise.
27470         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
27471         [(-ffast-math)]: Likewise.
27472         [(--param max-inline-insns-recursive)]: Likewise.
27473         [(--param max-inline-recursive-depth)]: Likewise.
27474         [(-mno-text-section-literals)]: Likewise.
27476 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
27478         * doc/install.texi: Update for libgomp being renamed from "GNU
27479         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
27480         Runtime Library".
27481         * doc/sourcebuild.texi: Likewise.
27483 2015-01-10  Anthony Green  <green@moxielogic.com>
27485         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
27486         mul.x availability for moxiebox configuration.
27488 2015-01-09  Anthony Green  <green@moxielogic.com>
27490         * config/moxie/moxie.md: Tabify assembly output.
27492 2015-01-09  Anthony Green  <green@moxielogic.com>
27494         * config/moxie/moxie.md (CC_REG): Correct register definition.
27496 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
27498         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
27499         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
27500         of log files.
27502 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
27504         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
27506 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
27507             Jakub Jelinek  <jakub@redhat.com>
27509         PR middle-end/64412
27510         * lto-streamer.h (lto_stream_offload_p): New declaration.
27511         * lto-streamer.c (lto_stream_offload_p): New variable.
27512         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
27513         at the same time as section_name_prefix.
27514         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
27515         if lto_stream_offload_p.
27516         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
27517         stream TREE_TARGET_OPTION if lto_stream_offload_p.
27518         (write_ts_function_decl_tree_pointers): Don't
27519         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
27520         * tree-streamer-in.c (unpack_value_fields): Don't stream
27521         TREE_TARGET_OPTION in if ACCEL_COMPILER.
27522         (lto_input_ts_function_decl_tree_pointers): Don't stream
27523         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
27524         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
27525         instead of section_name_prefix string comparisons.
27527 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
27529         PR rtl-optimization/64536
27530         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
27531         tablejumps.
27533 2015-01-09  Michael Collison  <michael.collison@linaro.org>
27535         PR tree-optimization/64322
27536         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
27537         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
27539 2015-01-09  Tom de Vries  <tom@codesourcery.com>
27541         PR rtl-optimization/64539
27542         * regcprop.c (kill_clobbered_values): Factor out of ...
27543         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
27544         instead of note_stores with kill_clobbered_value.
27546 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
27548          * ginclude/unwind-arm-common.h: Revert previous commit.
27550 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
27552         * config.gcc (arm*-*-freebsd*): New configuration.
27553         * config/arm/freebsd.h: New file.
27554         * config.host: Add extra components for arm*-*-freebsd*.
27555         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
27556         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
27558 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27560         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
27561         for -mcpu=e6500.
27562         * config/rs6000/t-rtems: Add e6500 multilibs.
27564 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27566         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
27567         MPC8540.
27569 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27571         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
27572         MULTILIB_EXCEPTIONS.
27574 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27576         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
27577         MULTILIB_EXCEPTIONS.
27579 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27581         * config/arm/t-rtems-eabi: Rename to...
27582         * config/arm/t-rtems: ...this.
27583         * config/arm/rtems-eabi.h: Rename to...
27584         * config/arm/rtems.h: ...this.
27585         * config.gcc (arm*-*-rtems*): Reflect changes above.
27587 2015-01-09  Richard Biener  <rguenther@suse.de>
27589         PR tree-optimization/64410
27590         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
27591         on the LHS.
27592         (execute_update_addresses_taken): Deal with that.
27593         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
27594         loads/stores for complex variables.
27596 2015-01-09  Martin Liska  <mliska@suse.cz>
27598         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
27599         name comparison.
27600         (func_checker::compare_memory_operand): New function.
27601         (func_checker::compare_operand): Split case to newly
27602         added functions.
27603         (func_checker::compare_cst_or_decl): New function.
27604         (func_checker::compare_gimple_call): Identify
27605         memory operands.
27606         (func_checker::compare_gimple_assign): Likewise.
27607         * ipa-icf-gimple.h: New function.
27609 2015-01-09  Martin Liska  <mliska@suse.cz>
27611         PR ipa/64503
27612         * sreal.c (sreal::dump): Change unsigned format to signed for
27613         m_exp value.
27614         (sreal::to_double): Replace exp2 with scalbln.
27616 2015-01-09  Martin Liska  <mliska@suse.cz>
27618         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
27619         * ipa-icf.c (sem_function::equals_private): Add support for target and
27620         (sem_item_optimizer::merge_classes): Remove redundant function
27621         optimization flags comparison.
27622         * tree.h (target_opts_for_fn): New function.
27624 2015-01-09  Tom de Vries  <tom@codesourcery.com>
27626         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
27628 2015-01-09  Kito Cheng  <kito@0xlab.org>
27630         PR rtl-optimization/64348
27631         * lra-constraints.c (split_reg): Fix caller-save store/restore
27632         instruction generation.
27634 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
27636         PR gcov-profile/61790
27637         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
27638         long long.  Fallback to int64_t if host doesn't have long long and
27639         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
27641 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
27643         PR tree-optimization/63989
27644         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
27645         from 1000 to 10000.
27646         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
27647         (get_stridx): If we don't have a record for certain SSA_NAME,
27648         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
27649         constant offset, call get_stridx_plus_constant.
27650         (get_stridx_plus_constant): New function.
27651         (zero_length_string): Don't use get_stridx here.
27653         PR target/55023
27654         PR middle-end/64388
27655         * dse.c (struct insn_info): Mention frame_read set also
27656         before reload for tail calls on some targets.
27657         (scan_insn): Revert 2014-12-22 change.  Set frame_read
27658         also before reload for tail calls if
27659         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
27660         instead of add_non_frame_wild_read for non-const/memset
27661         tail calls after reload.
27663 2015-01-08  Jason Merrill  <jason@redhat.com>
27665         * ubsan.c (do_ubsan_in_current_function): New.
27666         (pass_ubsan::gate): Use it.
27667         * ubsan.h: Declare it.
27668         * convert.c (convert_to_integer): Use it.
27670 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
27672         PR target/64338
27673         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
27674         compare_code when it is unconditionally overwritten afterwards.
27675         Use ix86_reverse_condition instead of reverse_condition.  Don't
27676         change code if *reverse_condition* returned UNKNOWN and don't
27677         swap ct/cf and negate diff in that case.
27679 2015-01-08  Mike Stump  <mikestump@comcast.net>
27681         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
27682         (pass_tsan_O0::gate): Likewise.
27683         * extend.texi (Function Attributes): Add no_sanitize_thread
27684         documentation.
27686 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
27688         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
27689         for registering builtins.
27690         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
27691         add -fopenmp to the argv_obstack used when invoking
27692         compile_for_target.
27694         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
27695         add "-m32" or "-m64" to argv_obstack.
27696         (generate_host_descr_file): Likewise, when invoking host_compiler.
27697         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
27698         ld.
27700 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
27702         * config/sh/sh-mem.cc: Use constant as second operand when emitting
27703         tstsi_t insns.
27705 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
27707         PR target/55212
27708         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
27709         constant load if constant operand fits into I08.
27711 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
27713         PR sanitizer/64336
27714         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
27715         and TREE_THIS_VOLATILE for MEM_REFs.
27716         (build5_stat): Fix up initialization of TREE_READONLY and
27717         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
27719 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
27721         PR target/64533
27722         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
27723         of r for the second alternative of the destination operand.
27725 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
27727         PR target/36557
27728         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
27730 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
27732         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
27733         keywords.
27734         ([-fivar-visibility], [-fvisibility]): Likewise.
27736 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
27738         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
27739         the file where @code, @command, etc is more appropriate.
27741 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
27743         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
27744         of -mrecip= documentation.
27746 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27748         PR target/64505
27749         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
27750         correct reload handler if -m32 -mpowerpc64 is used.
27752 2015-01-06  Tom de Vries  <tom@codesourcery.com>
27754         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
27756 2015-01-08  Christian Bruel  <christian.bruel@st.com>
27758         PR target/64507
27759         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
27761 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27763         PR tree-optimization/63259
27764         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
27765         if optab exists for 16bit byteswap.
27767 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
27769         * opts.c (common_handle_option): Add support for
27770         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
27771         * doc/invoke.texi: Document -fno-sanitize=all,
27772         -f{,no-}sanitize-recover=all.  Document that
27773         -fsanitize=float-cast-overflow is not enabled
27774         by -fsanitize=undefined.  Fix up documentation
27775         of -f{,no-}sanitize-recover.
27777 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
27779         * config.gcc: Add Visium support.
27780         * configure.ac: Likewise.
27781         * configure: Regenerate.
27782         * doc/extend.texi (interrupt attribute): Add Visium.
27783         * doc/invoke.texi: Document Visium options.
27784         * doc/install.texi: Document Visium target.
27785         * doc/md.texi: Document Visium constraints.
27786         * common/config/visium: New directory.
27787         * config/visium: Likewise.
27789 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
27791         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
27792         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
27794 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
27796         * combine.c (combine_validate_cost): Do not count the cost of a
27797         split I2 twice.  Do not display it twice in the dump, either.
27799 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27801         Revert parts of r219199.
27802         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
27803         <inttypes.h>.
27804         ([-Wtraditional]): Restore markup on <limits.h>.
27806 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
27808         PR c++/31397
27809         * doc/invoke.texi: Document -Wsuggest-override.
27811 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
27813         PR rtl-optimization/64287
27814         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
27815         (process_options): Disable flag_ipa_ra if profiling.
27817 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
27819         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
27821 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
27823         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
27824         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
27825         put under #if TARGET_LOOPS guard.
27827 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
27829         * config/i386/i386.c (output_387_binary_op): Use std::swap.
27831 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
27833         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
27834         * rtl.h (refers_to_regno_p): Add overload.
27835         * cse.c: Use it.
27836         * bt-load.c: Likewise.
27837         * combine.c: Likewise.
27838         * df-scan.c: Likewise.
27839         * sched-deps.c: Likewise.
27840         * config/s390/s390.c: Likewise.
27841         * config/m32r/m32r.c: Likewise.
27842         * config/rs6000/spe.md: Likewise.
27843         * config/rs6000/rs6000.c: Likewise.
27844         * config/pa/pa.c: Likewise.
27845         * config/stormy16/stormy16.c: Likewise.
27846         * config/cris/cris.c: Likewise.
27847         * config/arc/arc.md: Likewise.
27848         * config/arc/arc.c: Likewise.
27849         * config/sh/sh.md: Likewise.
27850         * config/sh/sh.c: Likewise.
27851         * config/frv/frv.c: Likewise.
27853 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27855         PR sanitizer/64265
27856         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
27857         call as cleanup of the whole body.
27858         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
27859         * tsan.c (replace_func_exit): New function.
27860         (instrument_func_exit): Moved earlier.
27861         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
27862         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
27863         been found.
27864         (tsan_pass): Don't call instrument_func_exit.
27865         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
27866         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
27867         inlining.
27869         PR sanitizer/64344
27870         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
27871         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
27872         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
27873         if the result is integer_zerop, return NULL_TREE.
27874         * convert.c (convert_to_integer): Pass expr as ARG.
27876         PR tree-optimization/64465
27877         * tree-inline.c (redirect_all_calls): During inlining
27878         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
27879         changed the stmt to a non-throwing call.
27881 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
27883         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
27884         etc markup throughout the file.
27886 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27888         Enable experimental TSAN support for Ada.
27889         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
27891 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27893         PR tree-optimization/64494
27894         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
27895         clear SSA_NAME_ANTI_RANGE_P flag.
27897 2015-01-05  Marek Polacek  <polacek@redhat.com>
27899         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
27901 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
27903         Update copyright years.
27905         * gcc.c (process_command): Update copyright notice dates.
27906         * gcov-dump.c: Ditto.
27907         * gcov.c: Ditto.
27908         * doc/cpp.texi: Bump @copying's copyright year.
27909         * doc/cppinternals.texi: Ditto.
27910         * doc/gcc.texi: Ditto.
27911         * doc/gccint.texi: Ditto.
27912         * doc/gcov.texi: Ditto.
27913         * doc/install.texi: Ditto.
27914         * doc/invoke.texi: Ditto.
27916         * auto-profile.c, auto-profile.h: Fix up Copyright line.
27918 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
27920         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
27921         verb tense, etc.
27922         ([-fvtable-verify], [-fvtv-debug]): Likewise.
27923         ([-Wabi]): Likewise.
27924         ([-fmessage-length]): Likewise.
27925         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
27926         ([-Wno-discarded-qualifiers]): Likewise.
27927         ([-Wnodiscarded-array-qualifiers]): Likewise.
27928         ([-Wno-virtual-move-assign]): Likewise.
27929         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
27930         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
27931         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
27932         ([-fsanitize-undefined-trap-on-error]): Likewise.
27933         ([-floop-interchange]): Likewise.
27934         ([-ftree-coalesce-inlined-vars]): Likewise.
27935         ([-fvect-cost-model]): Likewise.
27936         ([-flto]): Likewise.
27937         ([--param]): Likewise.
27938         (Spec Files): Likewise.
27939         ([-mstrict-align]): Likewise.
27940         ([-mfix-cortex-a53-835769]): Likewise.
27941         ([-march], [-mtune]): Likewise.
27942         ([-mpic-register]): Likewise.
27943         ([-munaligned-access]): Likewise.
27944         ([-msp8]): Likewise.
27945         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
27946         (AVR Built-in Macros): Likewise.
27947         ([-mpreferred-stack-boundary]): Likewise.
27948         ([-mtune-crtl]): Likewise.
27949         ([-mashf]): Likewise.
27950         ([-mmcu=]): Likewise.
27951         ([-minrt]): Likewise.
27952         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
27953         ([-mupper-regs]): Likewise.
27954         ([-matomic-model]): Likewise.
27955         ([-mdiv]): Likewise.
27956         ([-mzdcbranch]): Likewise.
27957         ([-mdisable-callt]): Likewise.
27958         ([-msoft-float]): Likewise.
27959         ([-m8byte-align]): Likewise.
27960         ([-fstack-reuse]): Likewise.
27962 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27964         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
27965         Fix markup, light copy-editing.
27966         ([-fauto-profile]): Rewrite to fix formatting and content
27967         problems.
27969 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27971         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
27972         Copy-edit description.
27973         ([-fisolate-erroneous-paths-attribute]): Likewise.
27974         * common.opt (fisolate-erroneous-paths-dereference):
27975         Copy-edit description.
27976         (fisolate-erroneous-paths-attribute): Likewise.
27978 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27980         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
27981         tidy grammar.
27983 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
27985         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
27986         ([-fvtv-debug]): Likewise.
27987         ([-Wc++-compat]): Likewise.
27988         ([-Wc++11-compat]): Likewise.
27989         ([-Wc++14-compat]): Likewise.
27990         ([-Wno-sized-deallocation]): Likewise.
27991         ([-femit-class-debug-always]): Likewise.
27992         ([-femit-struct-debug-detailed]): Likewise.
27993         ([-fno-keep-inline-dllexport]): Likewise.
27994         ([-fira-algorithm]): Likewise.
27995         ([-fira-region]): Likewise.
27996         ([-flra-remat]): Likewise.
27997         ([-fipa-ra]): Likewise.
27998         ([-fhoist-adjacent-loads]): Likewise.
27999         ([-fisolate-erroneous-paths-dereference]): Likewise.
28000         ([-fisolate-erroneous-paths-attribute]): Likewise.
28001         ([-ftree-switch-conversion]): Likewise.
28002         ([-ftree-tail-merge]): Likewise.
28003         ([-ftree-loop-if-convert]): Likewise.
28004         ([-ftree-loop-if-convert-stores]): Likewise.
28005         ([-ftree-loop-distribution]): Likewise.
28006         ([-ftree-loop-distribute-patterns]): Likewise.
28007         ([-flto-compression-level]): Likewise.
28008         ([-flto-report]): Likewise.
28009         ([-flto-report-wpa]): Likewise.
28010         ([-fuse-linker-plugin]): Likewise.
28011         ([-mfix-cortex-a53-835769]): Likewise.
28012         ([-mno-fix-cortex-a53-835769]): Likewise.
28013         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
28014         explicit listing; add a note to the discussion indicating they
28015         exist.  Reorder table to group similar options.  Add missing
28016         @opindex entries.  Add @need commands throughout the table to
28017         allow it to be split across multiple pages.
28018         ([-m8bit-idiv]): Fix @opindex.
28019         ([-mavx256-split-unaligned-load]): Likewise.
28020         ([-mavx256-split-unaligned-store]): Likewise.
28021         ([-mstack-protector-guard]): Likewise.
28022         ([-mcpu=]): Likewise.
28023         ([-mcpu]): Likewise.
28024         ([-mpointer-size=]): Likewise.
28026 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
28028         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
28029         instead of `m' constraint.  Likewise for unnamed movb comparison
28030         patterns using reg_before_reload_operand predicate.
28031         * config/pa/predicates.md (reg_before_reload_operand): Tighten
28032         predicate to reject register index and LO_SUM DLT memory forms
28033         after reload.
28035 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
28037         * doc/invoke.texi (Option Summary): Fix spelling of
28038         -fdevirtualize-at-ltrans.
28039         ([-fdevirtualize]): Fix markup.
28040         ([-fdevirtualize-speculatively]): Fix typo.
28041         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
28042         implementor-speaky.
28043         * common.opt (fdevirtualize-at-ltrans): Likewise.
28044         * ipa-devirt.c: Fix typos in comments throughout the file.
28045         (ipa_devirt): Fix typos in format strings for dump output.
28047 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
28049         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
28050         discussion of defaults, light copy-editing.
28052 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28054         * tsan.c (instrument_expr): corrected previous checkin.
28056 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28058         Instrument bit field and unaligned accesses for TSAN.
28059         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
28060         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
28061         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
28062         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
28063         unaligned memory regions.
28065 2015-01-01  Anthony Green  <green@moxielogic.com>
28067         * config/moxie/predicates.md (moxie_general_movsrc_operand):
28068         Restrict move source register offsets to 16 bits.
28070 Copyright (C) 2015 Free Software Foundation, Inc.
28072 Copying and distribution of this file, with or without modification,
28073 are permitted in any medium without royalty provided the copyright
28074 notice and this notice are preserved.