* config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
[official-gcc.git] / gcc / ChangeLog
blobc9409e79728147ca7b925346520f1b900668e861
1 2015-10-07  David Edelsohn  <dje.gcc@gmail.com>
3         * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
4         encoding in 64-bit mode.
6 2015-10-07  Uros Bizjak  <ubizjak@gmail.com>
8         PR target/66697
9         * config/i386/i386.c (ix86_option_override_internal): Always use
10         8-byte minimum stack boundary in 64-bit mode.
11         (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
12         (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
13         Add a REG_CFA_EXPRESSION note if needed.
14         (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
15         (ix86_handle_force_align_arg_pointer_attribute): New.
16         (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
17         (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
18         with ix86_handle_force_align_arg_pointer_attribute.
19         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
21 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
22             Sebastian Pop  <s.pop@samsung.com>
24         * graphite-scop-detection.c (parameter_index_in_region): Remove
25         use of SESE_ADD_PARAMS.
26         (find_scop_parameters): Same.
27         * sese.c (new_sese_info): Same.
28         * sese.h (struct sese_info_t): Remove add_params.
29         (SESE_ADD_PARAMS): Remove.
31 2015-10-07  Aditya Kumar  <aditya.k7@samsung.com>
32             Sebastian Pop  <s.pop@samsung.com>
34         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
35         an sese_info_p.
36         (copy_def): Same.
37         (copy_internal_parameters): Same.
38         (translate_isl_ast_to_gimple): Use an sese_l.
39         (build_iv_mapping): Same.
40         * graphite-poly.c (new_sese): Rename new_sese_info.
41         (free_sese): Rename free_sese_info.
42         * graphite-poly.h (struct scop): Use an sese_info_p.
43         (scop_set_region): Same.
44         * graphite-scop-detection.c (struct sese_l): Moved...
45         (get_entry_bb): Moved...
46         (get_exit_bb): Moved...
47         (parameter_index_in_region_1): Use an sese_info_p.
48         (parameter_index_in_region): Same.
49         (scan_tree_for_params): Same.
50         (find_params_in_bb): Same.
51         (sese_dom_walker): Use an sese_l.
52         * graphite-sese-to-poly.c (remove_invariant_phi): Same.
53         (reduction_phi_p): Same.
54         (parameter_index_in_region_1): Use an sese_info_p.
55         (propagate_expr_outside_region): Use an sese_l.
56         * graphite.c: Replace uses of SCOP_REGION.
57         * sese.c (sese_record_loop): Use an sese_info_p.
58         (build_sese_loop_nests): Same.
59         (sese_build_liveouts_use): Same.
60         (sese_build_liveouts_bb): Same.
61         (sese_build_liveouts_bb): Same.
62         (sese_bad_liveouts_use): Same.
63         (sese_reset_debug_liveouts_bb): Same.
64         (sese_build_liveouts): Same.
65         (new_sese): Renamed new_sese_info.
66         (free_sese): Renamed free_sese_info.
67         (set_rename): Use an sese_info_p.
68         (graphite_copy_stmts_from_block): Same.
69         (copy_bb_and_scalar_dependences): Same.
70         (outermost_loop_in_sese_1): Use an sese_l.
71         (outermost_loop_in_sese): Same.
72         (if_region_set_false_region): Use an sese_info_p.
73         (move_sese_in_condition): Same.
74         (scalar_evolution_in_region): Use an sese_l.
75         * sese.h (struct sese_l): ... here.
76         (SESE_ENTRY): Remove.
77         (SESE_ENTRY_BB): Remove.
78         (SESE_EXIT): Remove.
79         (SESE_EXIT_BB): Remove.
80         (sese_contains_loop): Use an sese_info_p.
81         (sese_nb_params): Same.
82         (bb_in_sese_p): Use an sese_l.
83         (stmt_in_sese_p): Same.
84         (defined_in_sese_p): Same.
85         (loop_in_sese_p): Same.
86         (sese_loop_depth): Same.
87         (struct ifsese_s): Use an sese_info_p.
88         (gbb_loop_at_index): Use an sese_l.
89         (nb_common_loops): Same.
90         (scev_analyzable_p): Same.
92 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
94         * config/i386/i386.c (ix86_conditional_register_usage): Use
95         CALL_USED_REGISTERS_MASK.
96         * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
98 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
100         PR bootstrap/67385
101         * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
102         * configure: Regenerated.
104 2015-10-07  H.J. Lu  <hongjiu.lu@intel.com>
106         PR target/67850
107         * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
108         (ix86_set_current_function): This.
109         (TARGET_EXPAND_TO_RTL_HOOK): Removed.
111 2015-10-07  Richard Biener  <rguenther@suse.de>
113         * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
114         (vinfo_for_stmt): Adjust.
115         (set_vinfo_for_stmt): Likewise.
116         * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
117         * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
118         * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
119         of inner loop.
120         (vect_analyze_loop_1): Remove.
121         (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
122         inner loop when vectorizing an outer loop by splitting out from ...
123         (vect_analyze_loop_form): ... here.
125 2015-10-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
127         PR c/65345
128         * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
129         Use create_tmp_var_raw instead of create_tmp_var.
131 2015-10-07  Richard Sandiford  <richard.sandiford@arm.com>
133         * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
134         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
135         * real.c (CACHED_FRACTION): New helper macro.
136         (dconst_third_ptr): Use it.
137         (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
138         * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
139         dconst_sixth.
140         (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
142 2015-10-06  Jeff Law  <law@redhat.com>
144         PR tree-optimization/67816
145         * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
146         from remove_jump_threads_starting_at.  Accept an edge rather than
147         a basic block.
148         * tree-ssa-threadupdate.c (removed_edges): New hash table.
149         (remove_jump_threads_including): Note edges that get removed from
150         the CFG for later pruning of jump threading paths including them.
151         (thread_through_all_blocks): Remove paths which include edges that
152         have been removed.
153         * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
154         on each outgoing edges when optimizing away a control statement.
156 2015-10-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
158         * reorg.c (emit_delay_sequence): Store list of delay slot insns
159         in a vector instead of rtx_insn_list.
160         (add_to_delay_list): Likewise.
161         (delete_from_delay_slot): Likewise.
162         (optimize_skip): Likewise.
163         (redirect_with_delay_list_safe_p): Likewise.
164         (check_annul_list_true_false): Likewise.
165         (steal_delay_list_from_target): Likewise.
166         (steal_delay_list_from_fallthrough): Likewise.
167         (redundant_insn): Likewise.
168         (fill_simple_delay_slots): Likewise.
169         (fill_slots_from_thread): Likewise.
170         (fill_eager_delay_slots): Likewise.
171         (relax_delay_slots): Likewise.
173 2015-10-06  Sandra Loosemore  <sandra@codesourcery.com>
175         * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
176         For -mgpopt=local, also exclude unintialized common symbols.
177         * doc/invoke.texi (Nios II Options): Document the change.
179 2015-10-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
181         * config/aarch64/iterators.md (vwcore): Add missing cases for
182          V4HF/V8HF modes.
184 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
185             Sebastian Pop  <s.pop@samsung.com>
187         * graphite-poly.c (new_scop): Initialize drs.
188         * graphite-poly.h (struct dr_info): New.
189         (struct scop): Add drs.
190         * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
191         (pdr_add_memory_accesses): Same.
192         (build_poly_dr): Same.
193         (build_alias_set): Same.
194         (build_scop_drs): Same.
195         (build_pbb_drs): Remove.
196         * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
197         * tree-data-ref.h (data_reference): Remove alias_set.
199 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
200             Sebastian Pop  <s.pop@samsung.com>
202         * graphite-poly.c (free_data_refs_aux): Remove.
203         (free_gimple_poly_bb): Do not call free_data_refs_aux.
204         * graphite-poly.h (struct base_alias_pair): Remove.
205         * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
206         base_alias_pair and dr->aux.
207         (build_alias_set): Same.
208         * tree-data-ref.c (create_data_ref): Initialize alias_set.
209         * tree-data-ref.h (data_reference): Add alias_set.
211 2015-10-06  Aditya Kumar  <aditya.k7@samsung.com>
212             Sebastian Pop  <s.pop@samsung.com>
214         * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
215         Do not set PDR_BASE_OBJECT_SET.
216         * graphite-poly.h (poly_dr): Same.
217         (PDR_BASE_OBJECT_SET): Remove.
218         (new_poly_dr): Update decl.
219         * graphite-sese-to-poly.c (build_poly_dr): Update call to
220         new_poly_dr.
221         (write_alias_graph_to_ascii_dimacs): Remove.
222         (write_alias_graph_to_ascii_dot): Remove.
223         (write_alias_graph_to_ascii_ecc): Remove.
224         (dr_same_base_object_p): Remove.
225         (build_alias_set_optimal_p): Rename build_alias_set.  Remove dead
226         code.
227         (build_base_obj_set_for_drs): Remove.
228         (dump_alias_graphs): Remove.
229         (build_scop_drs): Remove dead code.
231 2015-10-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
232             Peter Bergner  <bergner@vnet.ibm.com>
234         PR target/67808
235         * config/rs6000/rs6000.md (extenddftf2): In the expander, only
236         allow registers, but provide insns for the combiner to create for
237         loads from memory. Separate VSX code from non-VSX code. For
238         non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
239         externaldftf2_internal to externaldftf2_fprs. Reorder constraints
240         so that registers come before memory operations. Drop support from
241         converting DFmode to TFmode, if the DFmode value is in a GPR
242         register.
243         (extenddftf2_fprs): Likewise.
244         (extenddftf2_internal): Likewise.
245         (extenddftf2_vsx): Likewise.
246         (extendsftf2): In the expander, only allow registers, but provide
247         insns for the combiner to create for stores and loads.
249 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
251         * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
252         from the decl parameter.
254 2015-10-06  Nathan Sidwell  <nathan@codesourcery.com>
256         PR 67861
257         * gimple-fold.c (gimple_fold_builtin): Add break after
258         BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
260 2015-10-06  H.J. Lu  <hongjiu.lu@intel.com>
262         * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
263         to scop->isl_context.
265 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
267         * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
268         (output_probe_stack_range): Rotate the loop and simplify.
269         (thumb1_expand_prologue): Tweak sorry message.
270         * config/arm/arm.md (probe_stack): Use bare string.
272 2015-10-06  Nick Clifton  <nickc@redhat.com>
274         * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
276 2015-10-06  Nick Clifton  <nickc@redhat.com>
278         * config/msp430/msp430.c (ATTR_NOINIT): New constant.
279         (ATTR_PERSIST): New constant.
280         (msp430_data_attr): New function - verifies an attribute that only
281         applies to variables.
282         (msp430_attributes): Add noinit and persistent attributes.
283         (noinit_section): New variable.
284         (presis_section): New variable.
285         (TARGET_ASM_INIT_SECTIONS): Define.
286         (msp430_init_sections): New function - initialises the noinit and
287         persist section variables.
288         (msp430_select_section): Add support for noinit and persist
289         attributes.
290         (msp430_section_type_flags): Likewise.
291         * doc/extend.texi:  Document the reent, critical, wakeup, noinit
292         and persistent attributes.
294 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
295             Sebastian Pop  <s.pop@samsung.com>
297         * graphite-dependences.c (scop_get_transformed_schedule): Remove.
298         (no_violations): Remove.
299         (subtract_commutative_associative_deps): Remove.
300         (compute_deps): Do not call subtract_commutative_associative_deps.
301         (transform_is_safe): Remove.
302         (graphite_legal_transform): Remove.
303         * graphite-poly.h (graphite_legal_transform): Remove.
305 2015-10-05  Aditya Kumar  <hiraditya@msn.com>
307         * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
308         which are in this region are passed so gcc_assert and remove redundant
309         computation.
310         * sese.c (sese_build_liveouts): Pass only those bbs which are not
311         in region.
312         (sese_bad_liveouts_use): Only BBs which are not in region are passed so
313         gcc_assert on that and remove unnecessary computation.
314         (sese_build_liveouts_use): Same.
316 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
318         * graphite-dependences.c (scop_get_reads): Renamed scop->context
319         to scop->param_context.
320         (scop_get_must_writes): Same.
321         (scop_get_may_writes): Same.
322         (scop_get_original_schedule): Same.
323         (scop_get_transformed_schedule): Same.
324         (subtract_commutative_associative_deps): Same.
325         * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
326         (generate_isl_context): Same.
327         (generate_isl_schedule): Same.
328         (scop_to_isl_ast): Same.
329         (graphite_regenerate_ast_isl): Same.
330         * graphite-optimize-isl.c (scop_get_domains): Same.
331         (optimize_isl): Renamed scop->context to scop->param_context.
332         * graphite-poly.c (new_poly_bb): Change the type of argument to
333         gimple_poly_bb_p.
334         (new_scop): Renamed scop->context to scop->param_context.
335         (free_scop): Same.
336         (print_scop_context): Same.
337         * graphite-poly.h (new_poly_dr): Change the type of argument from
338         void* to data_reference_p.
339         (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
340         (new_poly_bb): Change the type of argument from void* to
341         gimple_poly_bb_p.
342         (pbb_set_black_box): Same.
343         (struct scop): Rename context to param_context, ctx to isl_context.
344         * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
345         Move declarations closer to assignment.
346         (find_params_in_bb): Same.
347         (find_scop_parameters): Same.
348         * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
349         Global to be used for statement IDs.
350         (isl_id_for_pbb): Use ssa_name_version_typesize.
351         (simple_copy_phi_p): Move declarations closer to assignment.
352         (build_pbb_scattering_polyhedrons): Same.
353         (build_scop_scattering): Same.
354         (isl_id_for_ssa_name): Same.
355         (extract_affine_name): Same.
356         (extract_affine_int): Same.
357         (extract_affine): Same.
358         (set_scop_parameter_dim): Use renamed member.
359         (build_loop_iteration_domains): Same.
360         (add_param_constraints): Same.
361         (build_scop_iteration_domain): Same.
362         (pdr_add_data_dimensions): Same.
363         (build_poly_dr): Same.
364         (build_scop_drs): Move declarations closer to assignment.
365         (analyze_drs_in_stmts): Same.
366         (insert_out_of_ssa_copy): Same.
367         (insert_out_of_ssa_copy_on_edge): Same.
368         (propagate_expr_outside_region): Same.
369         (rewrite_phi_out_of_ssa): Same.
370         (rewrite_degenerate_phi): Same.
371         (rewrite_reductions_out_of_ssa): Same.
372         (rewrite_cross_bb_scalar_dependence): Same.
373         (handle_scalar_deps_crossing_scop_limits): Same.
374         (rewrite_cross_bb_scalar_deps): Same.
375         * graphite.c (graphite_transform_loops): Use renamed member.
377 2015-10-06  Uros Bizjak  <ubizjak@gmail.com>
379         PR c/65345
380         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
381         create_tmp_var_raw instead of create_tmp_var.
383 2015-10-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
385         PR c/65345
386         * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
387         Use create_tmp_var_raw instead of create_tmp_var.
389 2015-10-06  Alexander Fomin  <alexander.fomin@intel.com>
391         PR target/67849
392         * config/i386/sse.md (define_split vec_select/V8FI): Restrict
393         split for upper-bank registers when target does not support
394         AVX512VL.
395         (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
396         split when target does not support AVX512VL.
398 2015-10-06  David Edelsohn  <dje.gcc@gmail.com>
400         PR c/65345
401         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
402         Adjust to use create_tmp_var_raw instead of create_tmp_var.
404 2015-10-06  Nick Clifton  <nickc@redhat.com>
406         * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
407         multiplication.
409 2015-10-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
411         * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
412         (case ${target}): Add znver1.
413         * config/i386/cpuid.h(bit_CLZERO):  Define.
414         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
415         -march=native recognize znver1 processors.
416         * config/i386/i386-c.c (ix86_target_macros_internal): Add
417         znver1, clzero def_and_undef.
418         * config/i386/i386.c (struct processor_costs znver1_cost): New.
419         (m_znver1): New definition.
420         (m_AMD_MULTIPLE): Includes m_znver1.
421         (processor_target_table): Add znver1 entry.
422         (ix86_target_string) : Add clzero entry.
423         (static const char *const cpu_names): Add znver1 entry.
424         (ix86_option_override_internal): Add znver1 instruction sets.
425         (PTA_CLZERO) :  New definition.
426         (ix86_option_override_internal): Handle new clzerooption.
427         (ix86_issue_rate): Add znver1.
428         (ix86_adjust_cost): Add znver1.
429         (ia32_multipass_dfa_lookahead): Add znver1.
430         (has_dispatch): Add znver1.
431         * config/i386/i386.h (TARGET_znver1): New definition.
432         (TARGET_CLZERO): Define.
433         (TARGET_CLZERO_P): Define.
434         (struct ix86_size_cost): Add TARGET_ZNVER1.
435         (enum processor_type): Add PROCESSOR_znver1.
436         * config/i386/i386.md (define_attr "cpu"): Add znver1.
437         (set_attr znver1_decode): New definitions for znver1.
438         * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
439         (mclzero): New.
440         * config/i386/mmx.md (set_attr znver1_decode): New definitions
441         for znver1.
442         * config/i386/sse.md (set_attr znver1_decode): Likewise.
443         * config/i386/x86-tune.def:  Add znver1 tunings.
444         * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
445         * gcc/doc/invoke.texi: Add details about znver1
447 2015-10-06  Richard Biener  <rguenther@suse.de>
449         PR tree-optimization/67859
450         * tree-ssa-pre.c (create_expression_by_pieces): Properly
451         discard not inserted stmts.
453 2015-10-06  Jonathan Wakely  <jwakely@redhat.com>
455         * doc/extend.texi (Template Instantiation): Reorder options and
456         de-emphasize -frepo.
457         * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
458         example instead of -frepo.
460 2015-10-06  Eric Botcazou  <ebotcazou@adacore.com>
462         PR c/65345
463         * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
464         use create_tmp_var_raw rather than create_tmp_var.
466 2015-10-06  Richard Biener  <rguenther@suse.de>
468         * tree-vectorizer.h (vec_info): New base class for...
469         (_loop_vec_info): ... this and ...
470         (_bb_vec_info): ... this.
471         (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
472         vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
473         vect_analyze_data_ref_accesses, vect_analyze_data_refs,
474         vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
475         vect_destroy_datarefs): Adjust interface to take a vec_info *
476         rather than both a loop_vec_info and a bb_vec_info argument.
477         * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
478         vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
479         vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
480         vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
481         accordingly.
482         * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
483         (destroy_loop_vec_info, vect_analyze_loop_2,
484         vect_is_simple_reduction_1, get_initial_def_for_induction,
485         vect_create_epilog_for_reduction, vectorizable_reduction,
486         vectorizable_live_operation, vect_transform_loop): Adjust.
487         * tree-vect-patterns.c (type_conversion_p,
488         vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
489         vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
490         vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
491         check_bool_pattern, vect_recog_bool_pattern,
492         vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
493         * tree-vect-slp.c (vect_get_and_check_slp_defs,
494         vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
495         vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
496         vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
497         (new_bb_vec_info): Initialize base classs.
498         * tree-vect-stmts.c (record_stmt_cost, process_use,
499         vect_get_vec_def_for_operand, vect_finish_stmt_generation,
500         vectorizable_mask_load_store, vectorizable_call,
501         vectorizable_simd_clone_call, vectorizable_conversion,
502         vectorizable_assignment, vectorizable_shift,
503         vectorizable_operation, vectorizable_store,
504         vectorizable_load, vect_is_simple_cond, vectorizable_condition,
505         new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
506         * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
508 2015-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
510         PR c/65345
511         * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
512         create_tmp_var_raw rather than create_tmp_var.
514 2015-10-05  Marek Polacek  <polacek@redhat.com>
516         * tree-ssa-loop-im.c
517         (move_computations_dom_walker::before_dom_children): Don't set
518         SSA_NAME_ANTI_RANGE_P.
519         * tree-ssa-phiopt.c (value_replacement): Likewise.
521 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
522             Sebastian Pop  <s.pop@samsung.com>
524         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
526 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
527             Sebastian Pop  <s.pop@samsung.com>
529         * graphite-poly.c (new_gimple_poly_bb): ... here.
530         (free_data_refs_aux): ... here.
531         (free_gimple_poly_bb): ... here.
532         (remove_gbbs_in_scop): ... here.
533         (new_scop): Call new_sese.
534         (free_scop): Call remove_gbbs_in_scop and free_sese.
535         * graphite-poly.h (base_alias_pair): ... here.
536         (new_gimple_poly_bb): Declare.
537         (free_gimple_poly_bb): Declare.
538         * graphite-scop-detection.c (parameter_index_in_region_1):
539         (parameter_index_in_region): ... here.
540         (scan_tree_for_params): ... here.
541         (find_params_in_bb): ... here.
542         (find_scop_parameters): ... here.
543         (build_scops): Call find_scop_parameters.
544         * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
545         (free_scops): Move...
546         (single_pred_cond_non_loop_exit): Move...
547         (sese_dom_walker::before_dom_children): Move...
548         (sese_dom_walker::after_dom_children): Move...
549         (build_poly_scop): Move...
550         * graphite-sese-to-poly.h (base_alias_pair): Move...
551         * graphite.c (free_scops): ... here.
553 2015-10-05  Aditya Kumar  <aditya.k7@samsung.com>
554             Sebastian Pop  <s.pop@samsung.com>
556         * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
557         (trivially_empty_bb_p): Move...
558         (same_close_phi_node): Move...
559         (new_gimple_poly_bb): Move...
560         (compare_bb_depths): Move...
561         (graphite_sort_dominated_info): Move...
562         (remove_duplicate_close_phi): Move...
563         (make_close_phi_nodes_unique): Move...
564         (canonicalize_loop_closed_ssa): Move...
565         (canonicalize_loop_closed_ssa_form): Move...
566         (loop_ivs_can_be_represented): Move...
567         (single_pred_cond_non_loop_exit): Move...
568         (graphite_can_represent_init): Move...
569         (graphite_can_represent_scev): Move...
570         (stmt_has_simple_data_refs_p): Move...
571         (stmt_has_side_effects):  Move...
572         (graphite_can_represent_stmt): Move...
573         (scop_detection): ... here.
574         (sese_dom_walker): ... and here.
575         (build_scops): Call all moved functions.
576         * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
577         (all_non_dominated_preds_marked_p): Move...
578         (build_scop_bbs_1): Move...
579         (build_scop_bbs): Move...
580         (set_scop_parameter_dim): Move...
581         (nb_pbbs_in_loops): Move...
582         (build_poly_scop): Do not call all the moved functions.
584 2015-10-05  Martin Jambor  <mjambor@suse.cz>
585             Jan Hubicka  <hubicka@ucw.cz>
587         * ipa-cp.c (ipcp_alignment_lattice): New type.
588         (ipcp_param_lattices): Use the above to represent alignment.
589         (ipcp_alignment_lattice::print): New function.
590         (print_all_lattices): Use it to print alignment information.
591         (ipcp_alignment_lattice::top_p): New function.
592         (ipcp_alignment_lattice::bottom_p): Likewise.
593         (ipcp_alignment_lattice::set_to_bottom): Likewise.
594         (ipcp_alignment_lattice::meet_with_1): Likewise.
595         (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
596         (set_all_contains_variable): Use set_to_bottom of alignment lattice.
597         (initialize_node_lattices): Likewise.
598         (propagate_alignment_accross_jump_function): Work with the new class
599         for alignment lattices.
600         (propagate_constants_accross_call): Pass only the alignment lattice to
601         propagate_alignment_accross_jump_function.
602         (ipcp_store_alignment_results): Work with the new class for alignment
603         lattices.
605 2015-10-05  Marek Polacek  <polacek@redhat.com>
607         PR tree-optimization/67821
608         * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
610 2015-10-05  Thomas Schwinge  <thomas@codesourcery.com>
612         PR other/65021
613         * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
614         function to...
615         (mkoffload_cleanup): ... this.  Adjust all users.
616         (maybe_unlink): Look at save_temps and verbose flags instead of
617         debug flag.
618         (main): Parse "-save-temps" flag.
619         (generate_target_descr_file, generate_target_offloadend_file)
620         (generate_host_descr_file, prepare_target_image): Pass it on.
621         * config/nvptx/mkoffload.c (tool_cleanup): Implement.
622         (mkoffload_cleanup): New function.
623         (maybe_unlink): Look at save_temps and verbose flags instead of
624         debug flag.
625         (main): Instead of calling utils_cleanup, register atexit handler
626         for mkoffload_cleanup.
627         (main): Parse "-save-temps" flag.
628         (compile_native, main): Pass it on.
629         * lto-wrapper.c (compile_offload_image): Likewise.
631 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
633         * gimple.h (gimple_op_ptr): Require a non const gimple *.
634         (gimple_assign_lhs_ptr): Likewise.
635         (gimple_assign_rhs1_ptr): Likewise.
636         (gimple_assign_rhs2_ptr): Likewise.
637         (gimple_assign_rhs3_ptr): Likewise.
638         (gimple_call_lhs_ptr): Likewise.
639         (gimple_call_fn_ptr): Likewise.
640         (gimple_call_chain_ptr): Likewise.
641                 (gimple_call_arg_ptr): Likewise.
642                 (gimple_cond_lhs_ptr): Likewise.
643         (gimple_cond_rhs_ptr): Likewise.
644         (gimple_switch_index_ptr): Likewise.
645         (gimple_return_retval_ptr): Likewise.
647 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
649         * gimple.h (gimple_asm_input_op_ptr): Remove.
650         (gimple_asm_output_op_ptr): Likewise.
652 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
654         * gimple.h (gimple_location_ptr): Remove.
655         * tree-vrp.c (check_all_array_refs): Adjust.
657 2015-10-05  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
659         * tree-ssa-operands.c (build_uses): store tree * instead of
660         tree.
661         (finalize_ssa_uses): Adjust.
662         (append_use): Likewise.
663         (verify_ssa_operands): Likewise.
665 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
667         * real.h (build_real_truncate): Declare.
668         * tree.c (build_real_truncate): New function.
669         (strip_float_extensions): Use it.
670         * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
671         (fold_builtin_hypot, fold_builtin_pow): Likewise.
672         * match.pd: Likewise.
674 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
675            Jiong Wang  <jiong.wang@arm.com>
677         * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
679 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
681         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
682         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
683         (aarch64_print_operand, aarch64_float_const_representable_p)
684         (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
685         instead of REAL_VALUE_FROM_CONST_DOUBLE.
686         * config/arc/arc.c (arc_print_operand): Likewise.
687         * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
688         (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
689         (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
690         Likewise.
691         * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
692         (consttable_16): Likewise.
693         * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
694         * config/avr/avr.c (avr_print_operand): Likewise.
695         * config/bfin/bfin.md: Likewise (in a define_split).
696         * config/c6x/c6x.md: Likewise (in a define_split).
697         * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
698         (cr16_print_operand): Likewise.
699         * config/cris/cris.c (cris_print_operand): Likewise.
700         * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
701         * config/fr30/fr30.c (fr30_print_operand): Likewise.
702         (fr30_const_double_is_zero): Likewise.
703         * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
704         * config/frv/frv.md: Likewise (in a define_split).
705         * config/frv/predicates.md (int_2word_operand): Likewise.
706         * config/h8300/h8300.c (h8300_print_operand): Likewise.
707         * config/i386/i386.c (standard_80387_constant_p): Likewise.
708         (ix86_print_operand, ix86_split_to_parts): Likewise.
709         * config/i386/i386.md: Likewise (in a define_split).
710         * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
711         * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
712         * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
713         * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
714         (print_operand): Likewise.
715         * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
716         * config/mep/mep.md: Likewise (in define_split).
717         * config/microblaze/microblaze.c (microblaze_const_double_ok)
718         (print_operand): Likewise.
719         * config/mips/mips.md (consttable_float): Likewise.
720         * config/mmix/mmix.c (mmix_intval): Likewise.
721         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
722         * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
723         * config/pa/pa.c (pa_singlemove_string): Likewise.
724         * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
725         (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
726         * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
727         (output_toc): Likewise.
728         * config/rs6000/rs6000.md: Likewise (in define_splits).
729         * config/rx/rx.c (rx_print_operand): Likewise.
730         * config/s390/s390.c (s390_output_pool_entry): Likewise.
731         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
732         * config/sh/sh.md (consttable_sf, consttable_df): Likewise
733         (and also in define_splits).
734         * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
735         (fp_high_losum_p): Likewise.
736         * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
737         (*movsf_high): Likewise.
738         * config/spu/spu.c (const_double_to_hwint): Likewise.
739         * config/v850/v850.c (const_double_split): Likewise.
740         * config/vax/vax.c (vax_float_literal): Likewise.
741         * config/visium/visium.c (visium_expand_copysign): Likewise.
742         * config/visium/visium.md: Likewise (in define_split).
743         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
744         * config/xtensa/xtensa.c (print_operand): Likewise.
745         (xtensa_output_literal): Likewise.
746         * cprop.c (implicit_set_cond_p): Likewise.
747         * dwarf2out.c (insert_float): Likewise.
748         * expmed.c (expand_mult, make_tree): Likewise.
749         * expr.c (compress_float_constant): Likewise.
750         * rtlanal.c (split_double): Likewise.
751         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
752         (simplify_const_unary_operation, simplify_binary_operation_1)
753         (simplify_const_binary_operation): Likewise.
754         (simplify_const_relational_operation): Likewise.
755         * varasm.c (output_constant_pool_2): Likewise.
757 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
759         * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
760         instead of CONST_DOUBLE_FROM_REAL_VALUE.
761         (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
762         * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
763         instead of CONST_DOUBLE_FROM_REAL_VALUE.
764         * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
765         * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
766         (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
767         (ix86_emit_swsqrtsf): Likewise.
768         * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
769         * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
770         (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
771         * config/pa/pa.c (pa_expand_builtin): Likewise.
772         * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
773         (rs6000_scale_v2df): Likewise.
774         * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
775         * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
776         (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
777         * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
778         (vec_ctul): Likewise.
779         * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
780         * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
781         * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
782         * cse.c (fold_rtx): Likewise.
783         * emit-rtl.c (immed_double_const): Likewise (in comments).
784         (init_emit_once): Likewise.
785         * expr.c (compress_float_constant, expand_expr_real_1)
786         (const_vector_from_tree): Likewise.
787         * optabs.c (expand_float, expand_fix): Likewise.
788         * reg-stack.c (reg_to_stack): Likewise.
789         * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
790         (simplify_const_unary_operation, simplify_binary_operation_1)
791         (simplify_const_binary_operation, simplify_relational_operation)
792         (simplify_immed_subreg): Likewise.
794 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
796         * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
797         * doc/tm.texi: Regenerate.
798         * real.h (REAL_ARITHMETIC): Delete.
799         * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
800         (ix86_expand_round_sse4): Use real_arithmetic instead of
801         REAL_ARITHMETIC.
802         * config/i386/sse.md (round<mode>2): Likewise.
803         * rtl.h (rtx_to_tree_code): Likewise (in comment).
804         * explow.c (rtx_to_tree_code): Likewise (in comment).
805         * match.pd: Likewise.
806         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
807         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
808         (expand_pow_as_sqrts): Likewise.
809         * tree-pretty-print.c (dump_generic_node): Remove code that
810         was conditional on REAL_ARITHMETIC being undefined.
812 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
814         * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
815         * doc/tm.texi: Regenerate.
816         * real.h (real_less): Declare.
817         (REAL_VALUES_LESS): Delete.
818         * real.c (real_less): New function.
819         (real_compare): Use it.
820         * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
821         of REAL_VALUES_LESS.
822         * config/microblaze/microblaze.c (microblaze_const_double_ok):
823         Likewise.
824         * fold-const.c (fold_convert_const_int_from_real): Likewise.
825         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
826         (simplify_const_relational_operation): Likewise.
827         * tree-call-cdce.c (check_pow): Likewise.
828         (gen_conditions_for_pow_cst_base): Likewise.
830 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
832         * real.h (REAL_VALUES_IDENTICAL): Delete.
833         * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
834         instead of REAL_VALUES_IDENTICAL.
835         * fold-const.c (operand_equal_p): Likewise.
836         * ipa-icf.c (sem_variable::equals): Likewise.
837         * tree-complex.c (some_nonzerop): Likewise.
838         (expand_complex_multiplication): Likewise.
839         * tree.c (simple_cst_equal): Likewise.
840         * varasm.c (compare_constant): Likewise.
842 2015-10-05  Richard Sandiford  <richard.sandiford@arm.com>
844         * real.h (real_equal): Declare.
845         (REAL_VALUES_EQUAL): Delete.
846         * real.c (real_equal): New function.
847         (real_compare): Use it.
848         * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
849         * doc/tm.texi: Regenerate.
850         * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
851         real_equal instead of REAL_VALUES_EQUAL.
852         * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
853         * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
854         (fp_const_from_val): Likewise.
855         * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
856         * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
857         (floating_exact_log2): Likewise.
858         * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
859         * config/vax/vax.c (vax_float_literal): Likewise.
860         * config/xtensa/predicates.md (const_float_1_operand): Likewise.
861         * cprop.c (implicit_set_cond_p): Likewise.
862         * expmed.c (expand_mult): Likewise.
863         * fold-const.c (const_binop): Likewise.
864         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
865         (simplify_const_binary_operation): Likewise.
866         (simplify_const_relational_operation): Likewise.
867         * tree-call-cdce.c (check_pow): Likewise.
868         (gen_conditions_for_pow_cst_base): Likewise.
869         * tree-inline.c (estimate_num_insns): Likewise.
870         * tree-ssa-dom.c (record_equality): Likewise.
871         * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
872         (gimple_expand_builtin_pow): Likewise.
873         (pass_optimize_widening_mul::execute): Likewise.
874         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
875         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
876         * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
878 2015-10-05  Richard Biener  <rguenther@suse.de>
880         PR ipa/67783
881         * ipa-inline-analysis.c (estimate_function_body_sizes): Only
882         consider loop header PHI defs as IVs.
884 2015-10-05  Richard Biener  <rguenther@suse.de>
886         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
887         call handling ...
888         (create_expression_by_pieces): ... here and build GIMPLE
889         calls directly.  Use gimple_build API and avoid force_gimple_operand.
890         (insert_into_preds_of_block): Simplify.
891         (do_regular_insertion): Add comment.
893 2015-10-04  Jason Merrill  <jason@redhat.com>
895         * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
897 2015-10-04  Uros Bizjak  <ubizjak@gmail.com>
899         * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
900         check for general register.
901         (ix86_emit_save_regs): Ditto.
902         (ix86_emit_save_regs_using_mov): Ditto.
903         (ix86_emit_restore_regs_using_pop): Ditto.
904         (ix86_emit_restore_regs_using_mov): Ditto.
906 2015-10-03  Marek Polacek  <polacek@redhat.com>
908         * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
909         (insn-dfatab.o): Likewise.
911 2015-10-03  Max Filippov  <jcmvbkbc@gmail.com>
913         * config.gcc (xtensa*-*-uclinux*): New configuration.
914         * config/xtensa/uclinux.h: New file.
915         * config/xtensa/uclinux.opt: New file.
917 2015-10-03  Jonathan Wakely  <jwakely@redhat.com>
919         * doc/cpp.texi (Standard Predefined Macros): Document value of
920         __cplusplus for C++14.
922 2015-10-02  Bernd Schmidt  <bernds@codesourcery.com>
924         * gcc.c (process_command): Use spec_machine rather than
925         spec_host_machine to build tooldir_prefix2.
927 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
928             Bernd Schmidt  <bernds@codesourcery.com>
930         * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
931         (Token, Stmt): Remove structs.
932         (decls, vars, fns): Remove variables.
933         (alloc_comment, append_stmt, is_keyword): Remove macros.
934         (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
935         (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
936         (parse_init, parse_file): Remove functions.
937         (read_file): Accept a pointer to a length and store into it.
938         (process): Don't try to parse the input file, just write it out as
939         a string, but looking for maps.  Also write out the length.
940         (main): Don't use "-S" to compile PTX code.
942 2015-10-02  Jeff Law  <law@redhat.com>
944         * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
945         fixups.
947 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
949         PR target/67822
950         * config/nvptx/mkoffload.c (main): Scan the argument vector for
951         -fopenmp, and skip generating an offloading image if specified.
953 2015-10-02  Uros Bizjak  <ubizjak@gmail.com>
955         * system.h (ROUND_UP): New macro definition.
956         (ROUND_DOWN): Ditto.
957         * ggc-page.c (ROUND_UP): Remove local macro definition.
958         (PAGE_ALIGN): Implement using ROUND_UP macro.
960         * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
961         * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
962         to align values.
963         (ix86_compute_frame_layout): Ditto.
964         (ix86_expand_prologue): Ditto.
965         (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
966         to round down values.
967         (expand_set_or_movmem_via_rep): Ditto.
969 2015-10-02  Marek Polacek  <polacek@redhat.com>
971         * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
973 2015-10-02  Aditya Kumar  <aditya.k7@samsung.com>
975         * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
976         (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
977         * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
978         (free_gimple_bb): Renamed free_gimple_poly_bb.
979         (try_generate_gimple_bb): Hoist loop invariant code.
980         (analyze_drs_in_stmts): Same.
981         (build_scop_drs): Call renamed functions.
982         (new_pbb_from_pbb): Same.
983         (scop_ivs_can_be_represented): Delete as functionality now moved to
984         graphite-scop-detection.c
985         (build_poly_scop): Remove call to scop_ivs_can_be_represented.
987 2015-10-02  Aditya Kumar  <hiraditya@msn.com>
989         * graphite-scop-detection.c (stmt_has_side_effects): New function
990           outlined from stmt_simple_for_scop_p.
991         (graphite_can_represent_stmt): Same.
992         (stmt_simple_for_scop_p): Moved code out of this function for better
993         readability.
995 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
997         * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
998         F_AVX512IFMA.
999         (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
1001 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1003         * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
1005 2015-10-02  Vladimir Makarov  <vmakarov@redhat.com>
1007         PR rtl-optimization/67756
1008         * lra-constraints.c (match_reload): Add a new parameter.  Use it
1009         for creating a pseudo with the same value.
1010         (curr_insn_transform): Pass a new argument to match_reload.
1012 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1014         * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
1015         (expand_vec_perm_even_odd_1): Handle V64QImode.
1016         (ix86_expand_vec_perm_const_1): Try expansion with
1017         expand_vec_perm_even_odd_trunc as well.
1018         * config/i386/sse.md (VI124_AVX512F): Rename to ...
1019         (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
1020         to V54QI.
1021         (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
1022         (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
1023         to V32HI and V16SI.
1024         (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
1025         (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
1026         (define_expand "vec_unpacks_lo_<mode>"): Ditto.
1027         (define_expand "vec_unpacks_hi_<mode>"): Ditto.
1028         (define_expand "vec_unpacku_lo_<mode>"): Ditto.
1029         (define_expand "vec_unpacku_hi_<mode>"): Ditto.
1031 2015-10-02  Kirill Yukhin  <kirill.yukhin@intel.com>
1033         * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
1034         -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
1036 2015-10-02  Jason Merrill  <jason@redhat.com>
1038         PR c/59218
1039         * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
1040         (diagnose_tm_1_op): Also diagnose volatile accesses in
1041         transaction_safe function.
1043 2015-10-02  Jonathan Wakely  <jwakely@redhat.com>
1045         * system.h (malloc.h): Don't include obsolete header.
1047 2015-10-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1049         * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
1050         (TLS_SECTION_ASM_FLAG): Delete.
1052 2015-10-02  Marek Polacek  <polacek@redhat.com>
1054         PR c/64249
1055         * doc/invoke.texi: Document -Wduplicated-cond.
1056         * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
1057         (insn-dfatab.o): Likewise.
1058         * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
1059         warning.
1061 2015-10-02  Oleg Endo  <olegendo@gcc.gnu.org>
1063         * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
1064         sequences.
1066 2015-10-02  Renlin Li  <renlin.li@arm.com>
1068         * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
1070 2015-10-02  Renlin Li  <renlin.li@arm.com>
1072         PR target/66776
1073         * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
1075 2015-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1077         PR rtl-optimization/67786
1078         PR rtl-optimization/67787
1079         * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
1080         it modifies a reg used in the condition calculation.
1082 2015-10-02  James Greenhalgh  <james.greenhalgh@arm.com>
1084         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
1085         alternatives for reads from memory and moves from general-purpose
1086         registers.
1087         (*aarch64_combinez_be<mode>): Likewise.
1089 2015-10-02  Kai Tietz  <ktietz70@googlemail.com>
1091         PR target/51726
1092         * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
1093         selectany within this function without need to keep attribute.
1094         (i386_pe_encode_section_info): Remove selectany-code.
1096 2015-10-02  Richard Biener  <rguenther@suse.de>
1098         * tree-ssa-sccvn.c (has_VN_INFO): New function.
1099         (free_scc_vn): Use it.
1100         (visit_use): Remove dead code and refactor to use gassign
1101         and use less indentation.
1103 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1105         PR target/67788
1106         PR target/67789
1107         * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
1108         (rs6000_cannot_copy_insn_p): New function.
1109         * config/rs6000/rs6000.md (cannot_copy): New attribute.
1110         (load_toc_v4_PIC_1_normal): Set cannot_copy.
1111         (load_toc_v4_PIC_1_476): Ditto.
1113 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
1115         * graphite-scop-detection.c (struct sese_l): New conversion constructor
1116         so that this type can be pushed into a vec.
1117         (class scop_builder): use sese_l to collect scops.
1118         (get_scops): New getter function.
1119         (remove_intersecting_scops): Use sese_l instead of scops_p.
1120         (intersects): Same.
1121         (add_scop): Same.
1122         (subsumes): Same.
1123         (remove_subscops): Same.
1124         (build_scops): Add scops to vec<scops_p> once all the scops have been
1125         detected.
1127 2015-10-01  Aditya Kumar  <aditya.k7@samsung.com>
1129         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
1130         Renamed type from gimple_bb_p to gimple_poly_bb_p.
1131         (translate_isl_ast_node_user): Same.
1132         * graphite-poly.c (new_poly_bb): Same.
1133         * graphite-poly.h (gbb_from_bb): Same.
1134         * sese.h: Same.
1135         * graphite-sese-to-poly.c (new_gimple_bb):
1136         gimple_bb_p -> gimple_poly_bb_p
1137         (build_scop_scattering): Same.
1138         (find_params_in_bb): Same.
1139         (add_conditions_to_domain): Same.
1140         (sese_dom_walker::before_dom_children): Same.
1141         (analyze_drs_in_stmts): Same.
1142         (new_pbb_from_pbb): Same.
1143         (free_data_refs_aux): New pointer to type base_alias_pair.
1144         * graphite-sese-to-poly.h: Same.
1145         * sese.c (if_region_set_false_region): Fixed Indentation.
1146         (move_sese_in_condition): Same.
1148 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1149             Aditya Kumar  <aditya.k7@samsung.com>
1151         PR tree-optimization/66980
1152         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
1153         when data reference analysis has failed.
1155 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1156             Aditya Kumar  <aditya.k7@samsung.com>
1158         PR tree-optimization/67754
1159         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
1160         scev analysis on the same loop nest as analyze_drs_in_stmts.
1161         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
1162         renamed...
1163         (try_generate_gimple_bb): Call outermost_loop_in_sese.
1164         (analyze_drs_in_stmts): Same.
1165         * sese.c (outermost_loop_in_sese): ...here.
1167 2015-10-01  Sebastian Pop  <s.pop@samsung.com>
1168             Aditya Kumar  <aditya.k7@samsung.com>
1170         PR tree-optimization/67754
1171         * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
1172         recursion on the inner loops.
1174 2015-10-01  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1176         * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
1177         function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
1178         tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
1179         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
1180         tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
1182 2015-10-01  Marek Polacek  <polacek@redhat.com>
1184         PR c/65345
1185         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
1186         create_tmp_var_raw rather than create_tmp_var.
1188 2015-10-01  Marek Polacek  <polacek@redhat.com>
1190         PR tree-optimization/67769
1191         * tree-ssa-phiopt.c (conditional_replacement): Call
1192         reset_flow_sensitive_info_in_bb.
1193         (minmax_replacement): Likewise.
1194         (abs_replacement): Likewise.
1196 2015-10-01  Nathan Sidwell  <nathan@codesourcery.com>
1198         * builtins.c: Don't include gomp-constants.h.
1199         (fold_builtin_1): Don't fold acc_on_device here.
1200         * gimple-fold.c: Include gomp-constants.h.
1201         (gimple_fold_builtin_acc_on_device): New.
1202         (gimple_fold_builtin): Call it.
1204 2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1206         * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
1207         (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
1209 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
1211         * config/arm/aarch-common-protos.h
1212         (aarch_accumulator_forwarding): New.
1213         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1214         * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
1215         (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
1216         * config/arm/cortex-a53.md: Rewrite.
1218 2015-10-01  Richard Biener  <rguenther@suse.de>
1220         * gimple-match.h (mprts_hook): Declare.
1221         * gimple-match.head.c (mprts_hook): Define.
1222         (maybe_push_res_to_seq): Use new hook.
1223         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
1224         * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
1225         (vn_ssa_aux::has_constants): Remove.
1226         * tree-ssa-sccvn.c: Include gimple-match.h.
1227         (VN_INFO_GET): Assert we don't re-use SSA names.
1228         (vn_get_expr_for): Remove.
1229         (expr_has_constants): Likewise.
1230         (stmt_has_constants): Likewise.
1231         (simplify_binary_expression): Likewise.
1232         (simplify_unary_expression): Likewise.
1233         (vn_lookup_simplify_result): New hook.
1234         (visit_copy): Adjust.
1235         (visit_reference_op_call): Likewise.
1236         (visit_phi): Likewise.
1237         (visit_use): Likewise.
1238         (process_scc): Likewise.
1239         (init_scc_vn): Likewise.
1240         (visit_reference_op_load): Likewise.  Use match-and-simplify and
1241         a gimple seq for inserted expressions.
1242         (try_to_simplify): Remove GENERIC stmt combining code.
1243         (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
1244         * tree-ssa-pre.c (eliminate_insert): Adjust.
1245         (eliminate_dom_walker::before_dom_children): Likewise.
1247 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1249         * doc/invoke.texi (Optimization Options): Add
1250         -freorder-blocks-algorithm=.
1251         (Optimize Options) <-O>: Add -freorder-blocks.
1252         <-O2>: Remove -freorder-blocks.  Add -freorder-blocks-algorithm=stc.
1253         <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
1254         <-freorder-blocks>: Also enabled at levels -O and -Os.
1255         <-freorder-blocks-algorithm=>: Document new option.
1257 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1259         * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
1260         with flag_reorder_blocks_algorithm.
1261         * common.opt (freorder-blocks-algorithm=): New flag.
1262         (reorder_blocks_algorithm): New enum.
1263         * flag-types.h (reorder_blocks_algorithm): New enum.
1264         * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
1265         and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
1267 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1269         * bb-reorder.c: Add intro comment.
1270         (reorder_basic_blocks_software_trace_cache): Print a header to
1271         the dump file.
1272         (edge_order): New function.
1273         (reorder_basic_blocks_simple): New function.
1274         (reorder_basic_blocks): Choose between the STC and the simple
1275         algorithms (always choose the former).
1277 2015-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1279         * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
1280         function, factored out from ...
1281         (reorder_basic_blocks): ... here.
1283 2015-10-01  Tom de Vries  <tom@codesourcery.com>
1285         * tree-cfg.c (dump_function_to_file): Dump function attributes using
1286         __attribute__(()) string.  Move dumping of function attributes to before
1287         function name.
1289 2015-10-01  Lynn Boger  <laboger@linux.vnet.ibm.com>
1291         PR target/66870
1292         * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
1293         * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
1294         based on gold linker version.
1295         * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
1296         HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
1297         * configure, config.in: Regenerate.
1299 2015-10-01  Alan Modra  <amodra@gmail.com>
1301         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
1302         r2_setup_needed when TARGET_SINGLE_PIC_BASE.
1303         (rs6000_output_mi_thunk): Likewise.
1305 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
1307         * config/nvptx/mkoffload.c (process): Change offload data format.
1309 2015-09-30  Jeff Law  <law@redhat.com>
1311         * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
1312         with constant conditions.
1313         * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
1314         (remove_ctrl_stmt_and_useless_edges): No longer static.
1315         * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
1316         (remove_ctrl_stmt_and_useless_edges): Likewise.
1318 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
1319             Cesar Philippidis  <cesar@codesourcery.com>
1321         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
1322         (TARGET_GOACC_VALIDATE_DIMS): Override.
1323         * target.def (TARGET_GOACC): New target hook prefix.
1324         (validate_dims): New hook.
1325         * targhooks.h (default_goacc_validate_dims): New.
1326         * omp-low.c (oacc_validate_dims): New.
1327         (execute_oacc_device_lower): New.
1328         (default_goacc_validate_dims): New.
1329         (pass_data_oacc_device_lower): New.
1330         (pass_oacc_device_lower): New pass.
1331         (make_pass_oacc_device_lower): New.
1332         * tree-pass.h (make_pass_oacc_device_lower): Declare.
1333         * passes.def (pass_oacc_device_lower): Add it.
1334         * doc/tm.texi: Rebuilt.
1335         * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
1336         * doc/invoke.texi (oaccdevlow): Document tree dump flag.
1338 2015-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1340         PR rtl-optimization/67037
1341         * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
1343 2015-09-30  Bernd Schmidt  <bernds@redhat.com>
1345         * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
1346         * passes.c: Include tree-ssanames.h.
1347         (execute_function_todo): Flush the pending free SSA_NAMEs after
1348         eliminating unreachable basic blocks.
1349         * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
1350         (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
1351         (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
1352         (flush_ssanames_freelist): New function.
1353         (release_ssaname_fn): Put released names on the queue.
1354         (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
1355         * tree-ssanames.h (flush_ssanames_freelist): Declare.
1357 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1359         * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
1360         (generate_target_descr_file, generate_target_offloadend_file)
1361         (generate_host_descr_file, prepare_target_image): Pass it on.
1362         * config/nvptx/mkoffload.c (main): Parse "-v" flag.
1363         (compile_native, main): Pass it on.
1364         * lto-wrapper.c (compile_offload_image): Likewise.
1366 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1367             Ilya Verbin  <ilya.verbin@intel.com>
1368             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1370         * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
1371         (prepare_target_image, main): Refactor argv building to use
1372         obstacks.
1374 2015-09-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1376         * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
1377         * config/spu/spu.c (spu_expand_atomic_op): New function.
1378         * config/spu/spu.md (AINT): New mode iterator.
1379         (ATOMIC): New code iterator.
1380         (atomic_name, atomic_pred): New code predicates.
1381         ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
1382         ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
1383         (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
1384         "atomic_<atomic_name>_fetch<mode>"): Likewise.
1386 2015-09-30  Ilya Enkovich  <enkovich.gnu@gmail.com>
1388         * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
1389         debug insns.
1390         (scalar_chain::convert_reg): Likewise.
1392 2015-09-30  Richard Biener  <rguenther@suse.de>
1394         * builtins.c: Add comment that no new simplifications should
1395         be added here.
1397 2015-09-30  Marek Polacek  <polacek@redhat.com>
1399         PR tree-optimization/67690
1400         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
1401         reset_flow_sensitive_info_in_bb.
1402         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
1403         * tree-ssanames.c: Include "gimple-iterator.h".
1404         (reset_flow_sensitive_info_in_bb): New function.
1405         * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
1407 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
1409         * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
1410         variable, replacing it with...
1411         (offload_abi): ... this new variable.  Adjust all users.
1412         * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
1414 2015-09-30  Matthias Klose  <doko@ubuntu.com>
1416         * configure.ac: Remove extraneous ;;.
1417         * configure: Regenerate.
1419 2015-09-29  James Bowman  <james.bowman@ftdichip.com>
1421         * config/ft32/predicates.md (ft32_imm_operand): New predicate.
1422         * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
1423         predicate, disallow register for operand 2.
1425 2015-09-29  Aditya Kumar  <aditya.k7@samsung.com>
1427         * graphite-dependences.c (scop_get_dependences): Moved in down
1428         in order to be visible to its caller.
1429         * graphite-poly.h: Removed compute_deps, and extend_schedule.
1431 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
1432             Aditya Kumar  <aditya.k7@samsung.com>
1434         PR tree-optimization/67754
1435         * graphite-optimize-isl.c (optimize_isl): Call
1436         isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
1438 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1440         * builtins.c (expand_builtin_acc_on_device): Delete.
1441         (expand_builtin): Don't call it.
1442         (fold_builtin_1): Fold acc_on_device.
1444 2015-09-29  H.J. Lu  <hongjiu.lu@intel.com>
1446         * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
1447         (ix86_nsaved_sseregs): Likewise.
1449 2015-09-29  Jeff Law  <law@redhat.com>
1451         * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
1452         computation of unused value.
1454         * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
1455         * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
1456         inline macro expansion.
1458         * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
1460         * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
1461         (gen_shl_sext): Likewise.
1462         * config/sh/sh.md (divsi3): Likewise.
1463         (imm->ext_dest_operand splitter): Likewise.
1465 2015-09-29  Sebastian Pop  <s.pop@samsung.com>
1466             Aditya Kumar  <aditya.k7@samsung.com>
1468         * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
1469         (nb_data_writes_in_bb): Remove.
1470         (split_pbb): Remove.
1471         (split_reduction_stmt): Remove.
1472         (is_reduction_operation_p): Remove.
1473         (phi_contains_arg): Remove.
1474         (follow_ssa_with_commutative_ops): Remove.
1475         (detect_commutative_reduction_arg): Remove.
1476         (detect_commutative_reduction_assign): Remove.
1477         (follow_inital_value_to_phi): Remove.
1478         (edge_initial_value_for_loop_phi): Remove.
1479         (initial_value_for_loop_phi): Remove.
1480         (used_outside_reduction): Remove.
1481         (detect_commutative_reduction): Remove.
1482         (translate_scalar_reduction_to_array_for_stmt): Remove.
1483         (remove_phi): Remove.
1484         (dr_indices_valid_in_loop): Remove.
1485         (close_phi_written_to_memory): Remove.
1486         (translate_scalar_reduction_to_array): Remove.
1487         (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
1488         (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
1489         (rewrite_commutative_reductions_out_of_ssa): Remove.
1490         (build_poly_scop): Remove call to
1491         rewrite_commutative_reductions_out_of_ssa.
1493 2015-09-29  Evandro Menezes  <e.menezes@samsung.com>
1495         * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
1496         Add new insn types for vector load and store pairs.
1497         * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
1498         types "neon_ldp{,_q}".
1499         * config/arm/cortex-a57.md (neon_load_c): Add insn types
1500         "neon_ldp{,_q}".
1501         (neon_store_complex): Add insn types "neon_stp{,_q}".
1502         * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
1503         "neon_{ldp,stp}_q".
1505 2015-09-29  Jeff Law  <law@redhat.com>
1507         * config/rx/constraints.md (Int08): Fix undefined left shift
1508         behaviour.
1509         (Sint08, Sint16, Sint24): Likewise.
1510         * config/rx/rx.c (rx_get_stack_layout): Likewise.
1512         * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
1513         behaviour.
1515         * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
1516         left shift behaviour.
1517         * config/msp430/constraints.md ('L' constraint): Similarly.
1518         ('Ys' constraint): Similarly.
1520 2015-09-29  Richard Biener  <rguenther@suse.de>
1522         PR tree-optimization/67170
1523         * tree-ssa-alias.h (get_continuation_for_phi): Adjust
1524         the translate function pointer parameter to get the
1525         bool whether to disambiguate only by reference.
1526         (walk_non_aliased_vuses): Likewise.
1527         * tree-ssa-alias.c (maybe_skip_until): Adjust.
1528         (get_continuation_for_phi_1): Likewise.
1529         (get_continuation_for_phi): Likewise.
1530         (walk_non_aliased_vuses): Likewise.
1531         * tree-ssa-sccvn.c (const_parms): New bitmap.
1532         (vn_reference_lookup_3): Adjust for interface change.
1533         Disambiguate parameters pointing to readonly memory.
1534         (free_scc_vn): Free const_parms.
1535         (run_scc_vn): Initialize const_parms from a fn spec attribute.
1537 2015-09-29  Richard Biener  <rguenther@suse.de>
1539         PR tree-optimization/67741
1540         * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
1541         builtin calls with correct signature.
1543 2015-09-29  Ilya Enkovich  <enkovich.gnu@gmail.com>
1545         PR target/65105
1546         * config/i386/i386.c: Include dbgcnt.h.
1547         (has_non_address_hard_reg): New.
1548         (convertible_comparison_p): New.
1549         (scalar_to_vector_candidate_p): New.
1550         (remove_non_convertible_regs): New.
1551         (scalar_chain): New.
1552         (scalar_chain::scalar_chain): New.
1553         (scalar_chain::~scalar_chain): New.
1554         (scalar_chain::add_to_queue): New.
1555         (scalar_chain::mark_dual_mode_def): New.
1556         (scalar_chain::analyze_register_chain): New.
1557         (scalar_chain::add_insn): New.
1558         (scalar_chain::build): New.
1559         (scalar_chain::compute_convert_gain): New.
1560         (scalar_chain::replace_with_subreg): New.
1561         (scalar_chain::replace_with_subreg_in_insn): New.
1562         (scalar_chain::emit_conversion_insns): New.
1563         (scalar_chain::make_vector_copies): New.
1564         (scalar_chain::convert_reg): New.
1565         (scalar_chain::convert_op): New.
1566         (scalar_chain::convert_insn): New.
1567         (scalar_chain::convert): New.
1568         (convert_scalars_to_vector): New.
1569         (pass_data_stv): New.
1570         (pass_stv): New.
1571         (make_pass_stv): New.
1572         (ix86_option_override): Created and register stv pass.
1573         (flag_opts): Add -mstv.
1574         (ix86_option_override_internal): Likewise.
1575         * config/i386/i386.md (SWIM1248x): New.
1576         (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
1577         (and<mode>3): Use SWIM1248x iterator instead of SWIM.
1578         (*anddi3_doubleword): New.
1579         (*zext<mode>_doubleword): New.
1580         (*zextsi_doubleword): New.
1581         (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
1582         (*<code>di3_doubleword): New.
1583         * config/i386/i386.opt (mstv): New.
1584         * dbgcnt.def (stv_conversion): New.
1586 2015-09-29  Tom de Vries  <tom@codesourcery.com>
1588         * tree-cfg.c (dump_function_to_file): Dump function attributes.
1590 2015-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
1592         PR target/67716
1593         * config/sh/sh.c (sh_override_options_after_change): New.
1594         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1595         (sh_option_override): Move align_loops, align_jumps and
1596         align_functions handling into sh_override_options_after_change.
1598 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
1600         * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
1601         (nvptx_record_offload_symbol): Record function execution geometry.
1602         * config/nvptx/mkoffload.c (process): Include launch geometry in
1603         function data.
1604         * omp-low.c (oacc_launch_pack): New.
1605         (replace_oacc_fn_attrib): New.
1606         (set_oacc_fn_attrib): New.
1607         (get_oacc_fn_attrib): New.
1608         (expand_omp_target): Create keyed varargs for GOACC_parallel call
1609         generation.
1610         * omp-low.h (get_oacc_fn_attrib): Declare.
1611         * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
1612         (DEF_FUNCTION_TYPE_VAR_11): Delete.
1613         * tree.h (OMP_CLAUSE_EXPR): New.
1614         * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
1616 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
1617             Sebastian Pop  <s.pop@samsung.com>
1619         * sese.c (invariant_in_sese_p_rec): Remove unused variable.
1621 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
1622             Sebastian Pop  <s.pop@samsung.com>
1624         * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
1625         * graphite-scop-detection.c (struct sese_l): New type.
1626         (get_entry_bb): API for getting entry bb of SESE.
1627         (get_exit_bb): API for getting exit bb of SESE.
1628         (class debug_printer): New type.  Simple printer in debug mode.
1629         (trivially_empty_bb_p): New.  Return true when BB is empty or
1630         contains only debug instructions.
1631         (graphite_can_represent_expr): Call scalar_evoution_in_region
1632         instead of analyze_scalar_evolution.  Pass in scop instead of only
1633         the scop entry.
1634         (stmt_has_simple_data_refs_p): Pass in scop instead of only the
1635         scop entry.
1636         (stmt_simple_for_scop_p): Same.
1637         (harmful_stmt_in_bb): Same.
1638         (graphite_can_represent_loop): Deleted.
1639         (struct scopdet_info): Deleted.
1640         (scopdet_basic_block_info): Deleted.
1641         (build_scops_1): Deleted.
1642         (bb_in_sd_region): Deleted.
1643         (find_single_entry_edge): Deleted.
1644         (find_single_exit_edge): Deleted.
1645         (create_single_entry_edge): Deleted.
1646         (sd_region_without_exit): Deleted.
1647         (create_single_exit_edge): Deleted.
1648         (unmark_exit_edges): Deleted.
1649         (mark_exit_edges): Deleted.
1650         (create_sese_edges): Deleted.
1651         (build_graphite_scops): Deleted.
1652         (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
1653         (build_scops): Use the new scop_builder to build scops.
1654         (dot_all_scops_1): Use the new pretty printer.  Print loop father
1655         as well.
1656         (loop_body_is_valid_scop): New.  Return true if loop body is a
1657         valid scop.
1658         (class scop_builder): New.  Builds SCoPs for polyhedral
1659         optimizations.
1660         (scop_builder): New constructor.
1661         (static sese_l invalid_sese): sese_l with invalid edges.
1662         (get_sese): Get an sese (from a loop) if possible, invalid_sese
1663         otherwise.
1664         (get_nearest_dom_with_single_entry): Get nearest dominator of a
1665         basic_block with single entry.  Return NULL if we get to the
1666         beginning of a function.
1667         (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
1668         a basic_block with single exit.  Return NULL if we get to the
1669         beginning of a function.
1670         (print_sese): Pretty-print SESE.
1671         (merge_sese): Merge two SESEs if possible and return the new SESE.
1672         (build_scop_depth): Start building the SCoP within a loop nest.
1673         (build_scop_breadth): Start building the SCoP at a single loop
1674         depth.  Merge adjacent SESEs if valid.
1675         (can_represent_loop_1): Returns true if Graphite can represent
1676         loop inside SCoP.  Helper for can_represent_loop.
1677         (can_represent_loop): Returns true if Graphite can represent LOOP
1678         and all its nested loops in SCoP.
1679         (loop_is_valid_scop): Returns true if LOOP and all its nests
1680         constitute a valid SCoP.
1681         (region_has_one_loop): Returns true of a region has only one loop.
1682         (add_scop): Add SCoP to the list of valid scops.  Removes an
1683         already existing scop if it intersects with or subsumed by this one.
1684         (harmful_stmt_in_region): Returns true if SCoP has any statment
1685         which cannot be represented by Graphite.
1686         (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
1687         (remove_subscops): Remove any SCoP from the list of already found
1688         SCoPs, if subsumed by S1.
1689         (intersects): Return true if region bounded by SCoPs S1 and S2
1690         intersect.
1691         (remove_intersecting_scops): Remove any SCoP which intersects with S1.
1692         * graphite.c (print_graphite_scop_statistics):
1693         (print_graphite_statistics): Print SCoP info while debugging.
1694         (graphite_initialize): Early exit in case number of loops in a
1695         function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
1696         basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1697         (graphite_finalize):
1698         * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
1699         * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
1700         (recompute_all_dominators): Recalculate POST_DOMINATORS.
1701         * tree-cfg.c (print_loops): Print the function name while printing
1702         loops.
1704 2015-09-28  Aditya Kumar  <aditya.k7@samsung.com>
1705             Sebastian Pop  <s.pop@samsung.com>
1707         PR tree-optimization/67700
1708         * graphite-sese-to-poly.c (parameter_index_in_region): Call
1709         invariant_in_sese_p_rec.
1710         (extract_affine): Same.
1711         (rewrite_cross_bb_scalar_deps): Call update_ssa.
1712         * sese.c (invariant_in_sese_p_rec): Export.  Handle vdefs and vuses.
1713         * sese.h (invariant_in_sese_p_rec): Declare.
1715 2015-09-28  David Wohlferd  <dw@LimeGreenSocks.com>
1717         * doc/extend.texi (Asm Labels): Break out text for data vs functions.
1719 2015-09-28  Jiong Wang  <jiong.wang@arm.com>
1721         Revert:
1722         2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1723                     Jiong Wang  <jiong.wang@arm.com>
1725         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
1726         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
1727         (REG_CLASS_NAMES): Likewise.
1728         (REG_CLASS_CONTENTS): Likewise.
1729         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
1730         (aarch64_register_move_cost): Likewise.
1731         (aarch64_load_symref_appropriately): Invoke the new added pattern if
1732         possible.
1733         * config/aarch64/constraints.md (Uc0): New constraint.
1735 2015-09-28  Daniel Hellstrom  <daniel@gaisler.com>
1737         * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
1739 2015-09-28  David Edelsohn  <dje.gcc@gmail.com>
1741         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
1742         SECTION_EXCLUDE in XO mapping class.
1744 2015-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
1746         PR target/54236
1747         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
1748         and handle ne and eq codes.
1749         * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
1750         (sh_recog_treg_set_expr): Early accept negt_reg_operand.  Eearly reject
1751         CONST_INT_P.  Use reverse_condition.
1752         (sh_split_treg_set_expr): Likewise.
1754 2015-09-28  James Greenhalgh  <james.greenhalgh@arm.com>
1756         * config/arm/types.md (type): Add rotate_imm.
1757         * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
1758         ROR immediate case.
1759         (*rorsi3_insn_uxtw): Likewise.
1760         * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
1761         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
1762         * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
1764 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1766         PR rtl-optimization/67481
1767         * ifcvt.c (contains_ccmode_rtx_p): New function.
1768         (insn_valid_noce_process_p): Use it.
1770 2015-09-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1772         PR rtl-optimization/67456
1773         PR rtl-optimization/67464
1774         PR rtl-optimization/67465
1775         * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
1776         move in the mode of x.  Handle combination of complex and simple
1777         block pairs as well as the case when one is empty.
1779 2015-09-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1781         * doc/gimple.texi: Update references to gimple_statement_base.
1782         * gdbhooks.py: Likewise.
1783         * gimple.h: Likewise.
1785 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
1787         * config/sparc/driver-sparc.c: map LEON to leon3
1789 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
1791         * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
1792           and make it inverse to change default
1793         * config/sparc/sync.md: Only use supervisor ASI for CASA when in
1794           supervisor mode
1795         * doc/invoke.texi: Document change of default
1797 2015-09-28  Daniel Cederman  <cederman@gaisler.com>
1799         * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
1800         true on %f0 for a target without FPU.
1801         * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
1802         without FPU.
1803         (untyped_return): Do not load %f0 for a target without FPU.
1805 2015-09-28  Andrew Pinski  <apinski@cavium.com>
1807         * config/aarch64/aarch64.md (prefetch):
1808         Change the predicate of operand 0 to register_operand.
1810 2015-09-27  Uros Bizjak  <ubizjak@gmail.com>
1812         * config/i386/predicates.md (register_sse4nonimm_operand): New
1813         predicate.
1814         * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
1815         (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
1816         Use register_sse4nonimm_operand as operand 0 predicate.
1817         (*vec_extractv8hi_sse2): Remove insn pattern.
1818         (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
1819         *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
1821 2015-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
1822             Kaz Kojima  <kkojima@gcc.gnu.org>
1824         PR target/67391
1825         * config/sh/sh-protos.h (sh_lra_p): Declare.
1826         * config/sh/sh.c (sh_lra_p): Make non-static.
1827         * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
1828         arith_reg_operand for operands[1].  Remove TARGET_SHMEDIA case.
1829         Expand into addsi3_scr if operands[2] if needed.
1830         (*addsi3_compact): Rename to *addsi3_compact_lra.  Use
1831         arith_reg_operand for operands[1].  Allow it only when LRA is enabled.
1832         (addsi3_scr, *addsi3): New insn_and_split patterns.
1834 2015-09-27  Alexandre Oliva <aoliva@redhat.com>
1836         PR rtl-optimization/64164
1837         PR tree-optimization/67312
1838         PR middle-end/67340
1839         PR middle-end/67490
1840         PR bootstrap/67597
1841         * cfgexpand.c (parm_in_stack_slot_p): Remove.
1842         (ssa_default_def_partition): Remove.
1843         (get_rtl_for_parm_ssa_default_def): Remove.
1844         (set_rtl): Check that RTL assignments match expectations.
1845         Loop on SUBREGs, CONCATs and PARALLELs subexprs.  Set only the
1846         default def location for params and results.  Record SSA names
1847         or types in REG and MEM attrs, respectively.
1848         (set_parm_rtl): New.
1849         (expand_one_ssa_partition): Drop logic that assigned MEMs with
1850         unassigned addresses.
1851         (adjust_one_expanded_partition_var): Don't accept NULL RTL on
1852         deferred stack alloc vars.
1853         (expand_used_vars): Skip partitions holding parm default defs.
1854         Move adjust_one_expanded_partition_var loop...
1855         (pass_expand::execute): ... here.  Drop redundant assert.
1856         Adjust comments before the final loop over all ssa names.
1857         Require assigned rtl of parms and results to match exactly.
1858         Reset its attributes to match them, not any other variables in
1859         the same partition.
1860         (expand_debug_expr): Use entry value for PARM's default defs
1861         only iff they have zero nondebug uses.
1862         * cfgexpand.h (parm_in_stack_slot_p): Remove.
1863         (get_rtl_for_parm_ssa_default_def): Remove.
1864         (set_parm_rtl): Declare.
1865         * doc/invoke.texi: Improve wording.
1866         * explow.c (promote_decl_mode): Fix promote_function_mode for
1867         result decls not by reference.
1868         (promote_ssa_mode): Disregard BLKmode from promote_decl, and
1869         bypass TYPE_MODE to get the actual vector mode.
1870         * function.c: Include tree-dfa.h.  Revert 2015-08-14's and
1871         2015-08-19's changes as follows.  Drop include of
1872         basic-block.h and df.h.
1873         (rtl_for_parm): Remove.
1874         (maybe_reset_rtl_for_parm): Remove.
1875         (parm_in_unassigned_mem_p): Remove.
1876         (use_register_for_decl): Add logic for RESULT_DECLs matching
1877         assign_parms' behavior.
1878         (split_complex_args): Revert.
1879         (assign_parms_augmented_arg_list): Revert.  Add comment
1880         referencing the logic above.
1881         (assign_parm_adjust_stack_rtl): Revert.
1882         (assign_parm_setup_block): Revert.  Use set_parm_rtl instead
1883         of SET_DECL_RTL.  Set up a REG if the parm demands so.
1884         (assign_parm_setup_reg): Revert.  Consolidated SET_DECL_RTL
1885         calls into a single set_parm_rtl.  Set up a temporary RTL
1886         temporarily for expand_assignment.
1887         (assign_parm_setup_stack): Revert.  Use set_parm_rtl.
1888         (assign_parms_unsplit_complex): Revert.  Use set_parm_rtl.
1889         (assign_bounds): Revert.
1890         (assign_parms): Revert.  Use set_parm_rtl.
1891         (allocate_struct_function): Relayout result and parms of
1892         non-abstruct functions.
1893         (expand_function_start): Revert.  Use set_parm_rtl.  If the
1894         result is not a hard reg, create a pseudo from the promoted
1895         mode of the default def.  Promote static chain mode.
1896         * tree-outof-ssa.c (remove_ssa_form): Drop unused
1897         partition_has_default_def.  Set up
1898         partitions_for_parm_default_defs.
1899         (finish_out_of_ssa): Remove partition_has_default_def.
1900         Release partitions_for_parm_default_defs.
1901         * tree-outof-ssa.h (struct ssaexpand): Remove
1902         partition_has_default_def.  Add
1903         partitions_for_parm_default_defs.
1904         * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
1905         stor-layout.h.
1906         (build_ssa_conflict_graph): Fix conflict-detection of default
1907         defs of even unused default defs of params and results.
1908         (for_all_parms): New.
1909         (create_default_def): New.
1910         (register_default_def): New.
1911         (coalesce_with_default): New.
1912         (create_outofssa_var_map): Create default defs for all parms
1913         and results, and register their partitions.  Add GIMPLE_RETURN
1914         operands as coalesce candidates with results.  Add default
1915         defs of each parm or result as coalesce candidates with its
1916         other defs.  Mark each result def, and each default def of
1917         parms, as used_in_copy.
1918         (gimple_can_coalesce_p): Call it.  Call use_register_for_decl
1919         with the ssa names, even anonymous ones.  Drop
1920         parm_in_stack_slot_p calls.  Require same signedness and
1921         alignment.
1922         (coalesce_ssa_name): Add coalesce candidates for all defs of
1923         each parm and result, even unused ones.
1924         (parm_default_def_partition_arg): New type.
1925         (set_parm_default_def_partition): New.
1926         (get_parm_default_def_partitions): New.
1927         * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
1928         * tree-ssa-live.c (partition_view_init): Regard unused defs of
1929         parms and results as used.
1930         (verify_live_on_entry): Don't error out just because they're
1931         not live.
1933 2015-09-26  David Edelsohn  <dje.gcc@gmail.com>
1935         * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
1936         (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
1937         (output_fde): Don't output length for debug_frame on AIX.
1938         (output_call_frame_info): Don't output length for debug_frame on AIX.
1939         (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
1940         HAVE_XCOFF_DWARF_EXTRAS.
1941         (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
1942         HAVE_XCOFF_DWARF_EXTRAS.
1943         (output_compilation_unit_header): Don't output length on AIX.
1944         (output_pubnames): Don't output length on AIX.
1945         (output_aranges): Delete argument. Compute length locally. Don't
1946         output length on AIX.
1947         (output_line_info): Don't output length on AIX.
1948         (dwarf2out_finish): Don't compute aranges_length.
1949         * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
1950         (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
1951         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
1952         symbol decoration for AIX.
1953         (rs6000_xcoff_debug_unwind_info): New.
1954         (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
1955         for SECTION_DEBUG.
1956         (rs6000_xcoff_declare_function_name): Emit different
1957         .function pseudo-op when DWARF2_DEBUG. Don't call
1958         xcoffout_declare_function for DWARF2_DEBUG.
1959         * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
1960         Redefine.
1961         * config/rs6000/aix71.h: New.
1962         * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
1963         locations support.
1964         * configure: Regenerate.
1965         * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
1966         DWARF support.
1968 2015-09-26  Jeff Law  <law@redhat.com>
1970         * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
1971         behaviour.
1972         * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
1973         behaviour.
1975         * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
1976         behaviour
1978         * config/mips/mips.c (mips_compute_frame_info): Fix left shift
1979         undefined behaviour.
1981         * config/cris/cris.md (asrandb): Fix left shift undefined
1982         behaviour.
1983         (asrandw): Likewise.
1985 2015-09-25  Vladimir Makarov  <vmakarov@redhat.com>
1987         PR target/61578
1988         * lra-constarints.c (match_reload): Check presence of the input pseudo
1989         in the output operand.
1991 2015-09-25  Tobias Burnus  <burnus@net-b.de>
1993         * doc/invoke.texi (-fsanitize): Minor wording tweak.
1995 2015-09-25  Tobias Burnus  <burnus@net-b.de>
1997         * doc/invoke.texi (-fsanitize): Update URLs.
1999 2015-09-25  Teresa Johnson  <tejohnson@google.com>
2001         * opts.c (finish_options): Unset -freorder-blocks-and-partition
2002         if not using profile.
2004 2015-09-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2006         PR pretty-print/67567
2007         * pretty-print.c (pp_string): Add gcc_checking_assert.
2008         * pretty-print.h (output_buffer_append_r): Likewise.
2010 2015-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
2012         PR target/67675
2013         * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
2014         addr2 individually.  Don't emit logical or insn if one is known to
2015         be aligned approriately.
2016         (sh_expand_cmpnstr): Likewise.
2018 2015-09-25  Richard Sandiford  <richard.sandiford@arm.com>
2020         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
2021         __builtin_aarch64_fp[sc]r arguments into a register.
2023 2015-09-25  H.J. Lu  <hongjiu.lu@intel.com>
2025         * config.gcc (x86_archs): Replace lakemount with lakemont.
2026         (with_cpu): Likewise.
2027         (with_arch): Likewise.
2028         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2029         PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT.  Replace
2030         __tune_lakemount__ with __tune_lakemont__.
2031         * config/i386/i386.c (lakemount_cost): Renamed to ...
2032         (lakemont_cost): This.
2033         (m_LAKEMOUNT): Renamed to ...
2034         (m_LAKEMONT): This.
2035         (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
2036         (processor_target_table): Replace "lakemount" with "lakemont".
2037         (processor_alias_table): Likewise.
2038         (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
2039         PROCESSOR_LAKEMONT.
2040         (ix86_adjust_cost): Likewise.
2041         (ia32_multipass_dfa_lookahead): Likewise.
2042         * config/i386/i386.h (processor_type): Likewise.
2043         * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
2044         * doc/invoke.texi: Replace lakemount with lakemont.  Replace
2045         Lakemount with Lakemont.
2047 2015-09-24  H.J. Lu  <hongjiu.lu@intel.com>
2049         * config.gcc (x86_archs): Replace iamcu with lakemount.
2050         (with_cpu): Likewise.
2051         (with_arch): Likewise.
2052         * doc/invoke.texi: Likewise.
2053         * config/i386/i386-c.c (ix86_target_macros_internal): Replace
2054         PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT.  Replace
2055         __tune_iamcu__ with __tune_lakemount__.
2056         * config/i386/i386.c (iamcu_cost): Renamed to ...
2057         (lakemount_cost): This.
2058         (m_IAMCU): Renamed to ...
2059         (m_LAKEMOUNT): This.
2060         (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
2061         (processor_target_table): Replace "iamcu" with "lakemount".
2062         (processor_alias_table): Likewise.
2063         (ix86_issue_rate): Replace PROCESSOR_IAMCU with
2064         PROCESSOR_LAKEMOUNT.
2065         (ix86_adjust_cost): Likewise.
2066         (ia32_multipass_dfa_lookahead): Likewise.
2067         * config/i386/i386.h (processor_type): Likewise.
2068         * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
2070 2015-09-24  John David Anglin  <danglin@gcc.gnu.org>
2072         * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
2073         * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
2074         Declare.
2075         * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
2076         (pa_expand_compare_and_swap_loop): New.
2077         (pa_maybe_emit_compare_and_swap_exchange_loop): New.
2078         * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
2079         atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
2080         (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
2081         (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
2082         Revise.
2084 2015-09-24  Michael Collison  <michael.collison@linaro.org>
2086         PR other/57195
2087         * read-md.c (read_name): Allow mode iterators inside angle
2088         brackets in rtl expressions.
2090 2015-09-24  Vladimir Makarov  <vmakarov@redhat.com>
2092         PR target/61578
2093         * ira-color.c (update_allocno_cost): Add parameter.
2094         (update_costs_from_allocno): Decrease conflict cost.  Pass the new
2095         parameter.
2097 2015-09-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2099         PR driver/67640
2100         * opts-common.c (prune_options): Discard all -fdiagnostics-color
2101         but the last one, which is moved to the front to be processed
2102         first.
2103         * opts.c (enable_warning_as_error): Reject options that do not
2104         control warnings.
2106 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
2108         * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
2110 2015-09-24  Jiong Wang  <jiong.wang@arm.com>
2112         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
2113         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
2114         (aarch64_cannot_force_const_mem): Likewise.
2115         (aarch64_classify_address): Likewise.
2116         (aarch64_classify_symbolic_expression): Likewise.
2117         (aarch64_print_operand): Likewise.
2118         (aarch64_classify_symbol): Likewise.
2119         (aarch64_mov_operand_p): Likewise.
2120         * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
2121         (aarch64_mov_operand): Likewise.
2123 2015-09-24  Segher Boessenkool  <segher@kernel.crashing.org>
2125         * config/rs6000/rs6000.c (debug_stack_info): Invert the test
2126         for info->spe_gp_size.
2128 2015-09-24  Richard Biener  <rguenther@suse.de>
2130         PR lto/67699
2131         * lto-cgraph.c (compute_ltrans_boundary): Do not stream
2132         abstract origins.
2134 2015-09-24  Thomas Schwinge  <thomas@codesourcery.com>
2136         * tree-object-size.c (plus_stmt_object_size)
2137         (cond_expr_object_size): Change the formal parameters from gimple
2138         to gimple *.
2139         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
2140         * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
2141         * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
2143 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2145         * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
2146         Check for ld -type pie on Solaris 11.x and 12.
2147         * configure: Regenerate.
2148         * config.in: Regenerate.
2150         * gcc.c (LD_PIE_SPEC): Allow redefinition.
2152         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
2153         (STARTFILE_SPEC): Use it.
2154         (ENDFILE_CRTEND_SPEC): Define.
2155         (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
2156         (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
2157         ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
2158         [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
2159         (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
2160         * config/i386/sol2.h (ENDFILE_SPEC): Remove.
2161         (ENDFILE_ARCH_SPEC): Define.
2162         * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
2164 2015-09-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2166         * configure.ac (gcc_cv_solaris_crts): New test.
2167         * configure. Regenerate.
2168         * config.in: Regenerate.
2169         * config/sol2.h (STARTFILE_SPEC): Simplify, provide
2170         HAVE_SOLARIS_CRTS variant.
2172 2015-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2174         * tree-inline.h (count_insns_seq): Delete prototype.
2175         (estimate_num_insns_seq): Define prototype.
2176         * tree-inline.c (count_insns_seq): Delete.
2177         (estimate_num_insns_seq): Remove static qualifier.
2178         * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
2179         with estimate_num_insns_seq.
2181 2015-09-24  Richard Biener  <rguenther@suse.de>
2183         * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
2184         members.
2185         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
2186         and base for MEM_REF and TARGET_MEM_REF.  Handle BIT_FIELD_REF
2187         offset.
2188         (ao_ref_init_from_vn_reference): Record clique and base in the
2189         built base.
2190         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
2192 2015-09-24  Richard Biener  <rguenther@suse.de>
2194         PR tree-optimization/48885
2195         * tree-ssa-structalias.c (visit_loadstore): Handle default defs
2196         as not including any restrict tags from other pointers.
2198 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2200         * gcc.c (handle_foffload_option): Don't lose the trailing NUL
2201         character when appending to offload_targets.
2203         * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
2204         offload targets by commas, not colons.
2205         * config.in: Regenerate.
2206         * configure: Likewise.
2207         * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
2208         instead of setting up the default offload targets here...
2209         (process_command): ..., do it here.
2210         libgomp/
2211         * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
2212         targets are separated by commas.
2213         * config.h.in: Regenerate.
2215 2015-09-23  Thomas Schwinge  <thomas@codesourcery.com>
2216             Nathan Sidwell  <nathan@codesourcery.com>
2218         * omp-low.h (omp_reduction_init_op): Declare.
2219         * omp-low.c (omp_reduction_init_op): New, broken out of ...
2220         (omp_reduction_init): ... here.  Call it.
2221         * tree-parloops.c (initialize_reductions): Use
2222         omp_reduction_init_op.
2224 2015-09-23   Richard Biener  <rguenther@suse.de>
2226         PR middle-end/67662
2227         * fold-const.c (fold_binary_loc): Do not reassociate two vars with
2228         undefined overflow unless they will cancel out.
2230 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2232         * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
2233         insn emit.
2235 2015-09-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2237         PR c/49655
2238         * opts.h (write_langs): Declare.
2239         * opts-global.c (write_langs): Make it extern.
2241 2015-09-23  Oleg Endo  <olegendo@gcc.gnu.org>
2243         PR target/67391
2244         * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
2245         overlapping regs when matching the pattern.
2247 2015-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
2249         * config/aarch64/aarch64-simd.md
2250         (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
2251         (aarch64_float_truncate_hi_v4sf_le): New.
2252         (aarch64_float_truncate_hi_v4sf_be): Likewise.
2254 2015-09-23  Richard Biener  <rguenther@suse.de>
2256         * tree-ssa-structalias.c (intra_create_variable_infos): Build
2257         representatives for all restrict qualified pointer destinations.
2259 2015-09-23  Kirill Yukhin  <kirill.yukhin@intel.com>
2261         * config/i386/i386.md (define_code_attr mshift): New.
2262         (define_mode_iterator SWI1248_AVX512BW): Rename ...
2263         (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
2264         only.
2265         (define_insn "*k<logic><mode>"): Use new iterator name.
2266         (define_insn "*<mshift><mode>3"): New.
2268 2015-09-23  Mikhail Maltsev  <maltsevm@gmail.com>
2270         PR middle-end/67649
2271         * memory-block.h (memory_block_pool::allocate): Use valgrind API to
2272         mark the block as accessible.
2274 2015-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
2276         * function.c (thread_prologue_and_epilogue_insns): Delete
2277         orig_entry_edge argument to try_shrink_wrapping.
2278         * shrink-wrap.c (can_get_prologue): New function.
2279         (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
2280         (try_shrink_wrapping): Delete orig_entry_edge argument.  Use
2281         can_get_prologue where needed.  Remove code that finds a single
2282         edge for the prologue.  Remove code that tests if any reg clobbered
2283         by the prologue is live on the prologue edge.  Remove code that finds
2284         the new prologue edge after duplicating blocks.  Make a new prologue
2285         block and edge.
2286         * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
2288 2015-09-22  Jeff Law  <law@redhat.com>
2290         * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
2291         behavior.
2293 2015-09-22  Nathan Sidwell  <nathan@codesourcery.com>
2295         * doc/invoke.texi  (-Wmultiple-inheritance, -Wvirtual-inheritance,
2296         -Wtemplates, -Wnamespaces): Document.
2298 2015-09-22  Tom de Vries  <tom@codesourcery.com>
2300         PR tree-optimization/67671
2301         * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
2302         pointer references as restrict.
2304 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2306         * config/nios2/nios2.c (nios2_legitimize_address): When handling
2307         'reg + reloc' cases, allow first operand to be non-REG, and use
2308         force_reg() to enforce address pattern.
2310 2015-09-22  Alexander Fomin <alexander.fomin@intel.com>
2312         PR target/67480
2313         * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
2314         (define_mode_iterator VI12_AVX_AVX512F): New.
2315         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
2316         all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
2317         (define_insn "*<code><mode>3"): ... Into new pattern using
2318         VI12_AVX_AVX512F iterators without masking.
2320 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2322         * config.gcc: Support "skylake-avx512".
2323         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
2324         PROCESSOR_SKYLAKE_AVX512.
2325         * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
2326         (processor_target_table): Add "skylake-avx512".
2327         (PTA_SKYLAKE_AVX512): Define.
2328         (ix86_option_override_internal): Add "skylake_avx512".
2329         (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
2330         F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
2331         * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
2332         (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
2333         * doc/invoke.texi (skylake-avx512): New.
2335 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2337         * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
2338         operand in pattern.
2339         (define_insn "kunpcksi"): Ditto.
2340         (define_insn "kunpckdi"): Ditto.
2342 2015-09-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2344         * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
2345         iterator instead of fixed modes.
2347 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2349         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
2350         Adjust declaration.
2351         * config/aarch64/aarch64.c (aarch64_emit_bic): New.
2352         (aarch64_gen_atomic_ldop): Adjust comment.  Add parameter
2353         out_result.  Update to support update-fetch operations.
2354         * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
2355         Adjust for change to aarch64_gen_atomic_ldop.
2356         (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
2357         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
2358         (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
2359         (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
2360         (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
2362 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2364         * config/aarch64/aarch64-protos.h
2365         (aarch64_atomic_ldop_supported_p): Declare.
2366         * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
2367         (enum aarch64_atomic_load_op_code): New.
2368         (aarch64_emit_atomic_load_op): New.
2369         (aarch64_gen_atomic_ldop): Update to support load-operate
2370         patterns.
2371         * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
2372         to an expander.
2373         (aarch64_atomic_<atomic_optab><mode>): New.
2374         (aarch64_atomic_<atomic_optab><mode>_lse): New.
2375         (atomic_fetch_<atomic_optab><mode>): Change to an expander.
2376         (aarch64_atomic_fetch_<atomic_optab><mode>): New.
2377         (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
2379 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2381         * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
2382         (UNSPECV_ATOMIC_LDOP_OR): New.
2383         (UNSPECV_ATOMIC_LDOP_BIC): New.
2384         (UNSPECV_ATOMIC_LDOP_XOR): New.
2385         (UNSPECV_ATOMIC_LDOP_PLUS): New.
2386         (ATOMIC_LDOP): New.
2387         (atomic_ldop): New.
2388         (aarch64_atomic_load<atomic_ldop><mode>): New.
2390 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2392         * config/aarch64/aarch64.md
2393         (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
2394         pattern.
2396 2015-09-22  Matthew Wahab  <matthew.wahab@arm.com>
2398         * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
2399         Declare.
2400         * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
2401         (aarch64_gen_atomic_ldop): New.
2402         (aarch64_split_atomic_op): Fix whitespace and add a comment.
2403         * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
2404         (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
2405         (atomic_exchange<mode>): Replace with an expander.
2406         (aarch64_atomic_exchange<mode>): New.
2407         (aarch64_atomic_exchange<mode>_lse): New.
2408         (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
2409         (aarch64_atomic_swp<mode>): New.
2411 2015-09-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2413         * tree-inline.c (expand_call_inline): Use inform for extra note.
2414         Do not give a note with UNKNOWN_LOCATION.
2415         Replace input_location with gimple_location (stmt).
2416         Use true/false instead of TRUE/FALSE.
2418 2015-09-22  Tom de Vries  <tom@codesourcery.com>
2420         PR tree-optimization/67666
2421         * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
2422         with single field non-conservative.
2424 2015-09-21  David S. Miller  <davem@davemloft.net>
2426         PR/67622
2427         Revert:
2428         2015-09-11  David S. Miller  <davem@davemloft.net>
2430         * config/sparc/constraints.md: Make "U" constraint a real register
2431         constraint.
2432         * config/sparc/sparc.c (TARGET_LRA_P): Define.
2433         (D_MODES, DF_MODES): Add missing cast.
2434         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
2435         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
2436         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
2437         cost to 8.
2438         * config/sparc/sparc.h (PROMOTE_MODE): Define.
2439         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
2440         provide these insn when flag_pic.
2442         2015-09-17  David S. Miller  <davem@davemloft.net>
2444         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
2445         Declare.
2446         * config/sparc/sparc.c (sparc_secondary_memory_needed): New
2447         function.
2448         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
2449         (HARD_REGNO_CALLER_SAVE_MODE): Define.
2450         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
2451         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
2452         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
2453         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
2454         provide when flag_pic.
2456 2015-09-21  Jeff Law  <law@redhat.com>
2458         * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
2459         behavior.
2461 2015-09-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2463         * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
2465 2015-09-21  Richard Biener  <rguenther@suse.de>
2467         * passes.c (rest_of_decl_compilation): Do not call
2468         dwarf2out_early_global_decl for aliases.
2470 2015-09-21  Richard Biener  <rguenther@suse.de>
2472         PR debug/67664
2473         * dwarf2out.c (add_location_or_const_value_attribute): Remove
2474         attribute parameter.  Early exit if either DW_AT_const_value
2475         or DW_AT_location are present already.
2476         (gen_variable_die): Adjust caller.
2477         (dwarf2out_late_global_decl): Likewise.
2479 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2481         PR target/67657
2482         * config/sh/sh.c (sh_remove_overlapping_post_inc,
2483         sh_peephole_emit_move_insn): Add new functions.
2484         * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
2485         sh_peephole_emit_move_insn): Declere them.
2486         * config/sh/sh.md: Use them in various peephole2 patterns.
2488 2015-09-21  Richard Biener  <rguenther@suse.de>
2490         PR middle-end/67651
2491         * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
2492         address with -fno-delete-null-pointer-checks.
2494 2015-09-21  Alan Lawrence  <alan.lawrence@arm.com>
2496         * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
2497         (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
2498         (reduc_uplus_v16qi): Remove.
2500         * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
2501         (reduc_<VEC_reduc_name>_v2df): Remove.
2502         (reduc_<VEC_reduc_name>_v4sf): Remove.
2503         (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
2505         * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
2506         gen_ function by removing * prefix.
2507         (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
2509 2015-09-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2511         PR middle-end/60832
2512         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2513         Print i_bound without converting it to a tree.
2515 2015-09-21  Bilyan Borisov  <bilyan.borisov@arm.com>
2517         * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
2518         operands[4] operands[5] swap with std::swap, removed tmp variable.
2519         (arm_evpc_neon_vzip): Replaced in0/in1 and
2520         out0/out1 swaps with std::swap, removed x variable.
2521         (arm_evpc_neon_vtrn): Replaced in0/int1 and
2522         out0/out1 swaos with std::swap, removed x variable.
2523         (arm_expand_vec_perm_const_1): Replaced
2524         d->op0/d->op1 swap with std::swap, removed x variable.
2525         (arm_evpc_neon_vuzp): Replaced in0/in1 and
2526         out0/out1 swaps with std::swap, removed x variable.
2528 2015-09-21  Jonathan Yong  <10walls@gmail.com>
2530         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
2531         sysroot/usr/lib/32api for additional win32 libraries,
2532         fixes failing Cygwin bootstrapping.
2534 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2536         * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
2538 2015-09-21  Oleg Endo  <olegendo@gcc.gnu.org>
2540         PR target/67126
2541         * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
2542         (*mov_t_msb_neg): Rewrite negc pattern.
2544 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2546         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
2547         immediate generation code.
2549 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2551         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
2552         redundant immediate generation code.
2554 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2556         * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
2557         (AARCH64_NUM_BITMASKS): Remove.
2558         (aarch64_bitmasks_cmp): Remove.
2559         (aarch64_build_bitmask_table): Remove.
2561 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2563         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
2564         slow immediate matching loops with a faster algorithm.
2566 2015-09-20  Wilco Dijkstra  <wdijkstr@arm.com>
2568         * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
2569         faster algorithm.
2571 2015-09-20  Jeff Law  <law@redhat.com>
2573         PR tree-optimization/47679
2574         * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
2575         * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
2576         * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
2577         (thread_through_normal_block): Use record_temporary_equivalences.
2579 2015-09-19  Trevor Saunders  <tbsaunde@tbsaunde.org>
2581         * coretypes.h (gimple): Change typedef to be a forward declaration.
2582         * gimple.h (gimple_statement_base): rename to gimple.
2583         * (all functions and types using gimple): Adjust.
2584         * *.[ch]: Likewise.
2586 2015-09-19  Andrew Dixie  <andrewd@gentrack.com>
2587             David Edelsohn  <dje.gcc@gmail.com>
2589         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
2590         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2591         (EH_FRAME_THROUGH_COLLECT2): Define.
2592         (EH_TABLES_CAN_BE_READ_ONLY): Define.
2593         (ASM_OUTPUT_DWARF_PCREL): Define.
2594         (ASM_OUTPUT_DWARF_DATAREL): Define.
2596 2015-09-19  John David Anglin  <danglin@gcc.gnu.org>
2598         * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
2599         of TARGET_ELF32.
2601 2015-09-18  Jeff Law  <law@redhat.com>
2603         PR tree-optimization/47679
2604         * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped.  Move
2605         it here ...
2606         (dom_opt_dom_walker): New private member holding the avail_exprs_stack
2607         object.  Update constructor.
2608         (pass_dominator::execute):  Corresponding chagnes to declaration
2609         and initialization of avail_exprs_stack.  Update constructor call
2610         for dom_opt_dom_walker object.
2611         (lookup_avail_expr, record_cond): Accept additional argument.  Pass
2612         it down to children as needed.
2613         (record_equivalences_from_incoming_edge): Likewise.
2614         (eliminate_redundant_computations): Likewise.
2615         (record_equivalences_from_stmt): Likewise.
2616         (simplify_stmt_for_jump_threading): Likewise.
2617         (record_temporary_equivalences): Likewise.
2618         (optimize_stmt): Likewise.
2619         (dom_opt_dom_walker::thread_across_edge): Update access to
2620         avail_exprs_stack object and pass it to children as needed.
2621         (dom_opt_dom_walker::before_dom_children): Similarly.
2622         (dom_opt_dom_walker::after_dom_children): Similarly.
2623         * tree-ssa-threadedge.c (pfn_simplify): New typedef.
2624         (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
2625         Add avail_expr_stack argument.  Pass it to children as needed.
2626         (dummy_simplify): Likewise.
2627         (simplify_control_stmt_condition): Likewise.
2628         (thread_around_empty_blocks): Likewise.
2629         (thread_through_normal_block): Likewise.
2630         (thread_across_edge): Likewise.
2631         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
2632         * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
2634         PR tree-optimization/47679
2635         * tree-ssa-dom.c (const_and_copies): No longer file scoped.  Move
2636         it here ...
2637         (dom_opt_dom_walker): New private member holding the const_and_copies
2638         object.  Update constructor.
2639         (pass_dominator::execute): Corresponding changes to declaration
2640         and initialization of const_and_copies.  Update constructor call
2641         for the dom_opt_dom_walker object.
2642         (record_temporary_equivalences): Accept const_and_copies argument
2643         pass it down to children as needed.
2644         (record_equality): Likewise.
2645         (record_equivalences_from_incoming_edge): Likewise.
2646         (cprop_into_successor_phis, optimize_stmt): Likewise.
2647         (eliminate_redundant_computations): Likewise.
2648         (dom_opt_dom_walker::thread_across_edge): Update access to
2649         const_and_copies object and pass it to children as needed.
2650         (dom_opt_dom_walker::before_dom_children): Similarly.
2651         (dom_opt_dom_walker::after_dom_children): Similarly.
2653         PR tree-optimization/47679
2654         * tree-ssa-dom.c (avail_exprs): No longer file scoped.  Bury
2655         it into the avail_exprs_stack class.
2656         (pass_dominator::execute): Corresponding changes to declaration
2657         and initialization of avail_exprs.  Pass avail_exprs to
2658         dump_dominator_optimization_stats.
2659         (record_cond): Extract avail_exprs from avail_exprs_stack.
2660         (lookup_avail_expr): Similarly.
2661         (htab_staticstics): Remove unnecessary prototype.  Move to earlier
2662         position in file.
2663         (dump_dominator_optimization_stats): Make static and prototype.
2664         Add argument for the hash table to dump.
2665         (debug_dominator_optimization_stats): Remove.
2666         * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
2667         prototype.
2668         (debug_dominator_optimization_stats): Similarly.
2669         * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
2670         "void" in prototype for pop_to_marker method.  Add accessor method
2671         for the underlying avail_exprs table.
2673         * tree-ssa-threadedge.c: Remove trailing whitespace.
2675 2014-09-18  John David Anglin  <danglin@gcc.gnu.org>
2677         * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
2678         unsigned.
2679         (pa_ldil_cint_p): Likewise.
2680         * config/pa/pa.c (pa_cint_ok_for_move): likewise.
2681         (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
2682         Update callers.
2683         * config/pa/pa.md: Likewise.
2685 2015-09-18  David Malcolm  <dmalcolm@redhat.com>
2687         * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
2688         * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
2689         (diagnostic_show_locus): Likewise.
2690         (diagnostic_print_caret_line): Likewise.
2691         * diagnostic-show-locus.c: New file.
2693 2015-09-18  David Edelsohn  <dje.gcc@gmail.com>
2695         * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
2696         "back" parameter. Declare label in #if block.
2698 2015-09-18  Uros Bizjak  <ubizjak@gmail.com>
2700         PR middle-end/67619
2701         * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
2702         the address to a register.
2704 2015-09-18  Jeff Law  <law@redhat.com>
2706         PR tree-optimization/47679
2707         * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
2708         * tree-ssa-dom.c: Remove unnecessary header includes.
2709         (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
2710         (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
2711         (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
2712         (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
2713         (pass_phi_only_cprop::execute): Likewise.
2714         (make_pass_phi_only_cprop): Likewise.
2715         * tree-ssa-phionlycprop.c: New file with moved code.  Eliminate
2716         uses of file scoped statics by passing the required objects
2717         as parameters wherever needed.
2719 2015-09-18  Andrew Dixie  <andrewd@gentrack.com>
2720             David Edelsohn  <dje.gcc@gmail.com>
2722         * defaults.h (EH_FRAME_SECTION_NAME): Depend on
2723         EH_FRAME_THROUGH_COLLECT2.
2724         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
2725         DW_EH_PE_datarel.
2726         * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
2727         even if EH_FRAME_SECTION_NAME is undefined.  Restrict special
2728         collect2 labels to EH_FRAME_THROUGH_COLLECT2.
2729         * except.c (switch_to_exception_section): Use a read-only section
2730         even if EH_FRAME_SECTION_NAME is undefined.
2731         * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
2732         * collect2.c (write_c_file_stat): Provide dbase on AIX.
2733         (scan_prog_file): Don't export __dso_handle nor
2734         __gcc_unwind_dbase.
2735         * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2736         (EH_TABLES_CAN_BE_READ_ONLY): Define.
2737         (ASM_OUTPUT_DWARF_PCREL): Define.
2738         (ASM_OUTPUT_DWARF_DATAREL): Define.
2739         (EH_FRAME_THROUGH_COLLECT2): Define.
2740         (EH_FRAME_IN_DATA_SECTION): Delete.
2741         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
2742         * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
2743         Declare.
2744         (rs6000_asm_output_dwarf_datarel): Declare.
2745         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
2746         (rs6000_aix_asm_output_dwarf_datarel): New.
2747         (rs6000_xcoff_asm_init_sections): Don't set exception_section.
2748         * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
2749         (EH_FRAME_THROUGH_COLLECT2): Define.
2750         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
2751         (EH_FRAME_THROUGH_COLLECT2): Define.
2752         (EH_TABLES_CAN_BE_READ_ONLY): Define.
2753         * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
2754         (EH_FRAME_THROUGH_COLLECT2): New.
2755         (ASM_OUTPUT_DWARF_DATAREL): New.
2756         * doc/tm.texi: Regenerate.
2758 2015-09-18  Richard Biener  <rguenther@suse.de>
2760         * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
2761         we're in early phase.
2762         (schedule_generic_params_dies_gen): Likewise.
2763         (gen_remaining_tmpl_value_param_die_attribute): Do only as much
2764         work as possible, retaining unhandled cases.
2765         (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
2766         clear out generic_type_instances at the end.
2767         (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
2768         (dwarf2out_early_finish): ... here.  Do most of
2769         gen_remaining_tmpl_value_param_die_attribute here.
2771 2015-09-18  Alan Lawrence  <alan.lawrence@arm.com>
2773         PR tree-optimization/67283
2774         * tree-sra.c (type_consists_of_records_p): Rename to...
2775         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
2776         (completely_scalarize_record): Rename to...
2777         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
2778         (scalarize_elem): New.
2779         (analyze_all_variable_accesses): Follow renamings.
2781 2015-09-18  Richard Biener  <rguenther@suse.de>
2783         * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
2784         in early-dwarf.
2786 2015-09-18  Richard Biener  <rguenther@suse.de>
2788         PR tree-optimization/66142
2789         * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
2790         treat MEM[&x] and x the same.
2791         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
2792         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
2793         when we simplified sth.
2794         (vn_reference_maybe_forwprop_address): Likewise.
2795         (valueize_refs_1): When we simplified through
2796         vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
2797         set valueized_anything to true.
2798         (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
2799         one ref kills the other instead of just a offset-based test.
2800         * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
2801         for the operand_equal_p test to compare bases and also compare
2802         sizes.
2804 2015-09-17  Christian Bruel  <christian.bruel@st.com>
2806         * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
2808 2015-09-17  Richard Henderson  <rth@redhat.com>
2810         PR libstdc++/65913
2811         * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
2812         pointers that encode the alignment of the object.
2814 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2816         PR rtl-optimization/66790
2817         * df-problems.c (LIVE): Amend documentation.
2819 2015-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2821         * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
2822         and optabs-tree.o.
2823         (GTFILES): Replace optabs.c with optabs-libfunc.c.
2824         * genopinit.c (main): Add an include guard to insn-opinit.h.
2825         Protect the rtx_code parts with NUM_RTX_CODE.
2826         * optabs.h: Split parts out to...
2827         * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
2828         * optabs.c: Split parts out to...
2829         * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
2830         * cilk-common.c: Include optabs-query.h rather than optabs.h.
2831         * fold-const.c: Likewise.
2832         * target-globals.c: Likewise.
2833         * tree-if-conv.c: Likewise.
2834         * tree-ssa-forwprop.c: Likewise.
2835         * tree-ssa-loop-prefetch.c: Likewise.
2836         * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
2837         Remove unncessary include files.
2838         * tree-ssa-phiopt.c: Likewise.
2839         * tree-ssa-reassoc.c: Likewise.
2840         * tree-switch-conversion.c: Likewise.
2841         * tree-vect-data-refs.c: Likewise.
2842         * tree-vect-generic.c: Likewise.
2843         * tree-vect-loop.c: Likewise.
2844         * tree-vect-patterns.c: Likewise.
2845         * tree-vect-slp.c: Likewise.
2846         * tree-vect-stmts.c: Likewise.
2847         * tree-vrp.c: Likewise.
2848         * toplev.c: Include optabs-query.h and optabs-libfuncs.h
2849         rather than optabs.h.
2850         * expr.c: Include optabs-tree.h.
2851         * function.c: Likewise.
2853 2015-09-17  Eric Botcazou  <ebotcazou@adacore.com>
2855         PR middle-end/65958
2856         * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
2857         * config/arm/arm-protos.h (output_probe_stack_range): Declare.
2858         * config/arm/arm.c: Include common/common-target.h.
2859         (use_return_insn): Return 0 if the static chain register was saved
2860         above a non-APCS frame.
2861         (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
2862         (struct scratch_reg): New.
2863         (get_scratch_register_on_entry): New function.
2864         (release_scratch_register_on_entry): Likewise.
2865         (arm_emit_probe_stack_range): Likewise.
2866         (output_probe_stack_range): Likewise.
2867         (arm_expand_prologue): Factor out code dealing with the IP register
2868         for nested function and adjust it for stack checking.
2869         Invoke arm_emit_probe_stack_range if static builtin stack checking
2870         is enabled.
2871         (thumb1_expand_prologue): Sorry out if static builtin stack checking
2872         is enabled.
2873         (arm_expand_epilogue): Add the saved static chain register, if any, to
2874         the amount of pre-pushed registers to pop.
2875         (arm_frame_pointer_required): Return true if static stack checking is
2876         enabled and we want to catch the exception with the EABI unwinder.
2877         * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
2878         (UNSPEC_PROBE_STACK_RANGE): Likewise.
2879         * config/arm/arm.md (probe_stack): New insn.
2880         (probe_stack_range): Likewise.
2882 2015-09-17  Richard Biener  <rguenther@suse.de>
2884         * genmatch.c (parser::parse_expr): Improve error message
2885         for mis-placed flags.
2887 2015-09-17  Richard Biener  <rguenther@suse.de>
2889         * passes.c (rest_of_decl_compilation): Always call early_global_decl
2890         debug hook when we created a varpool node.
2891         * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
2892         dwarf2out_early_global_decl, when not just add location or
2893         value attributes to existing DIEs.
2895 2015-09-17  James Greenhalgh  <james.greenhalgh@arm.com>
2897         * config/aarch64/aarch64.md (copysigndf3): New.
2898         (copysignsf3): Likewise.
2900 2015-09-17  David S. Miller  <davem@davemloft.net>
2902         * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
2903         * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
2904         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
2905         (HARD_REGNO_CALLER_SAVE_MODE): Define.
2906         * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
2907         (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
2908         (embmedany_losum, embmedany_brsum, embmedany_textuhi)
2909         (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
2910         provide when flag_pic.
2912 2015-09-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2914         * config/sh/sh.c (label_ref_list_d_pool): Adjust to
2915         object_allocator change.
2917 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
2919         PR tree-optimization/66388
2920         * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
2921         (dump_iv): Dump no_overflow information.
2922         (alloc_iv): Initialize new field for struct iv.
2923         (mark_bivs): Count number of no_overflow bivs.
2924         (find_deriving_biv_for_expr, record_biv_for_address_use): New
2925         functions.
2926         (idx_find_step): Call new functions above.
2927         (add_candidate_1, add_candidate): New paramter.
2928         (add_iv_candidate_for_biv): Add sizetype cand for BIV.
2929         (get_computation_aff): Simplify convertion of cand for BIV.
2930         (get_computation_cost_at): Step cand's base if necessary.
2932 2015-09-17  Bin Cheng  <bin.cheng@arm.com>
2934         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
2935         parameter.
2936         (tree_simplify_using_condition): Ditto.
2937         (simplify_using_initial_conditions): Ditto.
2938         (loop_exits_before_overflow): Pass new argument to function
2939         simplify_using_initial_conditions.  Remove case for type conversions
2940         simplification.
2941         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
2942         parameter.
2943         * tree-scalar-evolution.c (simple_iv): Simplify type conversions
2944         in iv base using loop initial conditions.
2946 2015-09-16  Jeff Law  <law@redhat.com>
2948         PR tree-optimization/47679
2949         * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
2950         (free_all_edge_infos): Use it.
2951         (allocate_edge_info): Free preexisting edge info data.
2952         (pass_dominator::execute): Set up initial edge info structures.
2953         (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
2954         thread_across_edge.
2955         * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
2956         If non-null, then push/pop markers appropriately.
2957         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
2958         * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
2959         thread-across_edge.
2961 2015-09-16  James Bowman  <james.bowman@ftdichip.com>
2963         * config/ft32/ft32.c: Fix the memory address space predicate.
2965 2015-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
2967         PR target/67573
2968         * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
2969         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
2971 2015-09-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2973         * toplev.h (check_global_declaration): Remove declaration.
2974         * toplev.c (check_global_declaration): Move to ...
2975         * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
2976         (analyze_functions): Update call.
2978 2015-09-16  David S. Miller  <davem@davemloft.net>
2980         * lra-constraints.c (simplify_operand_subreg): Do not assume that
2981         lowpart of a SUBREG has offset zero.
2983 2015-09-16  Jeff Law  <law@redhat.com>
2985         PR tree-optimization/47679
2986         * tree-ssa-dom.c (enum expr_kind): Moved from here to
2987         tree-ssa-scopedtables.h.
2988         (struct hashable_expr, class expr_hash_elt): Likewise.
2989         (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
2990         Move associated methods into tree-ssa-scopedtables.c.
2991         (avail_expr_hash, initialize_expr_from_cond): Similarly.
2992         (hashable_expr_equal_p, add_expr_commutative): Likewise.
2993         (add_hashable_expr): Likewise.
2994         (record_cond): Delete element directly.
2995         * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
2996         private copy ctor and assignment operator methods.
2997         (expr_elt_hasher): Inline trivial methods.
2998         (initialize_expr_from_cond): Prototype.
2999         * tree-ssa-scopedtables.c: Add necessary includes, functions and
3000         methods that were previously in tree-ssa-dom.c.  Improve various
3001         comments.
3003 2015-09-16  Paolo Carlini  <paolo.carlini@oracle.com>
3005         * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
3007 2015-09-16  Segher Boessenkool  <segher@kernel.crashing.org>
3009         PR bootstrap/67587
3010         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
3011         fixup_partitions.
3013 2015-09-16  Richard Biener  <rguenther@suse.de>
3015         PR middle-end/67253
3016         * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
3017         location of possibly shared trees.
3019 2015-09-16  Richard Biener  <rguenther@suse.de>
3021         PR middle-end/67271
3022         * fold-const.c (native_encode_expr): Bail out on bogus offsets.
3024 2015-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3026         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
3027         offset and size computations instead of HOST_WIDE_INT.
3029 2015-09-16  Richard Biener  <rguenther@suse.de>
3031         PR middle-end/67442
3032         * fold-const.c (extract_muldiv_1): Properly extend multiplication
3033         result before builting a tree via wide_int_to_tree.
3035 2015-09-16  Mikhail Maltsev  <maltsevm@gmail.com>
3037         * Makefile.in: Add memory-block.cc
3038         (pool_allocator::initialize): Use fixed block size.
3039         (pool_allocator::release): Use memory_block_pool.
3040         (pool_allocator::allocate): Likewise.
3041         * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
3042         object pools.
3043         * cfg.c (initialize_original_copy_tables): Likewise.
3044         * cselib.c (elt_list_pool, elt_loc_list_pool,
3045         cselib_val_pool): Likewise.
3046         * df-problems.c (df_chain_alloc): Likewise.
3047         * df-scan.c (df_scan_alloc): Likewise.
3048         * dse.c (cse_store_info_pool, rtx_store_info_pool,
3049         read_info_type_pool, insn_info_type_pool, bb_info_pool,
3050         group_info_pool, deferred_change_pool): Likewise.
3051         * et-forest.c (et_nodes, et_occurrences): Likewise.
3052         * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
3053         ipcp_agg_lattice_pool): Likewise.
3054         * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
3055         * ipa-profile.c (histogram_pool): Likewise.
3056         * ipa-prop.c (ipa_refdesc_pool): Likewise.
3057         * ira-build.c (live_range_pool, allocno_pool, object_pool,
3058         initiate_cost_vectors, pref_pool, copy_pool): Likewise.
3059         * ira-color.c (update_cost_record_pool): Likewise.
3060         * lra-lives.c (lra_live_range_pool): Likewise.
3061         * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
3062         * memory-block.cc: New file.
3063         * memory-block.h: New file.
3064         * regcprop.c (queued_debug_insn_change_pool): Use common block size.
3065         * sched-deps.c (sched_deps_init): Likewise.
3066         * sel-sched-ir.c (sched_lists_pool): Likewise.
3067         * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
3068         * tree-sra.c (access_pool): Likewise.
3069         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3070         * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
3071         * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
3072         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3073         * tree-ssa-strlen.c (strinfo_pool): Likewise.
3074         * tree-ssa-structalias.c (variable_info_pool): Likewise.
3075         * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
3076         location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
3078 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
3080         * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
3081         definition.
3082         (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
3083         call0 ABI.
3085 2015-09-15  Max Filippov  <jcmvbkbc@gmail.com>
3087         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
3088         to pass TLS call argument, according to current ABI.
3089         * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
3090         callx0 for TLS call, according to current ABI.
3092 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3094         * tree-eh.c (lower_try_finally_dup_block): Clear location information
3095         on stack restore statements.
3096         (decide_copy_try_finally): Do not consider a stack restore statement as
3097         coming from sources.
3099 2015-09-15  Uros Bizjak  <ubizjak@gmail.com>
3101         * config/alpha/alpha.c (alpha_expand_block_clear): Use
3102         HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
3104 2015-09-15  Jeff Law  <law@redhat.com>
3106         PR tree-optimization/47679
3107         * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
3108         methods and private members.
3109         (avail_exprs_stack): Similarly.  Change type of global
3110         from a pair of expr_hash_elt_t to the new class.
3111         (expr_elt_hasher::hash): Corresponding changes.
3112         (expr_elt_hasher::equal): Similarly.
3113         (avail_expr_hash): Similarly.
3114         (pass_dominator::execute): Similarly.
3115         (dom_opt_dom_walker::thread_across_edge): Similarly.
3116         (record_cond): Similarly.
3117         (dom_opt_dom_walker::before_dom_children): Similarly.
3118         (dom_opt_dom_walker::after_dom_children): Similarly.
3119         (lookup_avail_expr): Likewise.
3120         (initialize_hash_element): Now a expr_hash_elt constructor.
3121         (initialize_hash_element_from_expr): Similarly.
3122         (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
3123         (free_expr_hash_elt): Call dtor for the element.
3124         (remove_local_expressions_from_table): Now the "pop_to_marker"
3125         method in the available_exprs_stack class.
3126         (avail_expr_stack::record_expr): Method factored out.
3127         (print_expr_hash_elt): Now a method in the expr_hash_elt class.
3128         Fix formatting.
3129         (hashable_expr_equal_p): Fix formatting.
3131 2015-09-15  David Malcolm  <dmalcolm@redhat.com>
3133         * input.h (location_get_source_line): Drop "expanded_location"
3134         param in favor of a file and line number.
3135         * input.c (location_get_source_line): Likewise.
3136         (dump_location_info): Update for change in signature of
3137         location_get_source_line.
3138         * diagnostic.c (diagnostic_print_caret_line): Likewise.
3140 2015-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3142         * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
3143         Bump to 4KB for SJLJ exceptions.
3144         (STACK_CHECK_PROTECT): Likewise.  Bump to 8KB for SJLJ exceptions.
3145         * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
3146         * doc/tm.texi: Regenerate.
3148 2015-09-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3150         * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
3151         of -1 when shifting.  Change type of val to unsigned HOST_WIDE_INT.
3152         Update prototype.
3154 2015-09-15  Richard Biener  <rguenther@suse.de>
3156         PR tree-optimization/67470
3157         * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
3158         structure for PHI hoisting by inserting a forwarder block
3159         if appropriate.
3161 2015-09-15  Christian Bruel  <christian.bruel@st.com>
3163         * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
3164         (arm_option_print): New function.
3166 2015-09-15  Christian Bruel  <christian.bruel@st.com>
3168         PR target/52144
3169         * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
3170         * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
3171         Remove flags parameter.
3172         * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
3173         (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
3174         (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
3175         (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
3176         (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
3177         (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
3178         (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
3179         * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
3181 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3183         * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
3185         * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
3186         AARCH64_VALID_SIMD_DREG_MODE.
3188 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3190         * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
3191         aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
3192         (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
3193         (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
3194         aarch64_ld4_lane<mode>): Combine together, making...
3195         (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3196         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3197         aarch64_st4_lane<mode>): Combine together, making...
3198         (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
3199         * config/aarch64/iterators.md (nregs): Add comment.
3201 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3203         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
3204         Change operand mode from <V_TWO_ELEM> to BLK.
3205         (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
3206         (aarch64_vec_store_lanesoi_lane<mode): Likewise
3207         (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3208         (aarch64_ld2_lane<mode>): Likewise.
3209         (aarch64_st2_lane<VQ:mode>): Likewise.
3210         * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
3212 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3214         * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
3215         Change operand mode from <V_FOUR_ELEM> to BLK.
3216         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
3217         (aarch64_vec_store_lanesxi_lane<mode): Likewise.
3218         (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3219         (aarch64_ld4_lane<mode>): Likewise.
3220         (aarch64_st4_lane<mode>): Likewise.
3221         * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
3223 2015-09-15  Richard Biener  <rguenther@suse.de>
3225         PR middle-end/67563
3226         * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
3227         transfer EH info from old to new stmt.
3228         (replace_call_with_value): Likewise.
3229         (replace_call_with_call_and_fold): Likewise.
3230         (gimple_fold_builtin_memory_op): Likewise.
3231         (gimple_fold_builtin_memset): Likewise.
3232         (gimple_fold_builtin_stpcpy): Likewise.
3233         (gimple_fold_call): Likewise.
3235 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3237         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
3238         comment.
3239         * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
3240         (aarch64_simd_intEI_type_node): Likewise.
3241         (aarch64_simd_builtin_std_type): Remove EImode case.
3242         (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
3243         * config/aarch64/aarch64-modes.def: Remove EImode.
3245 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3247         * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
3248         Change operand mode from <V_THREE_ELEM> to BLK.
3249         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
3250         (aarch64_vec_store_lanesci_lane<mode>): Likewise.
3251         (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
3252         (aarch64_ld3_lane<mode>): Likewise.
3253         (aarch64_st3_lane<mode>): Likewise.
3254         * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
3256 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3258         * config/aarch64/aarch64-simd.md
3259         (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
3260         Change all TImode operands to BLKmode.
3261         (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
3262         Change all EImode operands to BLKmode.
3263         (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
3264         Change all OImode operands to BLKmode.
3266         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
3267         and call set_mem_size.
3268         (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
3270         * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
3272 2015-09-15  Alan Lawrence  <alan.lawrence@arm.com>
3274         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
3275         to...
3276         (aarch64_vec_store_lanesoi_lane<mode>): ...this.
3278         (vec_store_lanesci_lane<mode>): Rename to...
3279         (aarch64_vec_store_lanesci_lane<mode>): ...this.
3281         (vec_store_lanesxi_lane<mode>): Rename to...
3282         (aarch64_vec_store_lanesxi_lane<mode>): ...this.
3284         (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
3285         aarch64_st4_lane<mode>): Follow renaming.
3287 2015-09-15  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3289         * config/s390/s390.c (s390_const_operand_ok): Add missing
3290         brackets.
3292 2015-09-15  Richard Biener  <rguenther@suse.de>
3294         PR lto/67568
3295         * lto-streamer.h (lto_location_cache::current_sysp): Properly
3296         initialize.
3297         * lto-streamer-out.c (clear_line_info): Likewise.
3299 2015-09-15  Richard Biener  <rguenther@suse.de>
3301         * doc/match-and-simplify.texi: Fix wording.
3303 2015-09-15  Bin Cheng  <bin.cheng@arm.com>
3305         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
3306         unnecessary type conversion in op1.
3308 2015-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3310         * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
3311         (dup_block_and_redirect): Delete function.
3312         (can_dup_for_shrink_wrapping): New function.
3313         (fix_fake_fallthrough_edge): New function.
3314         (try_shrink_wrapping): Rewrite function.
3315         (convert_to_simple_return): Call fix_fake_fallthrough_edge.
3317 2015-09-14  Rich Felker  <dalias@libc.org>
3319         * configure.ac: Change target pattern for sh TLS support
3320         test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
3321         * configure: Regenerate.
3323 2015-09-14  Jeff Law  <law@redhat.com>
3325         PR tree-optimization/47679
3326         * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
3327         type rather than void *.
3329 2015-09-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3331         PR fortran/67460
3332         * diagnostic.c (diagnostic_initialize): Do not set
3333         some_warnings_are_errors.
3334         (diagnostic_finish): Use DK_WERROR count instead.
3335         (diagnostic_report_diagnostic): Do not set
3336         some_warnings_are_errors.
3337         * diagnostic.h (struct diagnostic_context): Remove
3338         some_warnings_are_errors.
3340 2015-09-14  Richard Sandiford  <richard.sandiford@arm.com>
3342         * config/sparc/predicates.md (const_all_ones_operand): Use
3343         CONSTM1_RTX to simplify definition.
3345 2015-09-14  Oleg Endo  <olegendo@gcc.gnu.org>
3347         PR target/67061
3348         * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
3349         Handle call insns.
3351 2015-09-14  Chung-Lin Tang  <cltang@codesourcery.com>
3353         * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
3354         OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
3355         OPT_fshow_column to handled saved option cases.
3356         (append_compiler_options): Do not skip the above added options.
3358 2015-09-14  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3360         PR target/63304
3361         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
3362         nopcrelative_literal_loads.
3363         (aarch64_classify_address): Likewise.
3364         (aarch64_constant_pool_reload_icode): Define.
3365         (aarch64_secondary_reload): Handle secondary reloads for
3366         literal pools.
3367         (aarch64_override_options): Handle nopcrelative_literal_loads.
3368         (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
3369         * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3370         Define.
3371         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3372         * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
3373         * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
3374         predicate.
3375         * doc/invoke.texi (mpc-relative-literal-loads): Document.
3377 2015-09-14  John David Anglin  <danglin@gcc.gnu.org>
3379         PR middle-end/67401
3380         * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
3381         sync_compare_and_swap_optab libcall to target_oval.
3383 2015-09-14  Marek Polacek  <polacek@redhat.com>
3385         * rtlanal.c (split_double): Cast to unsigned when shifting a negative
3386         value.
3387         * sched-int.h (UNKNOWN_DEP_COST): Likewise.
3389 2015-09-11  Mark Wielaard  <mjw@redhat.com>
3391         PR c/28901
3392         * toplev.c (check_global_declaration): Check and use
3393         warn_unused_const_variable.
3394         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
3395         (-Wunused-variable): Remove non-constant. For C implies
3396         -Wunused-const-variable.
3397         (-Wunused-const-variable): New.
3399 2015-09-14  Richard Biener  <rguenther@suse.de>
3401         * doc/match-and-simplify.texi: Update for changed syntax
3402         of inner ifs and the new switch expression.
3404 2015-09-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
3406         * config/i386/haswell.md: New file describing Haswell pipeline.
3407         * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
3408         haswell-like processors.
3409         (ix86_reassociation_width): Increase reassociation width for 64-bit
3410         Haswell processor family.
3411         * config/i386/i386.md: Introduce haswell cpu and include new md file.
3413 2015-09-14  Richard Biener  <rguenther@suse.de>
3415         * doc/match-and-simplify.texi: Fixup some formatting issues
3416         and document the 's' flag.
3418 2015-09-13  Olivier Hainque  <hainque@adacore.com>
3419             Eric Botcazou  <ebotcazou@adacore.com>
3421         * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
3422         gr6 as possible values, defaulting to gr5.  Set target_cpu_default2.
3423         * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
3424         (TARGET_CPU_gr5): Likewise.
3425         (TARGET_CPU_gr6): Likewise.
3426         (MULTILIB_DEFAULTS): Likewise.
3427         * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
3428         for mcpu=gr5 and mcpu=gr6.
3429         (MULTILIB_DIRNAMES): Adjust accordingly.
3431 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3433         * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
3434         (mem_ref_p): Likewise.
3435         (outermost_indep_loop): Adjust.
3436         (mem_ref_in_stmt): Likewise.
3437         (determine_max_movement): Likewise.
3438         (mem_ref_alloc): Likewise.
3439         (record_mem_ref_loc): Likewise.
3440         (set_ref_stored_in_loop): Likewise.
3441         (mark_ref_stored): Likewise.
3442         (gather_mem_refs_stmt): Likewise.
3443         (mem_refs_may_alias_p): Likewise.
3444         (for_all_locs_in_loop): Likewise.
3445         (struct rewrite_mem_ref_loc): Likewise.
3446         (rewrite_mem_refs): Likewise.
3447         (struct first_mem_ref_loc_1): Likewise.
3448         (first_mem_ref_loc): Likewise.
3449         (struct sm_set_flag_if_changed): Likewise.
3450         (execute_sm_if_changed_flag_set): Likewise.
3451         (execute_sm): Likewise.
3452         (hoist_memory_references):
3453         (struct ref_always_accessed): Likewise.
3454         (ref_always_accessed_p): Likewise.
3455         (refs_independent_p): Likewise.
3456         (record_dep_loop): Likewise.
3457         (ref_indep_loop_p_1): Likewise.
3458         (ref_indep_loop_p_2): Likewise.
3459         (ref_indep_loop_p): Likewise.
3460         (can_sm_ref_p): Likewise.
3461         (find_refs_for_sm): Likewise.
3462         (tree_ssa_lim_finalize): Likewise.
3464 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3466         * dwarf2out.c (dw_attr_ref): Remove typedef.
3467         (dw_line_info_ref): Likewise.
3468         (pubname_ref): Likewise.
3469         (dw_ranges_ref): Likewise.
3470         (dw_ranges_by_label_ref): Likewise.
3471         (comdat_type_node_ref): Likewise.
3472         (get_AT): Adjust.
3473         (get_AT_low_pc): Likewise.
3474         (get_AT_hi_pc): Likewise.
3475         (get_AT_string): Likewise.
3476         (get_AT_flag): Likewise.
3477         (get_AT_unsigned): Likewise.
3478         (get_AT_ref): Likewise.
3479         (get_AT_file): Likewise.
3480         (remove_AT): Likewise.
3481         (print_die): Likewise.
3482         (check_die): Likewise.
3483         (die_checksum): Likewise.
3484         (attr_checksum_ordered): Likewise.
3485         (struct checksum_attributes): Likewise.
3486         (collect_checksum_attributes): Likewise.
3487         (die_checksum_ordered): Likewise.
3488         (same_die_p): Likewise.
3489         (is_declaration_die): Likewise.
3490         (clone_die): Likewise.
3491         (clone_as_declaration): Likewise.
3492         (copy_declaration_context): Likewise.
3493         (break_out_comdat_types): Likewise.
3494         (copy_decls_walk): Likewise.
3495         (output_location_lists): Likewise.
3496         (external_ref_hasher::hash): Likewise.
3497         (optimize_external_refs_1): Likewise.
3498         (build_abbrev_table): Likewise.
3499         (size_of_die): Likewise.
3500         (unmark_all_dies): Likewise.
3501         (size_of_pubnames): Likewise.
3502         (output_die_abbrevs): Likewise.
3503         (output_die): Likewise.
3504         (output_pubnames): Likewise.
3505         (add_ranges_num): Likewise.
3506         (add_ranges_by_labels): Likewise.
3507         (add_high_low_attributes): Likewise.
3508         (gen_producer_string): Likewise.
3509         (dwarf2out_set_name): Likewise.
3510         (new_line_info_table): Likewise.
3511         (prune_unused_types_walk_attribs): Likewise.
3512         (prune_unused_types_update_strings): Likewise.
3513         (prune_unused_types): Likewise.
3514         (resolve_addr): Likewise.
3515         (optimize_location_lists_1): Likewise.
3516         (index_location_lists): Likewise.
3517         (dwarf2out_finish): Likewise.
3519 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3521         * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
3523 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3525         * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
3526         (dump_asserts_for): Adjust.
3527         (register_new_assert_for): Likewise.
3528         (process_assert_insertions): Likewise.
3529         (insert_range_assertions): Likewise.
3531 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3533         * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
3534         and remove typedef.
3535         (new_temp_expr_table): Adjust.
3536         (free_temp_expr_table): Likewise.
3537         (version_to_be_replaced_p): Likewise.
3538         (make_dependent_on_partition): Likewise.
3539         (add_to_partition_kill_list): Likewise.
3540         (remove_from_partition_kill_list): Likewise.
3541         (add_dependence): Likewise.
3542         (finished_with_expr): Likewise.
3543         (process_replaceable): Likewise.
3544         (kill_expr): Likewise.
3545         (kill_virtual_exprs): Likewise.
3546         (mark_replaceable): Likewise.
3547         (find_replaceable_in_bb): Likewise.
3548         (find_replaceable_exprs): Likewise.
3549         (debug_ter): Likewise.
3551 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3553         * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
3554         (struct btr_user): Rename from btr_user_s.
3555         (struct btr_def): Rename from btr_def_s.
3556         (find_btr_def_group): Adjust.
3557         (add_btr_def): Likewise.
3558         (new_btr_user): Likewise.
3559         (note_other_use_this_block): Likewise.
3560         (compute_defs_uses_and_gen): Likewise.
3561         (link_btr_uses): Likewise.
3562         (build_btr_def_use_webs): Likewise.
3563         (block_at_edge_of_live_range_p): Likewise.
3564         (btr_def_live_range): Likewise.
3565         (combine_btr_defs): Likewise.
3566         (move_btr_def): Likewise.
3567         (migrate_btr_def): Likewise.
3568         (migrate_btr_defs): Likewise.
3570 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3572         * var-tracking.c (shared_hash_def): Rename to shared_hash.
3573         (shared_hash): Remove typedef.
3574         (struct dataflow_set): Adjust.
3575         (shared_hash_unshare): Likewise.
3576         (dataflow_set_merge): Likewise.
3577         (vt_initialize): Likewise.
3578         (vt_finalize): Likewise.
3580 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3582         * var-tracking.c (struct location_chain): Rename from
3583         location_chain_def.
3584         (struct variable_part): Adjust.
3585         (variable_htab_free): Likewise.
3586         (unshare_variable): Likewise.
3587         (get_init_value): Likewise.
3588         (get_addr_from_local_cache): Likewise.
3589         (drop_overlapping_mem_locs): Likewise.
3590         (val_reset): Likewise.
3591         (struct variable_union_info): Likewise.
3592         (variable_union): Likewise.
3593         (find_loc_in_1pdv): Likewise.
3594         (insert_into_intersection): Likewise.
3595         (intersect_loc_chains): Likewise.
3596         (canonicalize_loc_order_check): Likewise.
3597         (canonicalize_values_mark): Likewise.
3598         (canonicalize_values_star): Likewise.
3599         (canonicalize_vars_star): Likewise.
3600         (variable_merge_over_cur): Likewise.
3601         (remove_duplicate_values): Likewise.
3602         (variable_post_merge_new_vals): Likewise.
3603         (variable_post_merge_perm_vals): Likewise.
3604         (find_mem_expr_in_1pdv): Likewise.
3605         (dataflow_set_preserve_mem_locs): Likewise.
3606         (dataflow_set_remove_mem_locs): Likewise.
3607         (variable_part_different_p): Likewise.
3608         (onepart_variable_different_p): Likewise.
3609         (find_src_set_src): Likewise.
3610         (dump_var): Likewise.
3611         (set_slot_part): Likewise.
3612         (clobber_slot_part): Likewise.
3613         (delete_slot_part): Likewise.
3614         (vt_expand_var_loc_chain): Likewise.
3615         (emit_note_insn_var_location): Likewise.
3616         (vt_finalize): Likewise.
3618 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3620         * dse.c (store_info_t): Remove typedef.
3621         (group_info_t): Likewise.
3622         (const_group_info_t): Likewise.
3623         (deferred_change_t): Likewise.
3624         (get_group_info): Adjust.
3625         (free_store_info): Likewise.
3626         (canon_address): Likewise.
3627         (clear_rhs_from_active_local_stores): Likewise.
3628         (record_store): Likewise.
3629         (replace_read): Likewise.
3630         (check_mem_read_rtx): Likewise.
3631         (scan_insn): Likewise.
3632         (remove_useless_values): Likewise.
3633         (dse_step1): Likewise.
3634         (dse_step2_init): Likewise.
3635         (dse_step2_nospill): Likewise.
3636         (scan_stores_nospill): Likewise.
3637         (scan_reads_nospill): Likewise.
3638         (dse_step3_exit_block_scan): Likewise.
3639         (dse_step3): Likewise.
3640         (dse_step5_nospill): Likewise.
3641         (dse_step6): Likewise.
3643 2015-09-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3645         * alias.c (alias_set_entry_d): Rename to alias_set_entry.
3646         (alias_set_entry): Remove typedef.
3647         (alias_set_subset_of): Adjust.
3648         (alias_sets_conflict_p): Likewise.
3649         (init_alias_set_entry): Likewise.
3650         (get_alias_set): Likewise.
3651         (new_alias_set): Likewise.
3652         (record_alias_subset): Likewise.
3654 2015-09-13  Gerald Pfeifer  <gerald@pfeifer.com>
3656         * doc/install.texi (Downloading the source): Mark up
3657         contrib/download_prerequisites properly and drop leading "./".
3659 2015-09-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
3661         * config/arc/arc.h: Remove define of STRUCT_VALUE.
3662         * config/lm32/lm32.h: Likewise.
3663         * config/mep/mep.h: Likewise.
3664         * config/visium/visium.h: Likewise.
3665         * system.h: Poison STRUCT_VALUE macro.
3667 2015-09-12  John David Anglin  <danglin@gcc.gnu.org>
3669         * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
3670         CONSTANT_P operands.
3672 2015-09-11  David S. Miller  <davem@davemloft.net>
3674         * config/sparc/constraints.md: Make "U" constraint a real register
3675         constraint.
3676         * config/sparc/sparc.c (TARGET_LRA_P): Define.
3677         (D_MODES, DF_MODES): Add missing cast.
3678         (TF_MODES, TF_MODES_NO_S): Include T_MODE.
3679         (OF_MODES, OF_MODES_NO_S): Include O_MODE.
3680         (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
3681         cost to 8.
3682         * config/sparc/sparc.h (PROMOTE_MODE): Define.
3683         * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
3684         provide these insn when flag_pic.
3686 2015-09-11  Jeff Law  <law@redhat.com>
3688         PR tree-optimization/47679
3689         * tree-ssa-dom.c (struct cond_equivalence): Update comment.
3690         * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
3691         member with m_.  Update inline member functions as necessary.  Add
3692         toplevel comment.
3693         * tree-ssa-scopedtables.c: Update const_and_copies's member
3694         functions to use m_ prefix to access the stack.
3696 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
3698         * graphite-optimize-isl.c (disable_tiling): Remove.
3699         (get_schedule_for_band): Do not use disable_tiling.
3700         (get_prevector_map): Delete function.
3701         (enable_polly_vector): Remove.
3702         (get_schedule_for_band_list): Remove dead code.
3704 2015-09-11  Aditya Kumar  <aditya.k7@samsung.com>
3706         * graphite-optimize-isl.c (get_tile_map): Refactor.
3707         (get_schedule_for_band): Same.
3708         (getScheduleForBand): Same.
3709         (get_prevector_map): Same.
3710         (get_schedule_for_band_list): Same.
3711         (get_schedule_map): Same.
3712         (get_single_map): Same.
3713         (apply_schedule_map_to_scop): Same.
3714         (optimize_isl): Same.
3716 2015-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3718         PR target/63304
3719         * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
3720         (movtf): Delete.
3721         * config/aarch64/iterators.md (GPF_TF_F16): New.
3722         (GPF_F16): Delete.
3724 2015-09-10  Nathan Sidwell  <nathan@acm.org>
3726         * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
3727         (nvptx_reorg): Adjust comments.
3729 2015-09-15  John David Anglin  <danglin@gcc.gnu.org>
3731         PR bootstrap/67363
3732         * configure.ac: Check if setenv and unsetenv are declared.
3733         * configure: Rebuild.
3734         * config.in: Rebuild.
3735         * system.h: Declare setenv and unsetenv if not declared.
3737 2015-09-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3739         * config/rs6000/rs6000.c (swap_web_entry): Update preceding
3740         commentary to simplify permute mask adjustment equation.
3741         (special_handling_values): Add SH_VPERM.
3742         (const_load_sequence_p): New function.
3743         (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
3744         the mask loaded from the constant pool.
3745         (adjust_vperm): New function.
3746         (handle_special_swappables): Call adjust_vperm.
3747         (dump_swap_insn_table): Handle SH_VPERM.
3749 2015-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3751         * shrink-wrap.c (requires_stack_frame_p): Remove static.
3752         * shrink-wrap.h (requires_stack_frame_p): Put back.
3754 2015-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3756         * reload1.c (elimination_costs_in_insn): Locally turn
3757         -Wmaybe-uninitialized into a warning.
3759 2015-09-10  Segher Boessenkool  <segher@kernel.crashing.org>
3761         * shrink-wrap.c (requires_stack_frame_p): Make static.
3762         (prepare_shrink_wrap): Likewise.
3763         (dup_block_and_redirect): Likewise.
3764         * shrink-wrap.h: Remove declarations of those functions.
3766 2015-09-10  Mark Wielaard  <mjw@redhat.com>
3768         * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
3770 2015-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
3772         PR target/67506
3773         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
3774         missing simplify_gen_subreg.
3776 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3778         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
3779         the vector element is bigger than 64 bit.
3781 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3783         * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
3784         ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
3786 2015-09-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3788         * config/s390/s390.c: Add V1TImode to constant pool modes.
3790 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3792         PR target/67439
3793         * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
3794         predicate.  Set predicable_short_it attr to "no".
3796 2015-09-10  Jiong Wang  <jiong.wang@arm.com>
3798         PR rtl-optimization/67421
3799         * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
3800         left wide shift tranformation.
3802 2015-09-10  Claudiu Zissulescu  <claziss@synopsys.com>
3804         * common/config/arc/arc-common.c: Remove references to A5.
3805         * config/arc/arc-opts.h: Likewise.
3806         * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
3807         * config/arc/arc.opt, config/arc/constraints.md: Likewise.
3808         * config/arc/t-arc-newlib: Likewise.
3810 2015-09-10  Claudiu Zissulescu <claziss@synopsys.com>
3812         * config/arc/arc.md (length): Fix attribute length for conditional
3813         executed instructions with long immediate.
3815 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3817         * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
3818         type for second alternative.
3820 2015-09-10  Markus Trippelsdorf  <markus@trippelsdorf.de>
3822         * doc/invoke.texi (Downloading GCC): Mention
3823         contrib/download_prerequisites script.
3825 2015-09-10  Jakub Jelinek  <jakub@redhat.com>
3827         PR c++/67523
3828         * gimplify.c (gimplify_omp_for): If inner stmt is not found
3829         for combined loop, assert seen_error () and return GS_ERROR.
3831         PR middle-end/67521
3832         * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
3833         if decl is already in outer->variables.
3835         PR middle-end/67517
3836         * gimplify.c (gimplify_scan_omp_clauses): Instead of
3837         asserting that decl is not specified in octx->variables,
3838         break out of the loop if it is.
3840         PR c++/67514
3841         * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
3842         iterator is not explicitly determined, but is defined inside
3843         of the combined workshare region, handle it like if it has
3844         DECL_EXPR in OMP_FOR_PRE_BODY.
3846 2015-09-09  Nathan Sidwell  <nathan@acm.org>
3848         * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
3849         (*cmp<mode>): Add assembler spacing.
3850         (setcc_int<mode>, set_cc_float<mode>): Likewise.
3851         * config/nvptx/nvptx.c (nvptx_option_override): Override debug
3852         level.
3853         (write_func_decl_from_insn): Refactor argument loops & comma emission.
3854         (nvptx_expand_call): Likewise.
3855         (nvptx_output_call_insn): Likewise.
3856         (nvptx_reorg_subreg): Add spacing.
3858 2015-09-09  Marek Polacek  <polacek@redhat.com>
3860         PR middle-end/67512
3861         * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
3862         for comparisons.
3864 2015-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
3866         PR c++/53184
3867         * doc/invoke.texi ([Wsubobject-linkage]): Document.
3869 2015-09-09  Tom de Vries  <tom@codesourcery.com>
3871         * params-list.h: Add missing copyright notice.
3873 2015-09-09  Nathan Sidwell  <nathan@acm.org>
3875         * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
3876         sel_truesi, not andsi.
3878 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3880         * config/arm/arm.md (*subsi3_compare0): Rename to...
3881         (subsi3_compare0): ... This.
3882         (modsi3): New define_expand.
3883         * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
3884         when operand is power of 2.
3886 2015-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3888         * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
3889         (*neg<mode>2_compare0): Rename to...
3890         (neg<mode>2_compare0): ... This.
3891         * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
3892         Move check for speed inside the if-then-elses.  Reflect
3893         CSNEG sequence in MOD by power of 2 case.
3895 2015-09-09  Alan Modra  <amodra@gmail.com>
3897         PR target/67378
3898         * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
3899         reload replacement for PRE_MODIFY address reg.
3901 2015-09-09  Sebastian Pop  <s.pop@samsung.com>
3903         PR tree-optimization/53852
3904         * config.in: Regenerate.
3905         * configure: Regenerate.
3906         * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
3907         * graphite-optimize-isl.c (optimize_isl): Stop computation when
3908         PARAM_MAX_ISL_OPERATIONS is reached.
3909         * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
3910         * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
3911         result equal to isl_stat_ok as the status now can be isl_error_quota.
3912         (subtract_commutative_associative_deps): Same.
3913         (compute_deps): Same.
3915 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
3916             Sebastian Pop  <s.pop@samsung.com>
3918         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
3919         Return the parameter if it was saved in corresponding
3920         parameter_rename_map of the region.
3921         (copy_def): Copy def from sese region to the newly created region.
3922         (copy_internal_parameters): Copy all the internal parameters defined
3923         within a region to the newly created region.
3924         (graphite_regenerate_ast_isl): Copy parameters to the new region before
3925         translating isl to gimple.
3926         * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
3927         the loop-nest does not have any data-references.
3928         (build_graphite_scops): Create a scop only when there is at least one
3929         loop inside it.
3930         (contains_only_close_phi_nodes): Deleted.
3931         (print_graphite_scop_statistics): Deleted
3932         (print_graphite_statistics): Deleted
3933         (limit_scops): Deleted.
3934         (build_scops): Removed call to limit_scops.
3935         * sese.c (new_sese): Construct.
3936         (free_sese): Destruct.
3937         (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
3938         added.
3939         (set_rename): Pass sese region so that parameters inside the region can
3940         be added to its parameter_rename_map.
3941         (rename_uses): Pass sese region.
3942         (graphite_copy_stmts_from_block): Do not copy parameters that have been
3943         generated in the header of the scop. For each SSA_NAME in the
3944         parameter_rename_map rename its usage.
3945         (invariant_in_sese_p_rec): Return false if tree t is defined outside
3946         sese region.
3947         (scalar_evolution_in_region): If the tree t is invariant just return t.
3948         * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
3949         struct sese to keep track of all the parameters which need renaming.
3950         * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
3951         any data-refs.
3952         * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
3954 2015-09-08  Tom de Vries  <tom@codesourcery.com>
3956         * Makefile.in (generated_files): Add params.list.
3957         (params.list, s-params.list): Add rule.
3958         * params.h (enum compiler_param): Include params-list.h.  Move define
3959         DEFPARAM, include params.def and undef DEFPARAM ...
3960         * params-list.h: ... here.  New file.
3962 2015-09-08  David Malcolm  <dmalcolm@redhat.com>
3964         * pretty-print.h (printer_fn): Fix typo in comment.
3966 2015-09-07  Jeff Law  <law@redhat.com>
3968         * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
3970 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3972         * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
3973         (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
3974         (arm_neon_fp16_hw): New.
3976 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3978         * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
3979         UNITS_PER_WORD >= 4.
3981 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
3983         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
3984         aarch64_simd_vec_unpacks_hi_<mode>): New insn.
3985         (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
3986         (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
3987         (aarch64_float_extend_lo_v2df): Rename to...
3988         (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
3990         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
3991         (float_extend_lo): Add v4sf.
3993         * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
3994         * config/aarch64/iterators.md (VQ_HSF): New iterator.
3995         (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
3996         (Vwide): New mode_attr.
3998 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4000         * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
4001         aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
4002         aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
4003         vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
4004         V4HF and V8HF variants to iterator.
4006         * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
4008         * config/aarch64/iterators.md (VDQF_F16): New.
4009         (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
4011 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4013         * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
4014         vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4015         vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
4016         vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
4017         vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
4018         vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4019         vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
4020         vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
4021         vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
4022         vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
4023         vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
4024         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4025         vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
4026         vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
4027         vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
4028         vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
4029         vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
4030         vld1q_dup_f16): New.
4032 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4034         * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
4035         Reparameterize to...
4036         (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
4037         (aarch64_float_truncate_hi_v4sf): Reparameterize to...
4038         (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
4040         * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
4041         v8hf variant.
4042         (float_truncate_lo_): Use BUILTIN_VDF iterator.
4044         * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
4046         * config/aarch64/iterators.md (VDF, Vdtype): New.
4047         (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
4049 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4051         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
4052         * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
4053         (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
4054         Add __builtin_aarch64_simd_hf.
4055         * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
4056         float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
4057         vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
4058         vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
4059         vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
4060         vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
4061         vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
4062         vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
4063         vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
4065         * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
4066         V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
4067         (VDC, Vdbl): Add V4HF.
4069 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4071         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
4072         V4HFmode and V8HFmode.
4073         (aarch64_split_simd_move): Add case for V8HFmode.
4074         * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
4075         (aarch64_simd_builtin_std_type): Handle HFmode.
4076         (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
4078         * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
4079         aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
4080         (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
4082         * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
4083         Float16x8_t.
4085         * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
4086         * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
4087         New typedefs.
4088         (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
4089         vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
4090         vst1q_lane_f16): New.
4091         * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
4092         (VALLDI_F16, VALL_F16): New.
4093         (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
4094         Add cases for V4HF and V8HF.
4095         (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
4097 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4099         * config/arm/arm-builtins.c (VAR11, VAR12): New.
4100         * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
4101         vld4_dup): Add v4hf variant.
4102         (vget_high, vget_low): Add v8hf variant.
4103         (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
4104         vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
4105         v4hf and v8hf variants.
4107         * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
4108         (VDX): Add V4HF.
4109         (V_DOUBLE): Add case for V4HF.
4110         (VQX): Add V8HF.
4111         (V_HALF): Add case for V8HF.
4112         (VDQX): Add V4HF, V8HF.
4113         (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
4114         V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
4116         * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
4117         neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
4118         vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
4119         neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
4120         neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
4121         neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
4122         vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
4123         neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
4124         neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
4126         (neon_vcreate, neon_vreinterpretv8qi<mode>,
4127         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
4128         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
4129         Change VDX to VD_RE.
4131         (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
4132         neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
4133         Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
4135         * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
4136         float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
4137         vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
4138         vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
4139         vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
4140         vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
4141         vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
4142         vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
4143         vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
4145 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4147         * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
4148         vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
4149         vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
4150         vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
4151         vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
4152         vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
4153         vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
4154         vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
4155         vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
4156         vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
4157         New.
4159 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4161         * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
4163         * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
4165         * config/arm/arm-builtins.c (v8hf_UP): New.
4166         (arm_init_simd_builtin_types): Initialise Float16x8_t.
4168         * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
4170         * config/arm/arm_neon.h (float16x8_t): New typedef.
4172 2015-09-08  Alan Lawrence  <alan.lawrence@arm.com>
4174         * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
4175         vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
4176         vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
4177         vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
4178         vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
4179         vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
4180         vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
4181         vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
4182         vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
4183         vreinterpret_u16_f16, vreinterpret_u32_f16): New.
4185 2015-09-07  Ilya Verbin  <ilya.verbin@intel.com>
4187         * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
4188         non-alphanumeric characters in the symbol name.
4190 2015-09-07  Marek Polacek  <polacek@redhat.com>
4192         PR inline-asm/67448
4193         * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
4194         a memory input.
4196 2015-09-07  Marek Polacek  <polacek@redhat.com>
4198         * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
4200 2015-09-04  Paolo Bonzini  <bonzini@gnu.org>
4202         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
4203         not warn.
4205 2015-09-04  Jakub Jelinek  <jakub@redhat.com>
4207         PR middle-end/67452
4208         * tree-ssa-live.c: Include cfgloop.h.
4209         (remove_unused_locals): Clear loop->simduid if simduid is about
4210         to be removed from cfun->local_decls.
4212 2015-09-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4214         PR target/65210
4215         * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
4216         attribute as well.
4218 2015-09-04  Tom de Vries  <tom@codesourcery.com>
4220         * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
4222 2015-09-04  Jeff Law  <law@redhat.com>
4224         * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
4225         unnecessary constructor.  It's now trivial and implemented inside...
4226         * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
4227         constructor.  Add comments to various methods.  Remove unused
4228         private fields.
4229         * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
4230         * tree-vrp.c (identify_jump_threads): Likewise.
4231         * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
4232         indentation issues.
4233         (thread_across_edge): Similarly.
4234         (record_temporary_equivalences_from_stmts_at_dest): Remove unused
4235         arguments in constructor call.
4237 2015-09-04  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
4239         * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
4240         temp path contains a '-'.
4242 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
4243             Petr Murzin  <petr.murzin@intel.com>
4244             Kirill Yukhin  <kirill.yukhin@intel.com>
4246         * config/i386/i386-builtin-types.def
4247         (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
4248         (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
4249         (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
4250         (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
4251         * config/i386/i386.c
4252         (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
4253         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4254         IX86_BUILTIN_SCATTERALTDIV16SI.
4255         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
4256         __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
4257         __builtin_ia32_scatteraltdiv8si.
4258         (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
4259         IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
4260         IX86_BUILTIN_SCATTERALTDIV16SI.
4261         (ix86_vectorize_builtin_scatter): New.
4262         (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
4263         ix86_vectorize_builtin_scatter.
4265 2015-09-04  Andrey Turetskiy  <andrey.turetskiy@intel.com>
4266             Petr Murzin  <petr.murzin@intel.com>
4267             Kirill Yukhin  <kirill.yukhin@intel.com>
4269         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
4270         * doc/tm.texi: Regenerate.
4271         * target.def: Add scatter builtin.
4272         * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
4273         for loads/stores in case of gather/scatter accordingly.
4274         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4275         STMT_VINFO_GATHER_P(S).
4276         (vect_check_gather): Rename to ...
4277         (vect_check_gather_scatter): this.
4278         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
4279         STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
4280         (vect_check_gather_scatter): Use it instead of vect_check_gather.
4281         (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
4282         variable and new checkings for it accordingly.
4283         * tree-vect-stmts.c
4284         (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
4285         STMT_VINFO_GATHER_P(S).
4286         (vect_check_gather_scatter): Use it instead of vect_check_gather.
4287         (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
4289 2015-09-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
4291         * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
4292         define_insn.
4293         (mulv16qi3): New define_expand.
4295 2015-09-03  Martin Sebor  <msebor@redhat.com>
4297         PR c/66516
4298         * doc/extend.texi (Other Builtins): Document when the address
4299         of a built-in function can be taken.
4301 2015-09-03  Richard Biener  <rguenther@suse.de>
4303         * dwarf2out.c (flush_limbo_die_list): Split out from ...
4304         (dwarf2out_early_finish): ... here.
4305         (dwarf2out_finish): Do not call dwarf2out_early_finish but
4306         flush_limbo_die_list.  Assert we have no deferred asm names.
4308 2015-09-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4310         * optabs.c (expand_binop): Don't create a broadcast vector with a
4311         source element wider than the inner mode.
4313 2015-09-03  Richard Biener  <rguenther@suse.de>
4315         * varasm.c (output_constant): Use fold_convert instead of
4316         wide_int_to_tree.
4318 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4320         PR tree-optimization/65637
4321         * omp-low.c (expand_omp_for_static_chunk): Handle case that
4322         fin_bb has 2 predecessors.
4324 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4326         PR tree-optimization/65637
4327         * omp-low.c (find_phi_with_arg_on_edge): New function.
4328         (expand_omp_for_static_chunk): Fix inner loop phi.
4330 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4332         PR tree-optimization/65637
4333         * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
4334         that head is NULL.
4336 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4338         * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
4340 2015-09-03  Tom de Vries  <tom@codesourcery.com>
4342         * doc/invoke.texi (parloops-chunk-size): Add item.
4343         * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
4344         * tree-parloops.c: Include params.h.
4345         (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
4346         param parloops-chunk-size is used.
4348 2015-09-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
4350         PR middle-end/67351
4351         * fold-const.c (fold_binary_loc) : Move
4352         Transform (x >> c) << c into x & (-1<<c) or
4353         transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
4354         types using simplify and match.
4355         * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
4356         (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
4358 2015-09-03  Richard Biener  <rguenther@suse.de>
4360         PR ipa/66705
4361         * tree-ssa-structalias.c (ctor_for_analysis): New function.
4362         (create_variable_info_for_1): Use ctor_for_analysis instead
4363         of get_constructor.
4364         (create_variable_info_for): Likewise.
4366 2015-09-02  Charles Baylis  <charles.baylis@linaro.org>
4368         PR ipa/67280
4369         * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
4370         in new callgraph edge.
4372 2015-09-02  Christophe Lyon  <christophe.lyon@linaro.org>
4374         PR target/59810
4375         PR target/63652
4376         PR target/63653
4377         * config/aarch64/aarch64-simd.md
4378         (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
4379         gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
4380         (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
4381         gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
4383 2015-09-02  Alan Modra  <amodra@gmail.com>
4385         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
4386         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
4387         (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
4389 2015-09-02  Alan Modra  <amodra@gmail.com>
4391         PR target/67417
4392         * config/rs6000/predicates.md (current_file_function_operand): Don't
4393         return true for weak symbols.
4394         * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
4396 2015-09-01  Matthew Fortune  <matthew.fortune@imgtec.com>
4397             Andrew Bennett  <andrew.bennett@imgtec.com>
4399         * config/mips/mips-opts.h (mips_cb_setting): New enum.
4400         * config/mips/mips-protos.h: Add definitions for
4401         mips_output_jump and mips_output_equal_conditional_branch
4402         * gcc/config/mips/mips.c (MIPS_JR): Change to support the
4403         JIC instruction.
4404         (mips_emit_compare): Add support for the MIPS R6 conditional
4405         compact branches.
4406         (mips_process_sync_loop): Likewise.
4407         (mips_output_order_conditional_branch): Likewise.
4408         (mips16_build_call_stub): Change MIPS_CALL to
4409         mips_output_jump.
4410         (mips_print_operand_punctuation): Update 's' case to only
4411         apply to micromips r2.
4412         (mips_adjust_insn_length): Add support for forbidden slot
4413         hazards.
4414         (mips_avoid_hazard): Likewise.
4415         (mips_reorg_process_insns): Likewise.
4416         (mips_output_jump): New function.
4417         (mips_output_equal_conditional_branch): Likewise.
4418         (mips_output_conditional_branch): Use jrc/bc if compact
4419         branch support is enabled.  Ensure the forbidden slots
4420         between the two branch instructions is filled with a nop.
4421         (mips_option_override): Add support to process the compact
4422         branch option and set the correct defaults.  Prevent
4423         non-explict relocs being using for MIPS R6.
4424         (mips_trampoline_init): Add compact branch support.
4425         (mips_mult_zero_zero_cost): Allow zero initialisation of
4426         accumulators with TARGET_DSP.
4427         * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
4428         (TARGET_CB_MAYBE): New define.
4429         (TARGET_CB_ALWAYS): New define.
4430         (ISA_HAS_DELAY_SLOTS): New define.
4431         (ISA_HAS_COMPACT_BRANCHES): New define.
4432         (ISA_HAS_JRC): New define.
4433         (MIPS_BRANCH_C): New define.
4434         (MIPS_CALL): Removed.
4435         (MICROMIPS_J): Removed.
4436         * config/mips/mips.md (compact_form): New attr.
4437         (hazard): Add support for forbidden slots.
4438         (define_delay): Add support for compact branches.
4439         (*branch_order<mode>): Likewise.
4440         (*branch_order<mode>_inverted): Likewise.
4441         (*branch_equality<mode>): Likewise.
4442         (*branch_equality<mode>_inverted): Likewise.
4443         (*jump_absolute): Likewise.
4444         (*jump_pic): Likewise.
4445         (indirect_jump): Use mips_output_jump to produce assembly output.
4446         (tablejump_<mode>"): Likewise.
4447         (*<optab>"): Likewise.
4448         (<optab>_internal): Likewise.
4449         (sibcall_internal): Likewise.
4450         (sibcall_value_internal): Likewise.
4451         (sibcall_value_multiple_internal): Likewise.
4452         (call_internal): Likewise.
4453         (call_split): Likewise.
4454         (call_internal_direct): Likewise.
4455         (call_direct_split): Likewise.
4456         (call_value_internal): Likewise.
4457         (call_value_split): Likewise.
4458         (call_value_internal_direct): Likewise.
4459         (call_value_direct_split): Likewise.
4460         (call_value_multiple_internal): Likewise.
4461         (call_value_multiple_split): Likewise.
4462         (mips_get_fcsr_mips16_<mode>): Likewise.
4463         (mips_set_fcsr_mips16_<mode>): Likewise.
4464         (tls_get_tp_mips16_<mode>): Likewise.
4465         * config/mips/mips.opt: Add -mcompact-branches option.
4466         * config/mips/predicates.md (order_operator): Ensure the
4467         conditional compact branches are only used if the ISA them.
4468         * doc/invoke.texi: Document -mcompact-branches option.
4470 2015-09-01  Vladimir Makarov  <vmakarov@redhat.com>
4472         PR target/61578
4473         * lra-lives.c (process_bb_lives): Process move pseudos with the
4474         same value for copies and preferences
4475         * lra-constraints.c (match_reload): Create match reload pseudo
4476         with the same value from single dying input pseudo.
4478 2015-09-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4480         PR target/67405
4481         * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
4483 2015-09-01  Aldy Hernandez  <aldyh@redhat.com>
4485         * trans-mem.c: Add contributed-by.
4486         * trans-mem.h: Same.
4488 2015-09-01  Richard Biener  <rguenther@suse.de>
4490         * expr.c (expand_expr_real_1): For expanding TERed defs
4491         set the current location to that of the def if not UNKNOWN.
4493 2015-09-01  David Sherwood  <david.sherwood@arm.com>
4495         * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
4497 2015-09-01  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4499         * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
4500         then_cost, else_cost fields.  Change branch_cost field to unsigned int.
4501         (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
4502         Include rtl-iter.h.
4503         (noce_simple_bbs): New function.
4504         (noce_try_move): Bail if basic blocks are not simple.
4505         (noce_try_store_flag): Likewise.
4506         (noce_try_store_flag_constants): Likewise.
4507         (noce_try_addcc): Likewise.
4508         (noce_try_store_flag_mask): Likewise.
4509         (noce_try_cmove): Likewise.
4510         (noce_try_minmax): Likewise.
4511         (noce_try_abs): Likewise.
4512         (noce_try_sign_mask): Likewise.
4513         (noce_try_bitop): Likewise.
4514         (bbs_ok_for_cmove_arith): New function.
4515         (noce_emit_all_but_last): Likewise.
4516         (noce_emit_insn): Likewise.
4517         (noce_emit_bb): Likewise.
4518         (noce_try_cmove_arith): Handle non-simple basic blocks.
4519         (insn_valid_noce_process_p): New function.
4520         (contains_mem_rtx_p): Likewise.
4521         (bb_valid_for_noce_process_p): Likewise.
4522         (noce_process_if_block): Allow non-simple basic blocks
4523         where appropriate.
4525 2015-08-31  Alan Lawrence  <alan.lawrence@arm.com>
4527         * tree-ssa-dom.c (record_equivalences_from_phis,
4528         record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
4529         (lookup_avail_expr): Likewise, and remove comment and unused temp.
4531 2015-09-01  Nick Clifton  <nickc@redhat.com>
4533         * config/msp430/msp430.opt (mcpu): Fix typo.
4535 2015-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4537         * config/aarch64/aarch64.c (aarch64_set_current_function):
4538         Re-layout any vector parameters have non-simd layout.
4539         * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
4540         Delete.
4541         (aarch64_simd_expand_args): Delete call to the above.
4543 2015-08-31  Mike Frysinger  <vapier@gentoo.org>
4545         * doc/invoke.texi (asan-stack): Add space before option.
4547 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
4549         * tree.h (zerop): New function.
4550         * tree.c (zerop): Likewise.
4551         (element_precision): Handle expressions.
4552         * match.pd (define_predicates): Add zerop.
4553         (x <= +Inf): Fix comment.
4554         (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
4555         * fold-const.c (fold_binary_loc): ... here. Remove.
4557 2015-08-31  Richard Biener  <rguenther@suse.de>
4559         PR middle-end/67381
4560         * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
4562 2015-08-31  Marc Glisse  <marc.glisse@inria.fr>
4564         * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
4565         (CEXPI): New operator list.
4566         (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
4567         imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
4568         Converted from ...
4569         * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
4571 2015-08-31  Tom de Vries  <tom@codesourcery.com>
4573         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
4574         (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
4575         parameter.
4576         (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
4577         (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
4578         (rewrite_into_loop_closed_ssa): ... here.
4579         (replace_uses_in_dominated_bbs): Remove function.
4580         (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
4581         rewrite_into_loop_closed_ssa_1.
4583 2015-08-31  Michael Matz  <matz@suse.de>
4585         * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
4586         enter entry and exit blocks for reverse post order.
4588 2015-08-31  Richard Biener  <rguenther@suse.de>
4590         * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
4591         (lto_location_cache::current_sysp): Likewise.
4592         (output_block::current_sysp): Likewise.
4593         * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
4594         (lto_location_cache::apply_location_cache): Properly record
4595         system header locations.
4596         (lto_location_cache::input_location): Input whether a file
4597         is a system header.
4598         * lto-streamer-out.c (lto_output_location): Stream whether a file
4599         is a system header.
4601 2015-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4603         PR bootstrap/67363
4604         * gcc.c (env_manager::xput): Replace strndup by xstrndup.
4606 2015-08-31  Tom de Vries  <tom@codesourcery.com>
4608         * tree-ssa-loop-manip.c (find_uses_to_rename_use)
4609         (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
4610         Improve function header comments.
4612 2015-08-30  Michael Collison  <michael.collison@linaro.org>
4614         PR other/67320
4615         * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
4616         standard names
4618 2015-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4620         * config/rs6000/rs6000.c (swap_web_entry): Enlarge
4621         special_handling bitfield.
4622         (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
4623         (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
4624         that represents a general xxpermdi.
4625         (insn_is_swappable_p): Add handling for vec_concat of two
4626         doublewords, which maps to a specific xxpermdi.
4627         (adjust_xxpermdi): New function.
4628         (adjust_concat): Likewise.
4629         (handle_special_swappables): Call adjust_xxpermdi and
4630         adjust_concat.
4631         (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
4633 2015-08-30  Rich Felker <dalias@libc.org>
4635         * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
4636         case instead of sh[123456ble]-*-*.
4638 2015-08-29  Anatoly Sokolov  <aesok@post.ru>
4640         * ira.c (print_unform_and_important_classes,
4641         print_translated_classes): Remove reg_class_names static array.
4642         (print_unform_and_important_classes): Rename to ...
4643         (print_uniform_and_important_classes): ... this.
4644         (ira_debug_allocno_classes): Update accordingly.
4646 2015-08-29  Tom de Vries  <tom@codesourcery.com>
4648         PR tree-optimization/46193
4649         * omp-low.c (omp_reduction_init): Handle pointer type for min or max
4650         clause.
4652 2015-08-28  Jeff Law  <law@redhat.com>
4654         PR lto/66752
4655         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
4656         unable to find X NE 0 in the tables, return X as the simplified
4657         condition.
4658         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
4659         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
4660         to VISISTED_BBS.
4661         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
4662         after removing the control flow statement and unnecessary edges.
4664 2015-08-28  Alan Lawrence  <alan.lawrence@arm.com>
4666         Revert:
4667         2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
4669         PR tree-optimization/67283
4670         * tree-sra.c (type_consists_of_records_p): Rename to...
4671         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4673         (completely_scalarize_record): Rename to...
4674         (completely_scalarize): ...this, add ARRAY_TYPE case, move some
4675         code to:
4676         (scalarize_elem): New.
4678 2015-08-28  Jiong Wang  <jiong.wang@arm.com>
4680         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
4681         SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
4682         (aarch64_symbol_type): Likewise.
4683         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4684         Likewise.
4685         (aarch64_expand_mov_immediate): Likewise.
4686         (aarch64_print_operand): Likewise.
4687         (aarch64_classify_tls_symbol): Likewise.
4689 2015-08-28  Richard Biener  <rguenther@suse.de>
4691         * cgraphunit.c (symbol_table::compile): Move early debug generation
4692         and finish...
4693         (symbol_table::finalize_compilation_unit): ... back here and
4694         add a !seen_error () guard.
4696 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
4698         * toplev.c (process_options): Do not use flag_loop_block,
4699         flag_loop_interchange, and flag_loop_strip_mine.  Add check for
4700         flag_loop_optimize_isl.
4702 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
4704         * Makefile.in (OBJS): Remove graphite-blocking.o and
4705         graphite-interchange.o.
4706         * common.opt (floop-strip-mine, floop-interchange, floop-block):
4707         Alias of floop-nest-optimize.
4708         * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
4709         Document as alias of -floop-nest-optimize.
4710         * graphite-blocking.c: Remove.
4711         * graphite-interchange.c: Remove.
4712         * graphite-optimize-isl.c: Include dumpfile.h.
4713         (getScheduleForBand): Add dump for tiled loops.  Use
4714         PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
4715         * graphite-poly.c (scop_max_loop_depth): Remove.
4716         (print_scattering_function_1): Remove.
4717         (print_scattering_function): Remove.
4718         (print_scattering_functions): Remove.
4719         (debug_scattering_function): Remove.
4720         (debug_scattering_functions): Remove.
4721         (apply_poly_transforms): Remove use of flag_loop_block,
4722         flag_loop_strip_mine, and flag_loop_interchange.
4723         (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
4724         PBB_ORIGINAL.
4725         (print_pdr_access_layout): Remove.
4726         (print_pdr): Print ISL representation.
4727         (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
4728         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
4729         (free_scop): Same.
4730         (openscop_print_pbb_domain): Remove.
4731         (print_pbb): Remove call to print_scattering_function.
4732         (openscop_print_scop_context): Remove.
4733         (print_scop_context): Do not print matrices anymore.
4734         (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
4735         SCOP_TRANSFORMED_SCHEDULE.
4736         (print_isl_set): Add printing of a new line.
4737         (print_isl_map): Same.
4738         (print_isl_aff): Same.
4739         (print_isl_constraint): Same.
4740         (loop_to_lst): Remove.
4741         (scop_to_lst): Remove.
4742         (lst_indent_to): Remove.
4743         (print_lst): Remove.
4744         (debug_lst): Remove.
4745         (dot_lst_1): Remove.
4746         (dot_lst): Remove.
4747         (reverse_loop_at_level): Remove.
4748         (reverse_loop_for_pbbs): Remove.
4749         * graphite-poly.h (pdr_dim_iter_domain): Remove.
4750         (pdr_nb_params): Remove.
4751         (pdr_alias_set_dim): Remove.
4752         (pdr_subscript_dim): Remove.
4753         (pdr_iterator_dim): Remove.
4754         (pdr_parameter_dim): Remove.
4755         (same_pdr_p): Remove.
4756         (struct poly_scattering): Remove.
4757         (struct poly_bb): Remove _original, _transformed, _saved.
4758         (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
4759         (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
4760         (PBB_NB_LOCAL_VARIABLES): Remove.
4761         (PBB_NB_SCATTERING_TRANSFORM): Remove.
4762         (schedule_to_scattering): Remove.
4763         (number_of_write_pdrs): Remove.
4764         (pbb_dim_iter_domain): Remove.
4765         (pbb_nb_params): Remove.
4766         (pbb_nb_scattering_orig): Remove.
4767         (pbb_nb_scattering_transform): Remove.
4768         (pbb_nb_dynamic_scattering_transform): Remove.
4769         (pbb_nb_local_vars): Remove.
4770         (pbb_iterator_dim): Remove.
4771         (pbb_parameter_dim): Remove.
4772         (psco_scattering_dim): Remove.
4773         (psct_scattering_dim): Remove.
4774         (psct_local_var_dim): Remove.
4775         (psco_iterator_dim): Remove.
4776         (psct_iterator_dim): Remove.
4777         (psco_parameter_dim): Remove.
4778         (psct_parameter_dim): Remove.
4779         (psct_dynamic_dim): Remove.
4780         (psct_static_dim): Remove.
4781         (psct_add_local_variable): Remove.
4782         (new_lst_loop): Remove.
4783         (new_lst_stmt): Remove.
4784         (free_lst): Remove.
4785         (copy_lst): Remove.
4786         (lst_add_loop_under_loop): Remove.
4787         (lst_depth): Remove.
4788         (lst_dewey_number): Remove.
4789         (lst_dewey_number_at_depth): Remove.
4790         (lst_pred): Remove.
4791         (lst_succ): Remove.
4792         (lst_find_pbb): Remove.
4793         (find_lst_loop): Remove.
4794         (lst_find_first_pbb): Remove.
4795         (lst_empty_p): Remove.
4796         (lst_find_last_pbb): Remove.
4797         (lst_contains_p): Remove.
4798         (lst_contains_pbb): Remove.
4799         (lst_create_nest): Remove.
4800         (lst_remove_from_sequence): Remove.
4801         (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
4802         (lst_niter_for_loop): Remove.
4803         (pbb_update_scattering): Remove.
4804         (lst_update_scattering_under): Remove.
4805         (lst_update_scattering): Remove.
4806         (lst_insert_in_sequence): Remove.
4807         (lst_replace): Remove.
4808         (lst_substitute_3): Remove.
4809         (lst_distribute_lst): Remove.
4810         (lst_remove_all_before_including_pbb): Remove.
4811         (lst_remove_all_before_excluding_pbb): Remove.
4812         (struct scop): Remove original_schedule, transformed_schedule, and
4813         saved_schedule.
4814         (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
4815         (SCOP_SAVED_SCHEDULE): Remove.
4816         (poly_scattering_new): Remove.
4817         (poly_scattering_free): Remove.
4818         (poly_scattering_copy): Remove.
4819         (store_scattering_pbb): Remove.
4820         (store_lst_schedule): Remove.
4821         (restore_lst_schedule): Remove.
4822         (store_scattering): Remove.
4823         (restore_scattering_pbb): Remove.
4824         (restore_scattering): Remove.
4825         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4826         Remove scattering_dimensions.  Do not use pbb_dim_iter_domain:
4827         compute the scattering polyhedron dimension from the dimension of
4828         pbb->domain.
4829         (build_scop_scattering): Update call to
4830         build_pbb_scattering_polyhedrons.
4831         (build_poly_scop): Remove call to scop_to_lst.
4832         * graphite.c (graphite_transform_loops): Add call to print_scop.
4833         (gate_graphite_transforms): Remove use of flag_loop_block,
4834         flag_loop_interchange, and flag_loop_strip_mine.
4836 2015-08-27  Sebastian Pop  <s.pop@samsung.com>
4838         * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
4839         * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
4840         -floop-nest-optimize.
4841         * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
4842         (generate_luj_sepclass): Remove.
4843         (generate_luj_options): Remove.
4844         (set_options): Remove opt_luj.
4845         (scop_to_isl_ast): Remove opt_luj.
4846         * graphite-optimize-isl.c (getScheduleForBand): Remove check for
4847         flag_loop_unroll_jam.
4848         (getPrevectorMap_full): Remove.
4849         (getScheduleForBandList): Remove map_sepcl.
4850         (getScheduleMap): Same.
4851         (apply_schedule_map_to_scop): Remove sepcl.
4852         (optimize_isl): Same.
4853         * graphite-poly.c (apply_poly_transforms): Remove check for
4854         flag_loop_unroll_jam.
4855         (new_poly_bb): Remove map_sepclass.
4856         * graphite-poly.h (struct poly_bb): Same.
4857         * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
4858         * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
4859         (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
4860         * toplev.c (process_options): Remove flag_loop_unroll_jam.
4862 2015-08-27  Uros Bizjak  <ubizjak@gmail.com>
4864         PR target/67317
4865         * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
4866         (addqi3_cc): Ditto.
4867         (UNSPEC_ADD_CARRY): Remove.
4868         (addqi3_cconly_overflow): New expander.
4869         (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
4870         Adjust for changed add<mode>3_carry.
4871         (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
4872         (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
4873         (<plusminus_insn><mode>3_carry): Remove expander.
4874         (*<plusminus_insn><mode>3_carry): Split insn pattern to
4875         add<mode>3_carry and sub<mode>3_carry.
4876         (plusminus_carry_mnemonic): Remove code attribute.
4877         (add<mode>3_carry): Canonicalize insn pattern.
4878         (*addsi3_carry_zext): Ditto.
4879         (sub<mode>3_carry): Ditto.
4880         (*subsi3_carry_zext): Ditto.
4881         (adcx<mode>3): Remove insn pattern.
4882         (addcarry<mode>): New insn pattern.
4883         (subborrow<mode>): Ditto.
4884         * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
4885         gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
4886         (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
4887         case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
4888         case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
4889         CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
4890         Rewrite expander to not clobber carry flag chains.
4892 2015-08-27  Pat Haugen  <pthaugen@us.ibm.com>
4894         * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
4895         instead of a rotate.
4897 2015-08-27  Marek Polacek  <polacek@redhat.com>
4899         PR middle-end/67005
4900         * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
4901         an entry into an irreducible region.
4903 2015-08-27  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4905         * configure: Regenerate.
4907 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
4909         PR tree-optimization/67283
4910         * tree-sra.c (type_consists_of_records_p): Rename to...
4911         (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
4913         (completely_scalarize_record): Rename to...
4914         (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
4915         (scalarize_elem): New.
4917 2015-08-27  Alan Lawrence  <alan.lawrence@arm.com>
4919         * tree-sra.c (completely_scalarize_var): Rename to...
4920         (create_total_scalarization_access): ... Here. Drop call to
4921         completely_scalarize_record.
4923         (analyze_all_variable_accesses): Replace completely_scalarize_var
4924         with create_total_scalarization_access and completely_scalarize_record.
4926 2015-08-27  Alan Modra  <amodra@gmail.com>
4928         PR target/67356
4929         * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
4930         for operand 1.
4932 2015-08-27  Richard Biener  <rguenther@suse.de>
4934         * passes.c (rest_of_decl_compilation): Guard early_global_decl
4935         call with !seen_error ().
4936         * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
4937         early debug generation and finish...
4938         (symbol_table::compile): ... here to put it after a !seen_error ()
4939         guard.
4941 2015-08-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4943         * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
4944         Solaris 12+.
4946 2015-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4947             Andre Vieira  <andre.simoesdiasvieira@arm.com>
4949         * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
4950         (*cb<optab><mode>1): Likewise.
4951         (*tb<optab><mode>1): Likewise.
4952         (*cb<optab><mode>1): Likewise.
4953         * config/aarch64/iterators.md (inv_cb): New code attribute.
4954         (inv_tb): Likewise.
4955         * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
4956         * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
4958 2015-08-27  Richard Biener  <rguenther@suse.de>
4960         * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
4962 2015-08-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4964         * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
4965         trap to fix ICE.
4967 2015-08-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
4969         * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
4970         Add declaration.
4972         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
4973         comment.
4974         (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
4975         floating point in VSX registers.
4976         (rs6000_output_move_128bit): Always print out the set insn if we
4977         can't generate an appropriate 128-bit move.
4978         (rs6000_generate_compare): Add support for IEEE 128-bit floating
4979         point in VSX registers comparisons.
4980         (rs6000_expand_float128_convert): Likewise.
4982         * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
4983         predicate for only GPR hard registers.
4985         * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
4986         modes to iterators. Add new iterators for moving 128-bit values in
4987         scalar FPR registers and VSX registers.
4988         (FMOVE128): Likewise.
4989         (FMOVE128_FPR): Likewise.
4990         (FMOVE128_GPR): Likewise.
4991         (FMOVE128_VSX): Likewise.
4992         (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
4993         in VSX registers.
4994         (IFKF): Likewise.
4995         (IBM128): Likewise.
4996         (TFIFKF): Likewise.
4997         (RELOAD): Add IEEE 128-bit floating point modes.
4998         (signbittf2): Convert TF insns to add support for new IEEE 128-bit
4999         floating point in VSX registers modes.
5000         (signbit<mode>2, IBM128 iterator): Likewise.
5001         (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
5002         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5003         (negtf2): Likewise.
5004         (neg<mode>2, TFIFKF iterator): Likewise.
5005         (negtf2_internal): Likewise.
5006         (abstf2): Likewise.
5007         (abs<mode>2, TFIFKF iterator): Likewise.
5008         (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
5009         VSX insn support for negate, absolute value, and negative absolute
5010         value.
5011         (ieee_128bit_vsx_neg<mode>2): Likewise.
5012         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
5013         (ieee_128bit_vsx_abs<mode>2): Likewise.
5014         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
5015         (ieee_128bit_vsx_nabs<mode>2): Likewise.
5016         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
5017         (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
5018         floating point in VSX registers.
5019         (unpack<mode>_dm): Likewise.
5020         (unpack<mode>_nodm): Likewise.
5021         (pack<mode>): Likewise.
5022         (unpackv1ti): Likewise.
5023         (unpack<mode>, FMOVE128_VSX iterator): Likewise.
5024         (packv1ti): Likewise.
5025         (pack<mode>, FMOVE128_VSX iterator): Likewise.
5026         (extenddftf2): Add support for IEEE 128-bit floating point in VSX
5027         registers.
5028         (extenddftf2_internal): Likewise.
5029         (trunctfdf2): Likewise.
5030         (trunctfdf2_internal2): Likewise.
5031         (fix_trunc_helper): Likewise.
5032         (fix_trunctfdi2"): Likewise.
5033         (floatditf2): Likewise.
5034         (floatuns<mode>tf2): Likewise.
5035         (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
5036         (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
5037         (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
5038         (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
5039         (float<SDI:mode><IFKF:mode>2): Likewise.
5040         (floatuns<SDI:mode><IFKF:mode>2): Likewise.
5042 2015-08-26  Renlin Li  <renlin.li@arm.com>
5044         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
5046 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5047             Jiong Wang  <jiong.wang@arm.com>
5049         * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
5050         (tlsie_tiny_<mode>): New define_insn.
5051         (tlsie_tiny_sidi): Likewise.
5052         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
5053         SYMBOL_TINY_TLSIE.
5054         (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
5055         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
5056         SYMBOL_TINY_TLSIE.
5057         (aarch64_expand_mov_immediate): Likewise.
5058         (aarch64_print_operand): Likewise.
5059         (arch64_classify_tls_symbol): Likewise.
5061 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5063         * config/arm/arm-arches.def: Replace single value flags with
5064         an initializer built from ARM_FSET_MAKE_CPU1.
5065         * config/arm/arm-cores.def: Likewise.
5066         * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
5067         derivation from the ARM_CORE macro definition, use the given value
5068         instead.
5069         (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
5070         ARM_ARCH macro definition, use the given value instead.
5072 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5074         * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
5075         feature set.
5076         (struct builtin_description): Replace field mask with field
5077         features.
5078         (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
5079         (IWMMXT2_BUILTIN): Likewise.
5080         (IWMMXT2_BUILTIN2): Likewise.
5081         (FP_BUILTIN): Likewise.
5082         (CRC32_BUILTIN): Likewise.
5083         (CRYPTO_BUILTIN): Likewise.
5084         (iwmmx_mbuiltin): Likewise.
5085         (iwmmx2_mbuiltin): Likewise.
5086         (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
5087         struct builtin_description.
5089 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5091         * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
5092         (struct builtin_description): Change type of mask to unsigned
5093         long.
5094         * config/arm/arm-protos.h (insn_flags): Declare as type
5095         arm_feature_set.
5096         (tune_flags): Likewise.
5097         * config/arm/arm.c (feature_count): New.
5098         (insn_flags): Define as type arm_feature_set.
5099         (tune_flags): Likewise.
5100         (struct processors): Define field flags as type arm_feature_set.
5101         (all_cores): Update for change to struct processors.
5102         (all_architectures): Likewise.
5103         (arm_option_check_internal): Use arm_feature_set and ARM_FSET
5104         macros.
5105         (arm_option_override_internal): Likewise.
5106         (arm_option_override): Likewise.
5108 2015-08-26  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5109             Jiong Wang  <jiong.wang@arm.com>
5111         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
5112         tls size for tiny, small, large memory model.
5113         (aarch64_load_symref_appropriately): Support new symbol types.
5114         (aarch64_expand_mov_immediate): Likewise.
5115         (aarch64_print_operand): Likewise.
5116         (aarch64_classify_tls_symbol): Likewise.
5117         * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
5118         (aarch64_symbol_type): Likewise.
5119         * config/aarch64/aarch64.md (tlsle): Deleted.
5120         (tlsle12_<mode>): New define_insn.
5121         (tlsle24_<mode>): Likewise.
5122         (tlsle32_<mode>): Likewise.
5123         (tlsle48_<mode>): Likewise.
5124         * doc/sourcebuild.texi (AArch64-specific attributes): Document
5125         "aarch64_tlsle32".
5127 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5129         * config/arm/arm-protos.h (FL_NONE): New.
5130         (FL_ANY): New.
5131         (arm_feature_set): New.
5132         (ARM_FSET_MAKE): New.
5133         (ARM_FSET_MAKE_CPU1): New.
5134         (ARM_FSET_MAKE_CPU2): New.
5135         (ARM_FSET_CPU1): New.
5136         (ARM_FSET_CPU2): New.
5137         (ARM_FSET_EMPTY): New.
5138         (ARM_FSET_ANY): New.
5139         (ARM_FSET_HAS_CPU1): New.
5140         (ARM_FSET_HAS_CPU2): New.
5141         (ARM_FSET_HAS_CPU): New.
5142         (ARM_FSET_ADD_CPU1): New.
5143         (ARM_FSET_ADD_CPU2): New.
5144         (ARM_FSET_DEL_CPU1): New.
5145         (ARM_FSET_DEL_CPU2): New.
5146         (ARM_FSET_UNION): New.
5147         (ARM_FSET_INTER): New.
5148         (ARM_FSET_XOR): New.
5149         (ARM_FSET_EXCLUDE): New.
5150         (AFM_FSET_IS_EMPTY): New.
5151         (ARM_FSET_CPU_SUBSET): New.
5153 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
5155         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
5156         SYMBOL_TLSLE to SYMBOL_TLSLE24.
5157         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
5158         Likewise.
5159         (aarch64_expand_mov_immediate): Likewise.
5160         (aarch64_print_operand): Likewise.
5161         (aarch64_classify_symbol): Likewise.
5163 2015-08-26  Jiong Wang  <jiong.wang@arm.com>
5165         * config/aarch64/aarch64.opt (mtls-size): New entry.
5166         * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
5167         (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
5168         * doc/invoke.texi (AArch64 Options): Document -mtls-size.
5170 2015-08-26  Matthew Wahab  <matthew.wahab@arm.com>
5172         * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
5173         ARM_CORE entry.  Fix some white-space.
5174         * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
5175         ARM_CORE definition.
5177 2015-08-26  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5179         * fold-const.c (fold_binary_loc) : Move Optimize
5180         root(x)*root(y) as root(x*y) to match.pd.
5181         Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
5182         Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
5183         Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
5184         Move Optimize x/expN(y) into x*expN(-y) to match.pd.
5185         * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
5186         (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
5187         (mult (exps:s @0) (exps:s @1)) : New simplifier.
5188         (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
5189         (rdiv @0 (exps:s @1)) : New simplifier.
5191 2015-08-25  Joseph Myers  <joseph@codesourcery.com>
5193         * gcc.c (driver::finalize): Only assign to extra_specs if
5194         [EXTRA_SPECS].
5196 2015-08-25  Marek Polacek  <polacek@redhat.com>
5198         PR middle-end/67330
5199         * varasm.c (declare_weak): Return after giving an error.
5201 2015-08-25  David Malcolm  <dmalcolm@redhat.com>
5203         * gcc-main.c (main): Add params to driver ctor.
5204         * gcc.c (class env_manager): New.
5205         (env): New global.
5206         (env_manager::init): New.
5207         (env_manager::get): New.
5208         (env_manager::xput): New.
5209         (env_manager::restore): New.
5210         Poison getenv and putenv.
5211         (DEFAULT_TARGET_SYSTEM_ROOT): New.
5212         (target_system_root): Update initialization to use
5213         DEFAULT_TARGET_SYSTEM_ROOT.
5214         (struct spec_list): Add field "default_ptr".
5215         (INIT_STATIC_SPEC): Initialize new field "default_ptr".
5216         (init_spec): Likewise.
5217         (set_spec): Clear field "default_ptr".
5218         (read_specs): Free "spec" and "buffer".
5219         (xputenv): Reimplement in terms of env_manager.
5220         (process_command): Replace ::getenv calls with calls to the
5221         env_manager singleton.
5222         (process_brace_body): Free string in three places.
5223         (driver::driver): New.
5224         (driver::~driver): New.
5225         (used_arg): Convert from a function to...
5226         (class used_arg_t): ...this class, and...
5227         (used_arg): ...this new global instance.
5228         (used_arg_t::finalize): New function.
5229         (getenv_spec_function): Add "const" to local "value".  Replace
5230         ::getenv call with call to the env_manager singleton.
5231         (path_prefix_reset): New function.
5232         (driver::finalize): New function.
5233         * gcc.h (driver::driver): New.
5234         (driver::~driver): New.
5235         (driver::finalize): New.
5237 2015-08-25  Nathan Sidwell  <nathan@acm.org>
5239         * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
5240         target doesn't have one.
5242 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
5244         PR target/67346
5245         * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
5247 2015-08-25  Segher Boessenkool  <segher@kernel.crashing.org>
5249         PR target/67344
5250         * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
5251         a define_insn, remove second alternative.
5253 2015-08-25  Thomas Schwinge  <thomas@codesourcery.com>
5254             Joseph Myers  <joseph@codesourcery.com>
5256         * gcc.c (struct switchstr): Expand comment.
5258 2015-08-25  Nathan Sidwell  <nathan@acm.org>
5260         * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
5261         (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
5263 2015-08-25  Richard Biener  <rguenther@suse.de>
5265         PR middle-end/67306
5266         * genmatch.c (expr::gen_transform): Verify the result of
5267         builtin_decl_implicit.
5268         (dt_simplify::gen_1): Likewise.
5270 2015-08-25  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5272         * config/arm/constraints.md: Also list Cs and US ARM-specific
5273         constraints as used.
5275 2015-08-24  Kaz Kojima  <kkojima@gcc.gnu.org>
5277         PR target/66609
5278         * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
5279         UNSPEC_PCREL.
5280         (nonpic_symbol_mentioned_p): Likewise.
5281         (sh_delegitimize_address): Likewise.
5282         (sh_function_ok_for_sibcall): Take into account weak symbols.
5283         (sh_expand_sym_label2reg): New.
5284         * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
5285         * config/sh/sh.md (UNSPEC_PCREL): New enum.
5286         (call_pcrel): Use sh_expand_sym_label2reg.
5287         (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5288         (symPCREL_label2reg) New expand.
5290 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
5292         * graphite-poly.c: Change type of region from void* to sese.
5293         * graphite-poly.h (struct scop): Changing the type of scop::region
5294         from void* to sese. Change accessor macro accordingly.
5295         * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
5297 2015-08-24  Aditya Kumar  <aditya.k7@samsung.com>
5299         * graphite-scop-detection.c (stmt_simple_for_scop_p):
5300         Constrain only on INTEGER_TYPE.
5302 2015-08-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
5304         PR target/67211
5305         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
5306         -mefficient-unaligned-vsx on ISA 2.7.
5308         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
5309         option to a masked option.
5311         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
5312         logic for -mefficient-unaligned-vsx so that it is set via an arch
5313         ISA option, instead of being set if -mtune=power8 is set. Move
5314         -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
5315         near other default option handling.
5317 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5319         * genflags.c (gen_macro): Delete.
5320         (gen_proto): Don't create GEN.*CALL.* macros.
5321         * gensupport.h (get_file_location): Declare.
5322         * gensupport.c (rtx_locs): New variable.
5323         (read_md_rtx): Record rtx locations.
5324         (get_file_location): New function.
5325         * target-insns.def (call, call_pop, call_value, call_value_pop)
5326         (sibcall, sibcall_value): New patterns.
5327         * gentarget-def.c (parse_argument): New function.
5328         (def_target_insn): Use it.  Handle optional operands.  Raise an
5329         error if an .md pattern has the wrong number of operands for the
5330         pattern name.  Remove the names of unused operands from the prototype.
5331         * builtins.c (expand_builtin_apply): Use targetm functions
5332         instead of HAVE_call_value and GEN_CALL_VALUE.
5333         * calls.c (emit_call_1): Likewise.  Remove support for sibcall_pop
5334         and sibcall_value_pop.
5335         * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
5336         of GEN_CALL.
5337         * config/alpha/alpha.md (untyped_call): Likewise.
5338         * config/iq2000/iq2000.md (untyped_call): Likewise.
5339         * config/m68k/m68k.md (untyped_call): Likewise.
5340         * config/mips/mips.md (untyped_call): Likewise.
5341         * config/pa/pa.md (untyped_call): Likewise.
5342         * config/rs6000/rs6000.md (untyped_call): Likewise.
5343         * config/sparc/sparc.md (untyped_call): Likewise.
5344         * config/tilegx/tilegx.md (untyped_call): Likewise.
5345         * config/tilepro/tilepro.md (untyped_call): Likewise.
5346         * config/visium/visium.md (untyped_call): Likewise.
5347         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
5348         gen_call_value instead of GEN_CALL_VALUE.
5349         * config/arm/arm.md (untyped_call): Likewise.
5350         * config/cr16/cr16.c (cr16_function_arg): Remove reference to
5351         GEN_CALL.
5353 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5355         * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
5356         (have_cbranchcc4): New variable.
5357         (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
5358         (noce_get_condition): Use it instead of HAVE_cbranchcc4.
5359         (if_convert): Initialize have_cbranchcc4.
5361 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5363         * builtins.c (expand_cmpstrn): Rename to...
5364         (expand_cmpstrn_or_cmpmem): ...this.
5365         (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
5366         (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
5367         Remove mode argument.
5368         (expand_builtin): Update accordingly.
5370 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5372         * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
5373         (expand_builtin_strcmp, expand_builtin_strncmp): Use them.  Remove
5374         references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
5375         * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
5376         Add predicates for operands 0 and 3.
5377         * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
5378         operand.
5379         * config/sh/sh.md (cmpstrnsi): Change the length predicate from
5380         immediate_operand to nonmemory_operand.
5382 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5384         * df-scan.c (df_insn_info_init_fields): New function, split out
5385         from...
5386         (df_insn_create_insn_record): ...here.
5387         (df_insn_info_free_fields): New function, split out from...
5388         (df_insn_info_delete): ...here.
5389         (df_insn_rescan): Use the new functions instead of freeing and
5390         reallocating the df_insn_info.
5392 2015-08-24  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5394         * doc/install.texi (Binaries): Remove links no longer valid.
5396 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5398         * config/nvptx/mkoffload.c (process): Replace
5399         GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
5401 2015-08-24  H.J. Lu  <hongjiu.lu@intel.com>
5403         PR target/67329
5404         * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
5406 2015-08-24  Renlin Li  <renlin.li@arm.com>
5408         * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
5409         * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
5410         * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
5411         * config/arm/constraints.md ("j"): Add check for high code.
5413 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5415         PR tree-optimization/65468
5416         * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
5417         chunk_size is one.
5419 2015-08-24  Nathan Sidwell  <nathan@acm.org>
5421         * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
5422         change to nvptx_type_from_mode call. Use arg_promotion for both
5423         split and non-split args.
5425 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5427         * target-insns.def (movstr): New pattern.
5428         * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
5429         (expand_movstr): Use targetm rather than HAVE_movstr/
5430         CODE_FOR_movstr.
5432 2015-08-24  Richard Sandiford  <richard.sandiford@arm.com>
5434         * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
5435         cast syntax.
5437 2015-08-24  Andrew Pinski  <apinski@cavium.com>
5439         * config/aarch64/aarch64-tuning-flags.def: Remove all index to
5440         AARCH64_EXTRA_TUNING_OPTION.
5441         * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
5442         New enum.
5443         (aarch64_extra_tuning_flags): Base the shifted value on the index
5444         instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
5445         * config/aarch64/aarch64.c: Remove the last argument to
5446         AARCH64_EXTRA_TUNING_OPTION.
5448 2015-08-23  Nathan Sidwell  <nathan@acm.org>
5450         * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
5451         decls.
5452         (nvptx_declare_function_name): Insert formatting tabs for
5453         consistency.
5455 2015-08-23  Tom de Vries  <tom@codesourcery.com>
5457         * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
5458         parm_decl, rather than generating a dummy default def in cfun.
5459         * tree-cfg.c (replace_ssa_name): Assume no default defs.  Make sure
5460         ssa_name from cfun and child_fn do not share a stmt as def stmt.
5461         (move_stmt_op): Handle PARM_DECl.
5462         (gather_ssa_name_hash_map_from): New function.
5463         (move_sese_region_to_fn): Add default defs for function params, and add
5464         them to vars_map.  Release copied ssa names.
5465         * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
5467 2015-08-23  Tom de Vries  <tom@codesourcery.com>
5469         * doc/sourcebuild.texi: Rename vect_no_int_max with
5470         vect_no_int_min_max.  Update description.
5472 2015-08-22  Andrew Pinski  <apinski@cavium.com>
5474          * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
5475         * config/aarch64/aarch64-protos.h
5476         (aarch64_fusion_pairs_index): New enum.
5477         (aarch64_fusion_pairs): Base the shifted value on the index instead
5478         Rewrite AARCH64_FUSE_ALL to be based on the end index.
5479         of the argument to AARCH64_FUSION_PAIR.
5480         * config/aarch64/aarch64.c: Remove the last argument to
5481         AARCH64_FUSION_PAIR.
5483 2015-08-22  Mikhail Maltsev <maltsevm@gmail.com>
5485         * dominance.c (new_zero_array): Define.
5486         (dom_info): Redefine as class with proper encapsulation.
5487         (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
5488         Add new members.
5489         (dom_info::dom_info, ~dom_info): Define.  Use new/delete for memory
5490         allocations/deallocations.  Pass function as parameter (instead of
5491         using cfun).
5492         (dom_info::get_idom): Define accessor method.
5493         (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
5494         link_roots, calc_idoms): Redefine as class members.  Do not use cfun.
5495         (calculate_dominance_info): Adjust to use dom_info class.
5496         (verify_dominators): Likewise.
5498 2015-08-21  Alexandre Oliva  <aoliva@redhat.com>
5500         * print-rtl.c (print_rtx): Check the correct range for
5501         flag_dump_unnumbered_links to behave as documented.
5503         PR rtl-optimization/67227
5504         PR rtl-optimization/64164
5505         * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
5506         (nonoverlapping_memrefs_p): Test offsets and sizes when given
5507         identical gimple_reg exprs.
5509 2015-08-21  Nathan Sidwell  <nathan@acm.org>
5511         * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
5512         expansion.
5513         * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
5514         crtl->stack_alignment_needed to determine alignment.
5515         (nvptx_get_drap_rtx): New.
5516         (TARGET_GET_DRAP_RTX): Override.
5517         * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
5519 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5521         * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
5523 2015-08-21  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5525         * configure.ac: Remove uwin* cases.
5526         * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
5527         i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
5528         i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
5529         i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
5530         * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
5531         i[34567]86-*-uwin*, powerpc-*-beos*.
5533 2015-08-21  Richard Sandiford  <richard.sandiford@arm.com>
5535         * gencodes.c (gencodes): Print the comma for the preceding
5536         enum value rather than the current one.  Use aliased enum values
5537         rather than #defines for compiled-out patterns.
5538         (main): Update accordingly.  Replace LAST_INSN_CODE with
5539         NUM_INSN_CODES.
5540         * lra.c (insn_code_data): Update accordingly.
5541         (finish_insn_code_data_once, get_static_insn_data): Likewise.
5542         * recog.h (target_recog): Likewise.
5543         (preprocess_insn_constraints): Change parameter to unsigned int.
5544         * recog.c (preprocess_insn_constraints): Likewise.
5545         (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
5546         * tree-vect-stmts.c (vectorizable_operation): Simplify.
5548 2015-08-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5550         PR rtl-optimization/61657
5551         * loop-iv.c (iv_number_of_iterations): Declare up and down as
5552         unsigned.  Remove superflous uint64_t cast.
5554 2014-08-21  Felix Yang  <felix.yang@huawei.com>
5555             Jiji Jiang  <jiangjiji@huawei.com>
5557         * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
5558         argument and get builtin function code directly from CALL.
5559         (gimple_stringop_fixed_value): Modified accordingly.
5560         (gimple_stringops_transform, gimple_stringops_values_to_profile):
5561         Modified accordingly and only accept BUILT_IN_NORMAL string operations.
5563 2015-08-21  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5565         * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
5567 2015-08-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5569         * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
5570         to match.pd.
5571         Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
5572         Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
5573         Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
5574         Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
5575         Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
5576         Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
5577         Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
5578         Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
5579         Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
5580         Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
5582         * match.pd (SIN ) : New Operator.
5583         (TAN) : New Operator.
5584         (mult (SQRT@1 @0) @1) : New simplifier.
5585         (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
5586         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
5587         (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
5588         (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
5589         (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
5590         (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
5591         (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
5592         (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
5593         (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
5594         (rdiv @0 (POW:s @1 @2)) : New simplifier.
5596 2015-08-21  Bin Cheng  <bin.cheng@arm.com>
5598         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
5599         loop if EXPR is simplified to const value.
5601 2015-08-21  Yury Gribov  <y.gribov@samsung.com>
5603         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5604         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
5606 2015-08-21  Richard Biener  <rguenther@suse.de>
5608         PR middle-end/67285
5609         * gimple-fold.c (replace_stmt_with_simplification): Assert
5610         seq is empty when replacing a call with itself but different
5611         arguments.
5612         * gimple-match-head.c (maybe_push_res_to_seq): When pushing
5613         a call require that it is const.
5615 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5617         * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
5618         * builtins.c (get_object_alignment_2): Adjust.
5619         * varasm.c (align_variable): Likewise.
5620         (get_variable_align): Likewise.
5621         (build_constant_desc): Likewise.
5622         (force_const_mem): Likewise.
5623         * doc/tm.texi.in: Likewise.
5624         * doc/tm.texi: Regenerate.
5626 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5628         * genconfig.c (main): Always define HAVE_cc0.
5629         * recog.c (rest_of_handle_peephole2): Adjust.
5631 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5633         * reorg.c (relax_delay_slots): Don't use #if to check value of
5634         HAVE_cc0.
5636 2015-08-20  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5638         * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
5639         * targhooks.c (default_have_conditional_execution): Adjust.
5641 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5643         * rtl.h (rtvec_all_equal_p): Declare.
5644         (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
5645         * rtl.c (rtvec_all_equal_p): New function.
5646         * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
5647         * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
5648         (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
5649         * config/arm/arm.c (neon_vdup_constant): Likewise.
5650         * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
5651         * config/tilegx/constraints.md (W, Y): Likewise.
5652         * config/tilepro/constraints.md (W, Y): Likewise.
5653         * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
5654         (classify_immediate): Use unwrap_const_vec_duplicate.
5655         * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
5656         (reg_or_v2s8bit_operand): Likewise.
5657         * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
5658         (reg_or_v4s8bit_operand): Likewise.
5660 2015-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5662         * config/rs6000/altivec.h (vec_pmsum_be): New #define.
5663         (vec_shasigma_be): New #define.
5664         * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
5665         (VPMSUMH): Likewise.
5666         (VPMSUMW): Likewise.
5667         (VPMSUMD): Likewise.
5668         (VPMSUM): New BU_P8V_OVERLOAD_2.
5669         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
5670         entries for VEC_MADD and VEC_VPMSUM.
5672 2015-08-20  Georg-Johann Lay  <avr@gjlay.de>
5674         * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
5675         Multiply argument avr_n_flash by 64 to match unit of "KiB".
5676         (avr_pgm_check_var_decl): Same.
5678 2015-08-20  Alan Lawrence  <alan.lawrence@arm.com>
5680         * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
5681         initialization of HFmode scalar type (float16_t) to...
5682         (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
5683         code.
5685         (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
5687         * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
5688         having an -mfp16-format.
5690 2015-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5692         * config/i386/predicates.md (vector_all_ones_operand): Use
5693         CONSTM1_RTX to simplify definition.
5695 2015-08-20  Richard Biener  <rguenther@suse.de>
5697         * toplev.c (compile_file): Remove loop calling late_global_decl
5698         on all symbols.
5699         * varpool.c (varpool_node::assemble_decl): Call late_global_decl
5700         on decls we assembled.
5702 2015-08-20  James Greenhalgh  <james.greenhalgh@arm.com>
5704         * common/config/aarch64/aarch64-common.c
5705         (AARCH64_CPU_NAME_LENGTH): Delete.
5706         (aarch64_option_extension): New.
5707         (all_extensions): Likewise.
5708         (processor_name_to_arch): Likewise.
5709         (arch_to_arch_name): Likewise.
5710         (all_cores): New.
5711         (all_architectures): Likewise.
5712         (aarch64_get_extension_string_for_isa_flags): Likewise.
5713         (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
5714         architecture names.
5715         * config/aarch64/aarch64-protos.h
5716         (aarch64_get_extension_string_for_isa_flags): New.
5717         * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
5718         (aarch64_option_print): Get the string to print from
5719         aarch64_get_extension_string_for_isa_flags.
5720         (aarch64_declare_function_name): Likewise.
5721         * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
5722         (MCPU_TO_MARCH_SPEC): This.
5723         (ASM_CPU_SPEC): Use it.
5724         (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
5725         (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
5726         (EXTRA_SPEC_FUNCTIONS): Use it.
5728 2015-08-20  Simon Dardis  <simon.dardis@imgtec.com>
5730         * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
5731         expansion when !ISA_HAS_LWL_LWR.
5732         (mips_block_move_straight): Update the size of elements copied to
5733         account for alignment when !ISA_HAS_LWL_LWR.
5734         * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
5736 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
5738         * expr.c (expand_expr_real_2): Check gimple statement during
5739         LSHIFT_EXPR expand.
5741 2015-08-19  Magnus Granberg  <zorry@gentoo.org>
5743         * common.opt (fstack-protector): Initialize to -1.
5744         (fstack-protector-all): Likewise.
5745         (fstack-protector-strong): Likewise.
5746         (fstack-protector-explicit): Likewise.
5747         * configure.ac: Add --enable-default-ssp.
5748         * defaults.h (DEFAULT_FLAG_SSP): New.  Default SSP to strong.
5749         * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
5750         -1.
5751         * doc/install.texi: Document --enable-default-ssp.
5752         * config.in: Regenerated.
5753         * configure: Likewise.
5755 2015-08-19  Alexandre Oliva  <aoliva@redhat.com>
5757         PR rtl-optimization/64164
5758         * cfgexpand.c (parm_maybe_byref_p): Renamed to...
5759         (parm_in_stack_slot_p): ... this.  Disregard mode, what
5760         matters is whether the parm will live in a pseudo or a stack
5761         slot.
5762         (expand_one_ssa_partition): Deal with params without a default
5763         def.  Disregard mode.
5764         * cfgexpand.h: Renamed function declaration.
5765         * tree-ssa-coalesce.c: Adjust.
5766         * function.c (split_complex_args): Allocate stack slot for
5767         unassigned parms before splitting.
5768         (parm_in_unassigned_mem_p): New.  Use it instead of
5769         parm_maybe_byref_p throughout this file.
5770         (assign_parm_setup_block): Use it.  Accept pseudos in the
5771         expand-assigned rtl.
5772         (assign_parm_setup_reg): Drop BLKmode requirement.
5773         (assign_parm_setup_stack): Allocate and fill in the address of
5774         unassigned MEM parms.
5776 2015-08-19  David Sherwood  <david.sherwood@arm.com>
5778         * genmodes.c (emit_mode_unit_size_inline): New function.
5779         (emit_mode_unit_precision_inline): New function.
5780         (emit_insn_modes_h): Emit new #define.  Emit new functions.
5781         (emit_mode_unit_size): New function.
5782         (emit_mode_unit_precision): New function.
5783         (emit_mode_adjustments): Add mode_unit_size adjustments.
5784         (emit_insn_modes_c): Emit new arrays.
5785         * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
5786         use new inline methods.
5788 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5790         * config/aarch64/aarch64.c (bit_count): Delete prototype
5791         and definition.
5792         (aarch64_print_operand): Use popcount_hwi instead of the above.
5794 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5796         * config/aarch64/aarch64-option-extensions.def: Delete obsolete
5797         comment.
5799 2015-08-19  Marek Polacek  <polacek@redhat.com>
5801         PR middle-end/67133
5802         * gimple-ssa-isolate-paths.c
5803         (insert_trap_and_remove_trailing_statements): Rename to ...
5804         (insert_trap): ... this.  Don't remove trailing statements; split
5805         block instead.
5806         (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
5808 2015-08-19  Mikael Morin  <mikael@gcc.gnu.org>
5810         PR other/67042
5811         * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
5812         conditionalize the whole on __GNUC__.  Add fallback code
5813         depending neither on undefined nor implementation-defined behaviour.
5815 2015-08-19  Jiong Wang  <jiong.wang@arm.com>
5817         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
5818         whitespaces with tab.
5820 2015-08-19  Florian Weimer  <fweimer@redhat.com>
5822         * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
5823         Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
5824         * prj-proc.adb (Process.Process_Expression_Variable_Decl):
5825         Move Name_Ids instantiation to the Prj.Proc package, to avoid
5826         trampolines.
5828 2015-08-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5830         * config/arm/arm.c (bounds_check): Use %wd print format
5831         for HOST_WIDE_INT arguments.
5833 2015-08-18  Trevor Saunders  <tbsaunde@tbsaunde.org>
5835         * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
5836         dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
5837         mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
5838         signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
5839         tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
5840         tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
5841         tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
5842         tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
5843         tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
5844         typedefs.
5846 2015-08-18  trevor Saunders  <tbsaunde@tbsaunde.org>
5848         * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
5849         function.c, graphite-scop-detection.c, haifa-sched.c,
5850         ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
5851         tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
5852         varasm.c: Remove typedefs of structs.
5854 2015-08-18  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
5856         * config/rs6000/altivec.h (vec_adde): New define.
5857         (vec_addec): Likewise.
5858         (vec_double): Likewise.
5859         (vec_bperm): Likewise.
5860         (vec_gb): Likewise.
5861         * config/rs6000/rs6000-builtin.def (ADDE): New
5862         BU_ALTIVEC_OVERLOAD_3.
5863         (ADDEC): Likewise.
5864         (DOUBLE): New BU_VSX_OVERLOAD_1.
5865         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
5866         entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
5867         ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
5868         VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
5869         ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
5870         ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
5871         ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
5872         P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
5873         and P8V_BUILTIN_VEC_VBPERMQ.
5875 2015-08-18  Jason Merrill  <jason@redhat.com>
5877         * print-tree.c (print_node): Handle TREE_BINFO.
5879 2015-08-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5881         PR middle-end/36757
5882         * builtins.c (expand_builtin_signbit): Add asserts to make sure
5883         we can expand BUILT_IN_SIGNBIT inline.
5884         * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
5885         * doc/extend.texi: Document the type-generic __builtin_signbit.
5887 2015-08-18  Richard Sandiford  <richard.sandiford@arm.com>
5889         PR rtl-optimization/67218
5890         * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
5891         (simplify_unary_operation_1): Use it.
5893 2015-08-18  Marek Polacek  <polacek@redhat.com>
5895         PR middle-end/67222
5896         * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
5897         if the call isn't valid.
5898         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
5899         gimple_call_builtin_p.
5900         (call_may_clobber_ref_p_1): Likewise.
5901         (stmt_kills_ref_p): Likewise.
5903 2015-08-18  Robert Suchanek  <robert.suchanek@imgtec.com>
5905         * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
5906         * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
5907         (mips_hard_regno_scratch_ok): Likewise.
5908         (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
5909         * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
5911 2015-08-18  Bin Cheng  <bin.cheng@arm.com>
5913         * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
5914         (determine_value_range): Call refine_value_range_using_guard for
5915         each loop initial condition to improve value range.
5917 2015-08-17  Aldy Hernandez  <aldyh@redhat.com>
5919         * config/i386/i386.c: Remove include of fibheap.h.
5921 2015-08-17  Richard Biener  <rguenther@suse.de>
5923         PR tree-optimization/67221
5924         * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
5925         (sccvn_dom_walker::before_dom_children): Mark backedges of
5926         non-executable blocks as not executable.
5928 2015-08-17  David Sherwood  <david.sherwood@arm.com>
5930         * config/arm/arm.c (neon_element_bits): Replace call to
5931         GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
5932         * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
5933         (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
5934         (neon_vdup_lane<mode>): Likewise.
5935         * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
5936         (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
5937         (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
5938         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
5939         * config/spu/spu.c (arith_immediate_p): Likewise.
5940         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5941         * expr.c (expand_expr_real_2): Likewise.
5942         * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
5943         * simplify-rtx.c (simplify_immed_subreg): Likewise.
5944         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
5945         * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
5946         New variable.
5947         * fold-const.c (fold_binary_loc): Replace call to
5948         GET_MODE_PRECISION (GET_MODE_INNER (m)) with
5949         GET_MODE_UNIT_PRECISION (m).
5951 2015-08-17  Mike Stump  <mikestump@comcast.net>
5953         * config/arm/arm.c (arm_block_move_unaligned_straight):
5954         Emit normal move instead of unaligned load when source or destination
5955         are appropriately aligned.
5957 2015-08-17  Richard Biener  <rguenther@suse.de>
5958             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
5960         PR middle-end/16107
5961         * match.pd (div (coss (op @0) : New simplifier.
5963 2015-08-14  Alexandre Oliva  <aoliva@redhat.com>
5965         PR rtl-optimization/64164
5966         PR bootstrap/66978
5967         PR middle-end/66983
5968         PR rtl-optimization/67000
5969         PR middle-end/67034
5970         PR middle-end/67035
5971         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
5972         * tree-ssa-copyrename.c: Removed.
5973         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
5974         -ftree-coalesce-vars.
5975         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
5976         * common.opt (ftree-copyrename): Ignore.
5977         (ftree-coalesce-inlined-vars): Likewise.
5978         * doc/invoke.texi: Remove the ignored options above.
5979         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
5980         * tree-ssa-coalesce.h: ... here.
5981         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
5982         headers required by it.
5983         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
5984         across variables when flag_tree_coalesce_vars.  Check register
5985         use and promoted modes to allow coalescing.  Do not coalesce
5986         maybe-byref parms with SSA_NAMEs of other variables, or
5987         anonymous SSA_NAMEs.  Moved to tree-ssa-coalesce.c.
5988         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
5989         with its member functions to tree-ssa-coalesce.c.
5990         (var_map_base_init): Likewise.  Renamed to
5991         compute_samebase_partition_bases.
5992         (partition_view_normal): Drop want_bases parameter.
5993         (partition_view_bitmap): Likewise.
5994         * tree-ssa-live.h: Adjust declarations.
5995         * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
5996         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
5997         default defs at the entry point.
5998         (dump_part_var_map): New.
5999         (compute_optimized_partition_bases): New, called by...
6000         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
6001         of compute_samebase_partition_bases.  Adjust.
6002         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
6003         * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
6004         (ssa_default_def_partition): New.
6005         (get_rtl_for_parm_ssa_default_def): New.
6006         (align_local_variable, add_stack_var): Support anonymous SSA
6007         names.
6008         (defer_stack_allocation): Likewise.  Declare earlier.
6009         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
6010         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
6011         Do no record deferred-allocation marker in
6012         SA.partition_to_pseudo.
6013         (expand_stack_vars): Adjust check for the marker in it.
6014         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
6015         redundant MEM attr setting.
6016         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
6017         from...
6018         (expand_one_stack_var): ... this.  New wrapper to check and
6019         skip already expanded SSA partitions.
6020         (record_alignment_for_reg_var): New, factored out of...
6021         (expand_one_var): ... this.
6022         (expand_one_ssa_partition): New.
6023         (adjust_one_expanded_partition_var): New.
6024         (expand_one_register_var): Check and skip already expanded SSA
6025         partitions.
6026         (expand_used_vars): Don't create DECLs for anonymous SSA
6027         names.  Expand all SSA partitions, then adjust all SSA names.
6028         (pass::execute): Replace the loops that set
6029         SA.partition_to_pseudo from partition leaders and cleared
6030         DECL_RTL for multi-location variables, and that which used to
6031         rename vars and set attrs, with one that clears DECL_RTL and
6032         checks that PARMs and RESULTs default_defs match DECL_RTL.
6033         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
6034         * emit-rtl.c: Include stor-layout.h.
6035         (set_reg_attrs_for_parm): Handle NULL decl.
6036         (set_reg_attrs_for_decl_rtl): Take mode from expression if
6037         it's not a DECL.
6038         * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
6039         rather than its possibly-NULL DECL.
6040         * explow.c (promote_ssa_mode): New.
6041         * explow.h (promote_ssa_mode): Declare.
6042         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
6043         (read_complex_part): Export.
6044         * expr.h (read_complex_part): Declare.
6045         * cfgexpand.h (parm_maybe_byref_p): Declare.
6046         * function.c: Include cfgexpand.h.
6047         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
6048         (use_register_for_parm_decl): Wrapper for the above to
6049         special-case the result_ptr.
6050         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
6051         (split_complex_args): Take assign_parm_data_all argument.
6052         Pass it to rtl_for_parm.  Set up rtl and context for split
6053         args.  Reset complex parm before fetching its default decl
6054         rtl.
6055         (assign_parms_unsplit_complex): Use the default-def complex
6056         parm rtl if it matches the components.
6057         (assign_parms_augmented_arg_list): Adjust.
6058         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
6059         multiple locations.  Recognize split complex args.
6060         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
6061         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
6062         (assign_parm_setup_block): Prefer SSA-assigned location, and
6063         fill in its address if the memory location of a maybe-byref
6064         parm was not assigned by cfgexpand.
6065         (assign_parm_setup_reg): Likewise.  Adjust its mode as
6066         needed.  Use entry_parm for equiv if stack_parm is NULL.  Make
6067         sure passed_pointer parms don't need conversion.  Copy address
6068         or value as needed.
6069         (assign_parm_setup_stack): Prefer SSA-assigned location.
6070         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
6071         rtl before testing for pointer bounds.  Special-case result_ptr.
6072         (expand_function_start): Maybe reset DECL_RTL of result.
6073         Prefer SSA-assigned location for result and static chain.
6074         Factor out DECL_RESULT and SET_DECL_RTL.  Convert static chain
6075         to Pmode if needed, from H.J. Lu  <hongjiu.lu@intel.com>.
6076         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
6077         anonymous SSA names.  Use promote_ssa_mode.
6078         (get_temp_reg): Likewise.
6079         (remove_ssa_form): Adjust.
6080         * stor-layout.c (layout_decl): Don't set mem attributes of
6081         non-MEMs.
6082         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
6083         and get its reg_usage for reg invalidation.
6084         (compute_bb_dataflow): Pass it insn.
6085         (emit_notes_in_bb): Likewise.
6087 2015-08-14  Marek Polacek  <polacek@redhat.com>
6089         * tree-core.h (tree_base): Fix typo.
6091 2015-08-14  Marek Polacek  <polacek@redhat.com>
6093         PR middle-end/67133
6094         * gimple.c (infer_nonnull_range_by_attribute): Check that the
6095         nonnull argument position is not outside function arguments.
6097 2015-08-14  Matthew Wahab  <matthew.wahab@arm.com>
6099         PR target/67143
6100         * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
6101         'lconst_atomic' with 'const_atomic'.
6102         (atomic_fetch_<optab><mode>): Likewise.
6103         (atomic_<optab>_fetch<mode>): Likewise.
6104         * config/aarch64/iterators.md (lconst-atomic): Move below
6105         'const_atomic'.
6106         (const_atomic): New.
6108 2015-08-14  Thomas Schwinge  <thomas@codesourcery.com>
6109             Bernd Schmidt  <bernds@codesourcery.com>
6111         * config/nvptx/nvptx.c (nvptx_option_override): Don't override
6112         debug options.
6113         * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
6114         (DWARF2_DEBUGGING_INFO): Don't define.
6115         * debug.h (dwarf2_lineno_debug_hooks): Declare.
6116         * toplev.c (process_options): Add a case for it.
6117         * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
6118         (dwarf2out_init): Skip most initializations if
6119         DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
6120         case.
6121         * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
6122         DWARF2_LINENO_DEBUGGING_INFO.
6123         * opts.c (set_debug_level): Likewise.
6125 2015-08-14  James Greenhalgh  <james.greenhalgh@arm.com>
6127         * config/arm/types.md (is_neon_type): Add missing types.
6129 2015-08-14  Yuri Rumyantsev  <ysrumyan@gmail.com>
6131         * config/i386/driver-i386.c (host_detect_local_cpu): Add support
6132         for skylake.
6133         * config/i386/i386.c (PTA_SKYLAKE): New macros.
6134         (processor_alias_table): Add skylake description.
6135         (enum processor_model): Add skylake processor.
6136         (arch_names_table): Add skylake record.
6137         * doc/invoke.texi: Add skylake item.
6139 2015-08-13  Andrew MacLeod  <amacleod@redhat.com>
6141         * ira-int.h: Include recog.h.
6142         * ira-build.c: Don't include recog.h.
6143         * ira-color.c: Likewise.
6144         * ira-conflicts.c: Likewise.
6145         * ira-costs.c: Likewise.
6146         * ira-emit.c: Likewise.
6147         * ira-lives.c: Likewise.
6148         * ira.c: Likewise.
6149         * sched-deps.c: Likewise.
6150         * sel-sched.c: Likewise.
6151         * target-globals.c: Likewise.
6153 2015-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6155         PR bootstrap/55035
6156         * reload1.c (elimination_costs_in_insn): Make it obvious to the
6157         compiler that the n_dups and n_operands loop bounds are invariant.
6159 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6161         * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
6162         expressions in A and B.
6164 2015-08-13  Richard Biener  <rguenther@suse.de>
6166         * tree.c (nonnull_arg_p): Move from ...
6167         * tree-vrp.c (nonnull_arg_p): ... here.
6168         * tree.h (nonnull_arg_p): Declare.
6169         * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
6170         here, register ptr != 0 for nonnull_arg_p pointer arguments.
6171         Properly initialize static chain and by-reference result pointer.
6172         (run_scc_vn): Adjust.
6174 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
6176         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
6177         TUNE_I6400.
6179 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
6181         * config/aarch64/aarch64-protos.h
6182         (aarch64_gen_atomic_cas): Declare.
6183         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
6184         Choose appropriate instruction pattern for the target.
6185         (aarch64_gen_atomic_cas): New.
6186         * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
6187         (atomic_compare_and_swap<mode>_1): Rename to
6188         aarch64_compare_and_swap<mode>.  Fix some indentation.
6189         (aarch64_compare_and_swap<mode>_lse): New.
6190         (aarch64_atomic_cas<mode>): New.
6192 2015-08-13  Matthew Wahab  <matthew.wahab@arm.com>
6194         * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
6195         (TARGET_LSE): New.
6197 2015-08-13  Richard Biener  <rguenther@suse.de>
6199         PR tree-optimization/67191
6200         * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
6201         assert we value-numbered last stmts operand because it can validly
6202         trigger for unreachable code.
6204 2015-08-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6206         PR rtl-optimization/67103
6207         * ifcvt.c (noce_try_store_flag_constants): Move
6208         x = (-(test != 0) & (b - a)) + a transformation to...
6209         (noce_try_cmove): ... Here.  Try it if normal conditional
6210         move fails.
6212 2015-08-13  Robert Suchanek  <robert.suchanek@imgtec.com>
6214         * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
6215         pseudo-processors.
6216         * config/mips/mips.md (processor): Remove w32 and w64.
6218 2015-08-13  Richard Biener  <rguenther@suse.de>
6220         PR tree-optimization/66502
6221         PR tree-optimization/67167
6222         * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
6223         backedge arguments.
6224         (vn_phi_lookup): Adjust.
6225         (vn_phi_insert): Likewise.
6226         (visit_phi): Prefer to value-number to another PHI node
6227         over value-numbering to a PHI argument.
6228         (init_scc_vn): Mark DFS back edges.
6230 2015-08-13  Richard Biener  <rguenther@suse.de>
6232         * gimple.h (gcall::code_): New constant static member.
6233         (gcond::code_): Likewise.
6234         * gimple.c (gcall::code_): Define.
6235         (gcond::code_): Likewise.
6236         (is_a_helper <const gcond *>): Add.
6237         (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
6238         and forward to a new gcall overload with less checking and a
6239         cheaper way to access the operand.
6240         (gimple_call_lhs_ptr): Likewise.
6241         (gimple_call_set_lhs): Likewise.
6242         (gimple_call_internal_p): Likewise.
6243         (gimple_call_with_bounds_p): Likewise.
6244         (gimple_call_set_with_bounds): Likewise.
6245         (gimple_call_internal_fn): Likewise.
6246         (gimple_call_set_ctrl_altering): Likewise.
6247         (gimple_call_ctrl_altering_p): Likewise.
6248         (gimple_call_fntype): Likewise.
6249         (gimple_call_fn): Likewise.
6250         (gimple_call_fn_ptr): Likewise.
6251         (gimple_call_set_fndecl): Likewise.
6252         (gimple_call_fndecl): Likewise.
6253         (gimple_call_chain): Likewise.
6254         (gimple_call_num_args): Likewise.
6255         (gimple_call_arg): Likewise.
6256         (gimple_call_arg_ptr): Likewise.
6257         (gimple_call_set_arg): Likewise.
6258         (gimple_call_noreturn_p): Likewise.
6259         (gimple_cond_code): Likewise.
6260         (gimple_cond_lhs): Likewise.
6261         (gimple_cond_rhs): Likewise.
6262         (gimple_has_lhs): Reduce checking.
6264 2015-08-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
6266         PR middle-end/25529
6267         * match.pd (div (mult @0 @1) @1) : New simplifier.
6269 2015-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
6271         PR target/67071
6272         * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
6273         predicate to allow construction of vector constants using the
6274         VSLDOI vector shift instruction.
6276         * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
6277         declaration.
6279         * config/rs6000/rs6000.c (vspltis_shifted): New function to return
6280         the number of bytes to be shifted left and filled in with either
6281         all zero or all one bits.
6282         (gen_easy_altivec_constant): Call vsplitis_shifted if no other
6283         methods exist.
6284         (output_vec_const_move): On power8, generate XXLORC to generate
6285         a vector constant with all 1's. Do a split if we need to use a
6286         VSLDOI instruction.
6288         * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
6289         properly test for the MSB.
6291         * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
6292         vector constants that can be created with VSLDOI.
6294 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
6296         revert:
6297         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
6298         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6299         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
6300         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
6301         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
6302         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6303         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
6304         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
6305         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
6307 2015-08-12  Max Filippov  <jcmvbkbc@gmail.com>
6309         * config/xtensa/constraints.md (define_constraint "Y"): New
6310         constraint.
6311         * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
6312         * config/xtensa/linux.h (ASM_SPEC): Likewise.
6313         * config/xtensa/predicates.md (move_operand): Match constants
6314         and symbols in the presence of TARGET_AUTO_LITPOOLS.
6315         * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
6316         immediate references to TLS data.
6317         (xtensa_emit_move_sequence): Don't force constants to memory in
6318         the presence of TARGET_AUTO_LITPOOLS.
6319         (print_operand): Add 'y' format, same as default, but capable of
6320         printing SF mode constants as well.
6321         * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
6322         (movsf_internal): Add movi pattern that loads literal.
6323         (movsf, movdf): Don't force constants to memory in the presence
6324         of TARGET_AUTO_LITPOOLS.
6325         (movdf_internal): Add 'Y' constraint.
6326         * config/xtensa/xtensa.opt (mauto-litpools): New option.
6327         * doc/invoke.text (Xtensa options): Document -mauto-litpools.
6329 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
6331         * config/arm/arm-fpus.def: Replace booleans with feature flags.
6332         Update comment.
6333         * config/arm/arm.c (ARM_FPU): Update macro.
6334         * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
6335         (TARGET_FP16): Likewise.
6336         (TARGET_CRYPTO): Likewise.
6337         (TARGET_NEON): Likewise.
6338         (struct arm_fpu_desc): Remove fields neon, fp16 and crypto.  Add
6339         field features.
6341 2015-08-12  Tom de Vries  <tom@codesourcery.com>
6343         PR other/67092
6344         PR other/67098
6345         * doc/install.texi: Remove --with_host_libstdcxx item.  Update
6346         --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
6347         accordingly.  Mention default for --with-stage1-ldflags.
6349 2015-08-12  Matthew Wahab  <matthew.wahab@arm.com>
6351         * config/arm/arm.h (arm_fpu_feature_set): New.
6352         (ARM_FPU_FSET_HAS): New.
6353         (FPU_FL_NONE): New.
6354         (FPU_FL_NEON): New.
6355         (FPU_FL_FP16): New.
6356         (FPU_FL_CRYPTO): New.
6358 2015-08-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6360         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
6361         after -mcmodel=large -fPIC sorry.
6363 2015-08-12  Richard Biener  <rguenther@suse.de>
6365         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
6366         comparison operand order and commutative ternary op operand order.
6367         (sccvn_dom_walker::cond_stack): New state to track temporary
6368         expressions.
6369         (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
6370         no longer valid.
6371         (sccvn_dom_walker::record_cond): Add a single temporary conditional
6372         expression.
6373         (sccvn_dom_walker::record_conds): Add a temporary conditional
6374         expressions and all related expressions also true/false.
6375         (sccvn_dom_walker::before_dom_children): Record temporary
6376         expressions based on the controlling condition of a single
6377         predecessor.  When trying to simplify a conditional statement
6378         lookup expressions we might have inserted earlier.
6380 2015-08-12  Yvan Roux  <yvan.roux@linaro.org>
6382         PR target/67127
6383         * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
6384         to ARM core registers.
6386 2015-08-12  Nathan Sidwell  <nathan@acm.org>
6388         * tree-vrp.c (simplify_min_or_max_using_ranges): New.
6389         (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
6391 2015-08-12  Simon Dardis  <simon.dardis@imgtec.com>
6393         * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
6394         line with comments.
6395         * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
6397 2015-08-12  Richard Biener  <rguenther@suse.de>
6399         * gimple.h (remove_pointer): New trait.
6400         (GIMPLE_CHECK2): New inline template function.
6401         (gassign::code_): New constant static member.
6402         (is_a_helper<const gassign *>): Add.
6403         (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
6404         and forward to a new gassign overload with less checking and a
6405         cheaper way to access the operand.
6406         (gimple_assign_lhs_ptr): Likewise.
6407         (gimple_assign_set_lhs): Likewise.
6408         (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
6409         Likewise.
6410         (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
6411         Likewise.
6412         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
6413         Likewise.
6414         (gimple_assign_rhs_code): Likewise.
6415         * gimple.c (gassign::code_): Define.
6417 2015-08-12  Richard Biener  <rguenther@suse.de>
6419         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6420         Eliminate edges marked as not executable by SCCVN.
6421         * tree-ssa-sccvn.c: Include gimple-iterator.h.
6422         (cond_dom_walker): Rename to sccvn_dom_walker.
6423         (sccvn_dom_walker::before_dom_children): Value-number defs
6424         of all stmts.
6425         (run_scc_vn): Remove loop value-numbering all SSA names.
6426         Drop not visited SSA names to varying.
6428 2015-08-11  Trevor Saunders  <tbsaunde@tbsaunde.org>
6430         * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
6431         gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
6432         ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
6433         omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
6434         tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
6435         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
6436         tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
6437         tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
6438         vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
6440 2015-08-11  Uros Bizjak  <ubizjak@gmail.com>
6442         PR target/66954
6443         * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
6444         to enum feature_priority and feature_list.
6445         (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
6446         and isa_names_table.
6448 2015-08-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
6450         * tree-vect-stmts.c (vectorizable_shift): Add missed test on
6451         vect_induction_def.
6453 2015-08-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6455         PR c/66098
6456         PR c/66711
6457         * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
6458         account when deciding what was the command-line status.
6460 2015-08-11  Nathan Sidwell  <nathan@acm.org>
6462         * tree-vrp.c (simplify_abs_using_ranges): Simplify.
6464         * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
6465         we're not the only contributor to target phi.
6467 2015-08-11  Jiong Wang  <jiong.wang@arm.com>
6469         * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
6470         FIXED_REG0.
6472 2015-08-11  Tom de Vries  <tom@codesourcery.com>
6474         * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
6476 2015-08-10  H.J. Lu  <hongjiu.lu@intel.com>
6478         * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
6479         with CPU_SLM.
6480         * config/i386/i386.md (cpu): Remove knl.
6482 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
6484         PR libgomp/65742
6485         PR middle-end/66332
6486         * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
6487         open-coded sequence.
6488         * omp-low.c (oacc_process_reduction_data): Remove handline of
6489         GOMP_DEVICE_HOST_NONSHM.
6491         * lto-streamer-in.c (lto_input_mode_table): Adjust to
6492         GET_MODE_INNER changes.
6494 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
6495             Ilya Verbin  <ilya.verbin@intel.com>
6497         * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
6499 2015-08-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6501         * doc/options.texi (EnabledBy): Document that the argument must be
6502         a Common option.
6503         * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
6504         Not enabled by -Wall.
6505         * optc-gen.awk: Give nicer error messages. Detect if the argument
6506         of EnabledBy is not a Common option.
6507         * common.opt (Wnull-dereference): Not enabled by -Wall.
6508         * opt-functions.awk (lang_enabled_by): Nicer error messages.
6510 2015-08-09  H.J. Lu  <hongjiu.lu@intel.com>
6512         * config/i386/driver-i386.c (host_detect_local_cpu): Treat
6513         model == 0x4f as Broadwell.
6515 2015-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
6517         PR rtl-optimization/67028
6518         * combine.c (simplify_comparison): Fix comment.  Rearrange code.
6519         Add test to see if a const_int fits in the new mode.
6521 2015-08-07  DJ Delorie  <dj@redhat.com>
6523         * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
6525 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
6527         PR rtl-optimization/67029
6528         * ira-color.c: Include "recog.h" before including "ira-int.h".
6529         * target-globals.c: Likewise.
6530         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
6531         adds an alternative_mask argument and use it instead of
6532         preferred_alternatives.
6533         * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
6534         * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
6535         * sched-deps.c: Include "ira-int.h" after including "ira.h".
6536         (sched_analyze_insn): Update call to
6537         ira_implicitly_set_insn_hard_regs.
6538         * sel-sched.c: Include "ira-int.h" after including "ira.h".
6539         (implicit_clobber_conflict_p): Update call to
6540         ira_implicitly_set_insn_hard_regs.
6542 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
6544         * Makefile.in (.INTERMEDIATE): Add gpl.pod.
6546 2015-08-07  Kaz Kojima  <kkojima@gcc.gnu.org>
6548         PR target/67002
6549         * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
6550         currently_expanding_to_rtl is set.
6552 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
6554         * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
6555         * configure: Regenerate.
6557 2015-08-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6558             Jiong Wang  <jiong.wang@arm.com>
6560         * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
6561         * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
6562         (REG_CLASS_NAMES): Likewise.
6563         (REG_CLASS_CONTENTS): Likewise.
6564         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
6565         (aarch64_register_move_cost): Likewise.
6566         (aarch64_load_symref_appropriately): Invoke the new added pattern if
6567         possible.
6568         * config/aarch64/constraints.md (Uc0): New constraint.
6570 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
6572         * config/aarch64/constraints.md (Usf): Add the test of
6573         aarch64_is_noplt_call_p.
6575 2015-08-06  Jiong Wang  <jiong.wang@arm.com>
6577         * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
6578         declaration.
6579         * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
6580         * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
6581         (call_symbol): Likewise.
6583 2015-08-06  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
6585         * tree-vect-patterns.c (vect_recog_mult_pattern): New function
6586         for vectorizing multiplication patterns.
6587         * tree-vectorizer.h: Adjust the number of patterns.
6589 2015-08-06  Uros Bizjak  <ubizjak@gmail.com>
6591         * config/i386/sse.md (*vec_concatv2df): Declare added
6592         alternatives as sselog type.
6594 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6596         * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
6597         all GPRs.
6599 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6601         * config/s390/s390.c (s390_expand_tbegin): Expand either
6602         tbegin_1_z13 or tbegin_1 depending on VX flag.
6603         * config/s390/s390.md ("tbegin_1_z13"): New expander.
6605 2015-08-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6607         * config/s390/s390.opt: Clarify description for -mzvector
6608         * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
6609         -mzvector.
6611 2015-08-06  Richard Biener  <rguenther@suse.de>
6613         * gimple.h (gimple_call_set_fn): Access op member directly.
6614         (gimple_call_chain_ptr): Likewise.
6615         (gimple_call_set_chain): Likewise.
6616         (gimple_cond_lhs_ptr): Likewise.
6617         (gimple_cond_set_lhs): Likewise.
6618         (gimple_cond_rhs_ptr): Likewise.
6619         (gimple_cond_set_rhs): Likewise.
6620         (gimple_cond_true_label): Likewise.
6621         (gimple_cond_set_true_label): Likewise.
6622         (gimple_cond_set_false_label): Likewise.
6623         (gimple_cond_false_label): Likewise.
6624         (gimple_label_label): Likewise.
6625         (gimple_label_set_label): Likewise.
6626         (gimple_goto_set_dest): Likewise.
6627         (gimple_asm_input_op): Likewise.
6628         (gimple_asm_input_op_ptr): Likewise.
6629         (gimple_asm_set_input_op): Likewise.
6630         (gimple_asm_output_op): Likewise.
6631         (gimple_asm_output_op_ptr): Likewise.
6632         (gimple_asm_set_output_op): Likewise.
6633         (gimple_asm_clobber_op): Likewise.
6634         (gimple_asm_set_clobber_op): Likewise.
6635         (gimple_asm_label_op): Likewise.
6636         (gimple_asm_set_label_op): Likewise.
6637         (gimple_switch_index): Likewise.
6638         (gimple_switch_index_ptr): Likewise.
6639         (gimple_return_retval_ptr): Likewise.
6640         (gimple_return_retval): Likewise.
6641         (gimple_return_set_retval): Likewise.
6642         (gimple_switch_set_index): Likewise.  Remove superfluous GIMPLE_CHECK.
6643         (gimple_switch_label): Likewise.
6644         (gimple_switch_set_label): Likewise.
6646 2015-08-06  Richard Biener  <rguenther@suse.de>
6648         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
6649         bool comparison canonicalization and restrict to integers.
6651 2015-08-05  Andrew MacLeod  <amacleod@redhat.com>
6653         * coretypes.h (enum symbol_visibility): Relocate here.
6654         * flag-types.h (enum symbol_visibility): Remove.
6655         * tree-core.h (enum symbol_visibility): Remove.
6657 2015-08-05  Lynn Boger  <laboger@linux.vnet.ibm.com>
6659         PR target/66870
6660         * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
6661         for no_split_stack function attribute along with
6662         flag_split_stack.
6663         (rs6000_expand_split_stack_prologue): Likewise.
6665 2015-08-05  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6666             Jeff Law  <law@redhat.com>
6668         PR c/16351
6669         * doc/invoke.texi (Wnull-dereference): New.
6670         * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
6671         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
6672         Warn for potential NULL dereferences.
6673         (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
6674         * ubsan.c (instrument_nonnull_arg): Call
6675         infer_nonnull_range_by_attribute.
6676         (instrument_nonnull_return): Likewise.
6677         * common.opt (Wnull-dereference); New.
6678         * gimple.c (infer_nonnull_range): Remove bool arguments.
6679         (infer_nonnull_range_by_dereference): New.
6680         (infer_nonnull_range_by_attribute): New.
6681         * gimple.h: Update declarations.
6683 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6685         * gensupport.c (sequence_num): Replace with...
6686         (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
6687         ...these new variables.
6688         (init_rtx_reader_args_cb): Update accordingly.
6689         (get_num_code_insns): Likewise.
6690         (read_md_rtx): Rework to use a while loop and get_c_test.
6691         Use the new counters.  Remove redundant DEFINE_SUBST case.
6692         * genoutput.c (gen_split): Delete.
6693         (main): Don't call it.
6695 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6697         * gensupport.h (get_c_test): Declare.
6698         * gensupport.c (get_c_test): New function.
6699         * genconditions.c (main): Use it.
6700         * genrecog.c (validate_pattern): Likewise.
6701         (match_pattern_1): Likewise.  Remove c_test argument.
6702         (match_pattern): Update accordingly and remove c_test argument.
6703         (main): Update accordingly.
6705 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6707         * gensupport.h (get_num_insn_codes): Declare.
6708         * gensupport.c (get_num_insn_codes): New function.
6709         * genattrtab.c (optimize_attrs): Rename max_insn_code to
6710         num_insn_codes.
6711         (main): Likewise.  Use get_num_insn_codes.
6712         * gencodes.c (main): Remove "last" and use get_num_insn_codes.
6714 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6716         PR middle-end/66311
6717         * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
6718         is zero- rather than sign-extended.
6720 2015-08-05  Richard Sandiford  <richard.sandiford@arm.com>
6722         * target-insns.def (can_extend): Delete.
6724 2015-08-05  Richard Biener  <rguenther@suse.de>
6726         PR tree-optimization/67121
6727         * tree-if-conv.c (combine_blocks): Clear range-info produced
6728         by stmts no longer executed conditionally.
6730 2015-08-05  Nick Clifton  <nickc@redhat.com>
6732         * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
6733         to allow identical far pointers to remain.
6735 2015-08-05  Richard Biener  <rguenther@suse.de>
6737         PR middle-end/67120
6738         * match.pd: Compare address bases with == if they are decls
6739         or SSA names, not operand_equal_p.  Otherwise fail.
6741 2015-08-05  Richard Biener  <rguenther@suse.de>
6743         PR tree-optimization/67055
6744         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
6745         NULL gimple_block.
6747         * g++.dg/torture/pr67055.C: New testcase.
6749 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
6751         * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
6752         noavx512vl.
6753         (define_attr "enabled"): Handle avx521vl and noavx512vl.
6754         * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
6755         AVX-512 alternative out of SSE.
6756         (define_insn "*vec_concatv2df"): Ditto.
6758 2015-08-05  Kirill Yukhin  <kirill.yukhin@intel.com>
6760         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
6761         CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
6762         CODE_FOR_avx_ptestv4di.
6763         * config/i386/sse.md (define_mode_iterator V_AVX): New.
6764         (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
6765         (define_insn "avx_ptest256"): Merge this ...
6766         (define_insn "sse4_1_ptest"): And this ...
6767         (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
6769 2015-08-05  Richard Biener  <rguenther@suse.de>
6771         PR tree-optimization/67109
6772         * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
6773         against too big groups.  Print whether this is a load or store
6774         group.  Rename from ...
6775         (vect_analyze_group_access): ... this which is now a wrapper
6776         dissolving an invalid group.
6777         (vect_analyze_data_ref_accesses): Print whether this is a load
6778         or store group.
6780 2015-08-05  Richard Biener  <rguenther@suse.de>
6782         PR middle-end/67107
6783         * match.pd: Guard const_binop result checking against NULL_TREE
6784         result.
6786 2015-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
6788         * cse.c (cse_insn): Restoring old behaviour for src_eqv
6789          when dest and value in the REG_EQUAL are same and dest
6790          is STRICT_LOW_PART.
6792 2015-08-04  Anatoly Sokolov  <aesok@post.ru>
6794         * config/moxie/moxie.h (PRINT_OPERAND,
6795           PRINT_OPERAND_ADDRESS): Remove macros.
6796         * config/moxie/moxie-protos.h (moxie_print_operand,
6797           moxie_print_operand_address): Remove declaration.
6798         * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
6799           TARGET_PRINT_OPERAND_ADDRESS): Define.
6800           (moxie_print_operand, moxie_print_operand_address): Make static.
6802 2015-08-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
6804         PR target/66731
6805         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
6806         (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
6808 2015-08-04  Richard Biener  <rguenther@suse.de>
6810         * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
6811         generated code.
6812         (dt_operand::gen_gimple_expr): Adjust.
6814 2015-08-04  Richard Biener  <rguenther@suse.de>
6816         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
6817         bool compares on RHS.
6818         * match.pd: Add X ==/!= !X is false/true pattern.
6820 2015-08-04  Pawel Kupidura  <pawel.kupidura@arm.com>
6822         * config/aarch64/aarch64.c: Change inner loop statement cost
6823         to be consistent with other targets.
6825 2015-08-04  Christophe Lyon  <christophe.lyon@linaro.org>
6827         * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
6828         targets.
6830 2015-08-04  Nathan Sidwell  <nathan@codesourcery.com>
6832         * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
6833         (machine_function): Remove pseudos field.
6835 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6837         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
6838         Exit early and use target_option_current_node if processing current
6839         pragma.
6841 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6843         * doc/extend.texi (AArch64 Function Attributes): New node.
6844         (AArch64 Pragmas): Likewise.
6846 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6848         * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
6849         Initialize simd builtins if TARGET_SIMD.
6850         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
6851         Make sure that the builtins are initialized only once no matter how
6852         many times the function is called.
6853         (aarch64_init_builtins): Unconditionally initialize crc builtins.
6854         (aarch64_relayout_simd_param): New function.
6855         (aarch64_simd_expand_args): Use above during argument expansion.
6856         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
6857         simd builtins if TARGET_SIMD.
6858         * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
6859         prototype.
6860         (aarch64_relayout_simd_types): Likewise.
6862 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6864         * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
6865         * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
6866         (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
6867         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
6868         static keyword.
6869         (aarch64_reset_previous_fndecl): New function.
6870         (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
6871         the string.
6872         * config/aarch64/aarch64-c.c: New file.
6873         * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
6874         Push and pop options at beginning and end.  Remove ifdef
6875         __ARM_FEATURE_CRC32.
6876         * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
6877         Add pragma +nothing+simd and +nothing+crypto where appropriate.
6878         * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
6879         * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
6880         Define prototype.
6881         (aarch64_register_pragmas): Likewise.
6882         (aarch64_reset_previous_fndecl): Likewise.
6883         (aarch64_process_target_attr): Likewise.
6884         (aarch64_override_options_internal): Likewise.
6886 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6888         * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
6889         New function.
6890         (aarch64_can_inline_p): Likewise.
6891         (TARGET_CAN_INLINE_P): Define.
6893 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6895         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
6896         Remove static.  Handle OPT_mgeneral_regs_only,
6897         OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
6898         OPT_momit_leaf_frame_pointer.
6899         * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
6900         (aarch64_attr_opt_type): New enum.
6901         (aarch64_attribute_info): New struct.
6902         (aarch64_handle_attr_arch): New function.
6903         (aarch64_handle_attr_cpu): Likewise.
6904         (aarch64_handle_attr_tune): Likewise.
6905         (aarch64_handle_attr_isa_flags): Likewise.
6906         (aarch64_attributes): New table.
6907         (aarch64_process_one_target_attr): New function.
6908         (num_occurences_in_str): Likewise.
6909         (aarch64_process_target_attr): Likewise.
6910         (aarch64_option_valid_attribute_p): Likewise.
6911         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
6912         * config/aarch64/aarch64-protos.h: Include input.h
6913         (aarch64_handle_option): Declare prototype.
6915 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6917         * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
6918         * config/aarch64/aarch64.c: Include target-globals.h
6919         (aarch64_previous_fndecl): New variable.
6920         (aarch64_set_current_function): New function.
6921         (TARGET_SET_CURRENT_FUNCTION): Define.
6923 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6925         * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
6926         (explicit_arch): Likewise.
6927         (x_aarch64_isa_flags): Likewise.
6928         (mgeneral-regs-only): Mark as Save.
6929         (mfix-cortex-a53-835769): Likewise.
6930         (mcmodel=): Likewise.
6931         (mstrict-align): Likewise.
6932         (momit-leaf-frame-pointer): Likewise.
6933         (mtls-dialect): Likewise.
6934         (master=): Likewise.
6935         * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
6936         (aarch64_isa_flags): Remove extern declaration.
6937         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
6938         to indicate success or failure.
6939         (aarch64_validate_march): Likewise.
6940         (aarch64_validate_mtune): Likewise.
6941         (aarch64_isa_flags): Delete.
6942         (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
6943         instead of aarch64_isa_flags.
6944         (aarch64_get_tune_cpu): New function.
6945         (aarch64_get_arch): Likewise.
6946         (aarch64_override_options): Use above and set up explicit_tune_core
6947         and explicit_arch.
6948         (aarch64_print_extension): Move earlier in file.  Add isa_flags
6949         argument and use that instead of the global aarch64_isa_flags.
6950         (aarch64_option_save): New function.
6951         (aarch64_option_restore): Likewise.
6952         (aarch64_option_print): Likewise.
6953         (aarch64_declare_function_name): Likewise.
6954         (aarch64_start_file): Delete.
6955         (TARGET_ASM_FILE_START): Do not define.
6956         (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
6957         * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
6958         Declare prototype.
6960 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6962         * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
6963         flag_omit_leaf_frame_pointer to 2.
6965 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6967         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
6968         define to 0 or 1.
6969         (TARGET_FIX_ERR_A53_835769): New macro.
6970         * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
6971         handling of opts->x_aarch64_fix_a53_err835769.
6972         (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
6973         than aarch64_fix_a53_err835769.
6974         * config/aarch64/aarch64-elf-raw.h: Update for above changes.
6975         * config/aarch64/aarch64-linux.h: Likewise.
6977 2015-08-04  Uros Bizjak  <ubizjak@gmail.com>
6979         * config/i386/i386.c (ix86_expand_int_movcc): Check result of
6980         ix86_expand_int_movcc as boolean.
6982 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6984         * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
6985         (aarch64_cpu_string): Likewise.
6986         (aarch64_tune_string): Likewise.
6987         * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
6988         (aarch64_parse_extension): Return aarch64_parse_opt_result.
6989         Add extra argument to put result into.
6990         (aarch64_parse_arch): Likewise.  Do not set selected_cpu.
6991         (aarch64_parse_cpu): Add arguments to put results into. Return
6992         aarch64_parse_opt_result.
6993         (aarch64_parse_tune): Likewise.
6994         (aarch64_override_options_after_change_1): New function.
6995         (aarch64_override_options_internal): New function.
6996         (aarch64_validate_mcpu): Likewise.
6997         (aarch64_validate_march): Likewise.
6998         (aarch64_validate_mtune): Likewise.
6999         (aarch64_override_options): Update to reflect above changes.
7000         Move some logic into aarch64_override_options_internal.
7001         Initialize target_option_default_node and target_option_current_node.
7002         (aarch64_override_options_after_change): Move logic into
7003         aarch64_override_options_after_change_1 and call it with global_options.
7004         (initialize_aarch64_code_model): Take a gcc_options pointer and use the
7005         flag values from that.
7007 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7009         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
7010         __ARM_ARCH_8A directly rather than with cpp_define_formatted.
7011         * config/aarch64/aarch64.c (struct processor): Add arch field.
7012         (all_architectures): Handle above, move above all_cores.
7013         (all_cores): Handle above.
7014         (aarch64_parse_arch): Handle above changes.
7015         * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
7016         above.  Update comments.
7017         (armv8.1-a): Likewise.
7018         * config/aarch64/aarch64-cores.def: Update according to above.
7019         * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
7020         * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
7021         aarch64_arch_driver_info.
7023 2015-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7025         * config/aarch64/aarch64.c (struct processor): Add ident field.
7026         Rename core sched_core.
7027         (all_cores): Handle above changes.
7028         (all_architectures): Likewise.
7029         (aarch64_parse_arch): Likewise.
7030         (aarch64_override_options): Likewise.
7032 2015-08-04  Richard Biener  <rguenther@suse.de>
7034         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
7035         dispatching to fold_binary for GIMPLE_BINARY_RHS and for
7036         comparisons embedded in [VEC_]COND_EXPRs.
7038 2015-08-03  Abe Skolnik  <a.skolnik@samsung.com>
7040         * tree-if-conv.c: Fix various typos in comments.
7041         * tree-vect-stmts.c: Likewise.
7043 2015-08-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7045         PR tree-optimization/67043
7046         * loop-invariant.c (move_invariant_reg): Recompute luids in loop
7047         preheader after hoisting invariant in it.
7048         (find_defs): Force recomputation of all luids.
7050 2015-08-03  Peter Bergner  <bergner@vnet.ibm.com>
7052         * config/rs6000/htm.md (tabort.): Restrict the source operand to
7053         using a base register.
7055 2015-08-03  David Malcolm  <dmalcolm@redhat.com>
7057         * main.c (main): Pass in NULL for toplev's external_timer.
7058         * timevar.c: Include coretypes.h.
7059         (class timer::named_items): New.
7060         (timer::named_items::named_items): New.
7061         (timer::named_items::~named_items): New.
7062         (timer::named_items::push): New.
7063         (timer::named_items::pop): New.
7064         (timer::named_items::print): New.
7065         (timer::timer): Initialize field "m_jit_client_items".
7066         (timer::~timer): New.
7067         (timer::push): Move bulk of implementation to...
7068         (timer::push_internal): ...here.  New function.
7069         (timer::pop): Move bulk of implementation to...
7070         (timer::pop_internal): ...here.  New function.
7071         (timer::push_client_item): New.
7072         (timer::pop_client_item): New.
7073         (timer::print_row): New function, taken from timer::print.
7074         (timer::print): Print "GCC items" header if we also have client
7075         items.  Move row-printing to timer::print_row.  Print any client
7076         items.
7077         (timer::get_topmost_item_name): New method.
7078         * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
7079         (TV_JIT_CLIENT_CODE): New.
7080         * timevar.h (timer::push_client_item): New declaration.
7081         (timer::pop_client_item): New declaration.
7082         (timer::get_topmost_item_name): New method.
7083         (timer::push_internal): New declaration.
7084         (timer::pop_internal): New declaration.
7085         (timer::print_row): New declaration.
7086         (timer::named_items): New declaration.
7087         (timer::m_jit_client_items): New field.
7088         (timer): Add friend class named_items.
7089         (auto_timevar::auto_timevar): Add timer param.
7090         (auto_timevar::~auto_timevar): Use field "m_timer".
7091         (auto_timevar::m_timer): New field.
7092         * toplev.c (initialize_rtl): Add g_timer as param when
7093         constructing auto_timevar instance.
7094         (toplev::toplev): Add "external_timer" param, and use it to
7095         initialize the "g_timer" global if non-NULL.
7096         (toplev::~toplev): If this created "g_timer", delete it.
7097         * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
7098         with "external_timer" timer *.
7100 2015-08-03  Alexander Basov <coohpt@gmail.com>
7102         PR middle-end/64744
7103         PR middle-end/48470
7104         PR middle-end/43404
7105         * cfgexpand.c (expand_one_var): Add check if stack is going to
7106         be used in naked function.
7107         * expr.c (expand_expr_addr_expr_1): Remove excess checking
7108         whether expression should not reside in MEM.
7109         * function.c (use_register_for_decl): Do not use registers for
7110         non-register things (volatile, float, BLKMode) in naked functions.
7112 2015-08-03  John David Anglin  <danglin@gcc.gnu.org>
7114         PR target/67060
7115         * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
7116         Adjust splits to match new pattern.
7118 2015-08-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
7120         * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
7121         (VEC_M): Likewise.
7122         (VEC_N): Likewise.
7123         (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
7124         point in VSX registers.
7126         * config/rs6000/constraints.md (wb constraint): Document unused
7127         w<x> constraint.
7128         (we constraint): Likewise.
7129         (wo constraint): Likewise.
7130         (wp constraint): New constraint for IEEE 128-bit floating point in
7131         VSX registers.
7132         (wq constraint): Likewise.
7134         * config/rs6000/predicates.md (easy_fp_constant): Add support for
7135         IEEE 128-bit floating point in VSX registers.
7136         (easy_scalar_constant): Likewise.
7138         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
7139         constraints (wp, wq) for IEEE 128-bit floating point in VSX
7140         registers.
7141         (rs6000_init_hard_regno_mode_ok): Likewise.
7143         * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
7144         floating point in VSX registers.
7145         (VSX_L): Likewise.
7146         (VSX_M): Likewise.
7147         (VSX_M2): Likewise.
7148         (VSm): Likewise.
7149         (VSs): Likewise.
7150         (VSr): Likewise.
7151         (VSa): Likewise.
7152         (VSv): Likewise.
7153         (vsx_le_permute_<mode>): Add support to properly swap bytes for
7154         IEEE 128-bit floating point in VSX registers on little endian.
7155         (vsx_le_undo_permute_<mode>): Likewise.
7156         (vsx_le_perm_load_<mode>): Likewise.
7157         (vsx_le_perm_store_<mode>): Likewise.
7158         (splitters for IEEE 128-bit fp moves): Likewise.
7160         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
7161         wq constraints.
7163         * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
7164         floating point in VSX registers.
7165         (VM2): Likewise.
7167         * doc/md.text (Machine Constraints): Document wp and wq
7168         constraints on PowerPC.
7170 2015-08-03  Jeff Law  <law@redhat.com>
7172         PR middle-end/66314
7173         PR gcov-profile/66899
7174         * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
7175         iterate over the jump threading paths when an element in the
7176         jump threading paths array is eliminated.
7178 2015-08-03  Segher Boessenkool  <segher@kernel.crashing.org>
7180         * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
7182 2015-08-03  Patrick Palka  <ppalka@gcc.gnu.org>
7184         * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
7185         is_use_properly_guarded the variable def_preds.  Free its
7186         contents before returning.
7187         (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
7188         (is_use_properly_guarded): Replace local variable def_preds with
7189         a parameter.  Adjust accordingly.  Only update *def_preds if it's
7190         the empty vector.
7192 2015-08-03  Richard Biener  <rguenther@suse.de>
7194         * genmatch.c (simplify::for_subst_vec): New member.
7195         (binary_ok): New helper for for lowering.
7196         (lower_for): Delay substituting operators into result expressions
7197         if we can merge the results eventually again.
7198         (capture_info::walk_result): Adjust for user_id appearing as
7199         result expression operator.
7200         (expr::gen_transform): Likewise.
7201         (dt_simplify::gen_1): Likewise.
7202         (dt_simplify::gen): Pass not substituted operators to tail
7203         functions or initialize local variable with it.
7204         (decision_tree::gen): Adjust function signature.
7205         * match.pd: Fix tests against global code and add default
7206         cases to switch stmts.
7208 2015-08-03  Richard Biener  <rguenther@suse.de>
7210         * genmatch.c (dt_simplify::gen): Create captures array
7211         with an initializer.
7213 2015-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7215         * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
7216         the host compiler is affected by placement new aliasing bug.
7217         * configure: Regenerate.
7218         * Makefile.in (ALIASING_FLAGS): New variable.
7219         (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
7221 2015-08-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
7223         PR target/66731
7224         * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
7225         (negmulsf3_vfp): Likewise.
7226         (muldf3negdf_vfp): Disable for -frounding-math.
7227         (mulsf3negsf_vfp): Likewise.
7228         * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
7229         fix MULT cost with -frounding-math.
7231 2015-08-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7233         * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
7234         when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
7235         explicit.  Prefer to add the flag whenever possible.
7236         (noce_process_if_block): Try noce_try_store_flag_constants before
7237         noce_try_cmove.
7239 2015-08-03  Richard Biener  <rguenther@suse.de>
7241         * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
7242         New hash-map to record equivalent transforms.
7243         (dt_node::analyze): Populate the equivalent transforms hash-map.
7244         (dt_simplify::info): Add reference to hash-map entry.
7245         (dt_simplify::gen): If we have split out a function for the
7246         transform, generate a call to it.
7247         (sinfo_hashmap_traits::hash): New function.
7248         (compare_op): New helper function for ...
7249         (sinfo_hashmap_traits::equal_keys): ... this new function.
7250         (decision_tree::gen): Split out common equivalent transforms
7251         into functions.
7253 2015-08-03  Richard Biener  <rguenther@suse.de>
7255         * gimple-fold.c (fold_gimple_assign): Remove folding of
7256         the comparison in COND_EXPRs.
7258 2015-08-03  Richard Biener  <rguenther@suse.de>
7260         * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
7261         on the rhs of assignments first simplify the embedded
7262         GENERIC condition.
7264 2015-08-03  Richard Biener  <rguenther@suse.de>
7266         PR tree-optimization/66917
7267         * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
7268         field.
7269         (DR_VECT_AUX): New macro.
7270         (set_dr_misalignment): Adjust.
7271         (dr_misalignment): Likewise.
7272         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
7273         Compute whether the base is at least element aligned.
7274         * tree-vect-stmts.c (ensure_base_align): Adjust.
7275         (vectorizable_store): If the base is not element aligned
7276         preserve alignment of the original access if misalignment is unknown.
7277         (vectorizable_load): Likewise.
7279 2015-08-02  Martin Sebor  <msebor@redhat.com>
7281         * c-family/c.opt (-Wframe-address): New warning option.
7282         * doc/invoke.texi (Wframe-address): Document it.
7283         * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
7284         Clarify possible effects of calling the functions with non-zero
7285         arguments and mention -Wframe-address.
7286         * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
7288 2015-08-01  Michael Collison  <michael.collison@linaro.org
7289             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7291         * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
7292         (*arm_umin_cmp): Likewise.
7294 2015-08-01  Caroline Tice  <cmtice@google.com>
7296         PR 66521
7297         * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
7298         global variables.
7299         (vtbl_find_mangled_name):  New function.
7300         (vtbl_register_mangled_name):  New function.
7301         (vtbl_map_get_node):  If DECL_ASSEMBLER_NAME is "<anon>", look up
7302         mangled name in mangled name vectors.
7303         (find_or_create_vtbl_map_node):  Ditto.
7304         (var_is_used_for_virtual_call_p):  Add recursion_depth parameter;
7305         update recursion_depth on function entry; pass it to every recursive
7306         call; automatically exit if depth > 25 (give up looking at that point).
7307         (verify_bb_vtables):  Initialize recursion_depth and pass it to
7308         var_is_used_for_virtual_call_p.
7309         * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
7310         global variable decls.
7311         (vtbl_register_mangled_name): New extern function decl.
7313 2015-08-01  Tom de Vries  <tom@codesourcery.com>
7315         * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
7316         function.
7317         * tree.h (operation_can_overflow, operation_no_trapping_overflow):
7318         Declare.
7319         * tree-vect-loop.c (vect_is_simple_reduction_1): Use
7320         operation_no_trapping_overflow.  Allow non-overflow operations.
7321         * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
7322         operations.
7324 2015-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
7326         PR target/67049
7327         * config/sh/sh.md (GOTaddr2picreg): Fix typo.
7329 2015-07-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7331         * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
7332         Enable for TARGET_32BIT.
7333         (*if_move_neg): Likewise.
7335 2015-07-31  Nick Clifton  <nickc@redhat.com>
7337         * config/m32r/m32r.c (m32r_attribute_identifier): New function.
7338         Returns true for __model__.
7339         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
7341 2015-07-31  Alan Modra  <amodra@gmail.com>
7343         PR target/66870
7344         * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
7345         (rs6000_emit_prologue): Set it.
7346         (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
7348 2015-07-31  Richard Biener  <rguenther@suse.de>
7350         * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
7351         -> X == (C1 ^ C2) which is already implemented in match.pd.
7352         Remove redundant dispatching to fold_relational_const.
7353         Move unordered self and NaN compares ...
7354         * match.pd: ... as patterns here.  Remove some stray captures
7355         and add a comment.
7357 2015-07-31  Petr Murzin  <petr.murzin@intel.com>
7359         * config/i386/i386.c
7360         (bdesc_special_args): Convert mask type from signed to unsigned for
7361         masked builtins.
7362         (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
7363         UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
7364         V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
7365         V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
7366         V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
7367         V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
7368         V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
7369         V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
7370         V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
7371         HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
7372         V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
7373         V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
7374         V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
7375         V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
7376         V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
7377         V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
7378         V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
7379         V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
7380         V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
7381         V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
7382         V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
7383         HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
7384         VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
7385         V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
7386         * config/i386/i386-builtin-types.def
7387         (V16QI_FTYPE_V16SI): Remove.
7388         (V8DF_FTYPE_V8SI): Ditto.
7389         (V8HI_FTYPE_V8DI): Ditto.
7390         (V8SI_FTYPE_V8DI): Ditto.
7391         (V8SF_FTYPE_V8DF): Ditto.
7392         (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
7393         (V16HI_FTYPE_V16SI): Ditto.
7394         (V16SF_FTYPE_V16HI): Ditto.
7395         (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
7396         (V16SF_FTYPE_V16SI): Ditto.
7397         (V4DI_FTYPE_V4DI): Ditto.
7398         (V16SI_FTYPE_V16SF): Ditto.
7399         (V16SF_FTYPE_FLOAT): Ditto.
7400         (V8DF_FTYPE_DOUBLE): Ditto.
7401         (V8DI_FTYPE_INT64): Ditto.
7402         (V8DI_FTYPE_V4DI): Ditto.
7403         (V16QI_FTYPE_V8DI): Ditto.
7404         (UINT_FTYPE_V4SF): Ditto.
7405         (UINT64_FTYPE_V4SF): Ditto.
7406         (UINT_FTYPE_V2DF): Ditto.
7407         (UINT64_FTYPE_V2DF): Ditto.
7408         (V16SI_FTYPE_V16SI): Ditto.
7409         (V8DI_FTYPE_V8DI): Ditto.
7410         (V16SI_FTYPE_PV4SI): Ditto.
7411         (V16SF_FTYPE_PV4SF): Ditto.
7412         (V8DI_FTYPE_PV2DI): Ditto.
7413         (V8DF_FTYPE_PV2DF): Ditto.
7414         (V4DI_FTYPE_PV2DI): Ditto.
7415         (V4DF_FTYPE_PV2DF): Ditto.
7416         (V16SI_FTYPE_PV2SI): Ditto.
7417         (V16SF_FTYPE_PV2SF): Ditto.
7418         (V8DI_FTYPE_PV4DI): Ditto.
7419         (V8DF_FTYPE_PV4DF): Ditto.
7420         (V8SF_FTYPE_FLOAT): Ditto.
7421         (V4SF_FTYPE_FLOAT): Ditto.
7422         (V4DF_FTYPE_DOUBLE): Ditto.
7423         (V8SF_FTYPE_PV4SF): Ditto.
7424         (V8SI_FTYPE_PV4SI): Ditto.
7425         (V4SI_FTYPE_PV2SI): Ditto.
7426         (V8SF_FTYPE_PV2SF): Ditto.
7427         (V8SI_FTYPE_PV2SI): Ditto.
7428         (V16SF_FTYPE_PV8SF): Ditto.
7429         (V16SI_FTYPE_PV8SI): Ditto.
7430         (V8DI_FTYPE_V8SF): Ditto.
7431         (V4DI_FTYPE_V4SF): Ditto.
7432         (V2DI_FTYPE_V4SF): Ditto.
7433         (V64QI_FTYPE_QI): Ditto.
7434         (V32HI_FTYPE_HI): Ditto.
7435         (V8UHI_FTYPE_V8UHI): Ditto.
7436         (V16UHI_FTYPE_V16UHI): Ditto.
7437         (V32UHI_FTYPE_V32UHI): Ditto.
7438         (V2UDI_FTYPE_V2UDI): Ditto.
7439         (V4UDI_FTYPE_V4UDI): Ditto.
7440         (V8UDI_FTYPE_V8UDI): Ditto.
7441         (V4USI_FTYPE_V4USI): Ditto.
7442         (V8USI_FTYPE_V8USI): Ditto.
7443         (V16USI_FTYPE_V16USI): Ditto.
7444         (V2DF_FTYPE_V2DF_UINT64): Ditto.
7445         (V2DI_FTYPE_V2DF_V2DF): Ditto.
7446         (V2UDI_FTYPE_V4USI_V4USI): Ditto.
7447         (V8DF_FTYPE_V8DF_V8DI): Ditto.
7448         (V4SF_FTYPE_V4SF_UINT64): Ditto.
7449         (V4SI_FTYPE_V4SF_V4SF): Ditto.
7450         (V16SF_FTYPE_V16SF_V16SI): Ditto.
7451         (V64QI_FTYPE_V32HI_V32HI): Ditto.
7452         (V32HI_FTYPE_V16SI_V16SI): Ditto.
7453         (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
7454         (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
7455         (V32HI_FTYPE_V64QI_V64QI): Ditto.
7456         (V32HI_FTYPE_V32HI_V32HI): Ditto.
7457         (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
7458         (V16SI_FTYPE_V16SI_V4SI): Ditto.
7459         (V16SI_FTYPE_V16SI_V16SI): Ditto.
7460         (V16SI_FTYPE_V32HI_V32HI): Ditto.
7461         (V16SI_FTYPE_V16SI_SI): Ditto.
7462         (V8DI_FTYPE_V8DI_V8DI): Ditto.
7463         (V4UDI_FTYPE_V8USI_V8USI): Ditto.
7464         (V8DI_FTYPE_V16SI_V16SI): Ditto.
7465         (V8DI_FTYPE_V8DI_V2DI): Ditto.
7466         (QI_FTYPE_QI): Ditto.
7467         (SI_FTYPE_SI): Ditto.
7468         (DI_FTYPE_DI): Ditto.
7469         (QI_FTYPE_QI_QI): Ditto.
7470         (QI_FTYPE_QI_INT): Ditto.
7471         (HI_FTYPE_HI_INT): Ditto.
7472         (SI_FTYPE_SI_INT): Ditto.
7473         (DI_FTYPE_DI_INT): Ditto.
7474         (HI_FTYPE_V16QI_V16QI): Ditto.
7475         (SI_FTYPE_V32QI_V32QI): Ditto.
7476         (DI_FTYPE_V64QI_V64QI): Ditto.
7477         (QI_FTYPE_V8HI_V8HI): Ditto.
7478         (HI_FTYPE_V16HI_V16HI): Ditto.
7479         (SI_FTYPE_V32HI_V32HI): Ditto.
7480         (QI_FTYPE_V4SI_V4SI): Ditto.
7481         (QI_FTYPE_V8SI_V8SI): Ditto.
7482         (QI_FTYPE_V2DI_V2DI): Ditto.
7483         (QI_FTYPE_V4DI_V4DI): Ditto.
7484         (QI_FTYPE_V8DI_V8DI): Ditto.
7485         (HI_FTYPE_V16SI_V16SI): Ditto.
7486         (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
7487         (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
7488         (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
7489         (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
7490         (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
7491         (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
7492         (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
7493         (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
7494         (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
7495         (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
7496         (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
7497         (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
7498         (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
7499         (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
7500         (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
7501         (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
7502         (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
7503         (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
7504         (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
7505         (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
7506         (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
7507         (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
7508         (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
7509         (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
7510         (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
7511         (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
7512         (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
7513         (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
7514         (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
7515         (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
7516         (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
7517         (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
7518         (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
7519         (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
7520         (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
7521         (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
7522         (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
7523         (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
7524         (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
7525         (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
7526         (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
7527         (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
7528         (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
7529         (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
7530         (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
7531         (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
7532         (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
7533         (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
7534         (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
7535         (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
7536         (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
7537         (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
7538         (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
7539         (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
7540         (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
7541         (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
7542         (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
7543         (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
7544         (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
7545         (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
7546         (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
7547         (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
7548         (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
7549         (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
7550         (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
7551         (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
7552         (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
7553         (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
7554         (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
7555         (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
7556         (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
7557         (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
7558         (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
7559         (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
7560         (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
7561         (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
7562         (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
7563         (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
7564         (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
7565         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
7566         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
7567         (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
7568         (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
7569         (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
7570         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
7571         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
7572         (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
7573         (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
7574         (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
7575         (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
7576         (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
7577         (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
7578         (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
7579         (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
7580         (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
7581         (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
7582         (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
7583         (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
7584         (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
7585         (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
7586         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
7587         (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
7588         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
7589         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
7590         (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
7591         (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
7592         (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
7593         (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
7594         (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
7595         (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
7596         (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
7597         (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
7598         (HI_FTYPE_HI): Ditto.
7599         (HI_FTYPE_V16QI): Ditto.
7600         (SI_FTYPE_V32QI): Ditto.
7601         (DI_FTYPE_V64QI): Ditto.
7602         (QI_FTYPE_V8HI): Ditto.
7603         (HI_FTYPE_V16HI): Ditto.
7604         (SI_FTYPE_V32HI): Ditto.
7605         (QI_FTYPE_V4SI): Ditto.
7606         (QI_FTYPE_V8SI): Ditto.
7607         (HI_FTYPE_V16SI): Ditto.
7608         (QI_FTYPE_V2DI): Ditto.
7609         (QI_FTYPE_V4DI): Ditto.
7610         (QI_FTYPE_V8DI): Ditto.
7611         (V16QI_FTYPE_HI): Ditto.
7612         (V32QI_FTYPE_SI): Ditto.
7613         (V64QI_FTYPE_DI): Ditto.
7614         (V8HI_FTYPE_QI): Ditto.
7615         (V16HI_FTYPE_HI): Ditto.
7616         (V32HI_FTYPE_SI): Ditto.
7617         (V4SI_FTYPE_QI): Ditto.
7618         (V4SI_FTYPE_HI): Ditto.
7619         (V8SI_FTYPE_QI): Ditto.
7620         (V8SI_FTYPE_HI): Ditto.
7621         (V2DI_FTYPE_QI): Ditto.
7622         (V4DI_FTYPE_QI): Ditto.
7623         (HI_FTYPE_HI_HI): Ditto.
7624         (SI_FTYPE_SI_SI): Ditto.
7625         (DI_FTYPE_DI_DI): Ditto.
7626         (HI_FTYPE_V16QI_V16QI_HI): Ditto.
7627         (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
7628         (SI_FTYPE_V32QI_V32QI_SI): Ditto.
7629         (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
7630         (DI_FTYPE_V64QI_V64QI_DI): Ditto.
7631         (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
7632         (QI_FTYPE_V8HI_V8HI_QI): Ditto.
7633         (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
7634         (HI_FTYPE_V16HI_V16HI_HI): Ditto.
7635         (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
7636         (SI_FTYPE_V32HI_V32HI_SI): Ditto.
7637         (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
7638         (QI_FTYPE_V4SI_V4SI_QI): Ditto.
7639         (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
7640         (QI_FTYPE_V8SI_V8SI_QI): Ditto.
7641         (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
7642         (QI_FTYPE_V2DI_V2DI_QI): Ditto.
7643         (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
7644         (QI_FTYPE_V4DI_V4DI_QI): Ditto.
7645         (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
7646         (QI_FTYPE_V8DI_V8DI_QI): Ditto.
7647         (HI_FTYPE_V16SI_V16SI_HI): Ditto.
7648         (QI_FTYPE_V8DI_V8DI_INT): Ditto.
7649         (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
7650         (HI_FTYPE_V16SI_V16SI_INT): Ditto.
7651         (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
7652         (QI_FTYPE_V8DF_V8DF_INT): Ditto.
7653         (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
7654         (HI_FTYPE_V16SF_V16SF_INT): Ditto.
7655         (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
7656         (QI_FTYPE_V2DF_V2DF_INT): Ditto.
7657         (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
7658         (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
7659         (QI_FTYPE_V4SF_V4SF_INT): Ditto.
7660         (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
7661         (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
7662         (V16SI_FTYPE_HI): Ditto.
7663         (V8DI_FTYPE_QI): Ditto.
7664         (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
7665         (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
7666         (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
7667         (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
7668         (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
7669         (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
7670         (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
7671         (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
7672         (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
7673         (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
7674         (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
7675         (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
7676         (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
7677         (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
7678         (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
7679         (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
7680         (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
7681         (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
7682         (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
7683         (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
7684         (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
7685         (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
7686         (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
7687         (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
7688         (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
7689         (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
7690         (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
7691         (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
7692         (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
7693         (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
7694         (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
7695         (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
7696         (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
7697         (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
7698         (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
7699         (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
7700         (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
7701         (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
7702         (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
7703         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
7704         (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
7705         (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
7706         (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
7707         (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
7708         (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
7709         (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
7710         (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
7711         (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
7712         (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
7713         (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
7714         (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
7715         (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
7716         (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
7717         (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
7718         (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
7719         (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
7720         (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
7721         (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
7722         (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
7723         (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
7724         (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
7725         (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
7726         (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
7727         (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
7728         (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
7729         (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
7730         (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
7731         (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
7732         (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
7733         (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
7734         (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
7735         (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
7736         (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
7737         (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
7738         (V16SI_FTYPE_SI_V16SI_HI): Ditto.
7739         (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
7740         (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
7741         (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
7742         (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
7743         (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
7744         (V8DI_FTYPE_DI_V8DI_QI): Ditto.
7745         (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
7746         (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
7747         (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
7748         (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
7749         (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
7750         (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
7751         (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
7752         (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
7753         (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
7754         (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
7755         (V8SI_FTYPE_SI_V8SI_QI): Ditto.
7756         (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
7757         (V4SI_FTYPE_SI_V4SI_QI): Ditto.
7758         (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
7759         (V4DI_FTYPE_DI_V4DI_QI): Ditto.
7760         (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
7761         (V2DI_FTYPE_DI_V2DI_QI): Ditto.
7762         (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
7763         (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
7764         (V64QI_FTYPE_QI_V64QI_DI): Ditto.
7765         (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
7766         (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
7767         (V32QI_FTYPE_QI_V32QI_SI): Ditto.
7768         (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
7769         (V16QI_FTYPE_QI_V16QI_HI): Ditto.
7770         (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
7771         (V32HI_FTYPE_HI_V32HI_SI): Ditto.
7772         (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
7773         (V16HI_FTYPE_HI_V16HI_HI): Ditto.
7774         (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
7775         (V8HI_FTYPE_HI_V8HI_QI): Ditto.
7776         (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
7777         (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
7778         (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
7779         (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
7780         (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
7781         (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
7782         (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
7783         (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
7784         (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
7785         (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
7786         (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
7787         (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
7788         (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
7789         (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
7790         (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
7791         (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
7792         (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
7793         (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
7794         (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
7795         (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
7796         (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
7797         (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
7798         (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
7799         (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
7800         (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
7801         (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
7802         (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
7803         (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
7804         (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
7805         (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
7806         (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
7807         (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
7808         (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
7809         (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
7810         (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
7811         (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
7812         (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
7813         (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
7814         (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
7815         (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
7816         (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
7817         (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
7818         (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
7819         (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
7820         (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
7821         (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
7822         (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
7823         (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
7824         (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
7825         (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
7826         (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
7827         (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
7828         (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
7829         (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
7830         (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
7831         (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
7832         (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
7833         (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
7834         (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
7835         (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
7836         (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
7837         (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
7838         (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
7839         (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
7840         (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
7841         (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
7842         (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
7843         (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
7844         (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
7845         (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
7846         (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
7847         (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
7848         (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
7849         (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
7850         (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
7851         (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
7852         (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
7853         (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
7854         (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
7855         (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
7856         (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
7857         (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
7858         (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
7859         (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
7860         (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
7861         (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
7862         (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
7863         (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
7864         (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
7865         (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
7866         (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
7867         (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
7868         (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
7869         (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
7870         (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
7871         (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
7872         (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
7873         (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
7874         (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
7875         (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
7876         (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
7877         (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
7878         (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
7879         (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
7880         (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
7881         (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
7882         (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
7883         (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
7884         (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
7885         (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
7886         (QI_FTYPE_V8DF_INT_QI): Ditto.
7887         (QI_FTYPE_V4DF_INT_QI): Ditto.
7888         (QI_FTYPE_V2DF_INT_QI): Ditto.
7889         (HI_FTYPE_V16SF_INT_HI): Ditto.
7890         (QI_FTYPE_V8SF_INT_QI): Ditto.
7891         (QI_FTYPE_V4SF_INT_QI): Ditto.
7892         (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
7894 2015-07-31  Richard Biener  <rguenther@suse.de>
7896         * gimple-fold.c (fold_gimple_assign): Remove folding of
7897         GIMPLE_BINARY_RHS.
7899 2015-07-31  Tom de Vries  <tom@codesourcery.com>
7901         PR tree-optimization/66846
7902         * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
7903         verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
7904         (expand_omp_target) [ENABLE_CHECKING]: Same.
7905         (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
7906         cfun if !LOOPS_NEED_FIXUP.
7907         (expand_omp_for_static_nochunk): Handle simple latch bb.  Handle case
7908         that omp_for already has its own loop struct.
7909         * tree-parloops.c (create_phi_for_local_result)
7910         (create_call_for_reduction): Handle simple latch bb.
7911         (create_parallel_loop): Add simple latch bb to preserve
7912         LOOPS_HAVE_SIMPLE_LATCHES.  Record new exit.  Handle simple latch bb.
7913         (gen_parallel_loop): Remove call to cancel_loop_tree.
7914         (parallelize_loops): Skip loops that are inner loops of parallelized
7915         loops.
7916         (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
7917         verify_loop_structure.
7919 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
7921         * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
7922         * config/v850/v850.md (RV_REGNUM): New constants.
7923         * config/v850/v850.c (v850_libcall_value): New functions.
7924         (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
7925         (TARGET_LIBCALL_VALUE): Define.
7927 2015-07-30  Anatoly Sokolov  <aesok@post.ru>
7929         * rtl.h (lowpart_subreg): Move in file.
7930         * loop-iv.c (lowpart_subreg): Move to...
7931         * simplify-rtx.c (lowpart_subreg): ...here.
7932           (simplify_binary_operation_1): Use lowpart_subreg instead of
7933           simplify_gen_subreg.
7934         * expr.c (expand_expr_real_2): Ditto.
7935         * emit-rtl.c (gen_lowpart_common): Ditto.
7936         * combine.c (gen_lowpart_for_combine): Ditto.
7937         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
7938           expand_debug_source_expr): Ditto.
7940 2015-07-30  Richard Sandiford  <richard.sandiford@arm.com>
7942         * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
7943         (expand_builtin_atomic_clear): Remove support for atomic_clear
7944         pattern.
7946 2015-07-30  Richard Biener  <rguenther@suse.de>
7948         * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
7949         binaries.  Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
7950         (fold_stmt_1): ... here and work on GIMPLE directly.  Remove
7951         redundant operand canonicalization.
7953 2015-07-30  David Sherwood  <david.sherwood@arm.com>
7955         * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
7956         GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
7957         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
7958         * config/arm/arm.c (neon_valid_immediate): Likewise.
7959         * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
7960         (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
7961         (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
7962         (expand_vec_perm_vpshufb2_vpermq): Likewise.
7963         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
7964         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
7965         * config/i386/sse.md
7966         (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
7967         (*ssse3_palignr<mode>_perm): Likewise.
7968         * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
7969         * config/spu/spu.c (arith_immediate_p): Likewise.
7970         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7971         (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
7973 2015-07-30  Richard Biener  <rguenther@suse.de>
7975         * genmatch.c (decision_tree::gen_gimple): Merge with ...
7976         (decision_tree::gen_generic): ... this into ...
7977         (decision_tree::gen): ... this.
7978         (main): Adjust callers.
7980 2015-07-30  Richard Biener  <rguenther@suse.de>
7982         * genmatch.c (verbose): New global.
7983         (warning_at): Add overload with source_location.
7984         (capture_info::capture_info): Add bool whether generating gimple
7985         or generic.  Add gimple member.
7986         (capture_info::cinfo): Add capture member.
7987         (capture_info::walk_match): Record capture.  Warn on
7988         non-captured leafs.
7989         (capture_info::walk_c_expr): Add more fragments captures cannot
7990         escape through.  Warn on escaped captures.
7991         (dt_simplify::gen_1): Warn on operands we force to have no
7992         side-effects.
7993         (main): Initialize verbose.
7994         * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
7996 2015-07-30  Richard Biener  <rguenther@suse.de>
7998         PR middle-end/67053
7999         * match.pd: Allow both operands to independently have conversion
8000         when simplifying compares of addresses.
8002 2015-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
8004         PR target/66217
8005         PR target/67045
8006         * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
8007         around those cases that need one.
8009 2015-07-29  Aditya Kumar  <hiraditya@msn.com>
8011         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
8013 2015-07-29  H.J. Lu  <hongjiu.lu@intel.com>
8015         * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
8016         New.  Copied from config/i386/gnu-user.h.
8017         (ASM_COMMENT_START): Likewise.
8018         (DBX_REGISTER_NUMBER): Likewise.
8020 2015-07-29  Richard Biener  <rguenther@suse.de>
8022         * gimple-fold.c (fold_gimple_cond): Remove.
8023         (fold_stmt_1): Do not call it.
8025 2015-07-29  Alan Lawrence  <alan.lawrence@arm.com>
8027         * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
8028         (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
8030         * config/aarch64/aarch64-modes.def: Add HFmode.
8032         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
8033         __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
8035         * config/aarch64/aarch64.c (aarch64_init_libfuncs,
8036         aarch64_promoted_type): New.
8038         (aarch64_float_const_representable_p): Disable HFmode.
8039         (aarch64_mangle_type): Mangle half-precision floats to "Dh".
8040         (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
8041         (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
8043         * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
8044         (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
8046         * config/aarch64/iterators.md (GPF_F16): New.
8048 2015-07-29  Richard Biener  <rguenther@suse.de>
8050         * match.pd: Merge address comparison patterns and make them
8051         handle some more cases.
8053 2015-07-29  Richard Biener  <rguenther@suse.de>
8055         * genmatch.c (c_expr::gen_transform): Error on unknown captures.
8056         (parser::parse_capture): Add bool argument on whether to reject
8057         unknown captures.
8058         (parser::parse_expr): Adjust.
8059         (parser::parse_op): Likewise.
8060         (parser::parse_pattern): Likewise.
8062 2015-07-29  Richard Biener  <rguenther@suse.de>
8064         * gimple-fold.c (has_use_on_stmt): New function.
8065         (replace_stmt_with_simplification): Use it to allow
8066         abnormals originally referenced in the stmt.
8067         (fold_stmt_1): Canonicalize operand order.
8069 2015-07-28  David Sherwood  <david.sherwood@arm.com>
8071         * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
8072         GET_MODE_INNER unconditionally.
8073         * config/spu/spu.c (arith_immediate_p): Likewise.
8074         * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
8075         * expmed.c (synth_mult): Remove check for VOIDmode result from
8076         GET_MODE_INNER.
8077         (expand_mult_const): Likewise.
8078         * fold-const.c (fold_binary_loc): Replace call to element_precision
8079         with call to GET_MODE_PRECISION.
8080         * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
8081         m->name.
8082         (emit_mode_inner): Likewise.
8083         * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
8084         result check.
8085         * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
8086         (GET_MODE_UNIT_PRECISION): Likewise.
8087         * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
8088         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8089         * stor-layout.c (bitwise_type_for_mode): Update assert.
8090         (element_precision): Remove.
8092 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8094         * target-insns.def (reload_load_address): New targetm instruction
8095         pattern.
8096         * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
8098 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8100         * target-insns.def (atomic_test_and_set): New targetm instruction
8101         pattern.
8102         * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
8103         HAVE_*/gen_* interface.
8105 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8107         * target-insns.def (can_extend, ptr_extend): New targetm instruction
8108         patterns.
8109         * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
8110         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8111         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
8112         * rtlanal.c (nonzero_bits1): Likewise.
8113         (num_sign_bit_copies1): Likewise.
8115 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8117         * target-insns.def (eh_return): New targetm instruction pattern.
8118         * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
8119         interface.
8120         * function.c (thread_prologue_and_epilogue_insns): Remove
8121         preprocessor condition.
8123 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8125         * target-insns.def (indirect_jump): New targetm instruction pattern.
8126         * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
8127         interface.
8129 2015-07-28  Richard Sandiford  <richard.sandiford@arm.com>
8131         * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
8132         instead of nonimmediate_operand.  Remove C condiition.
8134 2015-07-28  Richard Biener  <rguenther@suse.de>
8136         * match.pd: Add more simplification of address comparisons.
8138 2015-07-28  Richard Biener  <rguenther@suse.de>
8140         * match.pd: Re-order two cases in comparison with max/min
8141         value simplification to make it apply for bools.
8143 2015-07-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8145         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
8146         Handle simple SIGN_EXTEND or ZERO_EXTEND.
8147         (aarch64_rtx_costs): Properly strip extend or extract before
8148         passing down to rtx costs again.
8150 2015-07-28  Nick Clifton  <nickc@redhat.com>
8152         * config/rl78/rl78.c (rl78_addsi3_internal): New function.
8153         Optimizes the case where -mes0 is active and a constant symbolic
8154         address is used.
8155         * config/rl78/rl78-protos.h: Prototype the new function.
8156         * config/rl78/rl78.md (addsi3_internal_real): Call new function.
8158 2015-07-28  Tom de Vries  <tom@codesourcery.com>
8160         * tree-parloops.c (reduc_stmt_res): New function.
8161         (initialize_reductions, add_field_for_reduction)
8162         (create_phi_for_local_result, create_loads_for_reductions)
8163         (create_stores_for_reduction, build_new_reduction): Handle case that
8164         reduc_stmt is a phi.
8165         (gather_scalar_reductions): Allow double_reduc reductions.
8167 2015-07-28  Richard Biener  <rguenther@suse.de>
8169         * fold-const.c (fold_comparison): Remove equality folding
8170         of decl addresses ...
8171         * match.pd: ... here and merge with existing pattern.
8173 2015-07-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8175         PR tree-optimization/66828
8176         * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
8177         from int64_t to uint64_t.
8179 2015-07-28  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8181         * opts-common.c (read_cmdline_option): List DriverOnly enum values
8182         as valid only in the error message of the driver, not in the
8183         messages of the language compilers.
8185 2015-07-27  Tom de Vries  <tom@codesourcery.com>
8187         * tree-parloops.c (gather_scalar_reductions): Simplify function
8188         structure.
8190 2015-07-27  Marek Polacek  <polacek@redhat.com>
8192         * ipa-devirt.c (types_same_for_odr): Fix typo.
8194 2015-07-27  Jason Merrill  <jason@redhat.com>
8196         PR debug/66468
8197         * dwarf2out.c (gen_inlined_subroutine_die): Check
8198         cgraph_function_possibly_inlined_p.
8200 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
8202         * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
8203         Place integer variant first.
8204         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
8206 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
8208         PR/63870
8209         * config/arm/arm-builtins.c (enum arm_builtins):
8210         Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
8211         (ARM_BUILTIN_NEON_BASE): Rename macro to....
8212         (ARM_BUILTIN_NEON_PATTERN_START): ...this.
8213         (arm_init_neon_builtins): Register __builtin_arm_lane_check.
8214         (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
8216 2015-07-27  Alan Lawrence  <alan.lawrence@arm.com>
8218         PR/63870
8219         * config/arm/arm-builtins.c (enum arm_type_qualifiers):
8220         Add qualifier_lane_index.
8221         (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
8222         (arm_getlane_qualifiers): Use qualifier_lane_index.
8223         (arm_lanemac_qualifiers): Rename to...
8224         (arm_mac_n_qualifiers): ...this.
8225         (LANEMAC_QUALIFIERS): Rename to...
8226         (MAC_N_QUALIFIERS): ...this.
8227         (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
8228         (arm_setlane_qualifiers): Use qualifier_lane_index.
8229         (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
8230         (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
8231         (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
8232         (arm_expand_neon_builtin): Handle qualifier_lane_index.
8234         * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
8235         * config/arm/arm.c (bounds_check): Likewise, improve error message.
8236         (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
8237         * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
8238         vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
8239         vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
8240         vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
8241         (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
8242         qualifiers to TERNOP_IMM.
8243         (vdup_lane): Change qualifiers to GETLANE.
8244         (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
8245         vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
8246         (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
8247         vqdmlsl_n): Change qualifiers to MAC_N.
8249         * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
8250         neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
8251         neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
8252         neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
8253         neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
8254         neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
8255         neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
8256         neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
8257         neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
8258         Remove call to neon_lane_bounds.
8260 2015-07-27  Wilco Dijkstra  <wdijkstr@arm.com>
8262         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
8263         Place integer variant first.
8265 2015-07-27  Matthew Wahab  <matthew.wahab@arm.com>
8267         * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
8268         and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
8269         * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
8270         for armv6kz targets.
8271         * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
8272         * config/arm/arm-protos.h (FL_ARCH6KZ): New.
8273         (FL_FOR_ARCH6ZK): Remove.
8274         (FL_FOR_ARCH6KZ): New.
8275         (arm_arch6zk): New declaration.
8276         * config/arm/arm-tables.opt: Regenerate.
8277         * config/arm/arm.c (arm_arch6kz): New.
8278         (arm_option_override): Set arm_arch6kz.
8279         * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
8280         * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
8281         * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
8283 2015-07-27  Marek Polacek  <polacek@redhat.com>
8285         PR c++/66555
8286         PR c/54979
8287         * doc/invoke.texi: Document -Wtautological-compare.
8289 2015-07-27  Richard Biener  <rguenther@suse.de>
8291         * genmatch.c (decision_tree::gen_gimple): Split out large
8292         subtrees into separate functions.
8293         (decision_tree::gen_generic): Likewise.
8295 2015-07-26  Uros Bizjak  <ubizjak@gmail.com>
8297         * config/alpha/alpha.c: Use SUBREG_P predicate.
8298         * config/alpha/predicates.md: Ditto.
8300 2015-07-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8302         * config.host (s390*-*-*): Include driver-native.c only when
8303         building with s390* as host *and* target.
8305 2015-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
8307         PR target/66930
8308         * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
8309         T bit register modified_between_p check.
8311 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8313         * config/i386/i386.c: Use SUBREG_P predicate.
8314         * config/i386/i386.md: Ditto.
8315         * config/i386/sse.md: Ditto.
8316         * config/i386/predicates.md: Ditto.
8318 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8320         PR target/67004
8321         * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
8322         predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
8324 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8326         * Makefile.in: Remove use of TREEBROWSER.
8327         * config.in: Regenerated.
8328         * configure: Regenerated.
8329         * configure.ac: Remove definition of TREEBROWSER.
8330         * tree-browser.c: Removed.
8331         * tree-browser.def: Removed.
8333 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8335         * graphite-scop-detection.c: Include gimple-pretty-print.h.
8336         (stmt_simple_for_scop_p): Print when a stmt is not handled in
8337         Graphite.
8338         (scopdet_basic_block_info): Print when a loop or bb cannot be
8339         represented in Graphite.
8341 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8343         PR target/66648
8344         * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
8345         execution guard when min_size is less than size_needed.
8347 2015-07-25  Sebastian Pop  <s.pop@samsung.com>
8349         * doc/install.texi: Document supported versions of ISL.
8351 2015-07-25  Jeff Law  <law@redhat.com>
8353         Revert:
8354         PR lto/66752
8355         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8356         unable to find X NE 0 in the tables, return X as the simplified
8357         condition.
8358         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8359         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
8360         to VISISTED_BBS.  */
8361         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8362         after removing the control flow statement and unnecessary edges.
8364 2015-07-25  David Edelsohn  <dje.gcc@gmail.com>
8366         Revert:
8367         2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
8369         PR rtl-optimization/64164
8370         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8371         * tree-ssa-copyrename.c: Removed.
8372         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8373         -ftree-coalesce-vars.
8374         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8375         * common.opt (ftree-copyrename): Ignore.
8376         (ftree-coalesce-inlined-vars): Likewise.
8377         * doc/invoke.texi: Remove the ignored options above.
8378         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8379         * tree-ssa-coalesce.h: ... here.
8380         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8381         headers required by it.
8382         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8383         across variables when flag_tree_coalesce_vars.  Check register
8384         use and promoted modes to allow coalescing.  Moved to
8385         tree-ssa-coalesce.c.
8386         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8387         with its member functions to tree-ssa-coalesce.c.
8388         (var_map_base_init): Likewise.  Renamed to
8389         compute_samebase_partition_bases.
8390         (partition_view_normal): Drop want_bases parameter.
8391         (partition_view_bitmap): Likewise.
8392         * tree-ssa-live.h: Adjust declarations.
8393         * tree-ssa-coalesce.c: Include explow.h.
8394         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8395         default defs at the entry point.
8396         (dump_part_var_map): New.
8397         (compute_optimized_partition_bases): New, called by...
8398         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8399         of compute_samebase_partition_bases.  Adjust.
8400         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8401         * cfgexpand.c (leader_merge): New.
8402         (get_rtl_for_parm_ssa_default_def): New.
8403         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8404         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8405         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8406         redundant MEM attr setting.
8407         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8408         from...
8409         (expand_one_stack_var): ... this.  New wrapper to check and
8410         skip already expanded SSA partitions.
8411         (record_alignment_for_reg_var): New, factored out of...
8412         (expand_one_var): ... this.
8413         (expand_one_ssa_partition): New.
8414         (adjust_one_expanded_partition_var): New.
8415         (expand_one_register_var): Check and skip already expanded SSA
8416         partitions.
8417         (expand_used_vars): Don't create DECLs for anonymous SSA
8418         names.  Expand all SSA partitions, then adjust all SSA names.
8419         (pass::execute): Replace the loops that set
8420         SA.partition_to_pseudo from partition leaders and cleared
8421         DECL_RTL for multi-location variables, and that which used to
8422         rename vars and set attrs, with one that clears DECL_RTL and
8423         checks that PARMs and RESULTs default_defs match DECL_RTL.
8424         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8425         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8426         * explow.c (promote_ssa_mode): New.
8427         * explow.h (promote_ssa_mode): Declare.
8428         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8429         * function.c: Include cfgexpand.h.
8430         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8431         (use_register_for_parm_decl): Wrapper for the above to
8432         special-case the result_ptr.
8433         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8434         (split_complex_args): Take assign_parm_data_all argument.
8435         Pass it to rtl_for_parm.  Set up rtl and context for split
8436         args.
8437         (assign_parms_augmented_arg_list): Adjust.
8438         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8439         multiple locations.  Recognize split complex args.
8440         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8441         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8442         (assign_parm_setup_block): Prefer SSA-assigned location.
8443         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8444         if stack_parm is NULL.
8445         (assign_parm_setup_stack): Prefer SSA-assigned location.
8446         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8447         rtl before testing for pointer bounds.  Special-case result_ptr.
8448         (expand_function_start): Maybe reset DECL_RTL of result.
8449         Prefer SSA-assigned location for result and static chain.
8450         Factor out DECL_RESULT and SET_DECL_RTL.
8451         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8452         anonymous SSA names.  Use promote_ssa_mode.
8453         (get_temp_reg): Likewise.
8454         (remove_ssa_form): Adjust.
8455         * stor-layout.c (layout_decl): Don't set mem attributes of
8456         non-MEMs.
8457         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8458         and get its reg_usage for reg invalidation.
8459         (compute_bb_dataflow): Pass it insn.
8460         (emit_notes_in_bb): Likewise.
8462 2015-07-25  Uros Bizjak  <ubizjak@gmail.com>
8464         * config/i386/i386.c (ix86_va_start): Remove
8465         unneeded !TARGET_64BIT check.
8466         (ix86_gimplify_va_arg): Ditto.
8468 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8470         * graphite-sese-to-poly.c (build_poly_scop): Always call
8471         rewrite_commutative_reductions_out_of_ssa.
8473 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8475         * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
8476         flag_associative_math to FLOAT_TYPE_P.  Honour
8477         TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
8479 2015-07-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8481         PR c++/64079
8482         * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
8483         and "%qD" in warning_at instead of "%q+D" in warning.
8485 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
8487         * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
8488         (ix86_function_abi): Cleanup.
8490 2015-07-24  Michael Darling  <darlingm@gmail.com>
8492         PR other/66259
8493         * acinclude.m4: Reflects renaming of configure.in to configure.ac
8494         * configure: Likewise
8495         * configure.ac: Likewise
8496         * doc/install.texi: Likewise
8497         * doc/tm.texi: Likewise
8498         * doc/tm.texi.in: Likewise
8500 2015-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8502         * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
8503         manually swapping values.
8504         * cse.c (fold_rtx): Likewise.
8505         * lra-eliminations.c (form_sum): Likewise.
8507 2015-07-24  Uros Bizjak  <ubizjak@gmail.com>
8509         PR target/64003
8510         * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
8511         * config/i386/i386.md (maybe_prefix_bnd): New attribute.
8512         (*jcc_1, *jcc_2, jump, simple_return_internal)
8513         (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
8514         Set length_nobnd attribute instead of length attribute.
8515         (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
8516         (length_nobnd): Remove attribute.
8517         (length): Remove length_nobnd processing.
8519 2015-07-24  Nathan Sidwell  <nathan@codesourcery.com>
8521         * gimplify.c (omp_default_clause): New function.  Reorganize flow
8522         for clarity. Broken out of ...
8523         (omp_notice_variable): ... here.
8525 2015-07-24  Gary Funck  <gary@intrepid.com>
8527         PR middle-end/66984
8528         * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
8529         fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
8531 2015-07-24  Tom de Vries  <tom@codesourcery.com>
8533         * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
8534         exit-first loop transform.
8536 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
8538         PR 66714
8539         * tree-cfg.c (struct replace_decls_d): New struct.
8540         (replace_block_vars_by_duplicates_1): New function.
8541         (replace_block_vars_by_duplicates): Use it to replace the decls
8542         in the value exprs by duplicates.
8544 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8546         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
8547         -shared, -symbolic, -rdynamic.
8549 2015-07-24  Szabolcs Nagy  <szabolcs.nagy@arm.com>
8551         PR target/65711
8552         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
8553         -dynamic-linker within %{!static %{!shared, and -rdynamic within
8554         %{!static.
8556 2015-07-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
8558         PR ipa/66566
8559         * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
8560         edge summary is available.
8562 2015-07-24  Richard Biener  <rguenther@suse.de>
8564         * genmatch.c (struct dt_node): Add statistic fields.
8565         (dt_node::analyze): New method.
8566         (decision_tree::gen_gimple): Call analyze on the root node
8567         and print statistics to stderr.
8568         (decision_tree::gen_generic): Likewise.
8570 2015-07-24  Richard Biener  <rguenther@suse.de>
8572         * fold-const.c (fold_binary_loc): Move simplifying of comparisons
8573         against the highest or lowest possible integer ...
8574         * match.pd: ... as patterns here.
8576 2015-07-24  Richard Biener  <rguenther@suse.de>
8578         * genmatch.c (struct capture_info): Add same_as field.
8579         (capture_info::capture_info): Initialize same_as.
8580         (capture_info::walk_match): Compute same_as.
8581         (capture_info::walk_result): Compute stuff for the leader.
8582         (capture_info::walk_c_expr): Likewise.
8583         (dt_simplify::gen_1): Only look at leaders when deciding
8584         to force no side-effects or emit side-effects of omitted operands.
8586 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8588         * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
8589         reg note to the GPR -> FPR save instructions.
8591 2015-07-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8593         * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
8594         cheaper.
8595         (s390_expand_insv): Don't generate risbg pattern for constant zero
8596         sources.
8597         * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
8598         ("*insv<mode>_z10_appendbitsleft"): New pattern definitions.  New
8599         splitters.
8601 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8603         * config/s390/s390.c (s390_reorg): Clean up handling of processors
8604         with
8605         -mtune=
8606         (s390_issue_rate): Likewise.
8607         (s390_sched_reorder): Likewise.
8608         (s390_sched_variable_issue): Likewise.
8609         (s390_loop_unroll_adjust): Likewise.
8610         (s390_option_override):  Likewise.
8612 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8614         * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
8615         processor capabilities with -march=native.
8616         * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
8617         (DRIVER_SELF_SPECS): Likewise.  Join specs for 31 and 64 bit.
8618         (S390_TARGET_BITS_STRING): Macro to simplify specs.
8620 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8622         * config/s390/s390.c (s390_issue_rate): Handle
8623         PROCESSOR_2094_Z9_EC.
8624         (s390_option_override): Likewise.
8625         (s390_adjust_priority): Likewise.
8627 2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8629         * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
8630         when cross compiling.
8632 2015-07-24  Richard Biener  <rguenther@suse.de>
8634         * fold-const.c (maybe_canonicalize_comparison_1): Move
8635         A code CST canonicalization ...
8636         * match.pd: ... to a pattern here.
8638 2015-07-24  Jiong Wang  <jiong.wang@arm.com>
8640         Revert:
8641         2015-07-22  Jiong Wang  <jiong.wang@arm.com>
8642         PR target/63521
8643         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
8644         (HONOR_REG_ALLOC_ORDER): Define.
8646 2015-07-24  Richard Biener  <rguenther@suse.de>
8648         * genmatch.c (add_operator): Allow SSA_NAME as predicate.
8649         * fold-const.c (fold_comparison): Move parameter does not
8650         alias &local simplification ...
8651         * match.pd: ... as a pattern here.
8653 2015-07-24  Richard Biener  <rguenther@suse.de>
8655         * gimple-fold.c (replace_stmt_with_simplification): Special-case
8656         valueizing call operands.
8657         * gimple-match-head.c (maybe_push_res_to_seq): Take
8658         number of call arguments from ops array.
8659         (do_valueize): New function.
8660         (gimple_simplify): Return true if valueization changed
8661         any operand even if the result didn't simplify further.
8663 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8665         PR middle-end/25530
8666         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
8668 2015-07-24  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
8670         PR middle-end/25529
8671         * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
8673 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8675         * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
8676         instruction.
8678 2015-07-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
8680         * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
8681         clean up.
8683 2015-07-23  Uros Bizjak  <ubizjak@gmail.com>
8685         * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
8686         from ix86_build_builtin_va_list_abi.  Handle only 64bit non-MS_ABI
8687         targets here.
8688         (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
8689         ms_va_list_type_node initialization.
8691 2015-07-23  Jeff Law  <law@redhat.com>
8693         PR lto/66752
8694         * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
8695         unable to find X NE 0 in the tables, return X as the simplified
8696         condition.
8697         (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
8698         in VISISTED_BBS, then return failure.  Else add nodes from NEXT_PATH
8699         to VISISTED_BBS.  */
8700         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
8701         after removing the control flow statement and unnecessary edges.
8703 2015-07-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8705         * tree-pass.h (get_current_pass_name): Removed.
8707 2015-07-23  Alexandre Oliva  <aoliva@redhat.com>
8709         PR rtl-optimization/64164
8710         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8711         * tree-ssa-copyrename.c: Removed.
8712         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
8713         -ftree-coalesce-vars.
8714         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8715         * common.opt (ftree-copyrename): Ignore.
8716         (ftree-coalesce-inlined-vars): Likewise.
8717         * doc/invoke.texi: Remove the ignored options above.
8718         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8719         * tree-ssa-coalesce.h: ... here.
8720         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8721         headers required by it.
8722         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8723         across variables when flag_tree_coalesce_vars.  Check register
8724         use and promoted modes to allow coalescing.  Moved to
8725         tree-ssa-coalesce.c.
8726         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8727         with its member functions to tree-ssa-coalesce.c.
8728         (var_map_base_init): Likewise.  Renamed to
8729         compute_samebase_partition_bases.
8730         (partition_view_normal): Drop want_bases parameter.
8731         (partition_view_bitmap): Likewise.
8732         * tree-ssa-live.h: Adjust declarations.
8733         * tree-ssa-coalesce.c: Include explow.h.
8734         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8735         default defs at the entry point.
8736         (dump_part_var_map): New.
8737         (compute_optimized_partition_bases): New, called by...
8738         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8739         of compute_samebase_partition_bases.  Adjust.
8740         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8741         * cfgexpand.c (leader_merge): New.
8742         (get_rtl_for_parm_ssa_default_def): New.
8743         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8744         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8745         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
8746         redundant MEM attr setting.
8747         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
8748         from...
8749         (expand_one_stack_var): ... this.  New wrapper to check and
8750         skip already expanded SSA partitions.
8751         (record_alignment_for_reg_var): New, factored out of...
8752         (expand_one_var): ... this.
8753         (expand_one_ssa_partition): New.
8754         (adjust_one_expanded_partition_var): New.
8755         (expand_one_register_var): Check and skip already expanded SSA
8756         partitions.
8757         (expand_used_vars): Don't create DECLs for anonymous SSA
8758         names.  Expand all SSA partitions, then adjust all SSA names.
8759         (pass::execute): Replace the loops that set
8760         SA.partition_to_pseudo from partition leaders and cleared
8761         DECL_RTL for multi-location variables, and that which used to
8762         rename vars and set attrs, with one that clears DECL_RTL and
8763         checks that PARMs and RESULTs default_defs match DECL_RTL.
8764         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8765         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8766         * explow.c (promote_ssa_mode): New.
8767         * explow.h (promote_ssa_mode): Declare.
8768         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8769         * function.c: Include cfgexpand.h.
8770         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8771         (use_register_for_parm_decl): Wrapper for the above to
8772         special-case the result_ptr.
8773         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8774         (split_complex_args): Take assign_parm_data_all argument.
8775         Pass it to rtl_for_parm.  Set up rtl and context for split
8776         args.
8777         (assign_parms_augmented_arg_list): Adjust.
8778         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8779         multiple locations.  Recognize split complex args.
8780         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8781         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
8782         (assign_parm_setup_block): Prefer SSA-assigned location.
8783         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
8784         if stack_parm is NULL.
8785         (assign_parm_setup_stack): Prefer SSA-assigned location.
8786         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
8787         rtl before testing for pointer bounds.  Special-case result_ptr.
8788         (expand_function_start): Maybe reset DECL_RTL of result.
8789         Prefer SSA-assigned location for result and static chain.
8790         Factor out DECL_RESULT and SET_DECL_RTL.
8791         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8792         anonymous SSA names.  Use promote_ssa_mode.
8793         (get_temp_reg): Likewise.
8794         (remove_ssa_form): Adjust.
8795         * stor-layout.c (layout_decl): Don't set mem attributes of
8796         non-MEMs.
8797         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8798         and get its reg_usage for reg invalidation.
8799         (compute_bb_dataflow): Pass it insn.
8800         (emit_notes_in_bb): Likewise.
8802 2015-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
8804         PR target/66217
8805         * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
8806         prototype.
8807         * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
8808         (rs6000_emit_2insn_and): Handle dot forms.
8809         * config/rs6000/rs6000.md (and<mode>3): Adjust.
8810         (*and<mode>3_2insn): Remove TODO.  Adjust.  Add "type" attr.
8811         (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
8813 2015-07-23  Richard Biener  <rguenther@suse.de>
8815         * generic-match-head.c: Include cgraph.h.
8816         * gimple-match-head.c: Likewise.
8817         * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
8818         SSA names.
8819         * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
8820         * match.pd: ...to a pattern here.  Add &A ==/!= 0 simplification
8821         pattern.
8823 2015-07-23  Richard Biener  <rguenther@suse.de>
8825         * gimple-fold.c (fold_gimple_cond): Do not require folding
8826         results to pass valid_gimple_rhs_p.
8827         * tree-cfg.h (fold_cond_expr_cond): Remove.
8828         * tree-cfg.c (fold_cond_expr_cond): Likewise.
8829         (make_edges): Do not call it.
8830         * tree-inline.c (tree_function_versioning): Likewise.
8832 2015-07-23  Tom de Vries  <tom@codesourcery.com>
8834         * tree-parloops.c (gather_scalar_reductions): Add arg to call to
8835         vect_force_simple_reduction.
8836         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
8837         (vect_is_simple_reduction_1): Add and handle
8838         need_wrapping_integral_overflow parameter.
8839         (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
8840         need_wrapping_integral_overflow parameter.
8841         (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
8842         * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
8843         decl.
8845 2015-07-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
8847         PR tree-optimization/66926,66951
8848         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
8849         INNER_LOOP and fix up condition for renaming virtual operands.
8851 2015-07-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8853         * combine.c (try_combine): Use std::swap instead of manually
8854         swapping.
8856 2015-07-23  Prachi Godbole  <prachi.godbole@imgtec.com>
8858         * config/mips/i6400.md: New file.
8859         * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
8860         (mips64r6): Likewise.
8861         (i6400): Define.
8862         * config/mips/mips-tables.opt: Regenerate.
8863         * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
8864         (mips_issue_rate): Add support for i6400.
8865         (mips_multipass_dfa_lookahead): Likewise.
8866         * config/mips/mips.h (TUNE_I6400): Define.
8867         * config/mips/mips.md: Include i6400.md.
8868         (processor): Add i6400.
8869         * doc/invoke.texi (-march=@var{arch}): Add i6400.
8871 2015-07-23  Richard Biener  <rguenther@suse.de>
8873         PR middle-end/66916
8874         * match.pd: Guard widen and sign-change comparison simplification
8875         with single_use.
8877 2015-07-23  Richard Biener  <rguenther@suse.de>
8879         PR tree-optimization/66945
8880         * tree-ssa-propagate.c (substitute_and_fold_dom_walker
8881         ::before_dom_children): Force the propagators idea of
8882         non-executable edges to materialize, not what the folder
8883         chooses.
8885 2015-07-23  Richard Biener  <rguenther@suse.de>
8887         * gimple.h (gimple_cond_make_false): Use 0 != 0.
8888         (gimple_cond_make_true): Use 1 != 0.
8890 2015-07-22  DJ Delorie  <dj@redhat.com>
8892         * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
8893         slashes.
8895         * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
8896         (ashrhi3): Likewise.
8897         (lshrhi3): Likewise.
8898         (movhi): Take advantage of zero-extend to load small constants.
8899         (movpsi): Likewise.
8900         (and<mode>3): Likewise.
8901         (zero_extendqihi2): Likewise.
8902         (zero_extendqisi2): New.
8903         * config/msp430/constraints.md (N,O): New.
8904         * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
8906 2015-07-22  Uros Bizjak  <ubizjak@gmail.com>
8908         PR target/66954
8909         * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
8910         to enum feature_priority and feature_list.
8911         (fold_builtin_cpu): Add F_AES to enum processor_features
8912         and isa_names_table.
8914 2015-07-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
8916         PR driver/66737
8917         * config/i386/linux-common.h (MPX_SPEC): Use linker option
8918         for 64bit target only.
8920 2015-07-22  Bernd Schmidt  <bernds@codesourcery.com>
8922         * config/nvptx/nvptx.c: Expand some comments.
8924 2015-07-22  James Greenhalgh  <james.greenhalgh@arm.com>
8926         * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
8927         (cortex_a53_advsimd): ...This.
8929 2015-07-22  Richard Biener  <rguenther@suse.de>
8931         * genmatch.c (expr::gen_transform): Clarify error message
8932         and display location.
8934 2015-07-22  Richard Biener  <rguenther@suse.de>
8936         * genmatch.c (struct operand): Add location member.
8937         (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
8938         constructors.
8939         (struct simplify): Remove match_location and result_location
8940         members.
8941         (elsehwere): Adjust.
8943 2015-07-22  Prachi Godbole  <prachi.godbole@imgtec.com>
8945         * config/mips/m5100.md: New file.
8946         * config/mips/mips-cpus.def (m5100, m5101): Define.
8947         * config/mips/mips-tables.opt: Regenerate.
8948         * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
8949         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
8950         -march=m5101 to -mips32r5.
8951         (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
8952         (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
8953         !-msoft-float.
8954         * config/mips/mips.md: Include m5100.md.
8955         (processor): Add m5100.
8956         * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
8958 2015-07-22  Robert Suchanek  <robert.suchanek@imgtec.com>
8960         * config/mips/mips-cpus.def (interaptiv): Define.
8961         * config/mips/mips-tables.opt: Regenerate.
8962         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
8963         -mips32r2.
8964         (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
8965         * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
8967 2015-07-22  Jiong Wang  <jiong.wang@arm.com>
8969         PR target/63521
8970         * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
8971         (HONOR_REG_ALLOC_ORDER): Define.
8973 2015-07-22  Richard Biener  <rguenther@suse.de>
8975         PR tree-optimization/66952
8976         * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
8977         blocks we end up executing unconditionally reset all SSA
8978         info such as range and alignment.
8979         * tree-ssanames.h (reset_flow_sensitive_info): Declare.
8980         * tree-ssanames.c (reset_flow_sensitive_info): New function.
8982 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
8984         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
8985         typo in attribute.
8987 2015-07-22  Richard Biener  <rguenther@suse.de>
8989         * genmatch.c (parser::parse_result): Properly handle
8990         match with result operands and conditions.
8992 2015-07-22  Charles Baylis  <charles.baylis@linaro.org>
8994         PR target/63870
8995         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8996         Add qualifier_struct_load_store_lane_index.
8997         (aarch64_types_loadstruct_lane_qualifiers): Use
8998         qualifier_struct_load_store_lane_index for lane index argument for
8999         last argument.
9000         (aarch64_types_storestruct_lane_qualifiers): Ditto.
9001         (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9002         (aarch64_simd_expand_args): Add new argument describing mode of
9003         builtin. Check lane bounds for arguments with
9004         SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9005         (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
9006         if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
9007         (aarch64_simd_expand_builtin): Handle arguments with
9008         qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
9009         aarch64_simd_expand_args.
9010         * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
9011         vst[234]_lane with BUILTIN_VALLDIF.
9012         * config/aarch64/aarch64-simd.md:
9013         (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
9014         endianness reversal on lane index.
9015         (aarch64_vec_load_lanesci_lane<mode>): Ditto.
9016         (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
9017         (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
9018         (vec_store_lanesci_lane<mode>): Ditto.
9019         (vec_store_lanesxi_lane<mode>): Ditto.
9020         (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
9021         reversal of lane index.
9022         (aarch64_ld3_lane<mode>): Ditto.
9023         (aarch64_ld4_lane<mode>): Ditto.
9024         (aarch64_st2_lane<mode>): Ditto.
9025         (aarch64_st3_lane<mode>): Ditto.
9026         (aarch64_st4_lane<mode>): Ditto.
9027         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
9028         to qmode. Add new mode parameter. Update uses.
9029         (__LD3_LANE_FUNC): Ditto.
9030         (__LD4_LANE_FUNC): Ditto.
9031         (__ST2_LANE_FUNC): Ditto.
9032         (__ST3_LANE_FUNC): Ditto.
9033         (__ST4_LANE_FUNC): Ditto.
9035 2015-07-22  Jonathan Wakely  <jwakely@redhat.com>
9037         * doc/invoke.texi (Language Independent Options): Rename node to
9038         Diagnostic Message Formatting Options.
9040 2015-07-21  Vladimir Makarov  <vmakarov@redhat.com>
9042         PR ipa/66424.
9043         * lra-remat.c (operand_to_remat): Prevent using insns with input
9044         subregs processed separately by IRA.
9046 2015-07-21  Andrew MacLeod  <amacleod@redhat.com>
9048         * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
9049         straight loops.
9050         (single_imm_use): Check for iterator node.
9051         (num_imm_uses): Likewise.
9052         * tree-ssa-operands.c (has_zero_uses_1): Delete.
9053         (single_imm_use_1): Check for iterator node.
9055 2015-07-21  Mike Frysinger  <vapier@gentoo.org>
9056             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9058         * configure.ac: Add check for new options in isl-0.15.
9059         * config.in, configure: Rebuilt.
9060         * graphite-blocking.c: Include <isl/constraint.h>
9061         * graphite-interchange.c,  graphite-poly.c: Likewise.
9062         * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
9063         * graphite.c: Likewise.
9064         * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
9065         <isl/union_set.h>.
9066         * graphite-dependences.c: Include <isl/constraint.h>.
9067         (max_number_of_out_dimensions): Returns isl_stat.
9068         (extend_schedule_1): Likewise
9069         (extend_schedule): Corresponding changes.
9070         * graphite-optimize-isl.c: Include <isl/constraint.h> and
9071         <isl/union_set.h>.
9072         (getSingleMap): Change return type of isl_stat.
9073         (optimize_isl): Conditionally use
9074         isl_options_set_schedule_serialize_sccs.
9075         * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
9076         if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
9078 2015-07-21  Georg-Johann Lay  <avr@gjlay.de>
9080         PR target/66956
9081         * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
9082         (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
9084 2015-07-21  Richard Biener  <rguenther@suse.de>
9086         PR tree-optimization/66948
9087         * genmatch.c (capture_info::walk_match): Also recurse to
9088         captures.  Properly compute expr state from captures of
9089         captures.
9090         * match.pd: Add single-use guards to
9091         (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
9093 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9095         * config/nvptx/mkoffload.c (process): Add static destructor call.
9097 2015-07-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9099         PR middle-end/66915
9100         * match.pd (A - B -> A + (-B)): Don't allow folding
9101         when type if a fixed-point type.
9103 2015-07-20  DJ Delorie  <dj@redhat.com>
9105         * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
9106         (iorqi3_real): Likewise for set1.
9108 2015-07-20  Uros Bizjak  <ubizjak@gmail.com>
9110         * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
9111         for !TARGET_64BIT.
9113 2015-07-20  Aditya Kumar  <hiraditya@msn.com>
9115         * graphite-isl-ast-to-gimple.c:
9116         Refactor so that each function can access 'region'. This will help
9117         maintain a parameter rename_map within a region.
9119 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9121         * config/rs6000/rs6000.md (*lt0_disi): New.
9123 2015-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
9125         PR target/66217
9126         * config/rs6000/constraints.md ("S", "T", "t"): Delete.  Update
9127         "available letters" comment.
9128         * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
9129         mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
9130         and_2rld_operand):  Delete.
9131         (and_operand): Adjust.
9132         (rotate_mask_operator): New.
9133         * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
9134         includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
9135         includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
9136         extract_ME): Delete.
9137         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9138         rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
9139         rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
9140         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9141         rs6000_emit_2insn_and): New.
9142         * config/rs6000/rs6000.c (num_insns_constant): Adjust.
9143         (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
9144         includes_rldic_lshift_p, includes_rldicr_lshift_p,
9145         insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
9146         (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
9147         rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
9148         s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
9149         rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
9150         rs6000_emit_2insn_and): New.
9151         (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
9152         (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
9153         handling.
9154         <NOT>: Don't fall through to next case.
9155         <AND>: Handle the various rotate-and-mask cases directly.
9156         <IOR>: Always cost as one insn.
9157         * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
9158         (and<mode>3): Adjust expander for the new patterns.
9159         (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
9160         and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
9161         (*and<mode>3_imm_dot_shifted): New.
9162         (*and<mode>3_mask): Delete, rewrite as ...
9163         (and<mode>3_mask): ... New.
9164         (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
9165         (andsi3_internal0_nomc): Delete.
9166         (*andsi3_internal6): Delete.
9167         (*and<mode>3_2insn): New.
9168         (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
9169         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
9170         *insvsi_internal6, insvdi_internal, *insvdi_internal2,
9171         *insvdi_internal3): Delete.
9172         (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
9173         *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
9174         *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
9175         *ior<mode>_mask): New.
9176         (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
9177         *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
9178         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
9179         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
9180         Delete.
9181         (ashr<mode>3): Delete expander.
9182         (*ashr<mode>3): Rename to ...
9183         (ashr<mode>3): ... This.
9184         (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
9185         (*rotldi3_internal4, *rotldi3_internal5 and split,
9186         *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
9187         and split, *ashldi3_internal6 and split, *ashldi3_internal7,
9188         ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
9189         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
9190         (splitter for loading a mask): Adjust.
9191         * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
9193 2015-07-20  Marek Polacek  <polacek@redhat.com>
9195         * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
9196         output_add_clobbers, output_added_clobbers_hard_reg_p,
9197         gen_rtx_scratch): Remove declarations.
9199 2015-07-20  Marek Polacek  <polacek@redhat.com>
9201         PR c++/55095
9202         * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
9204 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9206         * simplify-rtx.c (simplify_unary_operation_1, NEG case):
9207         (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
9209 2015-07-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9211         * combine.c (combine_simplify_rtx): Move simplification step
9212         before various transformations/substitutions.
9214 2015-07-20  Mikhail Maltsev  <maltsevm@gmail.com>
9216         * wide-int.h (struct binary_traits): Fix partial specialization syntax.
9217         (struct int_traits): Likewise.
9219 2015-07-18  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9221         * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
9222         function to vmsdbgout_function_decl.
9224 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
9226         PR target/66922
9227         * config/i386/i386.c (ix86_expand_pextr): Reject extractions
9228         from misaligned positions.
9229         (ix86_expand_pinsr): Reject insertions to misaligned positions.
9231 2015-07-18  Sebastian Pop  <s.pop@samsung.com>
9233         PR middle-end/46851
9234         PR middle-end/60340
9235         * Makefile.in: Removed omega.o.
9236         * common.opt: Document flag fcheck-data-deps as deprecated.
9237         * doc/invoke.texi: Remove documentation for fcheck-data-deps and
9238         its associated params: omega-max-vars, omega-max-geqs,
9239         omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
9240         omega-max-keys, omega-eliminate-redundant-constraints.
9241         * doc/loop.texi: Remove all the section on Omega.
9242         * graphite-blocking.c: Include missing params.h: it used to be
9243         included through tree-data-ref.h and omega.h.
9244         * graphite-isl-ast-to-gimple.c: Same.
9245         * graphite-optimize-isl.c: Same.
9246         * graphite-sese-to-poly.c: Same.
9247         * graphite.c: Same.
9248         * omega.c: Remove.
9249         * omega.h: Remove.
9250         * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
9251         PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
9252         PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
9253         PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
9254         * passes.def: Remove pass_check_data_deps.
9255         * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
9256         (dump_conflict_function): Same.
9257         (dump_subscript): Same.
9258         (print_direction_vector): Same.
9259         (print_dir_vectors): Same.
9260         (print_lambda_vector): Same.
9261         (print_dist_vectors): Same.
9262         (dump_data_dependence_relation): Same.
9263         (dump_data_dependence_relations): Same.
9264         (dump_dist_dir_vectors): Same.
9265         (dump_ddrs): Same.
9266         (init_omega_eq_with_af): Removed.
9267         (omega_extract_distance_vectors): Removed.
9268         (omega_setup_subscript): Removed.
9269         (init_omega_for_ddr_1): Removed.
9270         (init_omega_for_ddr): Removed.
9271         (ddr_consistent_p): Removed.
9272         (compute_affine_dependence): Do not use omega to check data
9273         dependences.
9274         (compute_data_dependences_for_bb): Removed.
9275         (analyze_all_data_dependences): Removed.
9276         (tree_check_data_deps): Removed.
9277         * tree-data-ref.h: Do not include omega.h.
9278         (compute_data_dependences_for_bb): Removed.
9279         (tree_check_data_deps): Removed.
9280         * tree-ssa-loop.c (pass_check_data_deps): Removed.
9281         (make_pass_check_data_deps): Removed.
9282         * tree-ssa-phiopt.c: Include params.h.
9283         * tree-vect-data-refs.c: Same.
9284         * tree-vect-slp.c: Same.
9286 2015-07-18  Uros Bizjak  <ubizjak@gmail.com>
9288         * config/i386/i386.md (pushsf splitter): Pass curr_insn to
9289         find_constant_src.  FAIL if find_constant_src returns NULL_RTX.
9290         (mem->fpreg splitters): Ditto.
9291         (general_operand->nonimmediate_operand splitter): Use explicit modes.
9292         Disable DFmode for TARGET_64BIT.
9294 2015-07-17  H.J. Lu  <hongjiu.lu@intel.com>
9296         PR target/66906
9297         * config/i386/i386.c (ix86_expand_prologue): Replicate static
9298         chain on the stack.
9300 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9302         * config/nvptx/mkoffload.c (process): Constify host data.
9303         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9304         Constify host data.
9305         (generate_host_descr_file): Likewise.
9307 2015-07-17  Aditya Kumar  <aditya.k7@samsung.com>
9308             Sebastian Pop  <s.pop@samsung.com>
9310         PR middle-end/61929
9311         * graphite-dependences.c (add_pdr_constraints): Renamed
9312         pdr->extent to pdr->subscript_sizes.
9313         * graphite-interchange.c (build_linearized_memory_access): Add
9314         back all gcc_assert's that the "isl_int to isl_val conversion"
9315         patch has removed.  Refactored.
9316         (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
9317         * graphite-poly.c (new_poly_dr): Same.
9318         (free_poly_dr): Same.
9319         * graphite-poly.h (struct poly_dr): Same.
9320         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
9321         all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
9322         * graphite-scop-detection.h: Fix space.
9323         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
9324         back all gcc_assert's removed by a previous patch.
9325         (wrap): Remove the_isl_ctx global variable that the same patch has
9326         added.
9327         (build_loop_iteration_domains): Same.
9328         (add_param_constraints): Same.
9329         (pdr_add_data_dimensions): Same.  Refactored.
9330         (build_poly_dr): Renamed extent to subscript_sizes.
9332 2015-07-17  Marek Polacek  <polacek@redhat.com>
9334         * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
9335         * match.pd: ... here.
9337 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9339         * config/nvptx/mkoffload.c (process): Constify target data.
9340         * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
9341         Constify target data.
9342         (generate_target_offloadend_file): Likewise.
9344 2015-07-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
9346         * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
9347         to allow renaming of PHI arguments on edges incoming from outer
9348         loop header, add corresponding check before start PHI iterator.
9349         (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
9350         variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
9351         with true force_vectorize.  Set-up dominator for outer loop too.
9352         Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
9353         (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
9354         was marked with force_vectorize and has restricted cfg.
9355         (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
9356         inner loop.
9357         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
9358         do peeling for outer loops.
9360 2015-07-17  Yvan Roux  <yvan.roux@linaro.org>
9361             Matthias Klose  <doko@ubuntu.com>
9363         * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
9364         build-sysroot, sysroot from the `Miscenalleous configure options' to
9365         the `Directories' section and strip trailing `/' from with_sysroot.
9366         (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
9367         * configure: Regenerated.
9369 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
9371         PR target/66824
9372         * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
9373         (TARGET_HARD_DF_REGS): Ditto.
9374         (TARGET_HARD_XF_REGS): Ditto.
9375         * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
9376         Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
9377         (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
9378         alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
9379         (*movsf_internal): Add alternatives 16 and 17. Enable
9380         alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
9382 2015-07-17  Uros Bizjak  <ubizjak@gmail.com>
9384         PR rtl-optimization/66891
9385         * calls.c (expand_call): Wrap precompute_register_parameters with
9386         NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
9388 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
9390         * config/nvptx/mkoffload.c (process): Constify mapping variables.
9391         Define target data struct and initialize it.
9393 2015-07-16  Vladimir Makarov  <vmakarov@redhat.com>
9395         PR rtl-optimization/66626
9396         * ira.h (emit-rtl.h): Include.
9397         (non_spilled_static_chain_regno_p): New.
9398         * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
9399         unless it is non spilled static chain pseudo.
9400         (assign_hard_rego): Spill memory profitable allocno unless it is
9401         non spilled static chain pseudo.
9402         (allocno_spill_priority_compare): Put non spilled static chain
9403         pseudo at the end of sorted array.
9404         (improve_allocation): Do nothing if we have static chain and
9405         non-local goto.
9406         (allocno__priority_compare_func): Put non spilled static chain
9407         pseudo at the beginning of sorted array.
9408         (move_spill_restore): Ignore non spilled static chain pseudo.
9409         * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
9410         to non spilled static chain pseudo.
9411         * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
9412         pseudo at the beginning of sorted array.
9413         (spill_for): Spill non spilled static chain pseudo last.
9414         * lra-constraints.c (lra_constraints): Remove static chain pseudo
9415         check for equivalence.
9417 2015-07-16  Martin Liska  <mliska@suse.cz>
9419         PR ipa/66896.
9420         * ipa-prop.c (update_jump_functions_after_inlining): Create properly
9421         dst_ctx if it does not exist.
9423 2015-07-16  Martin Liska  <mliska@suse.cz>
9425         * hash-set.h (remove): New function.
9426         (iterator): New iteration class for hash_set.
9428 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9430         * genattrtab.c (make_canonical): Add a file_location parameter.
9431         Use fatal_at rather than fatal.
9432         (get_attr_value): Likewise.  Update call to make_canonical.
9433         (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
9434         (make_internal_attr): Update calls accordingly.
9436 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9438         * read-md.h (message_with_line, error_with_line): Delete.
9439         * read-md.c (message_with_line, error_with_line): Delete.
9440         * gensupport.h: Include read-md.h.
9441         (md_rtx_info): New structure.
9442         (read_md_rtx): Use it.  Return a bool success value.
9443         * gensupport.c (read_md_rtx): Likewise.
9444         * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
9445         (main): Update after interface changes.
9446         * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
9447         (main): Update after interface changes.
9448         * genattrtab.c (insn_code_number): Delete.
9449         (optimize_attrs): Add a max_insn_code parameter and use it instead
9450         of insn_code_number.
9451         (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
9452         Use *_at rather than *_with_line functions.
9453         (gen_insn): Likewise.
9454         (gen_delay): Likewise.
9455         (gen_insn_reserv): Likewise.
9456         (gen_bypass): Take an md_rtx_info rather than an rtx.
9457         (main): Update after interface changes.  Use a local max_insn_code
9458         variable instead of insn_code_number.
9459         * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
9460         an rtx.  Use fatal_at rather than fatal.
9461         (gen_query_cpu_unit, gen_bypass, gen_excl_set)
9462         (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
9463         (gen_absence_set, gen_final_absence_set, gen_automaton)
9464         (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
9465         (main): Update after interface changes.
9466         * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
9467         and code number.
9468         (main): Update after interface changes.
9469         * genconditions.c (main): Use new read_md_rtx interface.
9470         * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
9471         (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
9472         (main): Update after interface changes.
9473         * genemit.c (insn_code_number, insn_index_number): Delete.
9474         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9475         Use fatal_at rather than fatal.
9476         (gen_expand): Take an md_rtx_info rather than an rtx.  Use fatal_at
9477         rather than fatal.
9478         (gen_split): Likewise.
9479         (main): Update after interface changes.
9480         * genextract.c (line_no): Delete.
9481         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9482         Update call to walk_rtx.
9483         (VEC_safe_set_locstr): Add an md_rtx_info argument.  Use message_at
9484         rather than message_with_line.
9485         (walk_rtx): Add an md_rtx_info argument.  Update call to
9486         VEC_safe_set_locstr.
9487         (main): Update after interface changes.
9488         * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
9489         and lineno.  Use error_at rather than separate message_with_line
9490         calls and have_error assignments.
9491         (main): Update after interface changes.
9492         * genmddump.c (main): Use new read_md_rtx interface.
9493         * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
9494         (main): Update after interface changes.
9495         * genoutput.c (next_code_number): Delete.
9496         (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
9497         (gen_peephole, gen_expand, gen_split): Likewise.
9498         (note_constraint): Likewise.  Use *_at rather than *_with_line
9499         functions.
9500         (main): Update after interface changes.
9501         * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
9502         rtx and lineno.
9503         (main): Update after interface changes.
9504         * genpreds.c (process_define_predicate): Take an md_rtx_info rather
9505         than an rtx and lineno.
9506         (process_define_constraint): Likewise.
9507         (process_define_register_constraint): Likewise.
9508         (main): Update after interface changes.
9509         * genrecog.c (next_insn_code, pattern_lineno): Delete.
9510         (validate_pattern): Replace top-level rtx with an md_rtx_info.
9511         Use *_at rather than *_with_line functions.
9512         (match_pattern_2): Likewise.
9513         (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
9514         (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
9515         Use *_at rather than *_with_line functions.
9516         * gentarget-def.c (add_insn): New function.
9517         (main): Use it.  Use new read_md_rtx interface.
9519 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9521         * gensupport.h (compute_test_codes): Take a file_location rather
9522         than a line number.
9523         * gensupport.c (compute_test_codes): Likewise.  Use *_at functions
9524         rather than *_with_line functions.
9525         (process_define_predicate): Update call to compute_test_codes.
9526         * genpreds.c (validate_exp): Take a file_location rather than a
9527         line number.  Use *_at functions rather than *_with_line functions.
9528         (process_define_predicate): Update call to validate_exp.
9529         (constraint_data): Replace lineno field with a file_location.
9530         (add_constraint): Take a file_location rather than a line number.
9531         Use *_at functions rather than *_with_line functions.  Fix error
9532         message for address constraints.  Update after changes to
9533         validate_exp, constraint_data and compute_test_codes.
9534         (process_define_constraint): Update accordingly.
9535         (process_define_register_constraint): Likewise.
9537 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9539         * genoutput.c (data): Use a file_location to record the source
9540         position.
9541         (nothing): Delete.
9542         (idata, idata_end): Remove initialization.
9543         (constraint_data): Replace lineno with a file_location.
9544         (output_insn_data): Update after changes to data.
9545         (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
9546         (scan_operands): Likewise, using *_at rather than *_with_line
9547         functions.
9548         (process_template): Likewise.
9549         (validate_insn_alternatives): Likewise.
9550         (validate_insn_operands): Likewise.
9551         (validate_optab_operands): Likewise.
9552         (init_insn_for_nothing): Initialize idata and idata_end.
9553         (note_constraint): Update after changes to constraint_data,
9554         using at rather than with_line functions.
9555         (mdep_constraint_len): Take a file_location rather than a
9556         line number.  Use at rather than with_line functions.
9558 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9560         * read-md.h (fatal_at): Declare.
9561         * read-md.c (fatal_at): New function.
9562         * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
9563         to record the source position.
9564         (check_attr_test): Take a file_location instead of a line number.
9565         Use fatal_at instead of fatal.
9566         (check_attr_value): Update after above changes, using "at"
9567         rather than "with_line" reporting functions.
9568         (convert_set_attr_alternative): Likewise.
9569         (gen_attr): Likewise.
9570         (check_defs): Likewise.  Don't assign to read_md_filename.
9571         (gen_insn): Update initialization after above changes.
9572         (gen_delay): Likewise.
9573         (write_insn_cases): Print the filename for a define_peephole.
9574         (gen_insn_reserv): Take a line number as argument and update
9575         the call to check_attr_test.
9576         (main): Pass a line number to gen_insn_reserv.
9578 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9580         * read-md.h (file_location): New structure.
9581         (directive_handler_t): Take a file_location rather than a line number.
9582         (message_at, error_at): Declare.
9583         (read_skip_construct): Delete.
9584         * read-md.c (message_with_line_1): Replace with...
9585         (message_at_1): ...this new function.
9586         (message_at, error_at): New functions.
9587         (message_with_line, error_with_line): Update to use message_at_1.
9588         (handle_enum): Take a file_location rather than a line number
9589         and use error_at for error reporting.
9590         (handle_include): Likewise.
9591         (read_skip_construct): Likewise.  Make static.
9592         (handle_file): Update after above changes.  Pass a file_location
9593         rather than a line number to handle_directive.
9594         * gensupport.c (queue_elem): Replace separate filename and lineno
9595         with a file_location.
9596         (queue_pattern): Replace filename and lineno arguments with a
9597         file_location.  Update after change to queue_elem.
9598         (process_define_predicate): Replace lineno argument with a
9599         file_location and use error_at for error reporting.  Update
9600         after above changes.
9601         (process_rtx): Likewise.
9602         (subst_pattern_match): Likewise.
9603         (get_alternatives_number): Likewise.
9604         (alter_predicate_for_insn): Likewise.
9605         (rtx_handle_directive): Likewise.
9606         (is_predicable): Update after above changes, using error_at rather
9607         than error_with_line.
9608         (has_subst_attribute): Likewise.
9609         (identify_predicable_attribute): Likewise.
9610         (alter_attrs_for_subst_insn): Likewise.
9611         (process_one_cond_exec): Likewise.
9612         (process_substs_on_one_elem): Likewise.
9613         (process_define_subst): Likewise.
9614         (check_define_attr_duplicates): Likewise.
9615         (read_md_rtx): Update after change to queue_elem.
9617 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9619         * genoutput.c (next_index_number): Delete.
9620         (data): Remove index_number.
9621         (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
9622         (main): Remove manipulation of next_index_number.
9624 2015-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9626         * genattrtab.c (check_attr_value): Remove handling of null attrs.
9627         (make_canonical): Likewise.
9629 2015-07-16  Eric Botcazou  <ebotcazou@adacore.com>
9631         * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
9632         instead of adjust_address_nv.
9633         (restore_stack_nonlocal): Likewise.
9634         (nonlocal_goto): Likewise.
9636 2015-07-16  Tom de Vries  <tom@codesourcery.com>
9638         * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
9639         not have a corresponding loop header phi.
9641 2015-07-16  Tom de Vries  <tom@codesourcery.com>
9643         * tree-parloops.c (create_loads_for_reductions): Handle case that
9644         reduction is unused.
9646 2015-07-16  Richard Biener  <rguenther@suse.de>
9648         PR tree-optimization/66894
9649         * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
9650         about deriving NE_EXPR from truncated values.
9652 2015-07-16  Martin Liska  <mliska@suse.cz>
9654         * alloc-pool.h
9655         (object_allocator): Add new class.
9656         (pool_allocator::initialize): Use the underlying class.
9657         (pool_allocator::allocate): Likewise.
9658         (pool_allocator::remove): Likewise.
9659         (operator new): A new generic allocator.
9660         * asan.c (struct asan_mem_ref): Remove unused members.
9661         (asan_mem_ref_new): Replace new operator with
9662         object_allocator::allocate.
9663         (free_mem_ref_resources): Change deallocation.
9664         * cfg.c (initialize_original_copy_tables): Replace pool_allocator
9665         with object_allocator.
9666         * config/sh/sh.c (add_constant): Replace new operator with
9667         object_allocator::allocate.
9668         (sh_reorg): Change call to a release method.
9669         * cselib.c (struct elt_list): Remove unused members.
9670         (new_elt_list): Replace new operator with
9671         object_allocator::allocate.
9672         (new_elt_loc_list): Likewise.
9673         (new_cselib_val): Likewise.
9674         (unchain_one_elt_list): Change delete operator with remove method.
9675         (unchain_one_elt_loc_list): Likewise.
9676         (unchain_one_value): Likewise.
9677         (cselib_finish): Release newly added static allocators.
9678         * cselib.h (struct cselib_val): Remove unused members.
9679         (struct elt_loc_list): Likewise.
9680         * df-problems.c (df_chain_alloc): Replace pool_allocator with
9681         object_allocator.
9682         * df-scan.c (struct df_scan_problem_data): Likewise.
9683         (df_scan_alloc): Likewise.
9684         * df.h (struct dataflow): Likewise.
9685         * dse.c (struct read_info_type): Likewise.
9686         (struct insn_info_type): Likewise.
9687         (struct dse_bb_info_type): Likewise.
9688         (struct group_info): Likewise.
9689         (struct deferred_change): Likewise.
9690         (get_group_info): Likewise.
9691         (delete_dead_store_insn): Likewise.
9692         (free_read_records): Likewise.
9693         (replace_read): Likewise.
9694         (check_mem_read_rtx): Likewise.
9695         (scan_insn): Likewise.
9696         (dse_step1): Likewise.
9697         (dse_step7): Likewise.
9698         * et-forest.c (struct et_occ): Remove unused members.
9699         (et_new_occ): Use allocate instead of new operator.
9700         (et_new_tree): Likewise.
9701         (et_free_tree): Call release method explicitly.
9702         (et_free_tree_force): Likewise.
9703         (et_free_pools): Likewise.
9704         (et_split): Use remove instead of delete operator.
9705         * et-forest.h (struct et_node): Remove unused members.
9706         * ipa-cp.c: Change pool_allocator to object_allocator.
9707         * ipa-inline-analysis.c: Likewise.
9708         * ipa-profile.c: Likewise.
9709         * ipa-prop.c: Likewise.
9710         * ipa-prop.h: Likewise.
9711         * ira-build.c (initiate_cost_vectors): Cast return value.
9712         (ira_allocate_cost_vector): Likewise.
9713         * ira-color.c (struct update_cost_record): Remove unused members.
9714         * lra-int.h (struct lra_live_range): Likewise.
9715         (struct lra_copy): Likewise.
9716         (struct lra_insn_reg): Likewise.
9717         * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
9718         * lra.c (new_insn_reg): Replace new operator with allocate method.
9719         (free_insn_regs): Same for operator delete.
9720         (finish_insn_regs): Release new static allocator.
9721         (finish_insn_recog_data): Likewise.
9722         (lra_free_copies): Replace delete operator with remove method.
9723         (lra_create_copy): Replace operator new with allocate method.
9724         (invalidate_insn_data_regno_info): Same for remove method.
9725         * regcprop.c (struct queued_debug_insn_change): Remove unused members.
9726         (free_debug_insn_changes): Replace delete operator with remove method.
9727         (replace_oldest_value_reg): Replace operator new with allocate method.
9728         (pass_cprop_hardreg::execute): Release new static variable.
9729         * sched-deps.c (sched_deps_init): Change pool_allocator to
9730         object_allocator.
9731         * sel-sched-ir.c: Likewise.
9732         * sel-sched-ir.h: Likewise.
9733         * stmt.c (expand_case): Likewise.
9734         (expand_sjlj_dispatch_table): Likewise.
9735         * tree-sra.c (struct access): Remove unused members.
9736         (struct assign_link): Likewise.
9737         (sra_deinitialize): Release newly added static pools.
9738         (create_access_1):Replace operator new with allocate method.
9739         (build_accesses_from_assign): Likewise.
9740         (create_artificial_child_access): Likewise.
9741         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
9742         pool_allocator to object_allocator.
9743         * tree-ssa-pre.c: Likewise.
9744         * tree-ssa-reassoc.c: Likewise.
9745         * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9746         * tree-ssa-strlen.c: Likewise.
9747         * tree-ssa-structalias.c: Likewise.
9748         * var-tracking.c (onepart_pool_allocate): New function.
9749         (unshare_variable): Use the newly added function.
9750         (variable_merge_over_cur): Likewise.
9751         (variable_from_dropped): Likewise.
9752         (variable_was_changed): Likewise.
9753         (set_slot_part): Likewise.
9754         (emit_notes_for_differences_1): Likewise.
9755         (vt_finalize): Release newly added static pools.
9757 2015-07-16  Martin Jambor  <mjambor@suse.cz>
9759         * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status.  Adjust
9760         all uses.  Fix two typos in its general comment.
9761         (func_body_info): Rename to ipa_func_body_info.  Adjust all uses.
9763 2015-07-16  Ilya Enkovich  <enkovich.gnu@gmail.com>
9765         * config/i386/linux-common.h (LINK_MPX): New.
9766         (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
9767         * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
9768         indicating '-z bndplt' support by linker.
9769         * configure: Regenerate.
9770         * config.in: Regenerate.
9772 2015-07-16  Richard Biener  <rguenther@suse.de>
9774         * fold-const.c (fold_widened_comparison): Remove.
9775         (fold_sign_changed_comparison): Likewise.
9776         (fold_comparison): Move widened and sign-changed comparison
9777         simplification ...
9778         * match.pd: ... to patterns here.
9779         * generic-match-head.c: Include target.h.
9780         * gimple-match-head.c: Likewise.
9782 2015-07-16  Richard Biener  <rguenther@suse.de>
9784         * tree-ssa-dom.c (dom_valueize): New function.
9785         (record_temporary_equivalences): Also record equivalences
9786         for dominating stmts that have uses of equivalences we are
9787         about to record.
9789 2015-07-16  Bin Cheng  <bin.cheng@arm.com>
9791         * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
9792         add_autoinc_candidates.
9793         (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
9794         (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
9795         (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
9796         (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
9797         Call new function.
9798         (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
9799         (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
9800         Remove parameter struct iv*.  Call add_autoinc_candidates here.
9801         (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
9802         (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
9803         Call new function.
9804         (find_iv_candidates): Call new functions.
9806 2015-07-16  Sandra Loosemore  <sandra@codesourcery.com>
9808         * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
9809         uninitialized-variable warning.
9811 2015-07-16  Kaz Kojima  <kkojima@gcc.gnu.org>
9813         PR target/65249
9814         * config/sh/sh.md (movdi): Split simple reg move to two movsi
9815         when the destination is R0.
9817 2015-07-16  Uros Bizjak  <ubizjak@gmail.com>
9819         PR target/66866
9820         * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
9821         * config/i386/i386.c (ix86_expand_pextr): New function.
9822         (ix86_expand_pinsr): Handle V1TI and TI modes.  Call ix86_expand_pextr
9823         for non-lowpart subregs.
9824         * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
9825         (insv<mode>): Use SWI248 mode iterator.
9826         (insv<mode>_1): Ditto.
9828 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
9829             Sebastian Pop  <s.pop@samsung.com>
9831         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
9832         iterator to use_stmt.
9834 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
9835             Sebastian Pop <s.pop@samsung.com>
9837         * graphite-scop-detection.c (build_scops_1): Discard scops for
9838         which entry==exit.
9840 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
9841             Sebastian Pop <s.pop@samsung.com>
9843         * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
9844         case of a return statement in scop.
9846 2015-07-15  Aditya Kumar  <aditya.k7@samsung.com>
9847             Sebastian Pop <s.pop@samsung.com>
9849         * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
9850         INTEGER_TYPE parameters.
9851         (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
9852         VECTOR_CST in scan_tree_for_params.
9853         (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
9855 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
9857         * gimple-pretty-print.h: Don't include pretty-print.h.
9858         * tree-streamer.h: Don't include lto-streamer.h.
9859         * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
9860         * gimple-streamer-in.c: Remove redundant includes.
9861         * gimple-streamer-out.c: Likewise.
9862         * ipa-devirt.c: Likewise.
9863         * ipa-icf.c: Likewise.
9864         * ipa-inline-analysis.c: Likewise.
9865         * ipa-polymorphic-call.c: Likewise.
9866         * ipa-profile.c: Likewise.
9867         * ipa-prop.c: Likewise.
9868         * ipa-pure-const.c: Likewise.
9869         * lto-cgraph.c: Likewise.
9870         * lto-streamer-in.c: Likewise.
9871         * lto-streamer-out.c: Likewise.
9872         * lto-streamer.c: Likewise.
9873         * tree-streamer-in.c: Likewise.
9874         * tree-streamer-out.c: Likewise.
9875         * tree-streamer.c: Likewise.
9877 2015-07-15  Andrew MacLeod  <amacleod@redhat.com>
9879         * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
9880         include input.h.
9881         * opts.c: Remove multiline #include comment.
9883 2015-07-15  Nathan Sidwell  <nathan@codesourcery.com>
9885         * config/nvptx/mkoffload.c (process): Add C++ protection to
9886         emitted code.
9888 2015-07-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9890         PR target/66854
9891         * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
9892         null before IEEE 128-bit floating point support patch.
9894 2015-07-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9896         * simplify-rtx.c (simplify_ternary_operation): Add simplification
9897         for (!c) != {0,...,0} ? a : b for vector modes.
9899 2015-07-15  Paolo Bonzini  <bonzini@gnu.org>
9900             Martin Jambor  <mjambor@suse.cz>
9902         * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
9903         struct func_body_info* instead of struct ipa_node_params*, expecting
9904         fbi->info to be filled in.  Replace throughout.  Adjust call to
9905         ipa_load_from_parm_agg.
9906         (set_cond_stmt_execution_predicate): Accept struct func_body_info*
9907         instead of struct ipa_node_params*.  Adjust calls to other functions
9908         so that they pass either fbi or fbi->info.
9909         (set_switch_stmt_execution_predicate): Likewise.
9910         (will_be_nonconstant_predicate): Likewise.
9911         (compute_bb_predicates): Likewise.
9912         (estimate_function_body_sizes): Move asserts earlier.  Fill in
9913         struct func_body_info, replace parms_info with fbi.info.  Adjust
9914         calls to functions that now accept struct func_body_info.
9915         * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
9916         (struct func_body_info): Likewise.
9917         (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
9918         remove static.  Adjust callers.
9919         (ipa_load_from_parm_agg): Remove.
9920         * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
9921         (func_body_info): Likewise.
9922         (ipa_load_from_parm_agg): Adjust prototype.
9924 2015-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9926         * gensupport.c (rtx_handle_directive): Adjust.
9927         * read-rtl.c (apply_iterators): Take vector to add rtxs to
9928         instead of expr list rtx.
9929         (add_define_attr_for_define_subst): Likewise.
9930         (add_define_subst_attr): Likewise.
9931         (read_subst_mapping): Likewise.
9932         (read_rtx): Likewise.
9933         * rtl.h (read_rtx): Adjust.
9935 2015-07-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9937         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
9939 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
9941         PR target/58066
9942         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
9943         (*tls_local_dynamic_base_64_<mode>): Ditto.
9944         (*tls_local_dynamic_base_64_largepic): Ditto.
9945         (tls_global_dynamic_64_<mode>): Update expander pattern.
9946         (tls_local_dynamic_base_64_<mode>): Ditto.
9948 2015-07-15  Richard Biener  <rguenther@suse.de>
9950         * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
9951         and bool_var == 1 -> bool_var simplifications ...
9952         * match.pd: ... to patterns here.  Factor out negate_expr_p
9953         cases from the A - B -> A + (-B) patterns as negate_expr_p
9954         predicate and add a -(A + B) -> (-B) - A pattern.
9956 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
9958         * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
9960 2015-07-15  Matthew Fortune  <matthew.fortune@imgtec.com>
9961             Robert Suchanek  <robert.suchanek@imgtec.com>
9963         * config/mips/mips.c (mips_int_mask): New enum.
9964         (mips_shadow_set): Likewise.
9965         (int_mask): New variable.
9966         (use_shadow_register_set_p): Change type to enum mips_shadow_set.
9967         (machine_function): Add int_mask and use_shadow_register_set.
9968         (mips_attribute_table): Add attribute handlers for interrupt and
9969         use_shadow_register_set.
9970         (mips_interrupt_mask): New static function.
9971         (mips_handle_interrupt_attr): Likewise.
9972         (mips_handle_use_shadow_register_set_attr): Likewise.
9973         (mips_use_shadow_register_set): Change return type to enum
9974         mips_shadow_set.  Add argument handling for use_shadow_register_set
9975         attribute.
9976         (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
9977         compare with mips_shadow_set enum.
9978         (mips_compute_frame_info): Add interrupt mask and
9979         use_shadow_register_set to per-function information structure.
9980         Add a stack slot for EPC unconditionally.
9981         (mips_expand_prologue): Compare use_shadow_register_set value
9982         with mips_shadow_set enum.  Save EPC always in K1, clobber only K1 for
9983         masked interrupt register but in EIC mode use K0 and save Cause in K0.
9984         EPC saved and restored unconditionally.  Use PMODE_INSN macro when
9985         copying the stack pointer from the shadow register set.
9986         * config/mips/mips.h (SR_IM0): New define.
9987         * config/mips/mips.md (mips_rdpgpr): Rename to...
9988         (mips_rdpgpr_<mode>): ...this.  Use the Pmode iterator.
9989         * doc/extend.texi (Declaring Attributes of Functions): Document
9990         optional arguments for interrupt and use_shadow_register_set
9991         attributes.
9993 2015-07-15  Robert Suchanek  <robert.suchanek@imgtec.com>
9995         * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
9996         interrupt attribute.
9997         (mips_expand_prologue): Disable the floating point unit in an ISR.
9998         * config/mips/mips.h (SR_COP1): New define.
10000 2015-07-15  Richard Biener  <rguenther@suse.de>
10002         * genmatch.c (parser::peek, parser::peek_ident): Add argument
10003         to tell how many tokens to peek ahead (default 1).
10004         (parser::eat_token, parser::eat_ident): Return token consumed.
10005         (parser::parse_result): Parse new switch statement.
10006         * match.pd: Use case statements where appropriate.
10008 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
10010         PR rtl-optimization/58066
10011         * calls.c (expand_call): Precompute register parameters before stack
10012         alignment is performed.
10014 2015-07-15  Uros Bizjak  <ubizjak@gmail.com>
10016         PR rtl-optimization/66838
10017         * postreload.c (reload_cse_move2add): Also process
10018         CALL_INSN_FUNCTION_USAGE when resetting information of
10019         call-clobbered registers.
10021 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10022             Cesar Philippidis  <cesar@codesourcery.com>
10023             Chung-Lin Tang  <cltang@codesourcery.com>
10025         * config/nios2/constraints.md (U, v): New constraints.
10026         * config/nios2/predicates.md (rdprs_dcache_operand): New.
10027         (ldstex_memory_operand): New.
10028         * config/nios2/sync.md: New file.
10029         * config/nios2/nios2.md (unspecv): Add new builtin function
10030         UNSPECV codes.
10031         (rdprs, flushd, flushda, wrpie, eni): New patterns.
10032         (top-level): Include sync.md.
10033         * config/nios2/nios2.c (N2_FTYPES): Add function types for
10034         new builtins.
10035         (N2_BUILTINS): Add arch field setting, add new builtins.
10036         (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
10037         for arch field.
10038         (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
10039         Also handle ldex/stex/ldsex/stsex builtins.
10040         (nios2_expand_rdprs_builtin): New function.
10041         (nios2_expand_cache_builtin): New function.
10042         (nios2_expand_wrpie_builtin): New function.
10043         (nios2_expand_eni_builtin): New function.
10044         (nios2_expand_builtin): Add arch field handling and new builtin
10045         cases.
10046         * doc/extend.texi (Altera Nios II Built-in Functions): Document
10047         new builtins.
10048         * doc/md.texi (Machine Constraints): Document U and v constraints.
10050 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10051             Cesar Philippidis  <cesar@codesourcery.com>
10052             Chung-Lin Tang  <cltang@codesourcery.com>
10054         * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
10055         * config/nios2/nios2.c (struct GTY (()) machine_function): Add
10056         callee_save_reg_size and uses_anonymous_args fields.
10057         (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
10058         (nios2_create_cfa_notes): New function.
10059         (nios2_adjust_stack): New function for adjusting stack.
10060         (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
10061         Use nios2_adjust_stack.
10062         (nios2_expand_epilogue): Likewise.
10063         (nios2_expand_return): New function.
10064         (nios2_can_use_return_insn): Update for CDX pop.n usage.
10065         (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
10066         If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
10067         * config/nios2/nios2.md (return): Use nios2_expand_return.
10069 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10070             Cesar Philippidis  <cesar@codesourcery.com>
10071             Chung-Lin Tang  <cltang@codesourcery.com>
10073         * config/nios2/predicates.md (pop_operation): New.
10074         (ldwm_operation, stwm_operation): New.
10075         (nios2_hard_register_operand): New.
10076         * config/nios2/nios2-protos.h (pop_operation_p): Declare.
10077         (ldstwm_operation_p): Declare.
10078         (gen_ldstwm_peep): Declare.
10079         * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
10080         (base_reg_adjustment_p): New.
10081         (pop_operation_p): New.
10082         (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
10083         (nios2_ldstwm_regset_p): New.
10084         (ldstwm_operation_p): New.
10085         (gen_ldst): New.
10086         (nios2_ldst_parallel): New.
10087         (struct ldswm_operand): Declare.
10088         (compare_ldstwm_operands): New.
10089         (can_use_cdx_ldstw): New.
10090         (gen_ldstwm_peep): New.
10091         * config/nios2/nios2-ldstwm.sml: New.
10092         * config/nios2/nios2.md: Include ldstwm.md.
10093         * config/nios2/ldstwm.md: Generated.
10095 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10096             Cesar Philippidis  <cesar@codesourcery.com>
10097             Chung-Lin Tang  <cltang@codesourcery.com>
10099         * config/nios2/nios2.h (LABEL_ALIGN): Define.
10100         (REG_ALLOC_ORDER): Define.
10101         (ADJUST_REG_ALLOC_ORDER): Define.
10102         (HONOR_REG_ALLOC_ORDER): Define.
10103         (CDX_REG_P): Define.
10104         (ANDCLEAR_INT): Define.
10105         * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
10106         (nios2_label_align): Declare.
10107         (nios2_cdx_narrow_form_p): Declare.
10108         (nios2_adjust_reg_alloc_order): Declare.
10109         * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
10110         operation.
10111         (nios2_large_unspec_reloc_p): New function, split from...
10112         (nios2_legitimate_pic_operand_p): ...here.
10113         (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
10114         (nios2_print_operand_punct_valid_p): New.
10115         (nios2_print_operand): Add %., %!, %x, %y, %A.  Remove %U.
10116         (split_mem_address): New.
10117         (split_alu_insn): New.
10118         (cdxreg): New.
10119         (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
10120         (enum nios2_add_insn_kind): New.
10121         (nios2_add_insn_names, nios2_add_insn_narrow): New.
10122         (nios2_add_insn_classify): New.
10123         (nios2_add_insn_asm): New.
10124         (nios2_cdx_narrow_form_p): New.
10125         (label_align, min_labelno, max_labelno): New.
10126         (nios2_reorg): New.
10127         (nios2_label_align): New.
10128         (nios2_adjust_reg_alloc_order): New.
10129         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
10130         (TARGET_MACHINE_DEPENDENT_REORG): Define.
10131         * config/nios2/constraints.md (P): New constraint.
10132         * config/nios2/predicates.md (const_and_operand): New.
10133         (and_operand): New.
10134         (stack_memory_operand): New.
10135         * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
10136         (length): Update to use nios2_cdx_narrow_form_p().
10137         (type): Add new insn type values.
10138         (control, alu, st, ld, shift): Update insn reservations with
10139         new insn type values.
10140         (*high, *lo_sum): Define new insn patterns for constant generation.
10141         (movqi_internal, movhi_internal, movsi_internal): Reduce
10142         alternatives, update asm template to handle CDX variants, update
10143         type attributes.
10144         (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
10145         template, update type attributes.
10146         (extendhisi2, extendqi<mode>2): Likewise.
10147         (addsi3): Change to use function for asm string.
10148         (subsi3): Add CDX notation to asm template, update type attributes.
10149         (negsi3, one_cmplsi3): Likewise.
10150         (andsi3): New pattern, specialized from logical patterns.
10151         (<code>si3): Remove and case, combine alternatives, update asm
10152         template.
10153         (<shift_op>si3): Add CDX notation, update type attributes.
10154         (rotrsi3): Update type attribute.
10155         (*merge, extzv, insv): New insn patterns.
10156         (return): Change to define_expand.
10157         (simple_return): Add CDX notation, update type attributes.
10158         (indirect_jump): Add CDX notation.
10159         (jump): Update asm cases, update length attribute expression.
10160         (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
10161         (nios2_cbranch): Update asm cases and length attribute expression
10162         to handle CDX variants.
10163         (nios2_cmp<code>): Update asm template.
10164         (nop): Add CDX notation, update type attributes.
10165         (trap): Add CDX notation.
10166         (ctrapsi4): Update asm cases and length attribute expression to
10167         handle CDX variant.
10168         * doc/md.texi (Machine Constraints): Document P constraint.
10170 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10171             Cesar Philippidis  <cesar@codesourcery.com>
10172             Chung-Lin Tang  <cltang@codesourcery.com>
10174         * config/nios2/nios2.h (SMALL_INT12): New macro.
10175         * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
10176         (nios2_valid_addr_expr_p): Use it.
10177         (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
10178         with implicit "io" instructions on R2.
10179         * config/nios2/constraints.md (w): New constraint.
10180         * config/nios2/predicates.md (ldstio_memory_operand): New.
10181         * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
10182         operand predicate and constraint.
10183         (ld<bh>io_signed, st<bhw>io>): Likewise.
10184         * doc/md.texi (Machine Constraints): Document w constraint.
10186 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10187             Cesar Philippidis  <cesar@codesourcery.com>
10188             Chung-Lin Tang  <cltang@codesourcery.com>
10190         * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
10191         * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
10192         Nios II architecture level.
10193         * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
10194         (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
10195         (OPTION_DEFAULT_SPECS): Define.
10196         (ASM_SPEC): Add -march= spec strings.
10197         * config/nios2/nios2.c (nios2_option_override): Check for
10198         conflicts involving new options.
10199         * config.gcc (nios2*-*-*): Support --with-arch=.
10200         * doc/invoke.texi (Option Summary, Nios II Options): Document
10201         -march=, -mbmx, and -mcdx.
10203 2015-07-14  Vladimir Makarov  <vmakarov@redhat.com>
10205         PR rtl-optimization/66626
10206         * lra-constraints.c (lra_constraints): Prevent equivalence
10207         substitution for static chain pseudo in functions with nonlocal
10208         goto.
10210 2015-07-14  Sandra Loosemore  <sandra@codesourcery.com>
10212         * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
10213         (nios2_emit_stack_limit_check): Add size parameter.  Handle
10214         -fstack-limit-symbol as well as -fstack-limit-register.
10215         (nios2_expand_prologue): Emit only a single stack limit check,
10216         even if multiple stack adjustments are required.
10217         (nios2_option_override): Diagnose unsupported combination of -fpic
10218         and -stack-limit-symbol.
10220 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
10222         * Makefile.in (top_srcdir): New.
10223         * configure.ac: Use AM_ZLIB.
10224         * configure: Regeneated.
10226 2015-07-14  Matthias Klose  <doko@ubuntu.com>
10228         PR target/66840
10229         * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
10231 2015-07-14  Richard Biener  <rguenther@suse.de>
10233         PR tree-optimization/66863
10234         * tree-vrp.c (register_edge_assert_for_2): Properly restrict
10235         what we record for conversion use stmt lhs inequalities.
10237 2015-07-14  Richard Biener  <rguenther@suse.de>
10239         * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
10240         (decision_tree::gen_gimple): Likewise.
10242 2015-07-14  Tom de Vries  <tom@codesourcery.com>
10244         * gcc.c (greater_than_spec_func): Declare forward.
10245         (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
10246         -ftree-parallelize-loops={0,1}.
10247         (static_spec_functions): Add greater_than_spec_func function with name
10248         "gt".
10249         (greater_than_spec_func): New function.
10251 2015-07-14  Richard Biener  <rguenther@suse.de>
10253         * tree-ssa-dom.c (record_temporary_equivalences): Merge
10254         wideing type conversion case from record_equivalences_from_incoming_edge
10255         and use record_equality to record equivalences.
10256         (record_equivalences_from_incoming_edge): Call
10257         record_temporary_equivalences.
10259 2015-07-14  Richard Biener  <rguenther@suse.de>
10261         * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
10262         (struct if_expr): New.
10263         (struct with_expr): Likewise.
10264         (is_a_helper): Add helpers for if_expr and with_expr.
10265         (struct simplify): Add simplify_kind enum and member.  Remove
10266         ifexpr_vec member.
10267         (simplify::simplify): Adjust.
10268         (lower_commutative): Adjust.
10269         (lower_opt_convert): Likewise.
10270         (lower_cond): Likewise.
10271         (replace_id): Handle with_expr and if_expr.
10272         (lower_for): Adjust.
10273         (dt_simplify::gen_1): New recursive worker, split out from ...
10274         (dt_simplify::gen): ... here.  Deal with if and with expansion
10275         recursively.
10276         (capture_info::capture_info): Take context argument
10277         (capture_info::walk_result): Only analyze specific result.
10278         (parser::parse_result): New function.
10279         (parser::parse_simplify): Adjust to parse ifs with then end
10280         else case.
10281         (parser::parse_if): Simplify.
10282         (parser::parse_pattern): Pass down simplify kind.
10283         * match.pd: Convert if structure to new syntax.
10285 2015-07-13  Marek Polacek  <polacek@redhat.com>
10287         * rtl.c (rtx_equal_p_cb): Fix typo.
10289 2015-07-13  Andrew MacLeod  <amacleod@redhat.com>
10291         * omega.h: Don't include config.h, don't include params.h again if
10292         omega.h has already been included.
10293         * graphite-poly.h: Include sese.h.
10294         * graphite.c: Don't include sese.h, remove needless includes and
10295         minimize includes outside #ifdef HAVE_isl block.
10296         * graphite-blocking.c: Don't include sese.h, remove needless includes,
10297         and wrap entire file in #ifdef HAVE_isl
10298         * graphite-dependences.c: Likewise.
10299         * graphite-interchange.c: Likewise.
10300         * graphite-isl-ast-to-gimple.c: Likewise.
10301         * graphite-optimize-isl.c: Likewise.
10302         * graphite-poly.c: Likewise.
10303         * graphite-scop-detection.c: Likewise.
10304         * graphite-sese-to-poly.c: Likewise.
10306 2015-07-13  Tom de Vries  <tom@codesourcery.com>
10308         * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
10310 2015-07-13  Renlin Li  <renlin.li@arm.com>
10312         PR rtl/66556
10313         * simplify-rtx.c (simplify_const_relational_operation): Add
10314         side_effects_p checks.
10316 2015-07-12  Aldy Hernandez  <aldyh@redhat.com>
10318         * bitmap.h: Fix double word typos.
10319         * builtins.c: Same.
10320         * calls.c: Same.
10321         * cfgloopmanip.c: Same.
10322         * cgraph.c: Same.
10323         * cgraph.h: Same.
10324         * cgraphclones.c: Same.
10325         * combine.c: Same.
10326         * config/aarch64/aarch64-protos.h: Same.
10327         * config/aarch64/aarch64.c: Same.
10328         * config/aarch64/aarch64.md: Same.
10329         * config/arm/arm.md: Same.
10330         * config/arm/arm1020e.md: Same.
10331         * config/arm/arm1026ejs.md: Same.
10332         * config/arm/arm926ejs.md: Same.
10333         * config/arm/fa526.md: Same.
10334         * config/arm/fa606te.md: Same.
10335         * config/arm/fa626te.md: Same.
10336         * config/arm/fa726te.md: Same.
10337         * config/arm/fmp626.md: Same.
10338         * config/darwin.c: Same.
10339         * config/epiphany/epiphany.c: Same.
10340         * config/frv/frv.c: Same.
10341         * config/ft32/ft32.c: Same.
10342         * config/gnu-user.h: Same.
10343         * config/h8300/constraints.md: Same.
10344         * config/i386/i386.c: Same.
10345         * config/i386/i386.md: Same.
10346         * config/iq2000/iq2000.md: Same.
10347         * config/mips/mips.c: Same.
10348         * config/mmix/mmix.md: Same.
10349         * config/moxie/moxie.c: Same.
10350         * config/nds32/nds32.md: Same.
10351         * config/pa/pa.h: Same.
10352         * config/rs6000/aix.h: Same.
10353         * config/rs6000/rs6000.h: Same.
10354         * config/sh/sh.c: Same.
10355         * config/tilegx/tilegx.md: Same.
10356         * config/tilepro/gen-mul-tables.cc: Same.
10357         * cse.c: Same.
10358         * dbxout.c: Same.
10359         * doc/invoke.texi: Same.
10360         * dse.c: Same.
10361         * dwarf2out.c: Same.
10362         * final.c: Same.
10363         * gcc.c: Same.
10364         * genmatch.c: Same.
10365         * gimplify.c: Same.
10366         * hash-table.h: Same.
10367         * internal-fn.c: Same.
10368         * ipa-cp.c: Same.
10369         * ipa-devirt.c: Same.
10370         * ipa-icf.c: Same.
10371         * ipa-icf.h: Same.
10372         * ipa-profile.c: Same.
10373         * ipa-prop.c: Same.
10374         * ipa-prop.h: Same.
10375         * ira.c: Same.
10376         * omp-low.c: Same.
10377         * reg-stack.c: Same.
10378         * regcprop.c: Same.
10379         * reorg.c: Same.
10380         * rtl.h: Same.
10381         * sbitmap.h: Same.
10382         * tree-eh.c: Same.
10383         * tree-inline.c: Same.
10384         * tree-sra.c: Same.
10385         * tree-ssa-dom.c: Same.
10386         * tree-ssa-loop-ivopts.c: Same.
10387         * tree-ssa-structalias.c: Same.
10388         * tree-ssa-tail-merge.c: Same.
10389         * tree-ssa-ter.c: Same.
10390         * tree-ssa-threadupdate.c: Same.
10391         * tree-ssa-uninit.c: Same.
10392         * tree-ssanames.c: Same.
10393         * tree-vect-loop-manip.c: Same.
10394         * tree-vrp.c: Same.
10395         * tree.c: Same.
10396         * valtrack.c: Same.
10397         * vec.h: Same.
10399 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10401         PR middle-end/66726
10402         * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
10403         tree_ssa_phiopt_worker): Call it.
10405 2015-07-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
10407         * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
10408         * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
10409         REG_EQUAL note.
10411 2015-07-11  Marek Polacek  <polacek@redhat.com>
10413         PR middle-end/66353
10414         * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
10415         * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
10416         (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
10417         rather than bb_has_abnormal_call_pred.
10418         * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
10419         (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
10420         rather than bb_has_abnormal_call_pred.
10422 2015-07-10  Anatoly Sokolov  <aesok@post.ru>
10424         * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10425         REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
10426         RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10427         * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
10428         v850_legitimate_address_p): New functions.
10429         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
10431 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
10433         PR target/66819
10434         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
10435         indirect sibcall with register arguments if register available
10436         for argument passing.
10437         (init_cumulative_args): Set cfun->machine->arg_reg_available
10438         to (cum->nregs > 0) or to true if function has a variable
10439         argument list.
10440         (function_arg_advance_32): Set cfun->machine->arg_reg_available
10441         to false if cum->nregs <= 0.
10442         * config/i386/i386.h (machine_function): Add arg_reg_available.
10444 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
10446         * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
10447         and gen_higpart instead of gen_rtx_SUBREG.
10448         * config/i386/i386.md
10449         (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
10450         (read-modify peephole2): Use gen_lowpart instead of
10451         gen_rtx_SUBREG for operand 5.
10453 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
10455         * config/tilepro/gen-mul-tables.cc (main): Change include list for
10456         generated files.
10457         * config/tilepro/mul-tables.c: Regenerate.
10458         * config/tilegx/mul-tables.c: Regenerate.
10460 2015-07-10  Richard Biener  <rguenther@suse.de>
10462         * fold-const.c (distribute_bit_expr): Remove.
10463         (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
10464         to (A & C1) | (B & C2), distributing (A & B) | (A & C)
10465         to A & (B | C) and simplifying A << C1 << C2 to ...
10466         * match.pd: ... patterns here.
10468 2015-07-10  Jiong Wang  <jiong.wang@arm.com>
10470         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10471         Mark mem as READONLY and NOTRAP for PIC symbol.
10473 2015-07-10  Andrew MacLeod  <amacleod@redhat.com>
10475         * gimple-predict.h: New file.
10476         (gimple_predict_predictor, gimple_predict_set_predictor,
10477         gimple_predict_outcome, gimple_predict_set_outcome,
10478         gimple_build_predict): Relocate here.
10479         * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
10480         gimple_predict_outcome, gimple_predict_set_outcome): Move to
10481         gimple-predict.h.
10482         * gimple.c (gimple_build_predict): Move to gimple-predict.h
10483         * basic-block.h: Don't include cfghooks.h.
10484         * backend.h: Don't include predict.h.
10485         * cfghooks.h: Include predict.h.
10486         * gimple-pretty-print.c: Include gimple-predict.h.
10487         * gimplify.c: Likwise.
10488         * predict.c: Adjust includes.
10489         * tree-inline.c: Likewise.
10490         * asan.c: Likewise.
10491         * auto-inc-dec.c: Likewise.
10492         * auto-profile.c: Likewise.
10493         * bb-reorder.c: Likewise.
10494         * builtins.c: Likewise.
10495         * caller-save.c: Likewise.
10496         * calls.c: Likewise.
10497         * cfganal.c: Likewise.
10498         * cfgbuild.c: Likewise.
10499         * cfg.c: Likewise.
10500         * cfgcleanup.c: Likewise.
10501         * cfgexpand.c: Likewise.
10502         * cfghooks.c: Likewise.
10503         * cfgloopanal.c: Likewise.
10504         * cfgloop.c: Likewise.
10505         * cfgloopmanip.c: Likewise.
10506         * cfgrtl.c: Likewise.
10507         * cgraph.c: Likewise.
10508         * cgraphunit.c: Likewise.
10509         * combine.c: Likewise.
10510         * cprop.c: Likewise.
10511         * cse.c: Likewise.
10512         * dce.c: Likewise.
10513         * dojump.c: Likewise.
10514         * dse.c: Likewise.
10515         * except.c: Likewise.
10516         * expmed.c: Likewise.
10517         * expr.c: Likewise.
10518         * final.c: Likewise.
10519         * fold-const.c: Likewise.
10520         * function.c: Likewise.
10521         * fwprop.c: Likewise.
10522         * gcc-plugin.h: Likewise.
10523         * gcse.c: Likewise.
10524         * genattrtab.c: Likewise.
10525         * genemit.c: Likewise.
10526         * gengtype.c: Likewise.
10527         * genopinit.c: Likewise.
10528         * genoutput.c: Likewise.
10529         * genpreds.c: Likewise.
10530         * genrecog.c: Likewise.
10531         * gimple-fold.c: Likewise.
10532         * gimple-iterator.c: Likewise.
10533         * gimple-ssa-isolate-paths.c: Likewise.
10534         * gimple-ssa-strength-reduction.c: Likewise.
10535         * graph.c: Likewise.
10536         * graphite-blocking.c: Likewise.
10537         * graphite.c: Likewise.
10538         * graphite-dependences.c: Likewise.
10539         * graphite-interchange.c: Likewise.
10540         * graphite-isl-ast-to-gimple.c: Likewise.
10541         * graphite-optimize-isl.c: Likewise.
10542         * graphite-poly.c: Likewise.
10543         * graphite-scop-detection.c: Likewise.
10544         * graphite-sese-to-poly.c: Likewise.
10545         * haifa-sched.c: Likewise.
10546         * ifcvt.c: Likewise.
10547         * internal-fn.c: Likewise.
10548         * ipa-cp.c: Likewise.
10549         * ipa-profile.c: Likewise.
10550         * ipa-split.c: Likewise.
10551         * ipa-utils.c: Likewise.
10552         * ira-build.c: Likewise.
10553         * ira-color.c: Likewise.
10554         * ira-conflicts.c: Likewise.
10555         * ira-costs.c: Likewise.
10556         * ira-emit.c: Likewise.
10557         * ira-lives.c: Likewise.
10558         * jump.c: Likewise.
10559         * loop-doloop.c: Likewise.
10560         * loop-init.c: Likewise.
10561         * loop-invariant.c: Likewise.
10562         * loop-unroll.c: Likewise.
10563         * lower-subreg.c: Likewise.
10564         * lra-assigns.c: Likewise.
10565         * lra.c: Likewise.
10566         * lra-coalesce.c: Likewise.
10567         * lra-constraints.c: Likewise.
10568         * lra-lives.c: Likewise.
10569         * lto-cgraph.c: Likewise.
10570         * lto-streamer-in.c: Likewise.
10571         * mode-switching.c: Likewise.
10572         * modulo-sched.c: Likewise.
10573         * omp-low.c: Likewise.
10574         * optabs.c: Likewise.
10575         * passes.c: Likewise.
10576         * postreload.c: Likewise.
10577         * postreload-gcse.c: Likewise.
10578         * profile.c: Likewise.
10579         * recog.c: Likewise.
10580         * regstat.c: Likewise.
10581         * reload1.c: Likewise.
10582         * reorg.c: Likewise.
10583         * rtlanal.c: Likewise.
10584         * sched-ebb.c: Likewise.
10585         * sel-sched-ir.c: Likewise.
10586         * sese.c: Likewise.
10587         * shrink-wrap.c: Likewise.
10588         * simplify-rtx.c: Likewise.
10589         * stmt.c: Likewise.
10590         * store-motion.c: Likewise.
10591         * tracer.c: Likewise.
10592         * trans-mem.c: Likewise.
10593         * tree-call-cdce.c: Likewise.
10594         * tree-cfg.c: Likewise.
10595         * tree-cfgcleanup.c: Likewise.
10596         * tree-chkp.c: Likewise.
10597         * tree-complex.c: Likewise.
10598         * tree-eh.c: Likewise.
10599         * tree-if-conv.c: Likewise.
10600         * tree-loop-distribution.c: Likewise.
10601         * tree-outof-ssa.c: Likewise.
10602         * tree-parloops.c: Likewise.
10603         * tree-predcom.c: Likewise.
10604         * tree-pretty-print.c: Likewise.
10605         * tree-profile.c: Likewise.
10606         * tree-sra.c: Likewise.
10607         * tree-ssa.c: Likewise.
10608         * tree-ssa-coalesce.c: Likewise.
10609         * tree-ssa-dce.c: Likewise.
10610         * tree-ssa-dom.c: Likewise.
10611         * tree-ssa-forwprop.c: Likewise.
10612         * tree-ssa-ifcombine.c: Likewise.
10613         * tree-ssa-loop-ch.c: Likewise.
10614         * tree-ssa-loop-im.c: Likewise.
10615         * tree-ssa-loop-ivcanon.c: Likewise.
10616         * tree-ssa-loop-ivopts.c: Likewise.
10617         * tree-ssa-loop-manip.c: Likewise.
10618         * tree-ssa-loop-prefetch.c: Likewise.
10619         * tree-ssa-loop-unswitch.c: Likewise.
10620         * tree-ssa-math-opts.c: Likewise.
10621         * tree-ssa-phiopt.c: Likewise.
10622         * tree-ssa-pre.c: Likewise.
10623         * tree-ssa-reassoc.c: Likewise.
10624         * tree-ssa-sink.c: Likewise.
10625         * tree-ssa-tail-merge.c: Likewise.
10626         * tree-ssa-threadedge.c: Likewise.
10627         * tree-ssa-threadupdate.c: Likewise.
10628         * tree-switch-conversion.c: Likewise.
10629         * tree-tailcall.c: Likewise.
10630         * tree-vect-data-refs.c: Likewise.
10631         * tree-vect-loop.c: Likewise.
10632         * tree-vect-loop-manip.c: Likewise.
10633         * tree-vectorizer.c: Likewise.
10634         * tree-vrp.c: Likewise.
10635         * ubsan.c: Likewise.
10636         * value-prof.c: Likewise.
10637         * varasm.c: Likewise.
10638         * var-tracking.c: Likewise.
10639         * config/aarch64/aarch64-builtins.c: Likewise.
10640         * config/aarch64/aarch64.c: Likewise.
10641         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10642         * config/alpha/alpha.c: Likewise.
10643         * config/arc/arc.c: Likewise.
10644         * config/arm/arm.c: Likewise.
10645         * config/avr/avr.c: Likewise.
10646         * config/bfin/bfin.c: Likewise.
10647         * config/c6x/c6x.c: Likewise.
10648         * config/cr16/cr16.c: Likewise.
10649         * config/cris/cris.c: Likewise.
10650         * config/darwin.c: Likewise.
10651         * config/darwin-c.c: Likewise.
10652         * config/epiphany/epiphany.c: Likewise.
10653         * config/epiphany/mode-switch-use.c: Likewise.
10654         * config/epiphany/resolve-sw-modes.c: Likewise.
10655         * config/fr30/fr30.c: Likewise.
10656         * config/frv/frv.c: Likewise.
10657         * config/ft32/ft32.c: Likewise.
10658         * config/h8300/h8300.c: Likewise.
10659         * config/i386/i386.c: Likewise.
10660         * config/i386/winnt.c: Likewise.
10661         * config/ia64/ia64.c: Likewise.
10662         * config/iq2000/iq2000.c: Likewise.
10663         * config/lm32/lm32.c: Likewise.
10664         * config/m32c/m32c.c: Likewise.
10665         * config/m32r/m32r.c: Likewise.
10666         * config/m68k/m68k.c: Likewise.
10667         * config/mcore/mcore.c: Likewise.
10668         * config/mep/mep.c: Likewise.
10669         * config/microblaze/microblaze.c: Likewise.
10670         * config/mips/mips.c: Likewise.
10671         * config/mmix/mmix.c: Likewise.
10672         * config/mn10300/mn10300.c: Likewise.
10673         * config/moxie/moxie.c: Likewise.
10674         * config/msp430/msp430.c: Likewise.
10675         * config/nds32/nds32.c: Likewise.
10676         * config/nds32/nds32-cost.c: Likewise.
10677         * config/nds32/nds32-fp-as-gp.c: Likewise.
10678         * config/nds32/nds32-intrinsic.c: Likewise.
10679         * config/nds32/nds32-isr.c: Likewise.
10680         * config/nds32/nds32-md-auxiliary.c: Likewise.
10681         * config/nds32/nds32-memory-manipulation.c: Likewise.
10682         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10683         * config/nds32/nds32-predicates.c: Likewise.
10684         * config/nios2/nios2.c: Likewise.
10685         * config/nvptx/nvptx.c: Likewise.
10686         * config/pa/pa.c: Likewise.
10687         * config/pdp11/pdp11.c: Likewise.
10688         * config/rl78/rl78.c: Likewise.
10689         * config/rs6000/rs6000.c: Likewise.
10690         * config/rx/rx.c: Likewise.
10691         * config/s390/s390.c: Likewise.
10692         * config/sh/sh.c: Likewise.
10693         * config/sh/sh-mem.cc: Likewise.
10694         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10695         * config/sh/sh_treg_combine.cc: Likewise.
10696         * config/sparc/sparc.c: Likewise.
10697         * config/spu/spu.c: Likewise.
10698         * config/stormy16/stormy16.c: Likewise.
10699         * config/tilegx/tilegx.c: Likewise.
10700         * config/tilepro/tilepro.c: Likewise.
10701         * config/v850/v850.c: Likewise.
10702         * config/vax/vax.c: Likewise.
10703         * config/visium/visium.c: Likewise.
10704         * config/xtensa/xtensa.c: Likewise.
10706 2015-07-10  Richard Biener  <rguenther@suse.de>
10708         * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
10709         (decision_tree::gen_gimple): Likewise.
10710         (decision_tree::gen_generic): Likewise.
10712 2015-07-10  Uros Bizjak  <ubizjak@gmail.com>
10714         PR target/66813
10715         * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
10716         sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
10718 2015-07-10  Jakub Jelinek  <jakub@redhat.com>
10720         PR middle-end/66820
10721         * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
10722         or ORT_TASK contexts.
10723         * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
10724         is non-zero.
10726 2015-07-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10728         * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
10729         above function.
10731 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10733         * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
10734         insert nit + 1 bound.
10736 2015-07-10  Richard Biener  <rguenther@suse.de>
10738         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
10739         Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
10740         (if_convertible_loop_p_1): For this always compute bb predicates.
10741         (if_convertible_loop_p): And free them.
10743 2015-07-10  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10745         * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
10746         in dump message.
10748 2015-07-10  Richard Biener  <rguenther@suse.de>
10750         PR tree-optimization/66823
10751         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
10752         inverted predicate.
10754 2015-07-09  Steve Ellcey  <sellcey@imgtec.com>
10756         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
10757         to handle mips[32|64]r3 and mips[32|64]r5.
10759 2015-07-09  Jakub Jelinek  <jakub@redhat.com>
10761         PR middle-end/66633
10762         * tree-nested.c (get_static_chain): Or in a flag into
10763         info->static_chain_added.
10764         (get_frame_field, get_nonlocal_debug_decl): Likewise.
10765         (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
10766         2015-07-01 changes.
10767         (convert_tramp_reference_stmt): If a frame_decl or chain_decl
10768         is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
10769         add it to clauses.
10771         PR tree-optimization/66718
10772         * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
10773         field.
10774         (vect_simd_lane_linear): New function.
10775         (vectorizable_simd_clone_call): Support using linear arguments for
10776         addresses of arrays elements indexed by GOMP_SIMD_LANE result.
10778 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
10780         PR target/66821
10781         * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
10783 2015-07-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
10785         * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
10786         Use machine mode, not enum machine_mode in the prototype.
10788         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
10789         classify 128-bit floating point support.
10790         (FLOAT128_IBM_P): Likewise.
10791         (FLOAT128_VECTOR_P): Likewise.
10792         (FLOAT128_2REG_P): Likewise.
10793         (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
10794         (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
10795         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10796         (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
10798         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
10799         tests against TFmode/TDmode, since those modes do not use VSX
10800         addresses.
10801         (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
10802         support.
10803         (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
10804         tests against TFmode, etc.
10805         (invalid_e500_subreg): Add tests against IFmode/KFmode.
10806         (reg_offset_addressing_ok_p): Likewise.
10807         (rs6000_legitimate_offset_address_p): Likewise.
10808         (rs6000_legitimize_address): Likewise.
10809         (rs6000_legitimize_reload_address): Likewise.
10810         (rs6000_legitimate_address_p): Clean up tests against TFmode and
10811         TDmode to use the new helper macros, which will include IFmode and
10812         KFmode.
10813         (rs6000_emit_move): Likewise.
10814         (rs6000_darwin64_record_arg_recurse): Likewise.
10815         (print_operand): Likewise.
10816         (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
10817         that uses a single vector register as a vector and not as a
10818         floating point register in terms of the calling sequence.
10819         (rs6000_discover_homogeneous_aggregate): Likewise.
10820         (rs6000_return_in_memory): Likewise.
10821         (init_cumulative_args): Likewise.
10822         (rs6000_function_arg_boundary): Likewise.
10823         (rs6000_function_arg_advance_1): Likewise.
10824         (rs6000_function_arg): Likewise.
10825         (rs6000_pass_by_reference): Likewise.
10826         (rs6000_gimplify_va_arg): Likewise.
10827         (rs6000_secondary_reload_memory): Use machine_mode not enum
10828         machine mode.
10829         (rs6000_split_multireg_move): Use new helper macros.
10830         (spe_func_has_64bit_regs_p): Likewise.
10831         (rs6000_output_function_epilogue): Add IFmode/KFmode support.
10832         (output_toc): Use new helper macros.
10833         (rs6000_register_move_cost): Likewise.
10834         (rs6000_function_value): Add IEEE 128-bit floating point calling
10835         sequence support.
10836         (rs6000_libcall_value): Likewise.
10837         (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
10838         floating point support.
10839         (rs6000_vector_mode_supported_p): Likewise.
10841 2015-07-09  Vladimir Makarov  <vmakarov@redhat.com>
10843         PR rtl-optimization/66782
10844         * lra-int.h (struct lra_insn_recog_data): Add comment about
10845         clobbered hard regs for arg_hard_regs.
10846         * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
10847         * lra-lives.c (process_bb_lives): Process clobbered hard regs.
10848         Add condition for processing used hard regs.
10849         * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
10850         Process clobbered hard regs.
10852 2015-07-09  Michael Matz  <matz@suse.de>
10854         * genmatch.c (fprintf_indent): New function.
10855         (operand::gen_transform): Add indent parameter.
10856         (expr::gen_transform, c_expr::gen_transform,
10857         capture::gen_transform): Ditto and use fprintf_indent.
10858         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
10859         (dt_operand::gen, dt_operand::gen_predicate,
10860         dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
10861         dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
10862         (decision_tree::gen_gimple): Adjust calls and indent generated
10863         code.
10864         (decision_tree::gen_generic): Ditto.
10865         (write_predicate): Ditto.
10867 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
10869         PR target/66814
10870         * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
10871         * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
10872         (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
10873         {GENERAL,SSE,MMX}_REG_P where appropriate.
10875 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
10877         * lto-streamer.h: Don't include target.h and alloc-pool.h.
10878         * builtins.c: Adjust includes.
10879         * gimple.c: Likewise.
10880         * ipa-icf.c: Likewise.
10881         * lto-opts.c: Likewise.
10882         * ipa-reference.c: Likewise.
10883         * lto-section-out.c: Likewise.
10884         * lto-streamer-in.c: Likewise.
10885         * lto-streamer-out.c: Likewise.
10886         * opts-global.c: Likewise.
10887         * symtab.c: Likewise.
10888         * tree-chkp.c: Likewise.
10889         * tree-ssa-live.c: Likewise.
10890         * tree-streamer-in.c: Likewise.
10891         * tree-streamer-out.c: Likewise.
10892         * config/darwin.c: Likewise.
10893         * config/i386/winnt.c: Likewise.
10895 2015-07-09  Richard Biener  <rguenther@suse.de>
10897         * genmatch.c (struct expr): Add force_single_use flag.
10898         (expr::expr): Add copy constructor.
10899         (capture_info::walk_match): Gather force_single_use captures.
10900         (expr::gen_transform): Use possibly NULLified sequence.
10901         (dt_simplify::gen): Apply single-use restrictions by NULLifying
10902         seq if any constrained expr is not single-use.
10903         (parser::parse_expr): Refactor to allow multiple flags.  Handle
10904         's' flag to force an expression have a single-use if the pattern
10905         simplifies to more than one statement.
10906         * match.pd: Convert most single_use conditionals to :s flags.
10908 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
10910         * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
10911         (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
10912         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10914 2015-07-09  Andrew MacLeod  <amacleod@redhat.com>
10916         * flags.h: Don't include flag-types.h or options.h.
10917         * opts-common.c: Adjust includes.
10918         * opts-global.c: Likewise.
10919         * common/config/epiphany/epiphany-common.c: Likewise.
10921 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
10923         PR target/66818
10924         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
10925         for IA MCU.
10927 2015-07-09  H.J. Lu  <hongjiu.lu@intel.com>
10929         PR target/66817
10930         * config/i386/i386.c (ix86_return_in_memory): Return true
10931         if int_size_in_bytes returns negative for IA MCU.
10933 2015-07-09  Marek Polacek  <polacek@redhat.com>
10935         PR tree-optimization/66718
10936         * Makefile.in (OBJS): Add gimple-laddress.o.
10937         * passes.def: Schedule pass_laddress.
10938         * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
10939         * tree-pass.h (make_pass_laddress): Declare.
10940         * gimple-laddress.c: New file.
10942 2015-07-09  Richard Biener  <rguenther@suse.de>
10944         * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
10946 2015-07-09  Richard Biener  <rguenther@suse.de>
10948         PR tree-optimization/66807
10949         * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
10951 2015-07-08  Kito Cheng  <kito.cheng@gmail.com>
10953         * function.c (stack_protect_epilogue): Use if rather than switch for
10954         check targetm.have_stack_protect_test.
10956 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
10958         * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
10959         * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
10960         * config/arc/arc.h: Likewise.
10961         * config/arm/arm.h: Likewise.
10962         * config/bfin/bfin.h: Likewise.
10963         * config/epiphany/epiphany.h: Likewise.
10964         * config/frv/frv.h: Likewise.
10965         * config/ia64/ia64.h: Likewise.
10966         * config/iq2000/iq2000.h: Likewise.
10967         * config/lm32/lm32.h: Likewise.
10968         * config/m32r/m32r.h: Likewise.
10969         * config/mcore/mcore.h: Likewise.
10970         * config/mep/mep.h: Likewise.
10971         * config/microblaze/microblaze.h: Likewise.
10972         * config/mips/mips.h: Likewise.
10973         * config/mmix/mmix.h: Likewise.
10974         * config/mn10300/mn10300.h: Likewise.
10975         * config/nds32/nds32.h: Likewise.
10976         * config/nios2/nios2.h: Likewise.
10977         * config/pa/pa.h: Likewise.
10978         * config/rl78/rl78.h: Likewise.
10979         * config/sh/sh.h: Likewise.
10980         * config/sparc/sparc.h: Likewise.
10981         * config/stormy16/stormy16.h: Likewise.
10982         * config/tilegx/tilegx.h: Likewise.
10983         * config/tilepro/tilepro.h: Likewise.
10984         * config/v850/v850.h: Likewise.
10985         * config/xtensa/xtensa.h: Likewise.
10986         * doc/tm.texi: Regenerate.
10987         * doc/tm.texi.in: Adjust.
10988         * combine.c (simplify_set): Likewise.
10989         (simplify_comparison): Likewise.
10990         * expr.c (store_constructor): Likewise.
10991         * internal-fn.c (expand_arith_overflow): Likewise.
10992         * reload.c (push_reload): Likewise.
10993         (find_reloads): Likewise.
10994         (find_reloads_subreg_address): Likewise.
10995         * reload1.c (eliminate_regs_1): Likewise.
10996         * rtlanal.c (nonzero_bits1): Likewise.
10997         (num_sign_bit_copies1): Likewise.
10998         * simplify-rtx.c (simplify_truncation): Likewise.
11000 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11002         * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
11003         of AUTO_INC_DEC with the preprocessor.
11004         * combine.c (combine_instructions): Likewise.
11005         (can_combine_p): Likewise.
11006         (try_combine): Likewise.
11007         * emit-rtl.c (try_split): Likewise.
11008         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11009         * lower-subreg.c (resolve_simple_move): Likewise.
11010         * lra.c (update_inc_notes): Likewise.
11011         * recog.c (asm_operand_ok): Likewise.
11012         (constrain_operands): Likewise.
11013         * regrename.c (scan_rtx_address): Likewise.
11014         * reload.c (update_auto_inc_notes): Likewise.
11015         (reg_inc_found_and_valid_p): Likewise.
11016         * reload1.c (reload): Likewise.
11017         (emit_input_reload_insns): Likewise.
11018         (delete_output_reload): Likewise.
11019         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11020         * valtrack.c (cleanup_auto_inc_dec): Likewise.
11022 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11024         * rtl.h: Always define AUTO_INC_DEC.
11025         * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
11026         * combine.c (combine_instructions): Likewise.
11027         (can_combine_p): Likewise.
11028         (try_combine): Likewise.
11029         * emit-rtl.c (try_split): Likewise.
11030         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11031         * lower-subreg.c (resolve_simple_move): Likewise.
11032         * lra.c (update_inc_notes): Likewise.
11033         * recog.c (asm_operand_ok): Likewise.
11034         (constrain_operands): Likewise.
11035         * regrename.c (scan_rtx_address): Likewise.
11036         * reload.c (update_auto_inc_notes): Likewise.
11037         (find_equiv_reg): Likewise.
11038         * reload1.c (reload): Likewise.
11039         (reload_as_needed): Likewise.
11040         (choose_reload_regs): Likewise.
11041         (emit_input_reload_insns): Likewise.
11042         (delete_output_reload): Likewise.
11043         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11044         * valtrack.c (cleanup_auto_inc_dec): Likewise.
11046 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11048         * combine.c (can_combine_def_p): Don't check the value of
11049         HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
11050         (combinable_i3pat): Likewise.
11051         (mark_used_regs_combine): Likewise.
11052         * regrename.c (rename_chains): Likewise.
11053         * reload.c (find_reloads_address): Likewise.
11054         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11056 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11058         * combine.c (update_rsp_from_reg_equal): Don't check if
11059         SHORT_IMMEDIATES_SIGN_EXTEND is defined.
11060         (reg_nonzero_bits_for_combine): Likewise.
11061         * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
11062         1.
11063         * config/frv/frv.h: Likewise.
11064         * config/lm32/lm32.h: Likewise.
11065         * config/mep/mep.h: Likewise.
11066         * config/mips/mips.h: Likewise.
11067         * config/rs6000/rs6000.h: Likewise.
11068         * config/sh/sh.h: Likewise.
11069         * config/tilegx/tilegx.h (enum reg_class): Likewise.
11070         * config/tilepro/tilepro.h: Likewise.
11071         * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
11072         * doc/tm.texi: Regenerate.
11073         * doc/tm.texi.in: Adjust.
11074         * rtlanal.c (nonzero_bits1): Likewise.
11076 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11078         * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
11079         with the preprocessor.
11080         (combine_instructions): Likewise.
11081         (try_combine): Likewise.
11082         (subst): Likewise.
11083         (distribute_notes): Likewise.
11085 2015-07-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
11087         * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
11088         defined.
11089         (simplify_set): Likewise.
11090         * cse.c (cse_insn): Likewise.
11091         * fold-const.c (fold_single_bit_test): Likewise.
11092         (fold_unary_loc): Likewise.
11093         * postreload.c (reload_cse_simplify_set): Likewise.
11094         (reload_cse_simplify_operands): Likewise.
11096 2015-07-08  Jiong Wang  <jiong.wang@arm.com>
11098         * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
11099         (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
11101 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
11103         PR target/66746
11104         * config/i386/x86intrin.h: Include <adxintrin.h> even if
11105         __iamcu__ is defined.
11107 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
11109         * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
11111 2015-07-08  Iain Sandoe  <iain@codesourcery.com>
11113         PR target/66523
11114         * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
11115         names from preservation.
11117 2015-07-08  H.J. Lu  <hongjiu.lu@intel.com>
11119         PR target/66806
11120         * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
11121         change for IAMCU.
11122         (function_arg_advance_32): Don't pass vectors in registers for
11123         IAMCU.
11124         (function_arg_32): Likewise.
11125         (ix86_return_in_memory): Don't return vectors in registers for
11126         IAMCU.
11128 2015-07-08  Vladimir Makarov  <vmakarov@redhat.com>
11130         PR middle-end/66334
11131         * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
11132         hard regno live at the start of BB with incoming abnormal edges.
11133         * lra-lives.c (process_bb_lives): Ditto.
11135 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
11137         PR libgomp/65099
11138         * config/nvptx/mkoffload.c (main): Create an offload image only in
11139         64-bit configurations.
11141 2015-07-08  Martin Liska  <mliska@suse.cz>
11143         PR bootstrap/66744
11144         * tree-sra.c (create_access_1): Call ctor without brackets.
11145         (create_artificial_child_access): Likewise.
11147 2015-07-08  Richard Biener  <rguenther@suse.de>
11149         PR tree-optimization/66793
11150         * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
11151         Properly split the block after stmts ending it.
11153 2015-07-08  Richard Biener  <rguenther@suse.de>
11155         PR tree-optimization/66794
11156         * passes.c (execute_function_todo): Assert that post-dominators
11157         are not computed.
11158         * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
11159         Free post-dominators.
11161 2015-07-08  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
11163         * config/s390/s390.c (s390_init_frame_layout): Replace assertion
11164         with early exit.
11166 2015-07-08  Uros Bizjak  <ubizjak@gmail.com>
11168         * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
11169         more than or equal 8 and less than 32 when optimizing for size.
11171 2015-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11173         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
11174         COSTS_N_INSNS (1) and increment it appropriately throughout the
11175         function.
11177 2015-07-08  Richard Biener  <rguenther@suse.de>
11179         * fold-const.c (fold_widened_comparison): Fix inverted comparison.
11181 2015-07-08  Alan Modra  <amodra@gmail.com>
11183         * target.def (rtx_costs): Remove "code" param, add "mode".
11184         * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
11185         (set_src_cost, get_full_set_src_cost): Likewise.  Move later in file.
11186         (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
11187         * rtlanal.c (rtx_cost): Add "mode" parameter.  Update targetm.rtx_costs
11188         call.  Track mode when given in rtx.
11189         (get_full_rtx_cost): Add "mode" parameter.  Update rtx_cost calls.
11190         (default_address_cost): Pass Pmode to rtx_cost.
11191         (insn_rtx_cost): Pass dest mode of set to set_src_cost.
11192         * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
11193         with NULL set.
11194         * cse.c (COST, COST_IN): Add MODE param.  Update all uses.
11195         (notreg_cost): Add mode param.  Use it.
11196         * gcse.c (want_to_gcse_p): Delete forward declaration.  Add
11197         mode param and pass to set_src_cost.  Update all calls.
11198         (hash_scan_set): Formatting.
11199         * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
11200         (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
11201         * hooks.h: Ditto.
11202         * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
11203         init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
11204         emit_store_flag): Update set_src_cost and rtx_cost calls.
11205         * auto-inc-dec.c (attempt_change): Likewise.
11206         * calls.c (precompute_register_parameters): Likewise.
11207         * combine.c (expand_compound_operation, make_extraction,
11208         force_to_mode, distribute_and_simplify_rtx): Likewise.
11209         * dojump.c (prefer_and_bit_test): Likewise.
11210         * dse.c (find_shift_sequence): Likewise.
11211         * expr.c (compress_float_constant): Likewise.
11212         * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
11213         * ifcvt.c (noce_try_sign_mask): Likewise.
11214         * loop-doloop.c (doloop_optimize): Likewise.
11215         * loop-invariant.c (create_new_invariant): Likewise.
11216         * lower-subreg.c (shift_cost, compute_costs): Likewise.
11217         * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
11218         lshift_cheap_p): Likewise.
11219         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
11220         try_replace_in_use, reload_cse_move2add): Likewise.
11221         * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
11222         Likewise.
11223         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11224         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11225         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
11226         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
11227         * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
11228         add "mode" param.  Use "mode: in place of GET_MODE (x).  Pass mode
11229         to rtx_cost calls.
11230         * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
11231         * config/arc/arc.c (arc_rtx_costs): Likewise.
11232         * config/arm/arm.c (arm_rtx_costs): Likewise.
11233         * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
11234         * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
11235         * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
11236         * config/cris/cris.c (cris_rtx_costs): Likewise.
11237         * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
11238         * config/frv/frv.c (frv_rtx_costs): Likewise.
11239         * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
11240         * config/i386/i386.c (ix86_rtx_costs): Likewise.
11241         * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
11242         * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
11243         * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
11244         * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
11245         * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
11246         * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
11247         * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
11248         * config/mep/mep.c (mep_rtx_cost): Likewise.
11249         * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
11250         * config/mips/mips.c (mips_rtx_costs): Likewise.
11251         * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
11252         * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
11253         * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
11254         * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
11255         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
11256         * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
11257         * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
11258         * config/pa/pa.c (hppa_rtx_costs): Likewise.
11259         * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
11260         * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
11261         * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
11262         * config/s390/s390.c (s390_rtx_costs): Likewise.
11263         * config/sh/sh.c (sh_rtx_costs): Likewise.
11264         * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
11265         * config/spu/spu.c (spu_rtx_costs): Likewise.
11266         * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
11267         * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
11268         * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
11269         * config/v850/v850.c (v850_rtx_costs): Likewise.
11270         * config/vax/vax.c (vax_rtx_costs): Likewise.
11271         * config/visium/visium.c (visium_rtx_costs): Likewise.
11272         * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
11273         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
11274         "code" param, and pass as outer_code to first rtx_cost call.  Pass
11275         mode to rtx_cost calls.
11276         (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
11277         calls.
11278         (aarch64_rtx_costs_wrapper): Update.
11279         * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
11280         arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
11281         rtx_cost calls.
11282         * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
11283         and rtx_cost calls.
11284         (avr_operand_rtx_cost): Similarly.
11285         (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
11286         for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
11287         * config/mips/mips.c (mips_stack_address_p): Comment typo.
11288         (mips_binary_cost): Update rtx_cost and set_src_cost calls.
11289         (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
11290         * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
11291         rtx_cost.
11292         (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
11293         * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
11294         * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
11295         * doc/tm.texi: Regenerate.
11297 2015-07-07  Andrew MacLeod  <amacleod@redhat.com>
11299         * tree-core.h: Include symtab.h.
11300         * rtl.h: Include hard-reg-set.h but not flags.h.
11301         (HARD_CONST): Remove condition compilation involving HARD_CONST since
11302         hard-reg-set.h is always included.
11303         * regs.h: Don't include hard-reg-set.h or rtl.h.
11304         * cfg.h: Include dominance.h.
11305         * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
11306         * backend.h: New.  Aggregate commonly used backend header files.
11307         * gimple-ssa.h: Don't include tree-hasher.h.
11308         * ssa.h: New.  Aggregate commonly used SSA header files.
11309         * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
11310         * sel-sched-ir.h: Flatten includes.
11311         * lra-int.h: Flatten completely.
11312         * sel-sched-dump.h: Flatten includes.
11313         * ira-int.h: Flatten includes.
11314         * gimple-streamer.h: Remove all includes.
11315         * cfgloop.h: Remove all #includes except cfgloopmanip.h.
11316         * resource.h: Flatten hard-reg-set.h and df.h.
11317         * sched-int.h: Flatten insn-arrt.h and df.h.
11318         * valtrack.h: flatten bitmap.h, df.h, and rtl.h
11319         * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
11320         * genattrtab.c (write_header): Adjust generated includes.
11321         * genautomata.c (main): Likewise.
11322         * genconditions.c (write-header): Likewise.
11323         * genemit.c (main): Likewise.
11324         * gengtype.c (open_base_files): Likewise.
11325         * genopinit.c (main): Likewise.
11326         * genoutput.c (output_prologue): Likewise.
11327         * genpeep.c (main): Likewise.
11328         * genpreds.c (write_insn_preds_c): Likewise.
11329         * genrecog.c (write_header): Likewise.
11330         * alias.c: Adjust includes.
11331         * asan.c: Likewise.
11332         * attribs.c: Likewise.
11333         * auto-inc-dec.c: Likewise.
11334         * auto-profile.c: Likewise.
11335         * bb-reorder.c: Likewise.
11336         * bt-load.c: Likewise.
11337         * builtins.c: Likewise.
11338         * caller-save.c: Likewise.
11339         * calls.c: Likewise.
11340         * ccmp.c: Likewise.
11341         * cfg.c: Likewise.
11342         * cfganal.c: Likewise.
11343         * cfgbuild.c: Likewise.
11344         * cfgcleanup.c: Likewise.
11345         * cfgexpand.c: Likewise.
11346         * cfghooks.c: Likewise.
11347         * cfgloop.c: Likewise.
11348         * cfgloopanal.c: Likewise.
11349         * cfgloopmanip.c: Likewise.
11350         * cfgrtl.c: Likewise.
11351         * cgraph.c: Likewise.
11352         * cgraphbuild.c: Likewise.
11353         * cgraphclones.c: Likewise.
11354         * cgraphunit.c: Likewise.
11355         * cilk-common.c: Likewise.
11356         * combine-stack-adj.c: Likewise.
11357         * combine.c: Likewise.
11358         * compare-elim.c: Likewise.
11359         * convert.c: Likewise.
11360         * coverage.c: Likewise.
11361         * cppbuiltin.c: Likewise.
11362         * cprop.c: Likewise.
11363         * cse.c: Likewise.
11364         * cselib.c: Likewise.
11365         * data-streamer-in.c: Likewise.
11366         * data-streamer-out.c: Likewise.
11367         * data-streamer.c: Likewise.
11368         * dbxout.c: Likewise.
11369         * dce.c: Likewise.
11370         * ddg.c: Likewise.
11371         * debug.c: Likewise.
11372         * df-core.c: Likewise.
11373         * df-problems.c: Likewise.
11374         * df-scan.c: Likewise.
11375         * dfp.c: Likewise.
11376         * dojump.c: Likewise.
11377         * dominance.c: Likewise.
11378         * domwalk.c: Likewise.
11379         * double-int.c: Likewise.
11380         * dse.c: Likewise.
11381         * dumpfile.c: Likewise.
11382         * dwarf2asm.c: Likewise.
11383         * dwarf2cfi.c: Likewise.
11384         * dwarf2out.c: Likewise.
11385         * emit-rtl.c: Likewise.
11386         * et-forest.c: Likewise.
11387         * except.c: Likewise.
11388         * explow.c: Likewise.
11389         * expmed.c: Likewise.
11390         * expr.c: Likewise.
11391         * final.c: Likewise.
11392         * fixed-value.c: Likewise.
11393         * fold-const.c: Likewise.
11394         * function.c: Likewise.
11395         * fwprop.c: Likewise.
11396         * gcc-plugin.h: Likewise.
11397         * gcse-common.c: Likewise.
11398         * gcse.c: Likewise.
11399         * generic-match-head.c: Likewise.
11400         * ggc-page.c: Likewise.
11401         * gimple-builder.c: Likewise.
11402         * gimple-expr.c: Likewise.
11403         * gimple-fold.c: Likewise.
11404         * gimple-iterator.c: Likewise.
11405         * gimple-low.c: Likewise.
11406         * gimple-match-head.c: Likewise.
11407         * gimple-pretty-print.c: Likewise.
11408         * gimple-ssa-isolate-paths.c: Likewise.
11409         * gimple-ssa-strength-reduction.c: Likewise.
11410         * gimple-streamer-in.c: Likewise.
11411         * gimple-streamer-out.c: Likewise.
11412         * gimple-walk.c: Likewise.
11413         * gimple.c: Likewise.
11414         * gimplify-me.c: Likewise.
11415         * gimplify.c: Likewise.
11416         * godump.c: Likewise.
11417         * graph.c: Likewise.
11418         * graphite-blocking.c: Likewise.
11419         * graphite-dependences.c: Likewise.
11420         * graphite-interchange.c: Likewise.
11421         * graphite-isl-ast-to-gimple.c: Likewise.
11422         * graphite-optimize-isl.c: Likewise.
11423         * graphite-poly.c: Likewise.
11424         * graphite-scop-detection.c: Likewise.
11425         * graphite-sese-to-poly.c: Likewise.
11426         * graphite.c: Likewise.
11427         * haifa-sched.c: Likewise.
11428         * hw-doloop.c: Likewise.
11429         * ifcvt.c: Likewise.
11430         * init-regs.c: Likewise.
11431         * internal-fn.c: Likewise.
11432         * ipa-chkp.c: Likewise.
11433         * ipa-comdats.c: Likewise.
11434         * ipa-cp.c: Likewise.
11435         * ipa-devirt.c: Likewise.
11436         * ipa-icf-gimple.c: Likewise.
11437         * ipa-icf.c: Likewise.
11438         * ipa-inline-analysis.c: Likewise.
11439         * ipa-inline-transform.c: Likewise.
11440         * ipa-inline.c: Likewise.
11441         * ipa-polymorphic-call.c: Likewise.
11442         * ipa-profile.c: Likewise.
11443         * ipa-prop.c: Likewise.
11444         * ipa-pure-const.c: Likewise.
11445         * ipa-ref.c: Likewise.
11446         * ipa-reference.c: Likewise.
11447         * ipa-split.c: Likewise.
11448         * ipa-utils.c: Likewise.
11449         * ipa-visibility.c: Likewise.
11450         * ipa.c: Likewise.
11451         * ira-build.c: Likewise.
11452         * ira-color.c: Likewise.
11453         * ira-conflicts.c: Likewise.
11454         * ira-costs.c: Likewise.
11455         * ira-emit.c: Likewise.
11456         * ira-lives.c: Likewise.
11457         * ira.c: Likewise.
11458         * jump.c: Likewise.
11459         * langhooks.c: Likewise.
11460         * lcm.c: Likewise.
11461         * loop-doloop.c: Likewise.
11462         * loop-init.c: Likewise.
11463         * loop-invariant.c: Likewise.
11464         * loop-iv.c: Likewise.
11465         * loop-unroll.c: Likewise.
11466         * lower-subreg.c: Likewise.
11467         * lra-assigns.c: Likewise.
11468         * lra-coalesce.c: Likewise.
11469         * lra-constraints.c: Likewise.
11470         * lra-eliminations.c: Likewise.
11471         * lra-lives.c: Likewise.
11472         * lra-remat.c: Likewise.
11473         * lra-spills.c: Likewise.
11474         * lra.c: Likewise.
11475         * lto-cgraph.c: Likewise.
11476         * lto-compress.c: Likewise.
11477         * lto-opts.c: Likewise.
11478         * lto-section-in.c: Likewise.
11479         * lto-section-out.c: Likewise.
11480         * lto-streamer-in.c: Likewise.
11481         * lto-streamer-out.c: Likewise.
11482         * lto-streamer.c: Likewise.
11483         * mcf.c: Likewise.
11484         * mode-switching.c: Likewise.
11485         * modulo-sched.c: Likewise.
11486         * omega.c: Likewise.
11487         * omp-low.c: Likewise.
11488         * optabs.c: Likewise.
11489         * opts-global.c: Likewise.
11490         * passes.c: Likewise.
11491         * plugin.c: Likewise.
11492         * postreload-gcse.c: Likewise.
11493         * postreload.c: Likewise.
11494         * predict.c: Likewise.
11495         * print-rtl.c: Likewise.
11496         * print-tree.c: Likewise.
11497         * profile.c: Likewise.
11498         * real.c: Likewise.
11499         * realmpfr.c: Likewise.
11500         * recog.c: Likewise.
11501         * ree.c: Likewise.
11502         * reg-stack.c: Likewise.
11503         * regcprop.c: Likewise.
11504         * reginfo.c: Likewise.
11505         * regrename.c: Likewise.
11506         * regstat.c: Likewise.
11507         * reload.c: Likewise.
11508         * reload1.c: Likewise.
11509         * reorg.c: Likewise.
11510         * resource.c: Likewise.
11511         * rtl-chkp.c: Likewise.
11512         * rtlanal.c: Likewise.
11513         * rtlhooks.c: Likewise.
11514         * sanopt.c: Likewise.
11515         * sched-deps.c: Likewise.
11516         * sched-ebb.c: Likewise.
11517         * sched-rgn.c: Likewise.
11518         * sched-vis.c: Likewise.
11519         * sdbout.c: Likewise.
11520         * sel-sched-dump.c: Likewise.
11521         * sel-sched-ir.c: Likewise.
11522         * sel-sched.c: Likewise.
11523         * sese.c: Likewise.
11524         * shrink-wrap.c: Likewise.
11525         * simplify-rtx.c: Likewise.
11526         * stack-ptr-mod.c: Likewise.
11527         * stmt.c: Likewise.
11528         * stor-layout.c: Likewise.
11529         * store-motion.c: Likewise.
11530         * stringpool.c: Likewise.
11531         * symtab.c: Likewise.
11532         * target-globals.c: Likewise.
11533         * targhooks.c: Likewise.
11534         * toplev.c: Likewise.
11535         * tracer.c: Likewise.
11536         * trans-mem.c: Likewise.
11537         * tree-affine.c: Likewise.
11538         * tree-browser.c: Likewise.
11539         * tree-call-cdce.c: Likewise.
11540         * tree-cfg.c: Likewise.
11541         * tree-cfgcleanup.c: Likewise.
11542         * tree-chkp-opt.c: Likewise.
11543         * tree-chkp.c: Likewise.
11544         * tree-chrec.c: Likewise.
11545         * tree-complex.c: Likewise.
11546         * tree-data-ref.c: Likewise.
11547         * tree-dfa.c: Likewise.
11548         * tree-diagnostic.c: Likewise.
11549         * tree-dump.c: Likewise.
11550         * tree-eh.c: Likewise.
11551         * tree-emutls.c: Likewise.
11552         * tree-if-conv.c: Likewise.
11553         * tree-inline.c: Likewise.
11554         * tree-into-ssa.c: Likewise.
11555         * tree-iterator.c: Likewise.
11556         * tree-loop-distribution.c: Likewise.
11557         * tree-nested.c: Likewise.
11558         * tree-nrv.c: Likewise.
11559         * tree-object-size.c: Likewise.
11560         * tree-outof-ssa.c: Likewise.
11561         * tree-parloops.c: Likewise.
11562         * tree-phinodes.c: Likewise.
11563         * tree-predcom.c: Likewise.
11564         * tree-pretty-print.c: Likewise.
11565         * tree-profile.c: Likewise.
11566         * tree-scalar-evolution.c: Likewise.
11567         * tree-sra.c: Likewise.
11568         * tree-ssa-address.c: Likewise.
11569         * tree-ssa-alias.c: Likewise.
11570         * tree-ssa-ccp.c: Likewise.
11571         * tree-ssa-coalesce.c: Likewise.
11572         * tree-ssa-copy.c: Likewise.
11573         * tree-ssa-copyrename.c: Likewise.
11574         * tree-ssa-dce.c: Likewise.
11575         * tree-ssa-dom.c: Likewise.
11576         * tree-ssa-dse.c: Likewise.
11577         * tree-ssa-forwprop.c: Likewise.
11578         * tree-ssa-ifcombine.c: Likewise.
11579         * tree-ssa-live.c: Likewise.
11580         * tree-ssa-loop-ch.c: Likewise.
11581         * tree-ssa-loop-im.c: Likewise.
11582         * tree-ssa-loop-ivcanon.c: Likewise.
11583         * tree-ssa-loop-ivopts.c: Likewise.
11584         * tree-ssa-loop-manip.c: Likewise.
11585         * tree-ssa-loop-niter.c: Likewise.
11586         * tree-ssa-loop-prefetch.c: Likewise.
11587         * tree-ssa-loop-unswitch.c: Likewise.
11588         * tree-ssa-loop.c: Likewise.
11589         * tree-ssa-math-opts.c: Likewise.
11590         * tree-ssa-operands.c: Likewise.
11591         * tree-ssa-phiopt.c: Likewise.
11592         * tree-ssa-phiprop.c: Likewise.
11593         * tree-ssa-pre.c: Likewise.
11594         * tree-ssa-propagate.c: Likewise.
11595         * tree-ssa-reassoc.c: Likewise.
11596         * tree-ssa-sccvn.c: Likewise.
11597         * tree-ssa-scopedtables.c: Likewise.
11598         * tree-ssa-sink.c: Likewise.
11599         * tree-ssa-strlen.c: Likewise.
11600         * tree-ssa-structalias.c: Likewise.
11601         * tree-ssa-tail-merge.c: Likewise.
11602         * tree-ssa-ter.c: Likewise.
11603         * tree-ssa-threadedge.c: Likewise.
11604         * tree-ssa-threadupdate.c: Likewise.
11605         * tree-ssa-uncprop.c: Likewise.
11606         * tree-ssa-uninit.c: Likewise.
11607         * tree-ssa.c: Likewise.
11608         * tree-ssanames.c: Likewise.
11609         * tree-stdarg.c: Likewise.
11610         * tree-streamer-in.c: Likewise.
11611         * tree-streamer-out.c: Likewise.
11612         * tree-streamer.c: Likewise.
11613         * tree-switch-conversion.c: Likewise.
11614         * tree-tailcall.c: Likewise.
11615         * tree-vect-data-refs.c: Likewise.
11616         * tree-vect-generic.c: Likewise.
11617         * tree-vect-loop-manip.c: Likewise.
11618         * tree-vect-loop.c: Likewise.
11619         * tree-vect-patterns.c: Likewise.
11620         * tree-vect-slp.c: Likewise.
11621         * tree-vect-stmts.c: Likewise.
11622         * tree-vectorizer.c: Likewise.
11623         * tree-vrp.c: Likewise.
11624         * tree.c: Likewise.
11625         * tsan.c: Likewise.
11626         * ubsan.c: Likewise.
11627         * valtrack.c: Likewise.
11628         * value-prof.c: Likewise.
11629         * var-tracking.c: Likewise.
11630         * varasm.c: Likewise.
11631         * varpool.c: Likewise.
11632         * vmsdbgout.c: Likewise.
11633         * vtable-verify.c: Likewise.
11634         * web.c: Likewise.
11635         * wide-int.cc: Likewise.
11636         * xcoffout.c: Likewise.
11637         * config/aarch64/aarch64-builtins.c: Likewise.
11638         * config/aarch64/aarch64.c: Likewise.
11639         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11640         * config/alpha/alpha.c: Likewise.
11641         * config/arc/arc.c: Likewise.
11642         * config/arm/aarch-common.c: Likewise.
11643         * config/arm/arm-builtins.c: Likewise.
11644         * config/arm/arm-c.c: Likewise.
11645         * config/arm/arm.c: Likewise.
11646         * config/avr/avr-c.c: Likewise.
11647         * config/avr/avr-log.c: Likewise.
11648         * config/avr/avr.c: Likewise.
11649         * config/bfin/bfin.c: Likewise.
11650         * config/c6x/c6x.c: Likewise.
11651         * config/cr16/cr16.c: Likewise.
11652         * config/cris/cris.c: Likewise.
11653         * config/darwin-c.c: Likewise.
11654         * config/darwin.c: Likewise.
11655         * config/epiphany/epiphany.c: Likewise.
11656         * config/epiphany/mode-switch-use.c: Likewise.
11657         * config/epiphany/resolve-sw-modes.c: Likewise.
11658         * config/fr30/fr30.c: Likewise.
11659         * config/frv/frv.c: Likewise.
11660         * config/ft32/ft32.c: Likewise.
11661         * config/h8300/h8300.c: Likewise.
11662         * config/i386/i386-c.c: Likewise.
11663         * config/i386/i386.c: Likewise.
11664         * config/i386/msformat-c.c: Likewise.
11665         * config/i386/winnt-cxx.c: Likewise.
11666         * config/i386/winnt-stubs.c: Likewise.
11667         * config/i386/winnt.c: Likewise.
11668         * config/ia64/ia64-c.c: Likewise.
11669         * config/ia64/ia64.c: Likewise.
11670         * config/iq2000/iq2000.c: Likewise.
11671         * config/lm32/lm32.c: Likewise.
11672         * config/m32c/m32c-pragma.c: Likewise.
11673         * config/m32c/m32c.c: Likewise.
11674         * config/m32r/m32r.c: Likewise.
11675         * config/m68k/m68k.c: Likewise.
11676         * config/mcore/mcore.c: Likewise.
11677         * config/mep/mep-pragma.c: Likewise.
11678         * config/mep/mep.c: Likewise.
11679         * config/microblaze/microblaze-c.c: Likewise.
11680         * config/microblaze/microblaze.c: Likewise.
11681         * config/mips/mips.c: Likewise.
11682         * config/mmix/mmix.c: Likewise.
11683         * config/mn10300/mn10300.c: Likewise.
11684         * config/moxie/moxie.c: Likewise.
11685         * config/msp430/msp430-c.c: Likewise.
11686         * config/msp430/msp430.c: Likewise.
11687         * config/nds32/nds32-cost.c: Likewise.
11688         * config/nds32/nds32-fp-as-gp.c: Likewise.
11689         * config/nds32/nds32-intrinsic.c: Likewise.
11690         * config/nds32/nds32-isr.c: Likewise.
11691         * config/nds32/nds32-md-auxiliary.c: Likewise.
11692         * config/nds32/nds32-memory-manipulation.c: Likewise.
11693         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11694         * config/nds32/nds32-predicates.c: Likewise.
11695         * config/nds32/nds32.c: Likewise.
11696         * config/nios2/nios2.c: Likewise.
11697         * config/nvptx/nvptx.c: Likewise.
11698         * config/pa/pa.c: Likewise.
11699         * config/pdp11/pdp11.c: Likewise.
11700         * config/rl78/rl78-c.c: Likewise.
11701         * config/rl78/rl78.c: Likewise.
11702         * config/rs6000/rs6000-c.c: Likewise.
11703         * config/rs6000/rs6000.c: Likewise.
11704         * config/rx/rx.c: Likewise.
11705         * config/s390/s390-c.c: Likewise.
11706         * config/s390/s390.c: Likewise.
11707         * config/sh/sh-c.c: Likewise.
11708         * config/sh/sh-mem.cc: Likewise.
11709         * config/sh/sh.c: Likewise.
11710         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11711         * config/sh/sh_treg_combine.cc: Likewise.
11712         * config/sol2-c.c: Likewise.
11713         * config/sol2-cxx.c: Likewise.
11714         * config/sol2-stubs.c: Likewise.
11715         * config/sol2.c: Likewise.
11716         * config/sparc/sparc-c.c: Likewise.
11717         * config/sparc/sparc.c: Likewise.
11718         * config/spu/spu-c.c: Likewise.
11719         * config/spu/spu.c: Likewise.
11720         * config/stormy16/stormy16.c: Likewise.
11721         * config/tilegx/mul-tables.c: Likewise.
11722         * config/tilegx/tilegx-c.c: Likewise.
11723         * config/tilegx/tilegx.c: Likewise.
11724         * config/tilepro/mul-tables.c: Likewise.
11725         * config/tilepro/tilepro-c.c: Likewise.
11726         * config/tilepro/tilepro.c: Likewise.
11727         * config/v850/v850-c.c: Likewise.
11728         * config/v850/v850.c: Likewise.
11729         * config/vax/vax.c: Likewise.
11730         * config/visium/visium.c: Likewise.
11731         * config/vms/vms-c.c: Likewise.
11732         * config/vms/vms.c: Likewise.
11733         * config/vxworks.c: Likewise.
11734         * config/xtensa/xtensa.c: Likewise.
11736 2015-07-07  Uros Bizjak  <ubizjak@gmail.com>
11738         * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
11739         Remove operand constraints.  Change operand 2 predicate to
11740         nonmemory operand.  Limit const_int values to mode bitsize.  Only
11741         allow const_int values less than 32 when optimizing for size.
11742         (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
11743         Remove operand constraints.
11744         (*bt<mode>): Use SImode for const_int values less than 32.
11745         (regmode): Remove mode attribute.
11747 2015-07-07  Anatoly Sokolov  <aesok@post.ru>
11749         * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11750         * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
11751           moxie_legitimate_address_p): New functions.
11752           (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
11754 2015-07-07  Tom de Vries  <tom@codesourcery.com>
11756         PR tree-optimization/66642
11757         * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
11758         header comment.  Rename split_edge variable to edge_at_split.  Split
11759         exit edge to create new loop exit bb.  Insert loop exit phis in new
11760         loop exit bb.
11762 2015-07-07  Tom de Vries  <tom@codesourcery.com>
11764         * tree-cfg.c (get_virtual_phi): New function.
11765         * tree-cfg.h (get_virtual_phi): Declare.
11766         * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
11767         (rewrite_virtuals_into_loop_closed_ssa): New function.
11768         * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
11769         Declare.
11770         * tree-parloops.c (replace_uses_in_bbs_by): Remove.
11771         (transform_to_exit_first_loop_alt): Use
11772         rewrite_virtuals_into_loop_closed_ssa.
11774 2015-07-07  Richard Biener  <rguenther@suse.de>
11776         * fold-const.c (fold_binary_loc): Move
11777         (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
11778         * match.pd: ... here.
11779         Add (X * C1) % C2 -> 0 simplification pattern derived from
11780         extract_muldiv_1.
11782 2015-07-07  Kaz Kojima  <kkojima@gcc.gnu.org>
11784         PR target/66780
11785         * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
11786         change for target/65249.
11788 2015-07-07  Paulo Matos  <pmatos@broadcom.com>
11790         * symtab.c (address_matters_1): Fix typo in comment above.
11791         (can_increase_alignment_p): Likewise.
11793 2015-07-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11795         * function.c (free_after_compilation): Clear PROP_cfg in
11796         f->curr_properties.
11798 2015-07-07  Richard Biener  <rguenther@suse.de>
11800         * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
11801         add which use to.
11802         (add_control_edge): Remove excessive vertical space in dumping.
11803         (process_ssa_edge_worklist): Simulate at most one statement and
11804         return whether we did.  Do not simulate PHIs if they are in a
11805         BB not yet simulated.
11806         (ssa_propagate): Adjust to always drain the BB worklist whenever
11807         a BB is available there, likewise the VARYING edges list before
11808         the interesting edge list.
11810 2015-07-07  Christian Bruel  <christian.bruel@st.com>
11812         PR target/52144
11813         * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
11815 2015-07-07  Richard Biener  <rguenther@suse.de>
11817         PR middle-end/66739
11818         * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
11819         A - B.
11821 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
11823         * config/i386/i386.md (insv<mode>): Rename from insv.  Use SWI48
11824         modes for operands 0 and 3.  Use SImode for operands 2 and 3.
11825         Copy operand 0 to a temporary if !ext_register_operand.  Remove
11826         ancient extract_bit_field workaround.
11827         (insv<mode>_1): Rename from mov<mode>_insv_1.
11828         (*insvqi): Rename from *movqi_insv_2.
11829         * config/i386/i386.c (emit_i386_cw_initialization): Update calls
11830         for renamed insvsi_1.
11831         (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
11833 2015-07-06  Nathan Sidwell  <nathan@codesourcery.com>
11835         * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars.  Fix
11836         call to nvptx_reorg_subreg.
11838 2015-07-06  Jim Wilson  <jim.wilson@linaro.org>
11840         * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
11841         * graphite-dependencies.c, graphite-interchange.c,
11842         graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
11843         graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
11844         Likewise.
11846 2015-07-06  Marc Glisse  <marc.glisse@inria.fr>
11848         * match.pd: Remove element_mode inside HONOR_*.
11849         (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
11850         (~X | X -> -1, ~X ^ X -> -1): Merge.
11851         * tree.c (build_each_one_cst): New function.
11852         * tree.h (build_each_one_cst): Likewise.
11854 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11856         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11857         PROCESSOR_IAMCU.
11859 2015-07-06  Steve Ellcey  <sellcey@imgtec.com>
11861         * config.gcc <mips*-*-*>: Add fused-madd.opt.
11862         * config/mips/mips.opt (mfused-madd): Remove.
11863         * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
11864         * config/mips/mips.h (TARGET_MIPS8000): New.
11865         (ISA_HAS_FP_MADD4_MSUB4): Remove.
11866         (ISA_HAS_FP_MADDF_MSUBF): Remove.
11867         (ISA_HAS_FP_MADD3_MSUB3): Remove.
11868         (ISA_HAS_NMADD4_NMSUB4): Remove.
11869         (ISA_HAS_NMADD3_NMSUB3): Remove.
11870         (ISA_HAS_FUSED_MADD4): New.
11871         (ISA_HAS_UNFUSED_MADD4): New.
11872         (ISA_HAS_FUSED_MADDF): New.
11873         (ISA_HAS_FUSED_MADD3): New.
11874         * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
11875         (*fma<mode>4_madd3) New.
11876         (*fma<mode>4_madd4) New.
11877         (*fma<mode>4_maddf) New.
11878         (fms<mode>4) New.
11879         (*fms<mode>4_msub3) New.
11880         (*fms<mode>4_msub4) New.
11881         (fnma<mode>4) New.
11882         (*fnma<mode>4_nmadd3) New.
11883         (*fnma<mode>4_nmadd4) New.
11884         (fnms<mode>4) New.
11885         (*fnms<mode>4_nmsub3) New.
11886         (*fnms<mode>4_nmsub4) New.
11887         (*madd4<mode>) Modify to be unfused only.
11888         (*msub4<mode>) Modify to be unfused only.
11889         (*nmadd4<mode>) Modify to be unfused only.
11890         (*nmsub4<mode>) Modify to be unfused only.
11891         (*madd3<mode>) Remove.
11892         (*msub3<mode>) Remove.
11893         (*nmadd3<mode>) Remove.
11894         (*nmsub3<mode>) Remove.
11895         (*nmadd3<mode>_fastmath) Remove.
11896         (*nmsub3<mode>_fastmath) Remove.
11897         (*nmadd4<mode>_fastmath) Update condition.
11898         (*nmsub4<mode>_fastmath) Update condition.
11900 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
11902         PR target/65956
11903         * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
11904         alignment attribute, exploring one level down for records and arrays.
11906 2015-07-06  Uros Bizjak  <ubizjak@gmail.com>
11908         * config/i386/i386.md (extv<mode>): Rename from extv.  Use SWI24
11909         modes for operands 0 and 1.  Use SImode for operands 2 and 3.
11910         Copy operand 1 to a temporary if !ext_register_operand.  Remove
11911         ancient extract_bit_field workaround.
11912         (*extv<mode>): Rename from *mov<mode>_extv_1.
11913         (*extvqi): Rename from *movqi_extv_1.
11914         (extzv<mode>): Rename from extzv.  Use SWI248 modes for
11915         operands 0 and 1.  Use SImode for operands 2 and 3. Copy operand 1
11916         to a temporary if !ext_register_operand.  Remove ancient
11917         extract_bit_field workaround.
11918         (*extzv<mode>): Rename from *mov<mode>_extzv_1.
11919         (*extzvqi): Rename from *movqi_extzv_2.
11920         (*testqi_ext_3): Remove modes from const_int_operand predicated
11921         operands.  Add "n" constraint.
11922         (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
11923         operand.  Add "J" constraint.
11924         (*btsq, *btrq, *btcq peephole2s): Remove mode from
11925         const_0_to_63 predicated operand.
11926         (regmode): New insn attribute.
11927         (*bt<mode>): Use SImode for operand 1.  Change operand 1 predicate
11928         to nonmemory_operand.  Use regmode insn attribute.
11929         (*jcc_bt<mode>_1): Convert operand 2 to SImode.
11930         (*jcc_bt<mode>_mask): Remove mode from operand 3.
11931         (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
11932         (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
11933         operands.  Use "N" constraint instead of "n".
11935 2015-07-06  Alan Lawrence  <alan.lawrence@arm.com>
11937         * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
11939 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11941         PR target/66749
11942         * config/i386/i386.c (iamcu_cost): New.
11943         (m_IAMCU): Likewise.
11944         (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
11945         (processor_target_table): Add an entry for "iamcu".
11946         (processor_alias_table): Likewise.
11947         (ix86_issue_rate): Handle PROCESSOR_IAMCU.
11948         (ix86_adjust_cost): Likewise.
11949         (ia32_multipass_dfa_lookahead): Likewise.
11950         * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
11951         * config/i386/x86-tune.def: Updated for m_IAMCU.
11953 2015-07-06  Richard Biener  <rguenther@suse.de>
11955         PR tree-optimization/66772
11956         * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
11957         values are available in the PHI node BB when there are
11958         still unexecutable edges.
11960 2015-07-06  Richard Biener  <rguenther@suse.de>
11962         PR tree-optimization/66767
11963         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
11964         Make sure to build the alignment test on a SSA name without
11965         final alignment info valid only if the alignment test
11966         evaluates to true.
11968 2015-07-06  Bernd Schmidt  <bernds@codesourcery.com>
11970         PR target/66620
11971         * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
11972         loop start when inserting LSETUP.
11974 2015-07-06  H.J. Lu  <hongjiu.lu@intel.com>
11976         PR target/53383
11977         * config/i386/i386.c (ix86_option_override_internal): Allow
11978         -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
11980 2015-07-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11982         * read-md.c (decimal_string): Rename to ...
11983         (md_decimal_string): ... this.
11984         (handle_enum): Reflect this.
11986 2015-07-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
11988         PR target/66731
11989         * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
11991 2015-07-06  Richard Biener  <rguenther@suse.de>
11993         PR middle-end/66759
11994         * match.pd: Add missing constraint of y to REAL_CST in
11995         REAL_CST - x CMP y to y - CST CMP x simplification.
11997 2015-07-06  Eric Botcazou  <ebotcazou@adacore.com>
11999         PR tree-optimization/66757
12000         * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
12002 2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
12003             Sandra Loosemore <sandra@codesourcery.com>
12005         * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
12006         Delete extern declaration.
12007         (gprel_constant_p): Add extern declaration.
12008         * config/nios2/constraints.md ("S"): Use gprel_constant_p
12009         instead of nios2_symbol_ref_in_small_data_p.
12010         * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
12011         (nios2_symbol_ref_in_small_data_p): Make static.
12012         (gprel_constant_p): Make non-static.
12014 2015-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
12016         * doc/fragments.texi (Target Fragment): Convert debian.org
12017         link to use https.
12018         * doc/install.texi (Configuration): Ditto.
12020 2015-07-05  Jakub Jelinek  <jakub@redhat.com>
12022         PR tree-optimization/66718
12023         * tree-vect-stmts.c (vectorizable_call): Replace uses of
12024         GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
12026         PR tree-optimization/66718
12027         * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
12028         vectorizable_load, vectorizable_condition): Move vectype,
12029         nunits, ncopies computation after checking what kind of statement
12030         stmt is.
12032 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12034         * target-insns.def (extv, extzv, insv): New targetm instruction
12035         patterns.
12036         * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
12037         interface.
12038         * recog.c (simplify_while_replacing): Likewise.
12040 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12042         * target-insns.def (doloop_begin, doloop_end): New targetm
12043         instruction patterns.
12044         * loop-init.c: Include target.h.
12045         (pass_loop2::gate): Use the new targetm patterns instead of
12046         HAVE_*/gen_* interface.
12047         (pass_rtl_doloop::gate): Likewise.
12048         (pass_rtl_doloop::execute): Remove preprocessor condition.
12049         * hw-doloop.c: Build unconditionally.
12050         * loop-doloop.c: Likewise.
12051         (doloop_optimize): Use the new targetm patterns instead of
12052         HAVE_*/gen_* interface.
12053         (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
12054         * modulo-sched.c (doloop_register_get): Likewise.
12056 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12058         * target-insns.def (clear_cache): New targetm instruction pattern.
12059         * builtins.c (expand_builtin___clear_cache): Use it instead of
12060         HAVE_*/gen_* interface.
12062 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12064         * target-insns.def (allocate_stack, check_stack, probe_stack)
12065         (probe_stack_address, split_stack_prologue, split_stack_space_check):
12066         New targetm instruction patterns.
12067         * explow.c (allocate_dynamic_stack_space): Use them instead of
12068         HAVE_*/gen_* interface.
12069         (emit_stack_probe): Likewise.
12070         (probe_stack_range): Likewise.
12071         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12073 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12075         * target-insns.def (stack_protect_set, stack_protect_test): New
12076         targetm instruction patterns.
12077         * cfgexpand.c (stack_protect_prologue): Use them instead of
12078         HAVE_*/gen_* interface.
12079         * function.c (stack_protect_epilogue): Likewise.
12081 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12083         * expr.h (gen_move_insn_uncast): Delete.
12084         * expr.c (gen_move_insn_uncast): Delete.
12086 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12088         * target-insns.def (restore_stack_block, restore_stack_function)
12089         (restore_stack_nonlocal, save_stack_block, save_stack_function)
12090         (save_stack_nonlocal): New targetm instruction patterns.
12091         * builtins.c (expand_builtin_apply): Use them instead of
12092         HAVE_*/gen_* interface.
12093         * explow.c (emit_stack_save, emit_stack_restore): Likewise.
12095 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12097         * target-insns.def (trap): New targetm instruction pattern.
12098         * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
12099         interface.
12100         * explow.c (allocate_dynamic_stack_space): Likewise.
12101         * ifcvt.c (find_if_header): Likewise.
12103 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12105         * target-insns.def (prefetch): New targetm instruction pattern.
12106         * tree-ssa-loop-prefetch.c: Include targeth.
12107         (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
12108         of HAVE_*/gen_* interface.
12109         * builtins.c (expand_builtin_prefetch): Likewise.
12110         * toplev.c (process_options): Likewise.
12112 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12114         * target-insns.def (untyped_call, untyped_return): New targetm
12115         instruction patterns.
12116         * builtins.c (expand_builtin_apply): Use them instead of
12117         HAVE_*/gen_* interface.
12118         (result_vector): Define unconditionally.
12120 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12122         * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
12123         (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
12124         (nonlocal_goto_receiver): New targetm instruction patterns.
12125         * builtins.c (expand_builtin_setjmp_setup): Use them instead
12126         of HAVE_*/gen_* interface.
12127         (expand_builtin_setjmp_receiver): Likewise.
12128         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
12129         * except.c (expand_dw2_landing_pad_for_region): Likewise.
12131 2015-07-05  Richard Sandiford  <richard.sandiford@arm.com>
12133         * target.def: Add code_for_* hooks.
12134         * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
12135         * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
12136         * target-insns.def (casesi, tablejump): New targetm instruction
12137         patterns.
12138         * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
12139         (do_tablejump): Likewise.
12140         * stmt.c (expand_switch_as_decision_tree_p): Likewise.
12141         (expand_sjlj_dispatch_table): Likewise.
12142         * targhooks.c (default_case_values_threshold): Likewise.
12144 2015-07-04  Sandra Loosemore  <sandra@codesourcery.com>
12146         * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
12147         Use rtx_insn * instead of rtx.
12148         (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
12149         (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
12150         (nios2_call_tls_get_addr): Likewise.
12151         (nios2_emit_expensive_div): Likewise.
12152         (nios2_emit_move_sequence): Change return type to bool.
12153         * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
12154         Change return type to bool.
12156 2015-07-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12158         PR target/66747
12159         * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
12161 2015-07-04  John David Anglin  <danglin@gcc.gnu.org>
12163         PR target/66114
12164         * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
12165         of register_operand.  Remove constraint.
12167 2015-07-04  Marc Glisse  <marc.glisse@inria.fr>
12169         * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
12170         the first argument.
12172 2015-07-03  Paolo Carlini  <paolo.carlini@oracle.com>
12174         * attribs.c (decl_attributes): Guard inform with the return value
12175         of the preceding warning.
12177 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
12179         * doc/invoke.texi (moverride): Move to correct section.
12181 2015-07-03  Richard Biener  <rguenther@suse.de>
12183         * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
12184         Copy from tree.c
12185         (dt_operand::gen_gimple_expr): After valueizing operands
12186         re-canonicalize operand order for commutative tree codes.
12188 2015-07-03  H.J. Lu  <hongjiu.lu@intel.com>
12190         PR target/66746.
12191         * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
12192         is defined.
12193         (__crc32w): Likewise.
12194         (__crc32d): Likewise.
12195         (__rdpmc): Likewise.
12196         (__rdtscp): Likewise.
12197         (_rdpmc): Likewise.
12198         (_rdtscp): Likewise.
12199         * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
12200         is defined.
12202 2015-07-03  Richard Biener  <rguenther@suse.de>
12204         * fold-const.c (fold_mathfn_compare): Remove.
12205         (fold_inf_compare): Likewise.
12206         (fold_comparison): Move floating point comparison simplifications...
12207         * match.pd: ... to patterns here.  Introduce simple_comparisons
12208         operator list and use it for patterns formerly in fold_comparison.
12210 2015-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
12212         PR tree-optimization/66119
12213         * toplev.c (process_options): Don't set up default values for
12214         the sra_max_scalarization_size_{speed,size} parameters.
12215         * tree-sra (analyze_all_variable_accesses): If no values
12216         have been set for the sra_max_scalarization_size_{speed,size}
12217         parameters, call get_move_ratio to get target defaults.
12219 2015-07-03  Richard Biener  <rguenther@suse.de>
12221         * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
12222         * match.pd: ... here.
12224 2015-07-03  Gerald Pfeifer  <gerald@pfeifer.com>
12226         PR target/37072
12227         * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
12228         is not actually the default on FreeBSD.
12230 2015-07-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12232         * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
12233         definition.
12234         (CMPGE_8HI): Likewise.
12235         (CMPGE_4SI): Likewise.
12236         (CMPGE_2DI): Likewise.
12237         (CMPGE_U16QI): Likewise.
12238         (CMPGE_U8HI): Likewise.
12239         (CMPGE_U4SI): Likewise.
12240         (CMPGE_U2DI): Likewise.
12241         (CMPLE_16QI): Likewise.
12242         (CMPLE_8HI): Likewise.
12243         (CMPLE_4SI): Likewise.
12244         (CMPLE_2DI): Likewise.
12245         (CMPLE_U16QI): Likewise.
12246         (CMPLE_U8HI): Likewise.
12247         (CMPLE_U4SI): Likewise.
12248         (CMPLE_U2DI): Likewise.
12249         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12250         overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
12251         ALTIVEC_BUILTIN_VEC_CMPLE.
12252         * config/rs6000/vector.md (vector_ge<mode>): Restrict to
12253         floating-point vector modes.
12254         (vector_nlt<mode>): New define_expand.
12255         (vector_nltu<mode>): Likewise.
12256         (vector_ngt<mode>): Likewise.
12257         (vector_ngtu<mode>): Likewise.
12259 2015-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
12261         PR rtl-optimization/66706
12262         * combine.c (make_compound_operation): If an AND of SUBREG of
12263         LSHIFTRT does not simplify, see if just the AND of SUBREG does.
12265 2015-07-02  Alan Lawrence  <alan.lawrence@arm.com>
12267         * tree-pass.h (make_pass_ch_vect): New.
12268         * passes.def: Add pass_ch_vect just before pass_if_conversion.
12270         * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
12271         pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
12272         make_pass_ch_vect): New.
12273         (pass_ch): Extend ch_base.
12275         (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
12276         (ch_base::copy_headers): ...here.
12278 2015-07-02  Richard Biener  <rguenther@suse.de>
12280         * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
12281         * fold-const.c (get_pointer_modulus_and_residue): Remove.
12282         (fold_binary_loc): Implement (T)ptr & CST in terms of
12283         get_pointer_alignment_1.
12284         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
12285         Make sure to build the alignment test on a SSA name without
12286         final alignment info valid only after the prologue.
12288 2015-07-02  Hans-Peter Nilsson  <hp@axis.com>
12290         * config/cris/cris.md ("epilogue"): Remove condition.
12291         ("prologue"): Ditto.
12293 2015-07-02  Richard Biener  <rguenther@suse.de>
12295         * tree-ssa-dom.c (build_and_record_new_cond): Add optional
12296         parameter to record a condition that is false.
12297         (record_conditions): When recording an extra NE_EXPR that is
12298         true also record a EQ_EXPR that is false.
12300 2015-07-02  Bin Cheng  <bin.cheng@arm.com>
12302         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
12303         (tree_ssa_iv_optimize_init): Initialize iv_obstack.
12304         (alloc_iv): New parameter.  Allocate struct iv using obstack_alloc.
12305         (set_iv, find_interesting_uses_address, add_candidate_1): New
12306         argument to alloc_iv.
12307         (find_interesting_uses_op, find_interesting_uses_cond): Don't
12308         duplicate struct iv.
12309         (free_loop_data): Don't free struct iv explicitly.
12310         (tree_ssa_iv_optimize_finalize): Free iv_obstack.
12312 2015-07-01  DJ Delorie  <dj@redhat.com>
12314         * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
12315         (LIB_SPEC): Add.
12316         (SUPPORTS_DISCRIMINATOR): Define.
12318 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12320         PR bootstrap/66685
12321         * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
12322         there are no CALLs in the same pattern.
12324 2015-07-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12326         PR rtl-optimization/61047
12327         * rtlanal.c (get_initial_register_offset): New function.
12328         (rtx_addr_can_trap_p_1): Check offsets of stack references.
12330 2015-07-01  Richard Biener  <rguenther@suse.de>
12332         * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
12333         X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
12334         ~X CMP C -> X CMP' ~C to ...
12335         * match.pd: ... patterns here.
12337 2015-07-01  Nick Clifton  <nickc@redhat.com>
12339         * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
12340         a 16-bit value into a 20-bit memory slot.
12342 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12344         * doc/sourcebuild.texi (AArch64-specific attributes): Document
12345         "aarch64_tiny", "aarch64_small", "aarch64_large",
12346         "aarch64_little_endian", "aarch64_big_endian".
12348 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12350         * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
12351         Document "aarch64_small_fpic".
12353 2015-07-01  Jiong Wang  <jiong.wang@arm.com>
12355         * configure.ac: Add check for aarch64 assembler -fpic relocation
12356         modifier support.
12357         * configure: Regenerate.
12358         * config.in: Regenerate.
12359         * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
12360         to -fPIC if not support of -fpic relocation modifier in assembler.
12362 2015-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12364         PR bootstrap/66685
12365         * rtl.c (classify_insn): Handle returns in PARALLELs.
12367 2015-07-01  Eric Botcazou  <ebotcazou@adacore.com>
12369         PR middle-end/66633
12370         * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
12371         to true if the function is nested and if not optimizing.
12372         (convert_local_omp_clauses): Initialize need_frame to true if the
12373         function contains nested functions and if not optimizing.
12375 2015-07-01  Richard Biener  <rguenther@suse.de>
12377         * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
12378         (X & Y) ^ Y -> ~X & Y transforms to ...
12379         * match.pd: ... here.
12381 2015-07-01  Richard Biener <rguenther@suse.de>
12383         * genmatch.c (expr::gen_transform): Shortcut re-simplifying
12384         of converts to avoid uninteresting noise from the conversion
12385         simplifying patterns.
12387 2015-06-30  Sandra Loosemore <sandra@codesourcery.com>
12389         * config/c6x/c6x.c (try_rename_operands): Do not depend on
12390         gcc_assert evaluating its argument for side-effect.
12392 2015-06-30  Kaz Kojima  <kkojima@gcc.gnu.org>
12394         PR target/64833
12395         * config/sh/sh.md (casesi_worker_1): Set length to 8 when
12396         flag_pic is set.
12398 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12400         * lto-streamer-out.c (class DFS): Adjust hash_scc method.
12401         (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
12402         (hash_scc): Add this_ref_p and ref_p parameters and pass them
12403         to the inner DFS walk.
12405 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12407         * target-insns.def (jump): New targetm instruction pattern.
12408         * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
12409         instead of gen_jump.
12410         (fix_up_crossing_landing_pad): Likewise.
12411         (add_labels_and_missing_jumps): Likewise.
12412         (fix_crossing_conditional_branches): Likewise.
12413         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
12414         (force_nonfallthru_and_redirect): Likewise.
12415         * cse.c (cse_insn): Likewise.
12416         * expmed.c (expand_divmod): Likewise.
12417         * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
12418         * haifa-sched.c (init_before_recovery): Likewise.
12419         (sched_create_recovery_edges): Likewise.
12420         * ifcvt.c (find_cond_trap): Likewise.
12421         * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
12422         (expand_float, expand_fix): Likewise.
12423         * stmt.c (emit_jump): Likewise.
12425 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12427         * defaults.h (HAVE_load_multiple, gen_load_multiple)
12428         (HAVE_store_multiple, gen_store_multiple): Delete.
12429         * target-insns.def (load_multiple, store_multiple): New targetm
12430         instruction patterns.
12431         * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
12432         of HAVE_*/gen_* interface.
12434 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12436         * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
12437         (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
12438         (gen_mem_signal_fence): Delete.
12439         * target-insns.def (mem_signal_fence, mem_thread_fence)
12440         (memory_barrier): New targetm instruction patterns.
12441         * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
12442         interface.
12443         (expand_mem_signal_fence): Likewise.
12445 2015-06-30  Richard Sandiford  <richard.sandiford@arm.com>
12447         * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
12448         * target-insns.def (epilogue, prologue, sibcall_prologue): New
12449         targetm instruction patterns.
12450         * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
12451         interface.
12452         * calls.c (expand_call): Likewise.
12453         * cfgrtl.c (cfg_layout_finalize): Likewise.
12454         * df-scan.c (df_get_entry_block_def_set): Likewise.
12455         (df_get_exit_block_use_set): Likewise.
12456         * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
12457         * final.c (final_start_function): Likewise.
12458         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12459         (reposition_prologue_and_epilogue_notes): Likewise.
12460         * reorg.c (find_end_label): Likewise.
12461         * toplev.c (process_options): Likewise.
12463 2015-06-30  David Malcolm  <dmalcolm@redhat.com>
12465         * typed-splay-tree.h: New file.
12467 2015-06-30  Vladimir Makarov  <vmakarov@redhat.com>
12469         PR debug/66691
12470         * lra-int.h (lra_substitute_pseudo): Add a parameter.
12471         (lra_substitute_pseudo_within_insn): Ditto.
12472         * lra.c (lra_substitute_pseudo): Add a parameter.  Simplify subreg
12473         of constant.
12474         (lra_substitute_pseudo_within_insn): Add a parameter.  Transfer it
12475         to lra_substitute_pseudo.
12476         * lra-lives.c (process_bb_lives): Add an argument to
12477         lra_substitute_pseudo_within_insn call.
12478         * lra-constraints.c (inherit_reload_reg, split_reg): Add an
12479         argument to lra_substitute_pseudo and
12480         lra_substitute_pseudo_within_insn calls.
12481         (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
12483 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12485         * configure: Regenerated.
12487 2015-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12489         * config.gcc: Support i[34567]86-*-elfiamcu target.
12490         * config/i386/iamcu.h: New.
12491         * config/i386/i386.opt: Add -miamcu.
12492         * doc/invoke.texi: Document -miamcu.
12493         * common/config/i386/i386-common.c  (ix86_handle_option): Turn
12494         off x87/MMX/SSE/AVX codegen for -miamcu.
12495         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12496         __iamcu/__iamcu__ for -miamcu.
12497         * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
12498         to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
12499         (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
12500         * config/i386/i386.c (ix86_option_override_internal): Ignore and
12501         warn -mregparm for Intel MCU.  Turn on -mregparm=3 for Intel
12502         MCU by default.  Default long double to 64-bit for Intel MCU.
12503         Turn on -freg-struct-return for Intel MCU.  Issue an error when
12504         -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
12505         AVX is turned on.
12506         (function_arg_advance_32): Pass value whose size is no larger
12507         than 8 bytes in registers for Intel MCU.
12508         (function_arg_32): Likewise.
12509         (ix86_return_in_memory): Return value whose size is no larger
12510         than 8 bytes in registers for Intel MCU.
12511         (iamcu_alignment): New function.
12512         (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
12513         true.
12514         (ix86_local_alignment): Don't increase alignment for Intel MCU.
12515         (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
12516         true.
12518 2015-06-30  Marek Polacek  <polacek@redhat.com>
12520         * match.pd (X - (X / Y) * Y): Use convert1 and convert2.  Convert
12521         both operands of the resulting expression.
12523         * match.pd (~x | x): Don't use tree_nop_conversion_p.  Build
12524         the final expression with the operand's type and then convert
12525         it to the type of the expression.
12527 2015-06-30  Richard Biener  <rguenther@suse.de>
12529         * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
12530         ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
12531         (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
12532         * match.pd: ... to patterns here.
12534 2015-06-30  Richard Biener  <rguenther@suse.de>
12536         PR tree-optimization/66704
12537         * tree-vect-data-refs.c (vect_setup_realignment): Use
12538         make_ssa_name for non-SSA name source.
12540 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
12542         PR middle-end/66702
12543         * omp-low.c (simd_clone_adjust): Handle addressable linear
12544         or uniform parameters or non-gimple type uniform parameters.
12546 2015-06-30  Richard Biener  <rguenther@suse.de>
12548         * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
12549         ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
12550         ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
12551         * match.pd: ... here.
12552         Add a few cases of A - B -> A + (-B) when B "easily" negates.
12553         Move (x & y) | x -> x and friends before
12554         (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
12556 2015-06-30  Eric Botcazou  <ebotcazou@adacore.com>
12558         * config/sparc/leon.md (leon_load): Enable for all LEON variants if
12559         -mfix-ut699 is not specified.
12560         (leon3_load): Rename into...
12561         (ut699_load): ...this.  Enable for all LEON variants if -mfix-ut699
12562         is specified.
12564 2015-06-30  Marek Polacek  <polacek@redhat.com>
12566         * fold-const.c (fold_binary_loc): Move ~X | X folding ...
12567         * match.pd: ... here.
12569 2015-06-30  Richard Biener  <rguenther@suse.de>
12571         * target-insns.def (canonicalize_funcptr_for_compare): Add.
12572         * fold-const.c (build_range_check): Replace uses of
12573         HAVE_canonicalize_funcptr_for_compare.
12574         (fold_widened_comparison): Likewise.
12575         (fold_sign_changed_comparison): Likewise.
12576         * dojump.c: Include "target.h".
12577         (do_compare_and_jump): Replace uses of
12578         HAVE_canonicalize_funcptr_for_compare and
12579         gen_canonicalize_funcptr_for_compare.
12580         * expr.c (do_store_flag): Likewise.
12582 2015-06-30  Tom de Vries  <tom@codesourcery.com>
12584         PR tree-optimization/66652
12585         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
12586         max_loop_iterations to determine if nit + 1 overflows.
12588 2015-06-30  Richard Biener  <rguenther@suse.de>
12590         * tree-vrp.c (register_edge_assert_for_2): Also register
12591         asserts for dominating conversion results.
12593 2015-06-30  Bin Cheng  <bin.cheng@arm.com>
12595         * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
12596         field in struct iv.
12598 2015-06-29  Jack Howarth  <howarth.at.gcc@gmail.com>
12600         PR target/66509
12601         * configure.ac: Fix filds and fildq test for 64-bit.
12602         * configure: Regenerated.
12604 2015-06-29  Nathan Sidwell  <nathan@codesourcery.com>
12606         * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
12607         (nvptx_reorg): Here.  Keep the non-subreg pieces.
12609 2015-06-29  H.J. Lu  <hongjiu.lu@intel.com>
12611         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
12612         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
12614 2015-06-29  Uros Bizjak  <ubizjak@gmail.com>
12616         * config/i386/i386.md (*jcc_1): Use %! in asm template.
12617         Set attribute "length_nobnd" instead of "length".
12618         (*jcc_2): Ditto.
12619         (jump): Ditto.
12620         (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
12622 2015-06-29  Sandra Loosemore  <sandra@codesourcery.com>
12624         * config/nios2/nios2.c (nios2_delegitimize_address): Make
12625         assert less restrictive.
12627 2015-06-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12629         PR fortran/66605
12630         * cgraphunit.c (cgraph_node::finalize_function): Do not call
12631         do_warn_unused_parameter.
12632         * function.c (do_warn_unused_parameter): Move from here.
12633         * function.h (do_warn_unused_parameter): Do not declare.
12635 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12637         PR target/65697
12638         * gcc.target/arm/armv-sync-comp-swap.c: New.
12639         * gcc.target/arm/armv-sync-op-acquire.c: New.
12640         * gcc.target/arm/armv-sync-op-full.c: New.
12641         * gcc.target/arm/armv-sync-op-release.c: New.
12643 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12645         PR target/65697
12646         * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
12647         initial acquire barrier with final barrier.
12649 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12651         PR target/65697
12652         * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
12653         initial acquire barrier with final barrier.
12655 2015-06-29  Richard Henderson  <rth@redhat.com>
12657         * config/i386/constraints.md (Bf): New constraint.
12658         * config/i386/i386-c.c (ix86_target_macros): Define
12659         __GCC_ASM_FLAG_OUTPUTS__.
12660         * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
12661         as flags outputs.
12662         * doc/extend.texi (FlagOutputOperands): Document them.
12664 2015-06-29  Jiong Wang  <jiong.wang@arm.com>
12666         * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
12667         * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
12668         unspec name.
12669         (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
12670         * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
12671         SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
12672         (aarch64_symbol_context): Ditto.
12673         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
12674         and use new pattern name.
12675         (aarch64_expand_mov_immediate): Ditto.
12676         (aarch64_print_operand): Ditto.
12677         (aarch64_classify_tls_symbol): Ditto.
12679 2015-06-29  Marek Polacek  <polacek@redhat.com>
12680             Marc Glisse  <marc.glisse@inria.fr>
12682         * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
12683         * match.pd: ... pattern here.
12685 2015-06-29  Tom de Vries  <tom@codesourcery.com>
12687         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
12688         function structure.
12690 2015-06-29  Matthew Wahab  <matthew.wahab@arm.com>
12692         * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
12693         feature description, split out the native option, add a link to
12694         the feature documentation, rearrange and slightly rewrite text.
12695         (Aarch64 options, -mcpu): Likewise.
12696         (Aarch64 options, Feature Modifiers): Add an anchor.  Mention
12697         +rdma implies Adv. SIMD.
12699 2015-06-29  Marek Polacek  <polacek@redhat.com>
12701         PR c/66322
12702         * function.c (stack_protect_epilogue): Remove a cast to int.
12703         * doc/invoke.texi: Update -Wswitch-bool description.
12705 2015-06-29  Richard Biener  <rguenther@suse.de>
12707         * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
12708         * fold-const.c (fold_binary_loc): Move &A - &B simplification
12709         via ptr_difference_const ...
12710         * match.pd: ... here.
12711         When matching (X ^ Y) == Y also match with swapped operands.
12713 2015-06-29  Richard Biener  <rguenther@suse.de>
12715         * lto-streamer.h (LTO_major_version): Bump to 5.
12717 2015-06-29  Richard Biener  <rguenther@suse.de>
12719         PR tree-optimization/66677
12720         * tree-vect-stmts.c (vect_transform_stmt): Make assert about
12721         STMT_VINFO_VEC_STMT clobbering less strict.
12723 2015-06-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
12725         PR middle-end/64130
12726         * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
12727         division, compute max and min when value ranges for dividend and
12728         divisor are available.
12730 2015-06-28  Chung-Lin Tang <cltang@codesourcery.com>
12731             Sandra Loosemore <sandra@codesourcery.com>
12733         * regrename.h (regrename_do_replace): Change to return bool.
12734         * regrename.c (rename_chains): Check return value of
12735         regname_do_replace.
12736         (regrename_do_replace): Re-validate the modified insns and
12737         return bool status.
12738         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
12739         Update to match rename_chains changes.
12740         * config/c6x/c6x.c (try_rename_operands): Assert that
12741         regrename_do_replace returns true.
12743 2015-06-28  Uros Bizjak  <ubizjak@gmail.com>
12745         * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
12746         operand 2 here.  Use copy_addr_to_reg to copy non-index
12747         register operand 2 to a temporary.
12748         (<mode>_stx): Ditto for operand 1.
12749         (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
12750         * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
12751         (ix86_store_bounds): Ditto.
12753 2015-06-27  Patrick Palka  <ppalka@gcc.gnu.org>
12755         * print-tree.c (print_node) [TREE_VEC]: Print its length.
12757 2015-06-26  Andrew MacLeod  <amacleod@redhat.com>
12759         * gimple.c (gimple_call_set_fndecl): Remove.
12760         * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
12761         build1_loc directly instead of build_fold_addr_expr_loc.
12763 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
12765         * hash-map.h (hash_map::traverse): Use the definition of the
12766         Key typedef rather than the typedef itself.
12768 2015-06-26  Martin Jambor  <mjambor@suse.cz>
12770         PR debug/66301
12771         * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
12772         NULL instead of calling dump_enabled_p.
12774 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12776         * config/aarch64/aarch64.opt: (override): New.
12777         * doc/invoke.texi (override): Document.
12778         * config/aarch64/aarch64.c (aarch64_flag_desc): New
12779         (aarch64_fusible_pairs): Likewise.
12780         (aarch64_tuning_flags): Likewise.
12781         (aarch64_tuning_override_function): Likewise.
12782         (aarch64_tuning_override_functions): Likewise.
12783         (aarch64_parse_one_option_token): Likewise.
12784         (aarch64_parse_boolean_options): Likewise.
12785         (aarch64_parse_fuse_string): Likewise.
12786         (aarch64_parse_tune_string): Likewise.
12787         (aarch64_parse_one_override_token): Likewise.
12788         (aarch64_parse_override_string): Likewise.
12789         (aarch64_override_options): Parse the -override string if it
12790         is present.
12792 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12794         * config/aarch64/aarch64-protos.h (tune_params): Remove
12795         const from members.
12796         (aarch64_tune_params): Remove const, change to no longer be
12797         a pointer.
12798         * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
12799         change to no longer be a pointer, initialize to generic_tunings.
12800         (aarch64_min_divisions_for_recip_mul): Change dereference of
12801         aarch64_tune_params to member access.
12802         (aarch64_reassociation_width): Likewise.
12803         (aarch64_rtx_mult_cost): Likewise.
12804         (aarch64_address_cost): Likewise.
12805         (aarch64_branch_cost): Likewise.
12806         (aarch64_rtx_costs): Likewise.
12807         (aarch64_register_move_cost): Likewise.
12808         (aarch64_memory_move_cost): Likewise.
12809         (aarch64_sched_issue_rate): Likewise.
12810         (aarch64_builtin_vectorization_cost): Likewise.
12811         (aarch64_override_options): Take a copy of the selected tuning
12812         struct in to aarch64_tune_params, rather than just setting
12813         a pointer, change dereferences of aarch64_tune_params to member
12814         accesses.
12815         (aarch64_override_options_after_change): Change dereferences of
12816         aarch64_tune_params to member access.
12817         (aarch64_macro_fusion_p): Likewise.
12818         (aarch_macro_fusion_pair_p): Likewise.
12819         * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
12821 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12823         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
12824         (aarch64_tune_flags): Likewise.
12825         (AARCH64_TUNE_FMA_STEERING): Likewise.
12826         * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
12827         to AARCH64_FL_USE_FMA_STEERING_PASS.
12828         (cortex-a57.cortex-a53): Likewise.
12829         (cortex-a72): Use cortexa72_tunings.
12830         (cortex-a72.cortex-a53): Likewise.
12831         (exynos-m1): Likewise.
12832         * config/aarch64/aarch64-protos.h (tune_params): Add
12833         a field: extra_tuning_flags.
12834         * config/aarch64/aarch64-tuning-flags.def: New.
12835         * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
12836         (aarch64_extra_tuning_flags): Likewise.
12837         (aarch64_tune_params): Declare here.
12838         * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
12839         (cortexa53_tunings): Likewise.
12840         (cortexa57_tunings): Likewise.
12841         (thunderx_tunings): Likewise.
12842         (xgene1_tunings): Likewise.
12843         (cortexa72_tunings): New.
12844         * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
12845          (gate): Check against aarch64_tune_params.
12846         * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
12847         aarch64-protos.h.
12849 2015-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
12851         * config/aarch64/aarch64-fusion-pairs.def: New.
12852         * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
12853         * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
12854         aarch64_fusion_pairs.
12855         (AARCH64_FUSE_MOV_MOVK): Likewise.
12856         (AARCH64_FUSE_ADRP_ADD): Likewise.
12857         (AARCH64_FUSE_MOVK_MOVK): Likewise.
12858         (AARCH64_FUSE_ADRP_LDR): Likewise.
12859         (AARCH64_FUSE_CMP_BRANCH): Likewise.
12861 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
12863         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
12864         SYMBOL_SMALL_GOT_28K.
12865         * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
12866         relocation modifiers.
12867         (unspec): New enum "UNSPEC_GOTMALLPIC28K.
12868         (ldr_got_small_28k_<mode>): New.
12869         (ldr_got_small_28k_sidi): New.
12870         * config/aarch64/iterators.md (got_modifier): New mode iterator.
12871         * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
12872         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12873         SYMBOL_SMALL_GOT_28K.
12874         (aarch64_rtx_costs): Add costs for new instruction sequences.
12875         (initialize_aarch64_code_model): Initialize new model.
12876         (aarch64_classify_symbol): Recognize new model and new symbol classification.
12877         (aarch64_asm_preferred_eh_data_format): Support new model.
12878         (aarch64_load_symref_appropriately): Generate new instruction
12879         sequences for -fpic.
12880         (TARGET_USE_PSEUDO_PIC_REG): New definition.
12881         (aarch64_use_pseudo_pic_reg): New function.
12883 2015-06-26  Jiong Wang  <jiong.wang@arm.com>
12885         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12886         SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
12887         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
12888         (aarch64_expand_mov_immediate): Ditto.
12889         (aarch64_print_operand): Ditto.
12890         (aarch64_classify_symbol): Ditto.
12892 2015-06-26  Nathan Sidwell  <nathan@codesourcery.com>
12894         * config/nvptx/nvptx.md (call_operation): Remove unused variables.
12896 2015-06-26  Bin Cheng  <bin.cheng@arm.com>
12898         PR bootstrap/66638
12899         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
12900         assertion failed.  Remove assertion itself.
12902 2015-06-26  Richard Biener  <rguenther@suse.de>
12904         * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
12905         and -A CMP CST -> A CMP -CST which is redundant with a pattern
12906         in match.pd.
12907         Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
12908         (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
12909         (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
12910         * match.pd: ... patterns here.
12912 2015-06-26  Marek Polacek  <polacek@redhat.com>
12914         * match.pd ((x | y) & ~(x & y) -> x ^ y,
12915         (x | y) & (~x ^ y) -> x & y): New patterns.
12917 2015-06-26  Richard Sandiford  <richard.sandiford@arm.com>
12919         * rtl.h (emit): Add an optional boolean parameter to control
12920         whether barriers are emitted.
12921         * emit-rtl.c (emit): Likewise.
12922         * gensupport.c (get_emit_function): Return null rather than "emit".
12923         * genemit.c (gen_emit_seq): Handle the null return value.
12924         Don't emit barriers after the final instruction in the sequence.
12925         * gentarget-def.c (main): Don't emit barriers after the instruction.
12927 2015-06-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12929         * config/arm/arm.c (arm_output_multireg_pop): Fix use of
12930         TARGET_UNIFIED_ASM.
12932 2015-06-26  Richard Biener  <rguenther@suse.de>
12934         * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
12936 2015-06-26  Richard Biener  <rguenther@suse.de>
12938         * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
12939         irrespective on whether the inner operation has a single use
12940         of both off are constant.
12942 2015-06-26  Uros Bizjak  <ubizjak@gmail.com>
12943             Segher Boessenkool  <segher@kernel.crashing.org>
12945         PR target/66412
12946         * config/i386/i386.md (various splitters): Use shallow_copy_rtx
12947         before doing PUT_MODE or PUT_CODE on operands to avoid
12948         in-place RTX modification.
12950 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12952         * gentarget-def.c (def_target_insn): Cast return of strtol to
12953         unsigned int.
12955 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
12957         * gimple.h (gimple_call_set_fn): Move inline function.
12958         * gimple.c (gimple_call_set_fn): Relocate here.
12960 2015-06-25  Oleg Endo  <olegendo@gcc.gnu.org>
12962         PR target/65979
12963         PR target/66611
12964         * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
12965         the replacement insn will work.
12967 2015-06-25  H.J. Lu  <hongjiu.lu@intel.com>
12969         * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
12970         by default.
12972 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
12974         * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
12975         * cgraph.h: Include ipa-ref.h and plugin-api.h.
12976         (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
12977         (symtab_node::address_can_be_compared_p): Move function.
12978         * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
12979         definition here.
12980         * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
12981         * auto-profile.c: Likewise.
12982         * bb-reorder.c: Likewise.
12983         * builtins.c: Likewise.
12984         * calls.c: Likewise.
12985         * cfgexpand.c: Likewise.
12986         * cgraphbuild.c: Likewise.
12987         * cgraphclones.c: Likewise.
12988         * cgraphunit.c: Likewise.
12989         * combine.c: Likewise.
12990         * coverage.c: Likewise.
12991         * data-streamer-in.c: Likewise.
12992         * data-streamer-out.c: Likewise.
12993         * data-streamer.c: Likewise.
12994         * dbxout.c: Likewise.
12995         * dwarf2out.c: Likewise.
12996         * except.c: Likewise.
12997         * expr.c: Likewise.
12998         * final.c: Likewise.
12999         * fold-const.c: Likewise.
13000         * ggc-page.c: Likewise.
13001         * gimple-fold.c: Likewise.
13002         * gimple-iterator.c: Likewise.
13003         * gimple-pretty-print.c: Likewise.
13004         * gimple-streamer-in.c: Likewise.
13005         * gimple-streamer-out.c: Likewise.
13006         * gimple.c: Likewise.
13007         * gimplify.c: Likewise.
13008         * ipa-chkp.c: Likewise.
13009         * ipa-comdats.c: Likewise.
13010         * ipa-cp.c: Likewise.
13011         * ipa-devirt.c: Likewise.
13012         * ipa-icf-gimple.c: Likewise.
13013         * ipa-icf.c: Likewise.
13014         * ipa-inline-analysis.c: Likewise.
13015         * ipa-inline-transform.c: Likewise.
13016         * ipa-inline.c: Likewise.
13017         * ipa-polymorphic-call.c: Likewise.
13018         * ipa-profile.c: Likewise.
13019         * ipa-prop.c: Likewise.
13020         * ipa-pure-const.c: Likewise.
13021         * ipa-ref.c: Likewise.
13022         * ipa-reference.c: Likewise.
13023         * ipa-split.c: Likewise.
13024         * ipa-utils.c: Likewise.
13025         * ipa-visibility.c: Likewise.
13026         * ipa.c: Likewise.
13027         * langhooks.c: Likewise.
13028         * lto-cgraph.c: Likewise.
13029         * lto-compress.c: Likewise.
13030         * lto-opts.c: Likewise.
13031         * lto-section-in.c: Likewise.
13032         * lto-section-out.c: Likewise.
13033         * lto-streamer-in.c: Likewise.
13034         * lto-streamer-out.c: Likewise.
13035         * lto-streamer.c: Likewise.
13036         * omp-low.c: Likewise.
13037         * opts-global.c: Likewise.
13038         * passes.c: Likewise.
13039         * predict.c: Likewise.
13040         * print-tree.c: Likewise.
13041         * profile.c: Likewise.
13042         * ree.c: Likewise.
13043         * sanopt.c: Likewise.
13044         * stor-layout.c: Likewise.
13045         * symtab.c: Likewise.
13046         * toplev.c: Likewise.
13047         * trans-mem.c: Likewise.
13048         * tree-cfg.c: Likewise.
13049         * tree-chkp.c: Likewise.
13050         * tree-eh.c: Likewise.
13051         * tree-emutls.c: Likewise.
13052         * tree-inline.c: Likewise.
13053         * tree-nested.c: Likewise.
13054         * tree-parloops.c: Likewise.
13055         * tree-pretty-print.c: Likewise.
13056         * tree-profile.c: Likewise.
13057         * tree-sra.c: Likewise.
13058         * tree-ssa-alias.c: Likewise.
13059         * tree-ssa-live.c: Likewise.
13060         * tree-ssa-loop-ivcanon.c: Likewise.
13061         * tree-ssa-loop-ivopts.c: Likewise.
13062         * tree-ssa-pre.c: Likewise.
13063         * tree-ssa-sccvn.c: Likewise.
13064         * tree-ssa-strlen.c: Likewise.
13065         * tree-ssa-structalias.c: Likewise.
13066         * tree-streamer-in.c: Likewise.
13067         * tree-streamer-out.c: Likewise.
13068         * tree-streamer.c: Likewise.
13069         * tree-switch-conversion.c: Likewise.
13070         * tree-tailcall.c: Likewise.
13071         * tree-vect-data-refs.c: Likewise.
13072         * tree-vect-stmts.c: Likewise.
13073         * tree-vectorizer.c: Likewise.
13074         * tree.c: Likewise.
13075         * tsan.c: Likewise.
13076         * ubsan.c: Likewise.
13077         * value-prof.c: Likewise.
13078         * varasm.c: Likewise.
13079         * varpool.c: Likewise.
13080         * config/arm/arm.c: Likewise.
13081         * config/bfin/bfin.c: Likewise.
13082         * config/c6x/c6x.c: Likewise.
13083         * config/cris/cris.c: Likewise.
13084         * config/darwin-c.c: Likewise.
13085         * config/darwin.c: Likewise.
13086         * config/i386/i386.c: Likewise.
13087         * config/i386/winnt.c: Likewise.
13088         * config/microblaze/microblaze.c: Likewise.
13089         * config/mips/mips.c: Likewise.
13090         * config/rs6000/rs6000.c: Likewise.
13091         * config/rx/rx.c: Likewise.
13092         * config/s390/s390.c: Likewise.
13093         * config/tilegx/mul-tables.c: Likewise.
13095 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13097         * config/aarch64/aarch64.c, config/alpha/alpha.c,
13098         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
13099         config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
13100         config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
13101         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13102         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13103         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13104         config/microblaze/microblaze.c, config/mips/mips.c,
13105         config/mmix/mmix.c, config/mn10300/mn10300.c,
13106         config/moxie/moxie.c, config/msp430/msp430.c,
13107         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13108         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13109         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13110         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13111         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13112         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13113         config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
13114         target-def.h include.
13115         * config/ft32/ft32.c: Likewise.  Fix misapplied hunk.
13117 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13119         * Makefile.in (TARGET_DEF): Add target-insns.def.
13120         (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
13121         (build/gentarget-def.o): New rule.
13122         (genprogrtl): Add target-def.
13123         * target-insns.def, gentarget-def.c: New files.
13124         * target.def: Add targetm.have_* and targetm.gen_* hooks,
13125         based on the contents of target-insns.def.
13126         * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
13127         (HAVE_return, gen_return): Delete.
13128         * target-def.h: Include insn-target-def.h.
13129         * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
13130         instead of direct calls.  Rely on them to do the appropriate assertions.
13131         * function.c (gen_return_pattern): Likewise.  Return an rtx_insn *.
13132         (convert_jumps_to_returns): Use targetm interface instead of
13133         direct calls.
13134         (thread_prologue_and_epilogue_insns): Likewise.
13135         * reorg.c (find_end_label, dbr_schedule): Likewise.
13136         * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
13137         * shrink-wrap.c (convert_to_simple_return): Likewise.
13138         (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
13140 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13142         * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
13143         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13144         config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
13145         config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
13146         config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
13147         config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
13148         config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
13149         config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
13150         config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
13151         config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
13152         config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
13153         config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
13154         config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
13155         config/stormy16/stormy16.c, config/tilegx/tilegx.c,
13156         config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
13157         config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
13158         includes to end.
13160 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13162         * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
13163         (unbounded_int_hashmap_traits::key_type): Likewise.
13164         * hash-map.h (hash_map): Get the key type from the traits.
13165         * hash-traits.h (default_hash_traits): By default, inherit from the
13166         template parameter.
13167         * alias.c (alias_set_traits): Delete.
13168         (alias_set_entry_d::children): Use alias_set_hash as the first
13169         template parameter.
13170         (record_alias_subset): Update accordingly.
13171         * except.c (tree_hash_traits): Delete.
13172         (type_to_runtime_map): Use tree_hash as the first template parameter.
13173         (init_eh): Update accordingly.
13174         * genmatch.c (capture_id_map_hasher): Delete.
13175         (cid_map_t): Use nofree_string_hash as first template parameter.
13176         * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
13177         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
13178         Use symbol_compare_hash as the first template parameter in
13179         subdivide_hash_map.
13180         * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
13181         (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
13182         template parameter.
13183         * passes.c (pass_registry_hasher): Delete.
13184         (name_to_pass_map): Use nofree_string_hash as the first template
13185         parameter.
13186         (register_pass_name): Update accordingly.
13187         * sanopt.c (sanopt_tree_map_traits): Delete.
13188         (sanopt_tree_triplet_map_traits): Delete.
13189         (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
13190         template parameter.
13191         (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
13192         the first template parameter.
13193         * sese.c (rename_map_hasher): Delete.
13194         (rename_map_type): Use tree_ssa_name_hash as the first template
13195         parameter.
13196         * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
13197         (function_summary::m_map): Use map_hash as the first template
13198         parameter.
13199         (function_summary::release): Update accordingly.
13200         * tree-if-conv.c (phi_args_hash_traits): Delete.
13201         (predicate_scalar_phi): Use tree_operand_hash as the first template
13202         parameter to phi_arg_map.
13203         * tree-inline.h (dependence_hasher): Delete.
13204         (copy_body_data::dependence_map): Use dependence_hash as the first
13205         template parameter.
13206         * tree-inline.c (remap_dependence_clique): Update accordingly.
13207         * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
13208         (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
13209         parameter.
13210         (addr_stridxptr): Update accordingly.
13211         * value-prof.c (profile_id_traits): Delete.
13212         (cgraph_node_map): Use profile_id_hash as the first template
13213         parameter.
13214         (init_node_map): Update accordingly.
13215         * config/alpha/alpha.c (string_traits): Delete.
13216         (machine_function::links): Use nofree_string_hash as the first
13217         template parameter.
13218         (alpha_use_linkage, alpha_write_linkage): Update accordingly.
13219         * config/m32c/m32c.c (pragma_traits): Delete.
13220         (pragma_htab): Use nofree_string_hash as the first template parameter.
13221         (m32c_note_pragma_address): Update accordingly.
13222         * config/mep/mep.c (pragma_traits): Delete.
13223         (pragma_htab): Use nofree_string_hash as the first template parameter.
13224         (mep_note_pragma_flag): Update accordingly.
13225         * config/mips/mips.c (mips16_flip_traits): Delete.
13226         (mflip_mips16_htab): Use nofree_string_hash as the first template
13227         parameter.
13228         (mflip_mips16_use_mips16_p): Update accordingly.
13229         (local_alias_traits): Delete.
13230         (mips16_local_aliases): Use nofree_string_hash as the first template
13231         parameter.
13232         (mips16_local_alias): Update accordingly.
13234 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13236         * hash-map-traits.h (default_hashmap_traits): Delete.
13238 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13240         * hash-map-traits.h (unbounded_hashmap_traits): New class.
13241         (unbounded_int_hashmap_traits): Likewise.
13242         * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
13244 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13246         * ipa-icf.h (symbol_compare_hash): New class.
13247         (symbol_compare_hashmap_traits): Use it.
13248         * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
13249         (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
13250         (mem_alloc_description::reverse_mem_map_t): Remove redundant
13251         default_hashmap_traits.
13252         * sanopt.c (sanopt_tree_triplet_hash): New class.
13253         (sanopt_tree_triplet_map_traits): Use it.
13255 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13257         * gengtype-parse.c (require_template_declaration): Allow '+' in
13258         template parameters.  Consolidate cases.
13259         * hash-traits.h (int_hash): New class.
13260         * alias.c (alias_set_hash): New structure.
13261         (alias_set_traits): Use it.
13262         * symbol-summary.h (function_summary::map_hash): New class.
13263         (function_summary::summary_hashmap_traits): Use it.
13264         * tree-inline.h (dependence_hash): New class.
13265         (dependence_hasher): Use it.
13266         * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
13267         * value-prof.c (profile_id_hash): New class.
13268         (profile_id_traits): Use it.
13270 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13272         * config/mips/mips.c (mips16_flip_traits): Use it.
13273         (local_alias_traits, mips16_local_aliases): Convert from a map of
13274         rtxes to a map of symbol names.
13275         (mips16_local_alias): Update accordingly.
13277 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13279         * hash-traits.h (string_hash, nofree_string_hash): New classes.
13280         * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
13281         * passes.c (pass_registry_hasher): Likewise.
13282         * config/alpha/alpha.c (string_traits): Likewise.
13283         * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
13284         * config/m32c/m32c.c (pragma_traits): Likewise.
13285         * config/mep/mep.c (pragma_traits): Likewise.
13287 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13289         * tree-hash-traits.h (tree_hash): New class.
13290         * except.c: Include tree-hash-traits.h.
13291         (tree_hash_traits): Use tree_hash.
13293 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13295         * tree-hash-traits.h (tree_ssa_name_hasher): New class.
13296         * sese.c: Include tree-hash-traits.h.
13297         (rename_map_hasher): Use tree_ssa_name_hasher.
13299 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13301         * tree-hash-traits.h (tree_decl_hash): New class.
13302         * tree-ssa-strlen.c: Include tree-hash-traits.h.
13303         (stridxlist_hash_traits): Use tree_decl_hash.
13305 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13307         * tree-hash-traits.h: New file.
13308         (tree_operand_hash): New class.
13309         * sanopt.c: Include tree-hash-traits.h.
13310         (sanopt_tree_map_traits): Use tree_operand_hash.
13311         * tree-if-conv.c: Include tree-hash-traits.h.
13312         (phi_args_hash_traits): Use tree_operand_hash.
13313         * tree-ssa-uncprop.c: Include tree-hash-traits.h.
13314         (val_ssa_equiv_hash_traits): Use tree_operand_hash.
13316 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13318         * hash-map-traits.h: Include hash-traits.h.
13319         (simple_hashmap_traits): New class.
13320         * mem-stats.h (hash_map): Change the default traits to
13321         simple_hashmap_traits<default_hash_traits<Key> >.
13323 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13325         * hash-table.h: Update comments.
13327 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13329         * hash-traits.h (default_hash_traits): New structure.
13330         * hash-set.h (default_hashset_traits): Delete.
13331         (hash_set): Use default_hash_traits<Key> instead of
13332         default_hashset_traits.  Delete hash_entry type and use Key directly.
13333         * ipa-devirt.c (pair_traits): Delete.
13334         (default_hash_traits <type_pair>): Override.
13335         (odr_subtypes_equivalent_p): Remove pair_types template parameter.
13336         (odr_types_equivalent_p, add_type_duplicate): Likewise.
13338 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13340         * hash-traits.h (typed_noop_remove): Don't require a pointer type.
13342 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13344         * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
13345         (has_is_empty, is_empty_helper): Delete.
13346         (has_mark_deleted, mark_deleted_helper): Delete.
13347         (has_mark_empty, mark_empty_helper): Delete.
13348         (hash_table::is_deleted): Call the Descriptor unconditionally.
13349         (hash_table::is_empty): Likewise.
13350         (hash_table::mark_deleted): Likewise.
13351         (hash_table::mark_empty): Likewise.
13353 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13355         * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash.  Remove
13356         redundant typedefs and members.
13357         * coverage.c (counts_entry): Inherit from pointer_hash.  Remove
13358         redundant typedefs.
13359         * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
13360         * ipa-devirt.c (odr_name_hasher): Likewise.
13361         (polymorphic_call_target_hasher): Likewise.
13362         * ira-costs.c (cost_classes_hasher): Likewise.
13363         * statistics.c (stats_counter_hasher): Likewise.
13364         * trans-mem.c (log_entry_hasher): Likewise.
13365         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
13366         * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
13367         * tree-ssa-tail-merge.c (same_succ_def): Likewise.
13368         * var-tracking.c (variable_hasher): Likewise.
13369         * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
13370         Remove redundant typedefs and members.
13372 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13374         * hash-traits.h (ggc_cache_hasher): Rename to...
13375         (ggc_cache_remove): ...this and remove typedefs.
13376         (ggc_cache_ptr_hash): New class.
13377         * hash-table.h: Update commentary.
13378         * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
13379         rather than ggc_cache_hasher.
13380         (const_wide_int_hasher, reg_attr_hasher): Likewise.
13381         (const_double_hasher, const_fixed_hasher): Likewise.
13382         * function.c (insn_cache_hasher): Likewise.
13383         * trans-mem.c (tm_wrapper_hasher): Likewise.
13384         * tree.h (tree_decl_map_cache_hasher): Likewise.
13385         * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
13386         (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
13387         * ubsan.c (tree_type_map_cache_hasher): Likewise.
13388         * varasm.c (tm_clone_hasher): Likewise.
13389         * config/i386/i386.c (dllimport_hasher): Likewise.
13390         * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
13391         (tree_hasher): Likewise.
13393 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13395         * hash-traits.h (ggc_hasher): Rename to...
13396         (ggc_remover): ...this and remove typedefs.
13397         (ggc_cache_hasher): Update accordingly.  Add typedefs.
13398         (ggc_ptr_hash): New class.
13399         * hash-table.h: Update comment.
13400         * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
13401         ggc_hasher.
13402         * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
13403         (tree_descriptor_hasher): Likewise.
13404         * cgraph.c (function_version_hasher): Likewise.
13405         * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
13406         (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
13407         (dw_loc_list_hasher, addr_hasher): Likewise.
13408         * function.h (used_type_hasher): Likewise.
13409         * function.c (temp_address_hasher): Likewise.
13410         * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
13411         * libfuncs.h (libfunc_hasher): Likewise.
13412         * lto-streamer.h (decl_state_hasher): Likewise.
13413         * optabs.c (libfunc_decl_hasher): Likewise.
13414         * tree-scalar-evolution.c (scev_info_hasher): Likewise.
13415         * varasm.c (section_hasher, object_block_hasher): Likewise.
13416         (const_rtx_desc_hasher): Likewise.
13417         * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
13418         * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
13420 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13422         * hash-traits.h (free_ptr_hash): New class.
13423         * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
13424         rather than typed_free_remove.  Remove redudant typedefs.
13425         (external_ref_hasher): Likewise.
13426         * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
13427         (ehspec_hasher): Likewise.
13428         * ggc-common.c (saving_hasher): Likewise.
13429         * gimplify.c (gimplify_hasher): Likewise.
13430         * haifa-sched.c (delay_i2_hasher): Likewise.
13431         * loop-invariant.c (invariant_expr_hasher): Likewise.
13432         * loop-iv.c (biv_entry_hasher): Likewise.
13433         * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
13434         * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
13435         * tree-cfg.c (locus_discrim_hasher): Likewise.
13436         * tree-eh.c (finally_tree_hasher): Likewise.
13437         * tree-into-ssa.c (var_info_hasher): Likewise.
13438         * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
13439         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
13440         * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
13441         * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
13442         * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
13443         * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
13444         (shared_bitmap_hasher): Likewise.
13445         * tree-ssa-threadupdate.c (redirection_data): Likewise.
13446         * tree-vectorizer.h (peel_info_hasher): Likewise.
13447         * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
13448         * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
13450 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13452         * hash-table.h: Update comments.
13453         * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
13454         (nofree_ptr_hash): New class.
13455         * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
13456         than typed_noop_remove.  Remove redudant typedefs.
13457         * attribs.c (attribute_hasher): Likewise.
13458         * cfg.c (bb_copy_hasher): Likewise.
13459         * cselib.c (cselib_hasher): Likewise.
13460         * dse.c (invariant_group_base_hasher): Likewise.
13461         * dwarf2cfi.c (trace_info_hasher): Likewise.
13462         * dwarf2out.c (macinfo_entry_hasher): Likewise.
13463         (comdat_type_hasher, loc_list_hasher): Likewise.
13464         * gcse.c (pre_ldst_expr_hasher): Likewise.
13465         * genmatch.c (id_base): Likewise.
13466         * genrecog.c (test_pattern_hasher): Likewise.
13467         * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
13468         * haifa-sched.c (delay_i1_hasher): Likewise.
13469         * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
13470         * ipa-icf.h (congruence_class_group_hash): Likewise.
13471         * ipa-profile.c (histogram_hash): Likewise.
13472         * ira-color.c (allocno_hard_regs_hasher): Likewise.
13473         * lto-streamer.h (string_slot_hasher): Likewise.
13474         * lto-streamer.c (tree_entry_hasher): Likewise.
13475         * plugin.c (event_hasher): Likewise.
13476         * postreload-gcse.c (expr_hasher): Likewise.
13477         * store-motion.c (st_expr_hasher): Likewise.
13478         * tree-sra.c (uid_decl_hasher): Likewise.
13479         * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
13480         (ssa_name_var_hash): Likewise.
13481         * tree-ssa-live.c (tree_int_map_hasher): Likewise.
13482         * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
13483         * tree-ssa-pre.c (pre_expr_d): Likewise.
13484         * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
13485         * vtable-verify.h (registration_hasher): Likewise.
13486         * vtable-verify.c (vtbl_map_hasher): Likewise.
13487         * config/arm/arm.c (libcall_hasher): Likewise.
13488         * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
13489         * config/ia64/ia64.c (bundle_state_hasher): Likewise.
13490         * config/sol2.c (comdat_entry_hasher): Likewise.
13491         * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
13492         (print_fold_checksum, fold_checksum_tree): Likewise.
13493         (debug_fold_checksum, fold_build1_stat_loc): Likewise.
13494         (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
13495         (fold_build_call_array_loc): Likewise.
13496         * tree-ssa-ccp.c (gimple_htab): Likewise.
13497         * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
13498         rather than pointer_type.
13500 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13502         * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
13503         (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
13505 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13507         * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
13508         (ggc_hasher::ggc_mx): Likewise.
13509         (ggc_cache_hasher): Inherit from ggc_hasher.  Remove definitions
13510         that duplicate ggc_hasher ones.
13512 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13514         * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
13515         (gt_cleare_cache): Check here for deleted and empty entries.
13516         Replace handle_cache_entry with a call to keep_cache_entry.
13517         * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
13518         (ggc_cache_hasher::keep_cache_entry): New function.
13519         * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
13520         (tm_wrapper_hasher::keep_cache_entry): New function.
13521         * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
13522         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
13523         * tree.c (type_cache_hasher::handle_cache_entry): Delete.
13524         (type_cache_hasher::keep_cache_entry): New function.
13525         (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
13526         (tree_vec_map_cache_hasher::keep_cache_entry): New function.
13527         * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
13528         (tree_type_map_cache_hasher::keep_cache_entry): New function.
13529         * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
13530         (tm_clone_hasher::keep_cache_entry): New function.
13531         * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
13532         (dllimport_hasher::keep_cache_entry): New function.
13534 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13536         * hash-table.h: Include hash-traits.h.
13537         (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
13538         (ggc_cache_hasher): Move to...
13539         * hash-traits.h: ...this new file.
13541 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13543         * tree-core.h (struct tree_optimization_option): Make opts a pointer to
13544         struct cl_optimization.
13545         * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
13546         * tree.c (make_node_stat): Allocate cl_optimization struct.
13547         (copy_node_stat): Allocate and copy cl_optimization struct.
13549 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13551         * function.h (struct incoming_args): Move struct.
13552         (pass_by_reference, reference_callee_copied): Remove prototypes.
13553         * emit-rtl.h (struct incoming_args): Relocate struct here.
13554         * calls.h (pass_by_reference, reference_callee_copied): Relocate
13555         prototypes here.
13556         * function.c (pass_by_reference, reference_callee_copied): Move.
13557         * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
13558         * cfgloop.h: Don't include tm.h or hard-reg-set.h.
13559         * ipa-chkp.c: Include calls.h.
13561 2015-06-25  Andrew Macleod  <amacleod@redhat.com>
13563         * alias.h (alias_set_type): Move typedef.
13564         * coretypes.h (alias_set_type): Relocate typedef here.
13565         * rtl.h: Don't include alias.h.
13567 2015-06-25  Andrew MacLeod  <amacleod@redhat.com>
13569         * cgraph.h (cgraph_rtl_info): Move to rtl.h
13570         (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
13571         and instance.
13572         * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
13573         * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
13574         doesn't exist.
13575         * calls.c: Include hard-reg-set.h before rtl.h.
13576         * ira.c: Likewise.
13578 2015-06-25  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
13579             Vladimir Makarov  <vmakarov@redhat.com>
13581         * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
13582         Add assert.
13584 2015-06-25  Richard Biener  <rguenther@suse.de>
13586         * fold-const.c (fold_binary_loc): Move simplification of
13587         (X <<>> C1) & C2 ...
13588         * match.pd: ... here.
13590 2015-06-25  Eric Botcazou  <ebotcazou@adacore.com>
13592         * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
13594 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
13596         * match.pd: Add patterns for vec_conds between 1 and 0.
13598 2015-06-25  Richard Biener  <rguenther@suse.de>
13600         * tree-vect-stmts.c (vectorizable_conversion): Do not set
13601         STMT_VINFO_VEC_STMT for SLP.
13602         (vectorizable_store): Likewise.
13603         (vectorizable_load): Likewise.
13604         (vect_transform_stmt): Catch SLP vectorization clobbering
13605         STMT_VINFO_VEC_STMT.
13607 2015-06-25  Richard Biener  <rguenther@suse.de>
13609         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
13610         dumping.
13611         (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
13612         cleanup resulting dead code and parameters.
13613         (vect_transform_slp_perm_load): Adjust.
13615 2015-06-25  Nick Clifton  <nickc@redhat.com>
13617         * config/bfin/bfin.c (bfin_expand_prologue): Set
13618         current_function_static_stack_size if flag_stack_usage_info is set.
13619         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13620         * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
13621         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
13622         * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
13624 2015-06-25  Tom de Vries  <tom@codesourcery.com>
13626         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
13627         comment that the generated IV is unsigned.
13629 2015-06-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13631         PR target/29693
13632         * config/arm/arm.c (arm_dbx_register_number): Return
13633         DWARF_FRAME_REGISTERS by default.
13635 2015-06-25  Tom de Vries  <tom@codesourcery.com>
13637         * dominance.c (calculate_dominance_info): Fix verify_dominators call
13638         argument.  Call verify_dominator when reusing dominator info.
13640 2015-06-24  Kaz Kojima  <kkojima@gcc.gnu.org>
13642         PR target/66563
13643         * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
13644         an additional element of the unspec vector.  Modify indices
13645         of operands.
13646         (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
13647         * config/sh/sh.c (prepare_move_operands): Pass incremented
13648         const_int to gen_GOTaddr2picreg.
13649         (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
13651 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13653         * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
13654         Condition on TARGET_FLOAT.
13656 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13658         * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
13659         and (no)crypto.
13661 2015-06-24  Alan Lawrence  <alan.lawrence@arm.com>
13663         * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
13665         * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
13666         aarch64_err_no_fpadvsimd.
13668         * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
13669         (aarch64_layout_arg, aarch64_init_cumulative_args): Use
13670         aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
13671         (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
13672         Turn error into assert, test TARGET_FLOAT.
13673         (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
13674         TARGET_FLOAT.
13676 2015-06-24  Aldy Hernandez  <aldyh@redhat.com>
13678         PR debug/66482
13679         * dwarf2out.c (gen_formal_parameter_die): Remove assert.
13681 2015-06-24  Ilya Enkovich  <enkovich.gnu@gmail.com>
13683         * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
13685 2015-06-24  Renlin Li <renlin.li@arm.com>
13687         * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
13688         __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
13690 2015-06-24  Richard Biener  <rguenther@suse.de>
13692         * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
13693         (main): Likewise.
13694         (lower_opt_convert): Support lowering of conditional view_convert.
13695         (parser::parse_operation): Likewise.
13696         (parser::parse_for): Likewise.
13698 2015-06-24  Renlin Li  <renlin.li@arm.com>
13700         * varasm.c (emit_local): Use unsigned int for align variable.
13702 2015-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13704         PR target/63408
13705         * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
13706         for negative numbers.
13708 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13710         PR rtl-optimization/66306
13711         * reload.c (find_reloads): Swap the match_dup info for
13712         commutative operands.
13714 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13716         * config/s390/vx-builtins.md
13717         ("vec_scatter_element<mode>_<non_vec_int>")
13718         ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
13719         attribute with bhfgq.
13721 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13723         * config/s390/s390-builtins.def: Fix vpopct instruction comments.
13725 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13727         * config/s390/s390-builtin-types.def: Add flag to indicate the
13728         options under which the function type is needed.
13729         * config/s390/s390-builtins.def: Add flag to indicate the options
13730         under which the builtin is enabled.
13731         * config/s390/s390-builtins.h: Add flags parameter to macro
13732         definitions.
13733         (bflags_for_builtin): New function.
13734         (flags_for_builtin): Renamed to ...
13735         (opflags_for_builtin): ... this.
13736         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
13737         flags_for_builtin to bflags_for_builtin and
13738         flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
13739         * config/s390/s390.c: Add initialization of bflags_builtin and
13740         opflags_builtin arrays.
13741         Remove code for flags_builtin.
13742         (s390_init_builtins): Only create builtin function types if one of
13743         their flags is active.
13744         Only create builtins if all of their flags are active.
13745         (s390_expand_builtin): Rename flags_for_builtin to
13746         opflags_for_builtin.
13748 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13750         * config/s390/vecintrin.h: Remove internal builtins.
13752 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13754         * config/s390/s390.c (s390_secondary_reload): Fix check for
13755         GENERAL_REGS register class.
13757 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13759         * config/s390/s390.c (s390_support_vector_misalignment): Call
13760         default implementation for !TARGET_VX.
13762 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13764         * config/s390/s390.c (s390_legitimate_constant_p): Add
13765         TARGET_VX check.
13767 2015-06-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13769         * config/s390/s390.c (s390_vector_abi): New variable definition.
13770         (s390_check_type_for_vector_abi): New function.
13771         (TARGET_ASM_FILE_END): New macro definition.
13772         (s390_asm_file_end): New function.
13773         (s390_function_arg): Call s390_check_type_for_vector_abi.
13774         (s390_gimplify_va_arg): Likewise.
13775         * configure: Regenerate.
13776         * configure.ac: Check for .gnu_attribute Binutils feature.
13778 2015-06-23  Chen Gang  <gang.chen.5i5j@gmail.com>
13780         PR target/65803
13781         * config/bfin/bfin.c (hwloop_optimize): Initialize
13782         JUMP_LABEL for newly created jump.
13784 2015-06-23  Tristan Gingold  <gingold@adacore.com>
13786         * collect-utils.c (collect_wait): Unlink the response file here
13787         instead of...
13788         (do_wait): ...here.
13789         (utils_cleanup): ...and here.
13791 2015-06-23  Richard Sandiford  <richard.sandiford@arm.com>
13793         * df-scan.c: Don't include target-def.h.
13794         * targhooks.c: Likewise.
13795         * config/arm/arm-c.c: Likewise.
13796         * config/i386/i386-c.c: Likewise.
13797         * config/nds32/nds32-cost.c: Likewise.
13798         * config/nds32/nds32-fp-as-gp.c: Likewise.
13799         * config/nds32/nds32-intrinsic.c: Likewise.
13800         * config/nds32/nds32-isr.c: Likewise.
13801         * config/nds32/nds32-md-auxiliary.c: Likewise.
13802         * config/nds32/nds32-memory-manipulation.c: Likewise.
13803         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13804         * config/nds32/nds32-predicates.c: Likewise.
13806 2015-06-23  Richard Biener  <rguenther@suse.de>
13808         PR tree-optimization/66636
13809         * tree-vect-stmts.c (vectorizable_store): Properly compute the
13810         def type for further defs for strided stores.
13812 2015-06-23  Nathan Sidwell  <nathan@codesourcery.com>
13814         * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
13815         conditional selects.
13816         (setcc_int<mode>, setcc_float<mode>): Reformat.
13818 2015-06-23  Marek Polacek  <polacek@redhat.com>
13820         * match.pd ((x + y) - (x | y) -> x & y,
13821         (x + y) - (x & y) -> x | y): New patterns.
13823 2015-06-23  Ludovic Courtès  <ludo@gnu.org>
13825         PR 65711
13826         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
13827         '-dynamic-linker' within %{!shared: ...}.
13829 2015-06-23  Uros Bizjak  <ubizjak@gmail.com>
13831         PR target/66560
13832         * config/i386/predicates.md (addsub_vm_operator): New predicate.
13833         (addsub_vs_operator): Ditto.
13834         (addsub_vs_parallel): Ditto.
13835         * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
13836         (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
13837         Put minus RTX before plus and adjust vec_merge selector.
13838         (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
13839         (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
13840         (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
13841         (addsub vec_merge splitters): New combiner splitters.
13842         (addsub vec_select/vec_concat splitters): Ditto.
13844 2015-06-23  Bin Cheng  <bin.cheng@arm.com>
13846         PR tree-optimization/66449
13847         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
13848         POINTER_PLUS_EXPR for pointers.
13850 2015-06-23  Alan Modra  <amodra@gmail.com>
13852         * rtlanal.c (commutative_operand_precedence): Correct comments.
13853         * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
13854         declaration.  Return an int.  Distinguish REG,REG return from
13855         others.
13856         (struct simplify_plus_minus_op_data): Make local to function.
13857         (simplify_plus_minus): Don't set canonicalized if merely sorting
13858         registers.  Avoid packing ops if nothing changes.  White space fixes.
13860 2015-06-22  Pierre-Marie de Rodat  <derodat@adacore.com>
13862         * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
13863         -fdump-ada-spec is passed but not if -fsyntax-only is.
13865 2015-06-22  Vladimir Makarov  <vmakarov@redhat.com>
13867         PR bootstrap/63740
13868         * lra-lives.c (process_bb_lives): Check insn copying the same
13869         reload pseudo and don't create a copy for it.
13871 2015-06-22  Tom de Vries  <tom@codesourcery.com>
13873         * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
13874         for cond_stmt.
13876 2015-06-22  Tom de Vries  <tom@codesourcery.com>
13878         * builtins.def (DEF_GOMP_BUILTIN): Test
13879         'flag_tree_parallelize_loops > 1' instead of
13880         'flag_tree_parallelize_loops'.  Test flag_cilkplus.
13882 2015-06-22  Tom de Vries  <tom@codesourcery.com>
13884         * dominance.c (calculate_dominance_info): Verify dominators if
13885         early-out.
13887 2015-06-22  Marek Polacek  <polacek@redhat.com>
13889         * match.pd ((x ^ y) ^ (x | y) -> x & y,
13890         (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
13891         (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
13892         (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
13894 2015-06-22  Uros Bizjak  <ubizjak@gmail.com>
13896         PR target/65871
13897         * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
13898         cost of embedded comparison.
13900 2015-06-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13902         PR target/65914
13903         * config/rs6000/predicates.md (altivec_register_operand): Permit
13904         virtual stack registers.
13905         (vsx_register_operand): Likewise.
13906         (vfloat_operand): Likewise.
13907         (vint_operand): Likewise.
13908         (vlogical_operand): Likewise.
13910 2015-06-22  Richard Biener  <rguenther@suse.de>
13912         * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
13913         and single_scalar_iteration_cost members.
13914         (LOOP_VINFO_SCALAR_ITERATION_COST): New.
13915         (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
13916         (vect_get_single_scalar_iteration_cost): Remove.
13917         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
13918         Use LOOP_VINFO_SCALAR_ITERATION_COST.
13919         * tree-vect-loop.c (destroy_loop_vec_info): Free
13920         scalar_cost_vec.
13921         (vect_get_single_scalar_iteration_cost): Compute result into
13922         LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
13923         LOOP_VINFO_SCALAR_ITERATION_COST.  Make static.
13924         (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
13925         (vect_estimate_min_profitable_iters): Use them.
13927 2015-06-22  Christian Bruel  <christian.bruel@st.com>
13929         PR target/52144
13930         * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
13931         (TARGET_INSERT_ATTRIBUTES): Define.
13932         (thumb_flipper): New var.
13933         * config/arm/arm.opt (-mflip-thumb): New switch.
13935 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
13936             Martin Liska  <mliska@suse.cz>
13938         PR ipa/65908
13939         * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
13940         construction of arg_types.
13941         (sem_function::sem_function): Likewise.
13942         (sem_function::~sem_function): Remove destruction of arg_types.
13943         (sem_function::compatible_parm_types_p): New function.
13944         (sem_function::equals_wpa): Reorg matching of return values
13945         and parameter types.
13946         (sem_function::equals_private): Reorg mathcing of argument types.
13947         (sem_function::parse_tree_args): Remove.
13948         * ipa-icf.h (init_wpa): Do not call it.
13949         (parse_tree_args): Remove.
13950         (compatible_parm_types_p): Declare.
13951         (result_type): Remove.
13952         (arg_types): Remove.
13954 2015-06-22  Jan Hubicka  <hubicka@ucw.cz>
13956         PR ipa/66351
13957         * ipa-polymorphic-call.c
13958         (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
13959         initializing alias oracle; fix formating; set base_alias_set if it
13960         is known.
13962 2015-06-22  Mikhail Maltsev  <maltsevm@gmail.com>
13964         * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
13965         (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
13966         (find_inc): Likewise.
13967         * combine.c (combine_simplify_rtx): Use std::swap instead of manually
13968         swapping.
13969         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
13970         * df-scan.c (df_swap_refs): Remove.
13971         (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
13972         * dominance.c (link_roots): Use std::swap instead of manually swapping.
13973         * expr.c (expand_expr_real_2, do_store_flag): Likewise.
13974         * fold-const.c (fold_relational_const): Likewise.
13975         * genattrtab.c (simplify_test_exp): Likewise.
13976         * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
13977         gimple_simplify): Likewise.
13978         * ifcvt.c (noce_try_abs, find_if_header): Likewise.
13979         * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
13980         * ipa-devirt.c (add_type_duplicate): Likewise.
13981         * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
13982         * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
13983         * lra.c (lra_create_copy): Likewise.
13984         * lto-streamer-out.c (DFS::DFS): Likewise.
13985         * modulo-sched.c (get_sched_window): Likewise.
13986         * omega.c (omega_pretty_print_problem): Likewise.
13987         * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
13988         * reload1.c (reloads_unique_chain_p): Likewise.
13989         * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
13990         (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
13991         use std::swap.
13992         * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
13993         manually swapping.
13994         * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
13995         predicate_mem_writes): Likewise.
13996         * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
13997         * tree-predcom.c (combine_chains): Likewise.
13998         * tree-ssa-alias.c (nonoverlapping_component_refs_p,
13999         refs_may_alias_p_1): Likewise.
14000         * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
14001         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14002         * tree-ssa-loop-niter.c (refine_bounds_using_guard,
14003         number_of_iterations_cond): Likewise.
14004         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
14005         * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
14006         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
14007         * tree-vect-stmts.c (supportable_widening_operation): Likewise.
14008         * tree-vrp.c (extract_range_from_binary_expr_1,
14009         extract_range_from_unary_expr_1): Likewise.
14011 2015-06-20  Marek Polacek  <polacek@redhat.com>
14013         * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
14015 2015-06-19  Kaz Kojima  <kkojima@gcc.gnu.org>
14017         PR target/66591
14018         * config/sh/sh.c (prepare_move_operands): Replace subreg
14019         index term with R0 for base and index addressing.
14021 2015-06-19  Jim Wilson  <jim.wilson@linaro.org>
14023         * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
14024         op1 is an fp zero.
14025         (movsf_aarch64): Change condition from register_operand to
14026         aarch64_reg_or_fp_zero for op1.  Change type for alternative 6 to
14027         load1.  Change type for alternative 7 to store1.
14028         (movdf_aarch64): Likewise.
14030 2015-06-19  James Greenhalgh  <james.greenhalgh@arm.com>
14032         * config/vax/vax.md: Adjust sign/zero extend patterns to
14033         handle SUBREGs in operands[1].
14035 2015-06-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14037         * config/i386/i386.c (ix86_function_versions): Use std::swap instead
14038         of manually swapping.
14039         (expand_vec_perm_interleave2): Likewise.
14041 2015-06-19  Ilya Enkovich  <enkovich.gnu@gmail.com>
14043         * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
14044         reuse bounds created for abnormal ssa names.
14046 2015-06-19  Jakub Jelinek  <jakub@redhat.com>
14048         * config/nvptx/nvptx.md (allocate_stack): Rename to...
14049         (allocate_stack_<mode>): ... this, and add :P on both
14050         match_operand and unspec.
14051         (allocate_stack): New expander.
14053 2015-06-19  Christian Bruel  <christian.bruel@st.com>
14055         PR target/66541
14056         PR target/52144
14057         * config/arm/arm.c (arm_set_current_function): Handle
14058         explicit default options.
14060 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
14062         * config/i386/i386.md (*movsicc_noc_zext): New insn.
14063         (zero-extended cmove with mem peephole2): New pattern.
14064         (cmove with mem peephole2): Merge patterns.
14066 2015-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
14068         * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
14070 2015-06-18  Steve Ellcey  <sellcey@imgtec.com>
14072         * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
14073         * config/mips/mips.md (*madd4<mode>): Ditto.
14074         (*nmadd3<mode>) Ditto.
14075         (*nmadd4<mode>_fastmath): Ditto.
14076         (*nmadd3<mode>_fastmath): Ditto.
14077         (*nmsub4<mode>): Ditto.
14078         (*nmsub3<mode>): Ditto.
14079         (*nmsub4<mode>_fastmath): Ditto.
14080         (*nmsub3<mode>_fastmath): Ditto.
14082 2015-06-18  Michael Matz  <matz@suse.de>
14084         PR middle-end/66253
14085         * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
14086         grouped strided stores.
14087         (vectorizable_load): Don't use the DR from first_stmt in
14088         the non-SLP grouped strided case.
14090 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14092         PR target/66569
14093         * function.c (assign_bounds): Add arguments assign_regs,
14094         assign_special, assign_bt.
14095         (assign_parms): For vararg functions handle bounds in BT
14096         and special slots after incoming vararg bounds.
14098 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14100         PR middle-end/66568
14101         * cfgexpand.c (expand_return): Handle missing bounds.
14102         (expand_gimple_stmt_1): Likewise.
14103         * tree-chkp.c (chkp_expand_zero_bounds): New.
14104         * tree-chkp.h (chkp_expand_zero_bounds): New.
14106 2015-06-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
14108         PR middle-end/66567
14109         * ipa-chkp.c (chkp_maybe_create_clone): Require
14110         functions to be instrumentable.
14111         * tree-chkp.c (chkp_replace_function_pointer): Use
14112         chkp_instrumentable_p instead of attribute check.
14114 2015-06-18  Richard Biener  <rguenther@suse.de>
14116         PR tree-optimization/66510
14117         * tree-vect-stmts.c (vectorizable_load): Properly compute the
14118         number of vector loads for SLP permuted loads.
14119         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
14120         check the stride for loop vectorization.
14121         (vect_enhance_data_refs_alignment): Deal with SLP adjusted
14122         vectorization factor.
14123         (vect_analyze_group_access): If the group size is not a power
14124         of two require a epilogue loop.
14125         * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
14126         compute and optimizing and alias test pruning after final
14127         vectorization factor computation.
14128         * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
14129         vector alignment.
14130         (vect_transform_slp_perm_load): Properly compute the original
14131         number of vector load stmts.
14133 2015-06-18  Uros Bizjak  <ubizjak@gmail.com>
14135         * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
14136         "unlikely character , in @var" warning.
14138 2015-06-17  Uros Bizjak  <ubizjak@gmail.com>
14140         * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
14141         (ix86_function_arg_advance): Ditto.
14142         (ix86_pass_by_reference): Ditto.  Rewrite MS_ABI part.
14144 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14146         * function.h (struct rtl_data): Remove struct and accessor macros.
14147         * emit-rtl.h (struct rtl_data): Relocate to here.
14148         * Makefile.in (GTFILES): Add emit-rtl.h.
14149         * df-core.c: Include emit-rtl.h.
14150         * genattrtab.c: Likewise.
14151         * genconditions.c: Likewise.
14152         * genpreds.c: Likewise.
14153         * genrecog.c: Likewise.
14154         * regcprop.c: Likewise.
14155         * resource.c: Likewise.
14156         * sched-rgn.c: Likewise.
14157         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14158         * config/i386/winnt.c: Likewise.
14160 2015-06-17  Jakub Jelinek  <jakub@redhat.com>
14162         PR middle-end/66429
14163         * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
14164         instead of DECL_STRUCT_FUNCTION (child_fn).  Or in has_simduid_loops
14165         and has_force_vectorize_loops flags from cfun into
14166         child_cfun.
14167         (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
14168         if simduid is non-NULL.
14169         * tree-pass.h (make_pass_simduid_cleanup): New prototype.
14170         * passes.def (pass_simduid_cleanup): Add new pass after loop
14171         passes.
14172         * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
14173         indirection from htab argument's type.
14174         (shrink_simd_arrays): New function.
14175         (vectorize_loops): Use it.  Adjust adjust_simduid_builtins caller.
14176         Don't call adjust_simduid_builtins if there are no loops.
14177         (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
14178         (pass_simduid_cleanup::execute): New method.
14179         (make_pass_simduid_cleanup): New function.
14181 2017-06-17  Andrew MacLeod  <amacleod@redhat.com>
14183         * tree-core.h (tree_target_option): Make opts field a pointer to a
14184         cl_target_option instead of an instance of the struct.
14185         * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
14186         the structure.
14187         * tree.c (make_node_stat ): Allocate a cl_target_option struct for
14188         TARGET_OPTION_NODE.
14189         (copy_node_stat): Allocate and copy struct cl_target_option.
14191 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14193         * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
14194         Remove conditional exposure of prototypes.
14195         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
14196         * tree.c (anon_aggrname_format, anon_aggrname_p): New.  Replace macro
14197         definitions in tree.h with functions.
14198         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
14199         anon_aggrname_p.
14200         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
14202 2015-06-17  Segher Boessenkool  <segher@kernel.crashing.org>
14204         * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
14205         (*cmp<mode>_signed): ... this.
14206         (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
14207         (*cmp<mode>_unsigned): ... this.  Remove %b.
14209 2015-06-17  Andrew MacLeod  <amacleod@redhat.com>
14211         * coretypes.h: Include input.h and as-a.h.
14212         * rtl.h: Include input.h and as-a.h for generator files.
14213         * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
14214         * vec.c: Don't include diagnostic-core.h.
14215         * alias.c: Do not include input.h, line-map.h or is-a.h.
14216         * asan.c: Likewise.
14217         * attribs.c: Likewise.
14218         * auto-inc-dec.c: Likewise.
14219         * auto-profile.c: Likewise.
14220         * bb-reorder.c: Likewise.
14221         * bt-load.c: Likewise.
14222         * builtins.c: Likewise.
14223         * caller-save.c: Likewise.
14224         * calls.c: Likewise.
14225         * ccmp.c: Likewise.
14226         * cfg.c: Likewise.
14227         * cfganal.c: Likewise.
14228         * cfgbuild.c: Likewise.
14229         * cfgcleanup.c: Likewise.
14230         * cfgexpand.c: Likewise.
14231         * cfghooks.c: Likewise.
14232         * cfgloop.c: Likewise.
14233         * cfgloop.h: Likewise.
14234         * cfgloopanal.c: Likewise.
14235         * cfgloopmanip.c: Likewise.
14236         * cfgrtl.c: Likewise.
14237         * cgraph.c: Likewise.
14238         * cgraphbuild.c: Likewise.
14239         * cgraphclones.c: Likewise.
14240         * cgraphunit.c: Likewise.
14241         * cilk-common.c: Likewise.
14242         * combine-stack-adj.c: Likewise.
14243         * combine.c: Likewise.
14244         * compare-elim.c: Likewise.
14245         * convert.c: Likewise.
14246         * coverage.c: Likewise.
14247         * cppbuiltin.c: Likewise.
14248         * cprop.c: Likewise.
14249         * cse.c: Likewise.
14250         * cselib.c: Likewise.
14251         * data-streamer-in.c: Likewise.
14252         * data-streamer-out.c: Likewise.
14253         * data-streamer.c: Likewise.
14254         * dbxout.c: Likewise.
14255         * dce.c: Likewise.
14256         * ddg.c: Likewise.
14257         * debug.c: Likewise.
14258         * df-core.c: Likewise.
14259         * df-problems.c: Likewise.
14260         * df-scan.c: Likewise.
14261         * df.h: Likewise.
14262         * dfp.c: Likewise.
14263         * diagnostic-core.h: Likewise.
14264         * diagnostic.c: Likewise.
14265         * dojump.c: Likewise.
14266         * dominance.c: Likewise.
14267         * domwalk.c: Likewise.
14268         * double-int.c: Likewise.
14269         * dse.c: Likewise.
14270         * dumpfile.c: Likewise.
14271         * dumpfile.h: Likewise.
14272         * dwarf2asm.c: Likewise.
14273         * dwarf2cfi.c: Likewise.
14274         * dwarf2out.c: Likewise.
14275         * emit-rtl.c: Likewise.
14276         * et-forest.c: Likewise.
14277         * except.c: Likewise.
14278         * explow.c: Likewise.
14279         * expmed.c: Likewise.
14280         * expr.c: Likewise.
14281         * final.c: Likewise.
14282         * fixed-value.c: Likewise.
14283         * fold-const.c: Likewise.
14284         * function.c: Likewise.
14285         * fwprop.c: Likewise.
14286         * gcc-plugin.h: Likewise.
14287         * gcse.c: Likewise.
14288         * generic-match-head.c: Likewise.
14289         * ggc-page.c: Likewise.
14290         * gimple-builder.c: Likewise.
14291         * gimple-expr.c: Likewise.
14292         * gimple-fold.c: Likewise.
14293         * gimple-iterator.c: Likewise.
14294         * gimple-low.c: Likewise.
14295         * gimple-match-head.c: Likewise.
14296         * gimple-pretty-print.c: Likewise.
14297         * gimple-ssa-isolate-paths.c: Likewise.
14298         * gimple-ssa-strength-reduction.c: Likewise.
14299         * gimple-streamer-in.c: Likewise.
14300         * gimple-streamer-out.c: Likewise.
14301         * gimple-streamer.h: Likewise.
14302         * gimple-walk.c: Likewise.
14303         * gimple.c: Likewise.
14304         * gimplify-me.c: Likewise.
14305         * gimplify.c: Likewise.
14306         * godump.c: Likewise.
14307         * graph.c: Likewise.
14308         * graphite-blocking.c: Likewise.
14309         * graphite-dependences.c: Likewise.
14310         * graphite-interchange.c: Likewise.
14311         * graphite-isl-ast-to-gimple.c: Likewise.
14312         * graphite-optimize-isl.c: Likewise.
14313         * graphite-poly.c: Likewise.
14314         * graphite-scop-detection.c: Likewise.
14315         * graphite-sese-to-poly.c: Likewise.
14316         * graphite.c: Likewise.
14317         * haifa-sched.c: Likewise.
14318         * hw-doloop.c: Likewise.
14319         * ifcvt.c: Likewise.
14320         * init-regs.c: Likewise.
14321         * input.c: Likewise.
14322         * internal-fn.c: Likewise.
14323         * ipa-chkp.c: Likewise.
14324         * ipa-comdats.c: Likewise.
14325         * ipa-cp.c: Likewise.
14326         * ipa-devirt.c: Likewise.
14327         * ipa-icf-gimple.c: Likewise.
14328         * ipa-icf.c: Likewise.
14329         * ipa-inline-analysis.c: Likewise.
14330         * ipa-inline-transform.c: Likewise.
14331         * ipa-inline.c: Likewise.
14332         * ipa-polymorphic-call.c: Likewise.
14333         * ipa-profile.c: Likewise.
14334         * ipa-prop.c: Likewise.
14335         * ipa-pure-const.c: Likewise.
14336         * ipa-ref.c: Likewise.
14337         * ipa-reference.c: Likewise.
14338         * ipa-split.c: Likewise.
14339         * ipa-utils.c: Likewise.
14340         * ipa-visibility.c: Likewise.
14341         * ipa.c: Likewise.
14342         * ira-build.c: Likewise.
14343         * ira-color.c: Likewise.
14344         * ira-conflicts.c: Likewise.
14345         * ira-costs.c: Likewise.
14346         * ira-emit.c: Likewise.
14347         * ira-lives.c: Likewise.
14348         * ira.c: Likewise.
14349         * jump.c: Likewise.
14350         * langhooks.c: Likewise.
14351         * lcm.c: Likewise.
14352         * loop-doloop.c: Likewise.
14353         * loop-init.c: Likewise.
14354         * loop-invariant.c: Likewise.
14355         * loop-iv.c: Likewise.
14356         * loop-unroll.c: Likewise.
14357         * lower-subreg.c: Likewise.
14358         * lra-assigns.c: Likewise.
14359         * lra-coalesce.c: Likewise.
14360         * lra-constraints.c: Likewise.
14361         * lra-eliminations.c: Likewise.
14362         * lra-lives.c: Likewise.
14363         * lra-remat.c: Likewise.
14364         * lra-spills.c: Likewise.
14365         * lra.c: Likewise.
14366         * lto-cgraph.c: Likewise.
14367         * lto-compress.c: Likewise.
14368         * lto-opts.c: Likewise.
14369         * lto-section-in.c: Likewise.
14370         * lto-section-out.c: Likewise.
14371         * lto-streamer-in.c: Likewise.
14372         * lto-streamer-out.c: Likewise.
14373         * lto-streamer.c: Likewise.
14374         * mcf.c: Likewise.
14375         * mode-switching.c: Likewise.
14376         * modulo-sched.c: Likewise.
14377         * omega.c: Likewise.
14378         * omp-low.c: Likewise.
14379         * optabs.c: Likewise.
14380         * opts-global.c: Likewise.
14381         * opts.h: Likewise.
14382         * passes.c: Likewise.
14383         * plugin.c: Likewise.
14384         * postreload-gcse.c: Likewise.
14385         * postreload.c: Likewise.
14386         * predict.c: Likewise.
14387         * pretty-print.h: Likewise.
14388         * print-rtl.c: Likewise.
14389         * print-tree.c: Likewise.
14390         * profile.c: Likewise.
14391         * real.c: Likewise.
14392         * realmpfr.c: Likewise.
14393         * recog.c: Likewise.
14394         * ree.c: Likewise.
14395         * reg-stack.c: Likewise.
14396         * regcprop.c: Likewise.
14397         * reginfo.c: Likewise.
14398         * regrename.c: Likewise.
14399         * regstat.c: Likewise.
14400         * reload.c: Likewise.
14401         * reload1.c: Likewise.
14402         * reorg.c: Likewise.
14403         * resource.c: Likewise.
14404         * rtl-chkp.c: Likewise.
14405         * rtl-error.c: Likewise.
14406         * rtlanal.c: Likewise.
14407         * rtlhooks.c: Likewise.
14408         * sanopt.c: Likewise.
14409         * sched-deps.c: Likewise.
14410         * sched-ebb.c: Likewise.
14411         * sched-rgn.c: Likewise.
14412         * sched-vis.c: Likewise.
14413         * sdbout.c: Likewise.
14414         * sel-sched-dump.c: Likewise.
14415         * sel-sched-ir.c: Likewise.
14416         * sel-sched.c: Likewise.
14417         * sese.c: Likewise.
14418         * shrink-wrap.c: Likewise.
14419         * simplify-rtx.c: Likewise.
14420         * stack-ptr-mod.c: Likewise.
14421         * statistics.c: Likewise.
14422         * stmt.c: Likewise.
14423         * stor-layout.c: Likewise.
14424         * store-motion.c: Likewise.
14425         * streamer-hooks.c: Likewise.
14426         * stringpool.c: Likewise.
14427         * symtab.c: Likewise.
14428         * target-globals.c: Likewise.
14429         * targhooks.c: Likewise.
14430         * toplev.c: Likewise.
14431         * tracer.c: Likewise.
14432         * trans-mem.c: Likewise.
14433         * tree-affine.c: Likewise.
14434         * tree-browser.c: Likewise.
14435         * tree-call-cdce.c: Likewise.
14436         * tree-cfg.c: Likewise.
14437         * tree-cfgcleanup.c: Likewise.
14438         * tree-chkp-opt.c: Likewise.
14439         * tree-chkp.c: Likewise.
14440         * tree-chrec.c: Likewise.
14441         * tree-complex.c: Likewise.
14442         * tree-data-ref.c: Likewise.
14443         * tree-dfa.c: Likewise.
14444         * tree-diagnostic.c: Likewise.
14445         * tree-dump.c: Likewise.
14446         * tree-eh.c: Likewise.
14447         * tree-emutls.c: Likewise.
14448         * tree-if-conv.c: Likewise.
14449         * tree-inline.c: Likewise.
14450         * tree-into-ssa.c: Likewise.
14451         * tree-iterator.c: Likewise.
14452         * tree-loop-distribution.c: Likewise.
14453         * tree-nested.c: Likewise.
14454         * tree-nrv.c: Likewise.
14455         * tree-object-size.c: Likewise.
14456         * tree-outof-ssa.c: Likewise.
14457         * tree-parloops.c: Likewise.
14458         * tree-phinodes.c: Likewise.
14459         * tree-predcom.c: Likewise.
14460         * tree-pretty-print.c: Likewise.
14461         * tree-profile.c: Likewise.
14462         * tree-scalar-evolution.c: Likewise.
14463         * tree-sra.c: Likewise.
14464         * tree-ssa-address.c: Likewise.
14465         * tree-ssa-alias.c: Likewise.
14466         * tree-ssa-ccp.c: Likewise.
14467         * tree-ssa-coalesce.c: Likewise.
14468         * tree-ssa-copy.c: Likewise.
14469         * tree-ssa-copyrename.c: Likewise.
14470         * tree-ssa-dce.c: Likewise.
14471         * tree-ssa-dom.c: Likewise.
14472         * tree-ssa-dse.c: Likewise.
14473         * tree-ssa-forwprop.c: Likewise.
14474         * tree-ssa-ifcombine.c: Likewise.
14475         * tree-ssa-live.c: Likewise.
14476         * tree-ssa-loop-ch.c: Likewise.
14477         * tree-ssa-loop-im.c: Likewise.
14478         * tree-ssa-loop-ivcanon.c: Likewise.
14479         * tree-ssa-loop-ivopts.c: Likewise.
14480         * tree-ssa-loop-manip.c: Likewise.
14481         * tree-ssa-loop-niter.c: Likewise.
14482         * tree-ssa-loop-prefetch.c: Likewise.
14483         * tree-ssa-loop-unswitch.c: Likewise.
14484         * tree-ssa-loop.c: Likewise.
14485         * tree-ssa-math-opts.c: Likewise.
14486         * tree-ssa-operands.c: Likewise.
14487         * tree-ssa-phiopt.c: Likewise.
14488         * tree-ssa-phiprop.c: Likewise.
14489         * tree-ssa-pre.c: Likewise.
14490         * tree-ssa-propagate.c: Likewise.
14491         * tree-ssa-reassoc.c: Likewise.
14492         * tree-ssa-sccvn.c: Likewise.
14493         * tree-ssa-scopedtables.c: Likewise.
14494         * tree-ssa-sink.c: Likewise.
14495         * tree-ssa-strlen.c: Likewise.
14496         * tree-ssa-structalias.c: Likewise.
14497         * tree-ssa-tail-merge.c: Likewise.
14498         * tree-ssa-ter.c: Likewise.
14499         * tree-ssa-threadedge.c: Likewise.
14500         * tree-ssa-threadupdate.c: Likewise.
14501         * tree-ssa-uncprop.c: Likewise.
14502         * tree-ssa-uninit.c: Likewise.
14503         * tree-ssa.c: Likewise.
14504         * tree-ssanames.c: Likewise.
14505         * tree-stdarg.c: Likewise.
14506         * tree-streamer-in.c: Likewise.
14507         * tree-streamer-out.c: Likewise.
14508         * tree-streamer.c: Likewise.
14509         * tree-switch-conversion.c: Likewise.
14510         * tree-tailcall.c: Likewise.
14511         * tree-vect-data-refs.c: Likewise.
14512         * tree-vect-generic.c: Likewise.
14513         * tree-vect-loop-manip.c: Likewise.
14514         * tree-vect-loop.c: Likewise.
14515         * tree-vect-patterns.c: Likewise.
14516         * tree-vect-slp.c: Likewise.
14517         * tree-vect-stmts.c: Likewise.
14518         * tree-vectorizer.c: Likewise.
14519         * tree-vrp.c: Likewise.
14520         * tree.c: Likewise.
14521         * tsan.c: Likewise.
14522         * ubsan.c: Likewise.
14523         * valtrack.c: Likewise.
14524         * value-prof.c: Likewise.
14525         * var-tracking.c: Likewise.
14526         * varasm.c: Likewise.
14527         * varpool.c: Likewise.
14528         * vmsdbgout.c: Likewise.
14529         * vtable-verify.c: Likewise.
14530         * web.c: Likewise.
14531         * wide-int.cc: Likewise.
14532         * xcoffout.c: Likewise.
14533         * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
14534         * common/common-targhooks.c: Likewise.
14535         * config/aarch64/aarch64-builtins.c: Likewise.
14536         * config/aarch64/aarch64.c: Likewise.
14537         * config/alpha/alpha.c: Likewise.
14538         * config/arc/arc.c: Likewise.
14539         * config/arm/aarch-common.c: Likewise.
14540         * config/arm/arm-builtins.c: Likewise.
14541         * config/arm/arm-c.c: Likewise.
14542         * config/arm/arm.c: Likewise.
14543         * config/avr/avr-c.c: Likewise.
14544         * config/avr/avr-log.c: Likewise.
14545         * config/avr/avr.c: Likewise.
14546         * config/bfin/bfin.c: Likewise.
14547         * config/c6x/c6x.c: Likewise.
14548         * config/cr16/cr16.c: Likewise.
14549         * config/cris/cris.c: Likewise.
14550         * config/darwin-c.c: Likewise.
14551         * config/darwin.c: Likewise.
14552         * config/default-c.c: Likewise.
14553         * config/epiphany/epiphany.c: Likewise.
14554         * config/epiphany/mode-switch-use.c: Likewise.
14555         * config/epiphany/resolve-sw-modes.c: Likewise.
14556         * config/fr30/fr30.c: Likewise.
14557         * config/frv/frv.c: Likewise.
14558         * config/ft32/ft32.c: Likewise.
14559         * config/glibc-c.c: Likewise.
14560         * config/h8300/h8300.c: Likewise.
14561         * config/i386/i386-c.c: Likewise.
14562         * config/i386/i386.c: Likewise.
14563         * config/i386/msformat-c.c: Likewise.
14564         * config/i386/winnt-cxx.c: Likewise.
14565         * config/i386/winnt-stubs.c: Likewise.
14566         * config/i386/winnt.c: Likewise.
14567         * config/ia64/ia64-c.c: Likewise.
14568         * config/ia64/ia64.c: Likewise.
14569         * config/iq2000/iq2000.c: Likewise.
14570         * config/lm32/lm32.c: Likewise.
14571         * config/m32c/m32c-pragma.c: Likewise.
14572         * config/m32c/m32c.c: Likewise.
14573         * config/m32r/m32r.c: Likewise.
14574         * config/m68k/m68k.c: Likewise.
14575         * config/mcore/mcore.c: Likewise.
14576         * config/mep/mep-pragma.c: Likewise.
14577         * config/mep/mep.c: Likewise.
14578         * config/microblaze/microblaze-c.c: Likewise.
14579         * config/microblaze/microblaze.c: Likewise.
14580         * config/mips/mips.c: Likewise.
14581         * config/mmix/mmix.c: Likewise.
14582         * config/mn10300/mn10300.c: Likewise.
14583         * config/moxie/moxie.c: Likewise.
14584         * config/msp430/msp430-c.c: Likewise.
14585         * config/msp430/msp430.c: Likewise.
14586         * config/nds32/nds32-cost.c: Likewise.
14587         * config/nds32/nds32-fp-as-gp.c: Likewise.
14588         * config/nds32/nds32-intrinsic.c: Likewise.
14589         * config/nds32/nds32-isr.c: Likewise.
14590         * config/nds32/nds32-md-auxiliary.c: Likewise.
14591         * config/nds32/nds32-memory-manipulation.c: Likewise.
14592         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14593         * config/nds32/nds32-predicates.c: Likewise.
14594         * config/nds32/nds32.c: Likewise.
14595         * config/nios2/nios2.c: Likewise.
14596         * config/nvptx/nvptx.c: Likewise.
14597         * config/pa/pa.c: Likewise.
14598         * config/pdp11/pdp11.c: Likewise.
14599         * config/rl78/rl78-c.c: Likewise.
14600         * config/rl78/rl78.c: Likewise.
14601         * config/rs6000/rs6000-c.c: Likewise.
14602         * config/rs6000/rs6000.c: Likewise.
14603         * config/rx/rx.c: Likewise.
14604         * config/s390/s390-c.c: Likewise.
14605         * config/s390/s390.c: Likewise.
14606         * config/sh/sh-c.c: Likewise.
14607         * config/sh/sh-mem.cc: Likewise.
14608         * config/sh/sh.c: Likewise.
14609         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14610         * config/sh/sh_treg_combine.cc: Likewise.
14611         * config/sol2-c.c: Likewise.
14612         * config/sol2-cxx.c: Likewise.
14613         * config/sol2-stubs.c: Likewise.
14614         * config/sol2.c: Likewise.
14615         * config/sparc/sparc-c.c: Likewise.
14616         * config/sparc/sparc.c: Likewise.
14617         * config/spu/spu-c.c: Likewise.
14618         * config/spu/spu.c: Likewise.
14619         * config/stormy16/stormy16.c: Likewise.
14620         * config/tilegx/mul-tables.c: Likewise.
14621         * config/tilegx/tilegx-c.c: Likewise.
14622         * config/tilegx/tilegx.c: Likewise.
14623         * config/tilepro/mul-tables.c: Likewise.
14624         * config/tilepro/tilepro-c.c: Likewise.
14625         * config/tilepro/tilepro.c: Likewise.
14626         * config/v850/v850-c.c: Likewise.
14627         * config/v850/v850.c: Likewise.
14628         * config/vax/vax.c: Likewise.
14629         * config/visium/visium.c: Likewise.
14630         * config/vms/vms-c.c: Likewise.
14631         * config/vms/vms.c: Likewise.
14632         * config/vxworks.c: Likewise.
14633         * config/winnt-c.c: Likewise.
14634         * config/xtensa/xtensa.c: Likewise.
14636 2015-06-17  Robert Suchanek  <robert.suchanek@imgtec.com>
14638         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
14639         function.
14640         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
14642 2015-06-17  Richard Biener  <rguenther@suse.de>
14644         PR tree-optimization/66251
14645         * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
14646         stmts for SLP strided stores.
14648         Revert
14649         2015-05-22  Richard Biener  <rguenther@suse.de>
14651         PR tree-optimization/66251
14652         * tree-vect-stmts.c (vectorizable_conversion): Properly
14653         set STMT_VINFO_VEC_STMT even for the SLP case.
14655         2015-05-26  Michael Matz  <matz@suse.de>
14657         PR middle-end/66251
14658         * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
14659         STMT_VINFO_VEC_STMT, also with SLP.
14661 2015-06-16  Uros Bizjak  <ubizjak@gmail.com>
14663         PR target/56766
14664         * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
14665         (*avx_addsubv4df3_1s): Ditto.
14666         (*sse3_addsubv2df3_1): Ditto.
14667         (*sse3_addsubv2df3_1s): Ditto.
14668         (*avx_addsubv8sf3_1): Ditto.
14669         (*avx_addsubv8sf3_1s): Ditto.
14670         (*sse3_addsubv4sf3_1): Ditto.
14671         (*sse3_addsubv4sf3_1s): Ditto.
14673 2015-06-16  Steve Ellcey  <sellcey@imgtec.com>
14675         * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
14676         (SYSROOT_SUFFIX_SPEC): Update.
14677         (SYSROOT_HEADERS_SUFFIX_SPEC): New.
14678         (STARTFILE_PREFIX_SPEC): Update.
14679         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
14680         (MULTILIB_REQUIRED): New.
14681         (MULTILIB_OSDIRNAMES): New.
14682         * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
14683         (MULTILIB_REQUIRED): New.
14684         (MULTILIB_OSDIRNAMES): New.
14686 2015-06-16  Matthew Wahab  <matthew.wahab@arm.com>
14688         * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
14689         * config/aarch64/aarch64-options-extensions.def: Update "fP",
14690         "simd" and "crypto".  Add "lse", "pan", "lor" and "rdma".
14691         * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
14692         (AARCH64_FL_PAN): New.
14693         (AARCH64_FL_LOR): New.
14694         (AARCH64_FL_RDMA): New.
14695         (AARCH64_FL_FOR_ARCH8_1): New.
14696         * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
14697         -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
14699 2015-06-16  Martin Liska  <mliska@suse.cz>
14701         * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
14702         * hash-table.c (void dump_hash_table_loc_statistics): Add missing
14703         guard.
14705 2015-06-16  Richard Biener  <rguenther@suse.de>
14707         * tree-vect-stmts.c (vectorizable_store): Adjust.
14708         (vectorizable_load): Likewise.
14709         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14710         Simplify.
14711         (vect_create_data_ref_ptr): Likewise.
14712         (bump_vector_ptr): Adjust.
14714 2015-06-16  Richard Biener  <rguenther@suse.de>
14716         * tree-vect-stmts.c (vectorizable_load): Properly start loads
14717         with the first element if this is grouped loads.
14719 2015-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
14721         * config/arm/arm-protos.h (struct tune_params): Rename
14722         log_op_non_sc to log_op_non_short_circuit, and rename enum
14723         values to expand SC to SHORT_CIRCUIT.
14724         * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
14725         to LOG_OP_NON_SHORT_CIRCUIT.
14726         (arm_fastmul_tune):Likewise
14727         (arm_strongarm_tune): Likewise.
14728         (arm_xscale_tune): Likewise.
14729         (arm_9e_tune): Likewise.
14730         (arm_marvell_pj4_tune): Likewise.
14731         (arm_v6t2_tune): Likewise.
14732         (arm_cortex_tune): Likewise.
14733         (arm_cortex_a8_tune): Likewise.
14734         (arm_cortex_a7_tune): Likewise.
14735         (arm_cortex_a15_tune): Likewise.
14736         (arm_cortex_a53_tune): Likewise.
14737         (arm_cortex_a57_tune): Likewise.
14738         (arm_xgene1_tune): Likewise.
14739         (arm_cortex_a5_tune): Likewise.
14740         (arm_cortex_a9_tune): Likewise.
14741         (arm_cortex_a12_tune): Likewise.
14742         (arm_v7m_tune): Likewise.
14743         (arm_cortex_m7_tune): Likewise.
14744         (arm_v6m_tune): Likewise.
14745         (arm_fa726te_tune): Likewise.
14747 2015-06-15  David Edelsohn  <dje.gcc@gmail.com>
14749         * altivec.md: Delete UNSPEC_VMLADDUHM.
14750         (mulv4si3_p8): New pattern.
14751         (mulv4si3): Use it for POWER8.
14752         (mulv8hi3): Use vmladduhm with zero addend.
14753         (altivec_vmladduhm): Descriptive RTL.
14755 2015-06-15  Jim Wilson  <jim.wilson@linaro.org>
14757         * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
14758         to use neon_move instead of mov_imm.
14759         (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
14760         (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
14762         * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
14763         aarch64_float_const_zero_rtx_p check before TFmode check.
14764         * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
14765         an fp zero.
14766         (movtf_aarch64): Separate ?rY alternative into two.  Adjust assembly
14767         code and attributes to match.  Change condition from register_operand
14768         to aarch64_reg_or_fp_zero for op1.  Change type for ldp from
14769         neon_load1_2reg to load2.  Change type for stp from neon_store1_2reg
14770         to store2.
14772 2015-06-15  Aldy Hernandez  <aldyh@redhat.com>
14774         PR debug/66535
14775         * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
14776         there is no parent.
14778 2015-06-14  Shiva Chen  <shiva0217@gmail.com>
14780         * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
14781         HOST_WIDE_INT parameter.
14783 2015-06-14  Jan Hubicka  <hubicka@ucw.cz>
14785         PR ipa/66181
14786         * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
14787         * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
14788         TYPE_NO_FORCE_BLK.
14789         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
14791 2015-06-14  Richard Sandiford  <richard.sandiford@arm.com>
14793         * rtl.h (classify_insn): Declare.
14794         * emit-rtl.c (classify_insn): Move to...
14795         * rtl.c: ...here and add generator support.
14796         * gensupport.h (get_emit_function, needs_barrier_p): Declare.
14797         * gensupport.c (get_emit_function, needs_barrier_p): New functions.
14798         * genemit.c (gen_emit_seq): New function.
14799         (gen_expand, gen_split): Use it.
14801 2015-06-13  Patrick Palka  <ppalka@gcc.gnu.org>
14803         * tree.c (make_vector_stat): Fix comment to state that the
14804         function returns a VECTOR_CST.
14806 2015-06-13  Richard Sandiford  <richard.sandiford@arm.com>
14808         * gensupport.h (add_implicit_parallel): Declare.
14809         * genrecog.c (add_implicit_parallel): Move to...
14810         * gensupport.c (add_implicit_parallel): ...here.
14811         (process_one_cond_exec): Use it.
14812         * genemit.c (gen_insn): Likewise.
14814 2015-06-13  Iain Sandoe  <iain@codesourcery.com>
14816         PR bootstrap/66448
14817         * passes.c (rest_of_decl_compilation): Do not register globals for
14818         early debug if they are declared in built-ins.
14820 2015-06-12  Aldy Hernandez  <aldyh@redhat.com>
14822         * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
14824 2015-06-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14826         * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
14827         manually swapping.
14828         (noce_try_cmove_arith): Likewise.
14829         (noce_get_alt_condition): Likewise.
14831 2015-06-12  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14833         * common/config/i386/i386-common.c
14834         (OPTION_MASK_ISA_MWAITX_SET): New.
14835         (ix86_handle_option): Handle mwaitx.
14836         * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
14837         (x86_64-*-*): Likewise.
14838         * config/i386/mwaitxintrin.h: New header.
14839         * config/i386/cpuid.h (bit_MWAITX):  Define.
14840         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14841         MWAITX support.
14842         * config/i386/i386.opt (mwaitx): New.
14843         * config/i386/i386-builtin-types.def
14844         (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
14845         * config/i386/i386-c.c: Define __MWAITX__ if needed.
14846         * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
14847         (PTA_MWAITX): New.
14848         (ix86_option_override_internal): Handle new option.
14849         (processor_alias_table): Added PTA_MWAITX.
14850         (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
14851         (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
14852         (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
14853         IX86_BUILTIN_MONITORX  built-ins.
14854         * config/i386/i386.h (TARGET_MWAITX): New.
14855         * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
14856         UNSPEC_MONITORX.
14857         (mwaitx):  New pattern.
14858         (monitorx_<mode>): New pattern.
14859         * config/i386/x86intrin.h: Include mwaitxintrin.h.
14860         * doc/extend.texi: Document monitorx and mwaitx builtins.
14861         * doc/invoke.texi: Document -mmwaitx option.
14863 2015-06-12  Uros Bizjak  <ubizjak@gmail.com>
14865         * emit-rtl.c (need_atomic_barrier_p): Mask model with
14866         MEMMODEL_BASE_MASK.  Remove MEMMODEL_SYNC_* cases.
14868 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
14870         * dbxout.c (xcoff_debug_hooks): Provide a function for
14871         register_main_translation_unit hook.
14873 2015-06-11  David Edelsohn  <dje.gcc@gmail.com>
14875         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
14876         variants cases from switch.
14877         (rs6000_post_atomic_barrier): Same.
14878         (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
14879         (rs6000_expand_atomic_exchange): Same.
14880         (rs6000_expand_atomic_op): Same.
14881         * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
14882         SYNC variants cases from switch.
14883         (atomic_load): Same.
14884         (atomic_store): Same.
14886 2015-06-11  John David Anglin  <danglin@gcc.gnu.org>
14888         * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
14889         CONST_INT for goto.
14891 2015-06-11  Aldy Hernandez  <aldyh@redhat.com>
14893         PR bootstrap/66448
14894         * dwarf2out.c (check_die): Check for common duplicate attributes.
14895         (add_location_or_const_value_attribute): Do not add duplicate
14896         attributes.
14897         (gen_formal_parameter_die): Do not add DW_AT_artificial the second
14898         time around.
14899         (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
14900         (gen_type_die_with_usage): Call check_die.
14901         (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
14903 2015-06-11  Jason Merrill  <jason@redhat.com>
14905         * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
14906         dies.
14908 2015-06-11  Marek Polacek  <polacek@redhat.com>
14910         * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
14912 2015-06-11  Eric Botcazou  <ebotcazou@adacore.com>
14914         PR bootstrap/66252
14915         * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
14916         * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
14917         (*addx_extend_sp32): Fix pasto.
14918         (*subx_extend): Rename into...
14919         (*subx_extend_sp32): ...this.
14920         (*adddi3_extend_sp32): Add earlyclobber.
14921         (*subdi3_insn_sp32): Likewise.
14922         (*subdi3_extend_sp32): Likewise.
14923         (*and_not_di_sp32): Likewise.
14924         (*or_not_di_sp32): Likewise.
14925         (*xor_not_di_sp32): Likewise.
14926         (*negdi2_sp32): Likewise.
14927         (*one_cmpldi2_sp32): Likewise.
14929 2015-06-11  Pierre-Marie de Rodat  <derodat@adacore.com>
14931         * debug.h (struct gcc_debug_hooks): Add a
14932         register_main_translation_unit hook.
14933         * debug.c (do_nothing_debug_hooks): Provide a function for this
14934         new hook.
14935         * dbxout.c (dbx_debug_hooks): Likewise.
14936         * sdbout.c (sdb_debug_hooks): Likewise.
14937         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
14938         * dwarf2out.c (main_translation_unit): New global variable.
14939         (dwarf2out_register_main_translation_unit): New function
14940         implementing the new hook.
14941         (dwarf2_debug_hooks): Assign
14942         dwarf2out_register_main_translation_unit to this new hook.
14943         (dwarf2out_init): Associate any main translation unit to
14944         comp_unit_die ().
14946 2015-06-11  Marek Polacek  <polacek@redhat.com>
14948         * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
14950 2015-06-11  Marek Polacek  <polacek@redhat.com>
14952         * match.pd: Use single_use throughout.
14954 2015-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14956         * config/arm/arm.c (arm_option_params_internal): When optimising
14957         for speed set max_insns_skipped when arm_restrict_it.
14959 2015-06-11  Christian Bruel  <christian.bruel@st.com>
14961         PR target/52144
14962         * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
14963          macros in ...
14964         (arm_cpu_builtins): New function.
14965         (arm_pragma_target_parse): Call arm_cpu_builtins.
14966         * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
14967         (arm_register_target_pragmas): Likewise.
14968         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
14969          Call arm_register_target_pragmas.
14970         * config/arm/arm-c.c (arm_register_target_pragmas): New function.
14971         (arm_pragma_target_parse): Likewise.
14973 2015-06-10  Kaz Kojima  <kkojima@gcc.gnu.org>
14975         * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
14976         of the second operand.
14978 2015-06-10  Uros Bizjak  <ubizjak@gmail.com>
14980         PR target/66473
14981         * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
14982         to prepare mask operand for AVX512 modes.
14984 2015-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
14986         PR target/66474
14987         * doc/md.texi (Machine Constraints): Document that on the PowerPC
14988         if you use a constraint that targets a VSX register, you must use
14989         %x<n> in the template.
14991 2015-06-10  Max Filippov  <jcmvbkbc@gmail.com>
14993         * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
14994         * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
14995         (define_insn "trap"): New definition.
14997 2015-06-10  Richard Biener  <rguenther@suse.de>
14999         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
15000         out from ...
15001         (vect_supported_load_permutation_p): ... here.  Handle
15002         supportable permutations in reductions.
15003         * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
15004         for vectorizing strided group loads.
15006 2015-06-10  Jakub Jelinek  <jakub@redhat.com>
15008         PR target/66470
15009         * config/i386/i386.c (ix86_split_long_move): For collisions
15010         involving direct tls segment refs, move the UNSPEC_TP possibly
15011         wrapped in ZERO_EXTEND out of the address for lea, to each of
15012         the memory loads.
15014 2015-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15016         * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
15017         dmb sy. Adjust tabs.
15019 2015-06-10  Tom de Vries  <tom@codesourcery.com>
15021         * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
15023 2015-06-10  Martin Liska  <mliska@suse.cz>
15025         PR bootstrap/66471
15026         * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
15027         all enum values in mem_alloc_origin.
15028         * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
15029         name.
15030         * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
15031         * bitmap.c (bitmap_register): Likewise.
15032         (dump_bitmap_statistics): Likewise.
15033         * ggc-common.c (dump_ggc_loc_statistics): Likewise.
15034         (ggc_record_overhead): Likewise.
15035         * hash-map.h: Likewise.
15036         * hash-set.h: Likewise.
15037         * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
15038         * hash-table.h: Likewise.
15039         * vec.c (vec_prefix::register_overhead): Likewise.
15040         (vec_prefix::release_overhead): Likewise.
15041         (dump_vec_loc_statistics): Likewise.
15043 2015-06-09  Christian Bruel  <christian.bruel@st.com>
15045         PR target/52144
15046         * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
15047         * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
15048         (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
15049         * config/arm/arm.h (SWITCHABLE_TARGET): Define.
15050         * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
15051         (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
15052         (arm_valid_target_attribute_p): Likewise.
15053         (arm_set_current_function, arm_can_inline_p): Likewise.
15054         (arm_valid_target_attribute_rec): Likewise.
15055         (arm_previous_fndecl): New variable.
15056         (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
15057         (TARGET_CAN_INLINE_P): Define.
15058         (arm_asm_trampoline_template): Emit mode.
15059         (arm_file_start): Don't set unified syntax.
15060         (arm_declare_function_name): Set unified syntax and mode.
15061         (arm_option_override): Init target_option_default_node.
15062         and target_option_current_node.
15063         * config/arm/arm.md (*call_value_symbol): Set mode when possible.
15064         (*call_symbol): Likewise.
15065         * doc/extend.texi: Document ARM/Thumb target attribute.
15066         * doc/invoke.texi: Likewise.
15068 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15070         Revert:
15071         2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15072         PR rtl-optimization/64164
15073         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15074         * tree-ssa-copyrename.c: Removed.
15075         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15076         -ftree-coalesce-vars.
15077         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15078         * common.opt (ftree-copyrename): Ignore.
15079         (ftree-coalesce-inlined-vars): Likewise.
15080         * doc/invoke.texi: Remove the ignored options above.
15081         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15082         * tree-ssa-coalesce.h: ... here.
15083         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15084         headers required by it.
15085         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15086         across variables when flag_tree_coalesce_vars.  Check register
15087         use and promoted modes to allow coalescing.  Moved to
15088         tree-ssa-coalesce.c.
15089         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15090         with its member functions to tree-ssa-coalesce.c.
15091         (var_map_base_init): Likewise.  Renamed to
15092         compute_samebase_partition_bases.
15093         (partition_view_normal): Drop want_bases parameter.
15094         (partition_view_bitmap): Likewise.
15095         * tree-ssa-live.h: Adjust declarations.
15096         * tree-ssa-coalesce.c: Include explow.h.
15097         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15098         default defs at the entry point.
15099         (dump_part_var_map): New.
15100         (compute_optimized_partition_bases): New, called by...
15101         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15102         of compute_samebase_partition_bases.  Adjust.
15103         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15104         * cfgexpand.c (leader_merge): New.
15105         (get_rtl_for_parm_ssa_default_def): New.
15106         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15107         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15108         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15109         redundant MEM attr setting.
15110         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15111         from...
15112         (expand_one_stack_var): ... this.  New wrapper to check and
15113         skip already expanded SSA partitions.
15114         (record_alignment_for_reg_var): New, factored out of...
15115         (expand_one_var): ... this.
15116         (expand_one_ssa_partition): New.
15117         (adjust_one_expanded_partition_var): New.
15118         (expand_one_register_var): Check and skip already expanded SSA
15119         partitions.
15120         (expand_used_vars): Don't create DECLs for anonymous SSA
15121         names.  Expand all SSA partitions, then adjust all SSA names.
15122         (pass::execute): Replace the loops that set
15123         SA.partition_to_pseudo from partition leaders and cleared
15124         DECL_RTL for multi-location variables, and that which used to
15125         rename vars and set attrs, with one that clears DECL_RTL and
15126         checks that PARMs and RESULTs default_defs match DECL_RTL.
15127         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15128         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15129         * explow.c (promote_ssa_mode): New.
15130         * explow.h (promote_ssa_mode): Declare.
15131         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15132         * function.c: Include cfgexpand.h.
15133         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15134         (use_register_for_parm_decl): Wrapper for the above to
15135         special-case the result_ptr.
15136         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15137         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15138         multiple locations.
15139         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15140         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15141         (assign_parm_setup_block): Prefer SSA-assigned location.
15142         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15143         if stack_parm is NULL.
15144         (assign_parm_setup_stack): Prefer SSA-assigned location.
15145         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15146         rtl before testing for pointer bounds.  Special-case result_ptr.
15147         (expand_function_start): Maybe reset DECL_RTL of result.
15148         Prefer SSA-assigned location for result and static chain.
15149         Factor out DECL_RESULT and SET_DECL_RTL.
15150         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15151         anonymous SSA names.  Use promote_ssa_mode.
15152         (get_temp_reg): Likewise.
15153         (remove_ssa_form): Adjust.
15154         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15155         and get its reg_usage for reg invalidation.
15156         (compute_bb_dataflow): Pass it insn.
15157         (emit_notes_in_bb): Likewise.
15158         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15159         fail assert on conversion between unsigned types.
15161 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15163         PR tree-optimization/65460
15164         * omp-low.c (expand_omp_target): Set parallelized_function on
15165         cgraph_node for child_fn.
15167 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15169         * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
15170         parallelized_function before add_new_function.
15172 2015-06-09  Andrew MacLeod  <amacleod@redhat.com>
15174         * gcc-plugin.h: Move decls to plugin.h and include it.
15175         * plugin.h: Relocate decls from gcc-plugin.h
15176         * ggc-page.c: Include required header files.
15177         * passes.c: Likewise.
15178         * cgraphunit.c: Likewise.
15180 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15182         * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
15184 2015-06-09  Jason Merrill  <jason@redhat.com>
15186         PR bootstrap/66448
15187         * toplev.c (check_global_declaration): Don't warn about a clone.
15189 2015-06-09  Marek Polacek  <polacek@redhat.com>
15191         PR tree-optimization/66299
15192         * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
15193         ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
15194         patterns.
15196 2015-06-09  Richard Biener  <rguenther@suse.de>
15198         * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
15199         (vect_analyze_slp_instance): Instead do not falsely drop
15200         load permutations.
15202 2015-06-09  Richard Biener  <rguenther@suse.de>
15204         PR middle-end/66423
15205         * match.pd: Handle A % (unsigned)(1 << B).
15207 2015-06-09  Aldy Hernandez  <aldyh@redhat.com>
15209         * varasm.c (output_object_block_htab): Remove.
15210         (output_object_block_compare): New.
15211         (output_object_blocks): Sort named object_blocks before outputting
15212         them.
15214 2015-06-09  Richard Biener  <rguenther@suse.de>
15216         PR tree-optimization/66419
15217         * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
15218         consider GROUP_GAP when detecting a perfect subchain.
15220 2015-06-09  Nick Clifton  <nickc@redhat.com>
15222         * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
15223         place read only data in the .frodata section.
15225 2015-06-09  Shiva Chen  <shiva0217@gmail.com>
15227         * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
15228         (atomic_store<mode>): Likewise.
15230 2015-06-09  Richard Biener  <rguenther@suse.de>
15232         * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
15234 2015-06-09  Richard Biener  <rguenther@suse.de>
15236         PR middle-end/66413
15237         * tree-inline.c (insert_init_debug_bind): Unshare value.
15239 2015-06-09  Richard Biener  <rguenther@suse.de>
15241         PR tree-optimization/66396
15242         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
15243         Rename virtual operands.
15245 2015-06-09  Tom de Vries  <tom@codesourcery.com>
15247         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
15248         always return false.
15250 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15252         PR rtl-optimization/64164
15253         * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15254         * tree-ssa-copyrename.c: Removed.
15255         * opts.c (default_options_table): Drop -ftree-copyrename.  Add
15256         -ftree-coalesce-vars.
15257         * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15258         * common.opt (ftree-copyrename): Ignore.
15259         (ftree-coalesce-inlined-vars): Likewise.
15260         * doc/invoke.texi: Remove the ignored options above.
15261         * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15262         * tree-ssa-coalesce.h: ... here.
15263         * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15264         headers required by it.
15265         * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15266         across variables when flag_tree_coalesce_vars.  Check register
15267         use and promoted modes to allow coalescing.  Moved to
15268         tree-ssa-coalesce.c.
15269         * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15270         with its member functions to tree-ssa-coalesce.c.
15271         (var_map_base_init): Likewise.  Renamed to
15272         compute_samebase_partition_bases.
15273         (partition_view_normal): Drop want_bases parameter.
15274         (partition_view_bitmap): Likewise.
15275         * tree-ssa-live.h: Adjust declarations.
15276         * tree-ssa-coalesce.c: Include explow.h.
15277         (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15278         default defs at the entry point.
15279         (dump_part_var_map): New.
15280         (compute_optimized_partition_bases): New, called by...
15281         (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15282         of compute_samebase_partition_bases.  Adjust.
15283         * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15284         * cfgexpand.c (leader_merge): New.
15285         (get_rtl_for_parm_ssa_default_def): New.
15286         (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15287         vars.  Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15288         (expand_one_stack_var_at): Handle anonymous SSA_NAMEs.  Drop
15289         redundant MEM attr setting.
15290         (expand_one_stack_var_1): Handle anonymous SSA_NAMEs.  Renamed
15291         from...
15292         (expand_one_stack_var): ... this.  New wrapper to check and
15293         skip already expanded SSA partitions.
15294         (record_alignment_for_reg_var): New, factored out of...
15295         (expand_one_var): ... this.
15296         (expand_one_ssa_partition): New.
15297         (adjust_one_expanded_partition_var): New.
15298         (expand_one_register_var): Check and skip already expanded SSA
15299         partitions.
15300         (expand_used_vars): Don't create DECLs for anonymous SSA
15301         names.  Expand all SSA partitions, then adjust all SSA names.
15302         (pass::execute): Replace the loops that set
15303         SA.partition_to_pseudo from partition leaders and cleared
15304         DECL_RTL for multi-location variables, and that which used to
15305         rename vars and set attrs, with one that clears DECL_RTL and
15306         checks that PARMs and RESULTs default_defs match DECL_RTL.
15307         * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15308         * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15309         * explow.c (promote_ssa_mode): New.
15310         * explow.h (promote_ssa_mode): Declare.
15311         * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15312         * function.c: Include cfgexpand.h.
15313         (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15314         (use_register_for_parm_decl): Wrapper for the above to
15315         special-case the result_ptr.
15316         (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15317         (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15318         multiple locations.
15319         (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15320         for rtl_for_parm.  For SSA-assigned parms, zero stack_parm.
15321         (assign_parm_setup_block): Prefer SSA-assigned location.
15322         (assign_parm_setup_reg): Likewise.  Use entry_parm for equiv
15323         if stack_parm is NULL.
15324         (assign_parm_setup_stack): Prefer SSA-assigned location.
15325         (assign_parms): Maybe reset DECL_RTL of params.  Adjust stack
15326         rtl before testing for pointer bounds.  Special-case result_ptr.
15327         (expand_function_start): Maybe reset DECL_RTL of result.
15328         Prefer SSA-assigned location for result and static chain.
15329         Factor out DECL_RESULT and SET_DECL_RTL.
15330         * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15331         anonymous SSA names.  Use promote_ssa_mode.
15332         (get_temp_reg): Likewise.
15333         (remove_ssa_form): Adjust.
15334         * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15335         and get its reg_usage for reg invalidation.
15336         (compute_bb_dataflow): Pass it insn.
15337         (emit_notes_in_bb): Likewise.
15338         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
15339         fail assert on conversion between unsigned types.
15341 2015-06-09  Alexandre Oliva  <aoliva@redhat.com>
15343         PR debug/58315
15344         * tree-inline.c (reset_debug_binding): New.
15345         (reset_debug_bindings): Likewise.
15346         (expand_call_inline): Call it.
15348 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
15350         * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
15351         TYPE_STRING_FLAG.
15353 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
15355         * lto-streamer-out.c (lto_output_location): Stream
15356         reserved locations correctly.
15357         * lto-streamer-in.c (lto_output_location): Likewise.
15359 2015-06-08  Andrew MacLeod  <amacleod@redhat.com>
15361         * coretypes.h: Include hash-table.h and hash-set.h for host files.
15362         * ggc.h: Don't include statistics.h>
15363         * hash-map.h: Remove all includes.
15364         * hash-set.h: Likewise.
15365         * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
15366         the include list. Remove <new>.
15367         * inchash.h: Remove all includes.
15368         * mem-stats.h: Likewise.
15369         * vec.h: No special processing for generators or ggc.
15370         * alias.c : Adjust include files.
15371         * alloc-pool.c : Likewise.
15372         * alloc-pool.h : Likewise.
15373         * asan.c : Likewise.
15374         * attribs.c : Likewise.
15375         * auto-inc-dec.c : Likewise.
15376         * auto-profile.c : Likewise.
15377         * bb-reorder.c : Likewise.
15378         * bitmap.c : Likewise.
15379         * bitmap.h : Likewise.
15380         * bt-load.c : Likewise.
15381         * builtins.c : Likewise.
15382         * caller-save.c : Likewise.
15383         * calls.c : Likewise.
15384         * ccmp.c : Likewise.
15385         * cfg.c : Likewise.
15386         * cfganal.c : Likewise.
15387         * cfgbuild.c : Likewise.
15388         * cfgcleanup.c : Likewise.
15389         * cfgexpand.c : Likewise.
15390         * cfghooks.c : Likewise.
15391         * cfgloop.c : Likewise.
15392         * cfgloop.h : Likewise.
15393         * cfgloopanal.c : Likewise.
15394         * cfgloopmanip.c : Likewise.
15395         * cfgrtl.c : Likewise.
15396         * cgraph.c : Likewise.
15397         * cgraphbuild.c : Likewise.
15398         * cgraphclones.c : Likewise.
15399         * cgraphunit.c : Likewise.
15400         * cilk-common.c : Likewise.
15401         * combine-stack-adj.c : Likewise.
15402         * combine.c : Likewise.
15403         * compare-elim.c : Likewise.
15404         * context.c : Likewise.
15405         * convert.c : Likewise.
15406         * coverage.c : Likewise.
15407         * cppbuiltin.c : Likewise.
15408         * cprop.c : Likewise.
15409         * cse.c : Likewise.
15410         * cselib.c : Likewise.
15411         * data-streamer-in.c : Likewise.
15412         * data-streamer-out.c : Likewise.
15413         * data-streamer.c : Likewise.
15414         * data-streamer.h : Likewise.
15415         * dbxout.c : Likewise.
15416         * dce.c : Likewise.
15417         * ddg.c : Likewise.
15418         * debug.c : Likewise.
15419         * df-core.c : Likewise.
15420         * df-problems.c : Likewise.
15421         * df-scan.c : Likewise.
15422         * df.h : Likewise.
15423         * dfp.c : Likewise.
15424         * dojump.c : Likewise.
15425         * dominance.c : Likewise.
15426         * domwalk.c : Likewise.
15427         * double-int.c : Likewise.
15428         * dse.c : Likewise.
15429         * dumpfile.c : Likewise.
15430         * dwarf2asm.c : Likewise.
15431         * dwarf2cfi.c : Likewise.
15432         * dwarf2out.c : Likewise.
15433         * emit-rtl.c : Likewise.
15434         * et-forest.c : Likewise.
15435         * except.c : Likewise.
15436         * except.h : Likewise.
15437         * explow.c : Likewise.
15438         * expmed.c : Likewise.
15439         * expr.c : Likewise.
15440         * final.c : Likewise.
15441         * fixed-value.c : Likewise.
15442         * fold-const.c : Likewise.
15443         * function.c : Likewise.
15444         * fwprop.c : Likewise.
15445         * gcc-plugin.h : Likewise.
15446         * gcc.c : Likewise.
15447         * gcse-common.c : Likewise.
15448         * gcse.c : Likewise.
15449         * genattrtab.c : Likewise.
15450         * genautomata.c : Likewise.
15451         * genconditions.c : Likewise.
15452         * genemit.c : Likewise.
15453         * generic-match-head.c : Likewise.
15454         * genextract.c : Likewise.
15455         * gengtype-state.c : Likewise.
15456         * gengtype.c : Likewise.
15457         * genhooks.c : Likewise.
15458         * genmatch.c : Likewise.
15459         * genmodes.c : Likewise.
15460         * genrecog.c : Likewise.
15461         * gensupport.c : Likewise.
15462         * ggc-common.c : Likewise.
15463         * ggc-internal.h : Likewise.
15464         * ggc-none.c : Likewise.
15465         * ggc-page.c : Likewise.
15466         * gimple-builder.c : Likewise.
15467         * gimple-expr.c : Likewise.
15468         * gimple-fold.c : Likewise.
15469         * gimple-iterator.c : Likewise.
15470         * gimple-low.c : Likewise.
15471         * gimple-match-head.c : Likewise.
15472         * gimple-pretty-print.c : Likewise.
15473         * gimple-ssa-isolate-paths.c : Likewise.
15474         * gimple-ssa-strength-reduction.c : Likewise.
15475         * gimple-ssa.h : Likewise.
15476         * gimple-streamer-in.c : Likewise.
15477         * gimple-streamer-out.c : Likewise.
15478         * gimple-streamer.h : Likewise.
15479         * gimple-walk.c : Likewise.
15480         * gimple.c : Likewise.
15481         * gimplify-me.c : Likewise.
15482         * gimplify.c : Likewise.
15483         * godump.c : Likewise.
15484         * graph.c : Likewise.
15485         * graphds.c : Likewise.
15486         * graphite-blocking.c : Likewise.
15487         * graphite-dependences.c : Likewise.
15488         * graphite-interchange.c : Likewise.
15489         * graphite-isl-ast-to-gimple.c : Likewise.
15490         * graphite-optimize-isl.c : Likewise.
15491         * graphite-poly.c : Likewise.
15492         * graphite-scop-detection.c : Likewise.
15493         * graphite-sese-to-poly.c : Likewise.
15494         * graphite.c : Likewise.
15495         * haifa-sched.c : Likewise.
15496         * hard-reg-set.h : Likewise.
15497         * hw-doloop.c : Likewise.
15498         * ifcvt.c : Likewise.
15499         * inchash.c : Likewise.
15500         * incpath.c : Likewise.
15501         * init-regs.c : Likewise.
15502         * input.c : Likewise.
15503         * internal-fn.c : Likewise.
15504         * ipa-chkp.c : Likewise.
15505         * ipa-comdats.c : Likewise.
15506         * ipa-cp.c : Likewise.
15507         * ipa-devirt.c : Likewise.
15508         * ipa-icf-gimple.c : Likewise.
15509         * ipa-icf.c : Likewise.
15510         * ipa-inline-analysis.c : Likewise.
15511         * ipa-inline-transform.c : Likewise.
15512         * ipa-inline.c : Likewise.
15513         * ipa-polymorphic-call.c : Likewise.
15514         * ipa-profile.c : Likewise.
15515         * ipa-prop.c : Likewise.
15516         * ipa-pure-const.c : Likewise.
15517         * ipa-ref.c : Likewise.
15518         * ipa-reference.c : Likewise.
15519         * ipa-split.c : Likewise.
15520         * ipa-utils.c : Likewise.
15521         * ipa-visibility.c : Likewise.
15522         * ipa.c : Likewise.
15523         * ira-build.c : Likewise.
15524         * ira-color.c : Likewise.
15525         * ira-conflicts.c : Likewise.
15526         * ira-costs.c : Likewise.
15527         * ira-emit.c : Likewise.
15528         * ira-lives.c : Likewise.
15529         * ira.c : Likewise.
15530         * jump.c : Likewise.
15531         * langhooks.c : Likewise.
15532         * lcm.c : Likewise.
15533         * libfuncs.h : Likewise.
15534         * lists.c : Likewise.
15535         * loop-doloop.c : Likewise.
15536         * loop-init.c : Likewise.
15537         * loop-invariant.c : Likewise.
15538         * loop-iv.c : Likewise.
15539         * loop-unroll.c : Likewise.
15540         * lower-subreg.c : Likewise.
15541         * lra-assigns.c : Likewise.
15542         * lra-coalesce.c : Likewise.
15543         * lra-constraints.c : Likewise.
15544         * lra-eliminations.c : Likewise.
15545         * lra-lives.c : Likewise.
15546         * lra-remat.c : Likewise.
15547         * lra-spills.c : Likewise.
15548         * lra.c : Likewise.
15549         * lto-cgraph.c : Likewise.
15550         * lto-compress.c : Likewise.
15551         * lto-opts.c : Likewise.
15552         * lto-section-in.c : Likewise.
15553         * lto-section-out.c : Likewise.
15554         * lto-streamer-in.c : Likewise.
15555         * lto-streamer-out.c : Likewise.
15556         * lto-streamer.c : Likewise.
15557         * lto-streamer.h : Likewise.
15558         * mcf.c : Likewise.
15559         * mode-switching.c : Likewise.
15560         * modulo-sched.c : Likewise.
15561         * omega.c : Likewise.
15562         * omp-low.c : Likewise.
15563         * optabs.c : Likewise.
15564         * opts-global.c : Likewise.
15565         * opts.h : Likewise.
15566         * passes.c : Likewise.
15567         * plugin.c : Likewise.
15568         * postreload-gcse.c : Likewise.
15569         * postreload.c : Likewise.
15570         * predict.c : Likewise.
15571         * print-rtl.c : Likewise.
15572         * print-tree.c : Likewise.
15573         * profile.c : Likewise.
15574         * read-md.c : Likewise.
15575         * read-md.h : Likewise.
15576         * read-rtl.c : Likewise.
15577         * real.c : Likewise.
15578         * realmpfr.c : Likewise.
15579         * recog.c : Likewise.
15580         * ree.c : Likewise.
15581         * reg-stack.c : Likewise.
15582         * regcprop.c : Likewise.
15583         * reginfo.c : Likewise.
15584         * regrename.c : Likewise.
15585         * regstat.c : Likewise.
15586         * reload.c : Likewise.
15587         * reload1.c : Likewise.
15588         * reorg.c : Likewise.
15589         * resource.c : Likewise.
15590         * rtl-chkp.c : Likewise.
15591         * rtl.c : Likewise.
15592         * rtl.h : Likewise.
15593         * rtlanal.c : Likewise.
15594         * rtlhash.c : Likewise.
15595         * rtlhash.h : Likewise.
15596         * rtlhooks.c : Likewise.
15597         * sanopt.c : Likewise.
15598         * sched-deps.c : Likewise.
15599         * sched-ebb.c : Likewise.
15600         * sched-rgn.c : Likewise.
15601         * sched-vis.c : Likewise.
15602         * sdbout.c : Likewise.
15603         * sel-sched-dump.c : Likewise.
15604         * sel-sched-ir.c : Likewise.
15605         * sel-sched-ir.h : Likewise.
15606         * sel-sched.c : Likewise.
15607         * sese.c : Likewise.
15608         * shrink-wrap.c : Likewise.
15609         * shrink-wrap.h : Likewise.
15610         * simplify-rtx.c : Likewise.
15611         * stack-ptr-mod.c : Likewise.
15612         * statistics.c : Likewise.
15613         * stmt.c : Likewise.
15614         * stor-layout.c : Likewise.
15615         * store-motion.c : Likewise.
15616         * stringpool.c : Likewise.
15617         * symtab.c : Likewise.
15618         * target-globals.c : Likewise.
15619         * targhooks.c : Likewise.
15620         * tlink.c : Likewise.
15621         * toplev.c : Likewise.
15622         * tracer.c : Likewise.
15623         * trans-mem.c : Likewise.
15624         * tree-affine.c : Likewise.
15625         * tree-affine.h : Likewise.
15626         * tree-browser.c : Likewise.
15627         * tree-call-cdce.c : Likewise.
15628         * tree-cfg.c : Likewise.
15629         * tree-cfgcleanup.c : Likewise.
15630         * tree-chkp-opt.c : Likewise.
15631         * tree-chkp.c : Likewise.
15632         * tree-chrec.c : Likewise.
15633         * tree-complex.c : Likewise.
15634         * tree-data-ref.c : Likewise.
15635         * tree-dfa.c : Likewise.
15636         * tree-diagnostic.c : Likewise.
15637         * tree-dump.c : Likewise.
15638         * tree-eh.c : Likewise.
15639         * tree-eh.h : Likewise.
15640         * tree-emutls.c : Likewise.
15641         * tree-hasher.h : Likewise.
15642         * tree-if-conv.c : Likewise.
15643         * tree-inline.c : Likewise.
15644         * tree-inline.h : Likewise.
15645         * tree-into-ssa.c : Likewise.
15646         * tree-iterator.c : Likewise.
15647         * tree-loop-distribution.c : Likewise.
15648         * tree-nested.c : Likewise.
15649         * tree-nrv.c : Likewise.
15650         * tree-object-size.c : Likewise.
15651         * tree-outof-ssa.c : Likewise.
15652         * tree-parloops.c : Likewise.
15653         * tree-phinodes.c : Likewise.
15654         * tree-predcom.c : Likewise.
15655         * tree-pretty-print.c : Likewise.
15656         * tree-profile.c : Likewise.
15657         * tree-scalar-evolution.c : Likewise.
15658         * tree-sra.c : Likewise.
15659         * tree-ssa-address.c : Likewise.
15660         * tree-ssa-alias.c : Likewise.
15661         * tree-ssa-ccp.c : Likewise.
15662         * tree-ssa-coalesce.c : Likewise.
15663         * tree-ssa-copy.c : Likewise.
15664         * tree-ssa-copyrename.c : Likewise.
15665         * tree-ssa-dce.c : Likewise.
15666         * tree-ssa-dom.c : Likewise.
15667         * tree-ssa-dse.c : Likewise.
15668         * tree-ssa-forwprop.c : Likewise.
15669         * tree-ssa-ifcombine.c : Likewise.
15670         * tree-ssa-live.c : Likewise.
15671         * tree-ssa-loop-ch.c : Likewise.
15672         * tree-ssa-loop-im.c : Likewise.
15673         * tree-ssa-loop-ivcanon.c : Likewise.
15674         * tree-ssa-loop-ivopts.c : Likewise.
15675         * tree-ssa-loop-manip.c : Likewise.
15676         * tree-ssa-loop-niter.c : Likewise.
15677         * tree-ssa-loop-prefetch.c : Likewise.
15678         * tree-ssa-loop-unswitch.c : Likewise.
15679         * tree-ssa-loop.c : Likewise.
15680         * tree-ssa-math-opts.c : Likewise.
15681         * tree-ssa-operands.c : Likewise.
15682         * tree-ssa-phiopt.c : Likewise.
15683         * tree-ssa-phiprop.c : Likewise.
15684         * tree-ssa-pre.c : Likewise.
15685         * tree-ssa-propagate.c : Likewise.
15686         * tree-ssa-reassoc.c : Likewise.
15687         * tree-ssa-sccvn.c : Likewise.
15688         * tree-ssa-scopedtables.c : Likewise.
15689         * tree-ssa-sink.c : Likewise.
15690         * tree-ssa-strlen.c : Likewise.
15691         * tree-ssa-structalias.c : Likewise.
15692         * tree-ssa-tail-merge.c : Likewise.
15693         * tree-ssa-ter.c : Likewise.
15694         * tree-ssa-threadedge.c : Likewise.
15695         * tree-ssa-threadupdate.c : Likewise.
15696         * tree-ssa-uncprop.c : Likewise.
15697         * tree-ssa-uninit.c : Likewise.
15698         * tree-ssa.c : Likewise.
15699         * tree-ssanames.c : Likewise.
15700         * tree-stdarg.c : Likewise.
15701         * tree-streamer-in.c : Likewise.
15702         * tree-streamer-out.c : Likewise.
15703         * tree-streamer.c : Likewise.
15704         * tree-streamer.h : Likewise.
15705         * tree-switch-conversion.c : Likewise.
15706         * tree-tailcall.c : Likewise.
15707         * tree-vect-data-refs.c : Likewise.
15708         * tree-vect-generic.c : Likewise.
15709         * tree-vect-loop-manip.c : Likewise.
15710         * tree-vect-loop.c : Likewise.
15711         * tree-vect-patterns.c : Likewise.
15712         * tree-vect-slp.c : Likewise.
15713         * tree-vect-stmts.c : Likewise.
15714         * tree-vectorizer.c : Likewise.
15715         * tree-vectorizer.h : Likewise.
15716         * tree-vrp.c : Likewise.
15717         * tree.c : Likewise.
15718         * tsan.c : Likewise.
15719         * ubsan.c : Likewise.
15720         * valtrack.c : Likewise.
15721         * valtrack.h : Likewise.
15722         * value-prof.c : Likewise.
15723         * var-tracking.c : Likewise.
15724         * varasm.c : Likewise.
15725         * varpool.c : Likewise.
15726         * vec.c: Likewise.
15727         * vmsdbgout.c : Likewise.
15728         * vtable-verify.c : Likewise.
15729         * vtable-verify.h : Likewise.
15730         * web.c : Likewise.
15731         * wide-int.cc : Likewise.
15732         * xcoffout.c : Likewise.
15733         * config/aarch64/aarch64-builtins.c : Likewise.
15734         * config/aarch64/aarch64.c : Likewise.
15735         * config/aarch64/cortex-a57-fma-steering.c : Likewise.
15736         * config/alpha/alpha.c : Likewise.
15737         * config/arc/arc.c : Likewise.
15738         * config/arm/aarch-common.c : Likewise.
15739         * config/arm/arm-builtins.c : Likewise.
15740         * config/arm/arm-c.c : Likewise.
15741         * config/arm/arm.c : Likewise.
15742         * config/avr/avr-c.c : Likewise.
15743         * config/avr/avr-log.c : Likewise.
15744         * config/avr/avr.c : Likewise.
15745         * config/bfin/bfin.c : Likewise.
15746         * config/c6x/c6x.c : Likewise.
15747         * config/cr16/cr16.c : Likewise.
15748         * config/cris/cris.c : Likewise.
15749         * config/darwin-c.c : Likewise.
15750         * config/darwin.c : Likewise.
15751         * config/default-c.c : Likewise.
15752         * config/epiphany/epiphany.c : Likewise.
15753         * config/epiphany/mode-switch-use.c : Likewise.
15754         * config/epiphany/resolve-sw-modes.c : Likewise.
15755         * config/fr30/fr30.c : Likewise.
15756         * config/frv/frv.c : Likewise.
15757         * config/ft32/ft32.c : Likewise.
15758         * config/glibc-c.c : Likewise.
15759         * config/h8300/h8300.c : Likewise.
15760         * config/i386/i386-c.c : Likewise.
15761         * config/i386/i386.c : Likewise.
15762         * config/i386/msformat-c.c : Likewise.
15763         * config/i386/winnt-cxx.c : Likewise.
15764         * config/i386/winnt-stubs.c : Likewise.
15765         * config/i386/winnt.c : Likewise.
15766         * config/ia64/ia64-c.c : Likewise.
15767         * config/ia64/ia64.c : Likewise.
15768         * config/iq2000/iq2000.c : Likewise.
15769         * config/lm32/lm32.c : Likewise.
15770         * config/m32c/m32c-pragma.c : Likewise.
15771         * config/m32c/m32c.c : Likewise.
15772         * config/m32r/m32r.c : Likewise.
15773         * config/m68k/m68k.c : Likewise.
15774         * config/mcore/mcore.c : Likewise.
15775         * config/mep/mep-pragma.c : Likewise.
15776         * config/mep/mep.c : Likewise.
15777         * config/microblaze/microblaze-c.c : Likewise.
15778         * config/microblaze/microblaze.c : Likewise.
15779         * config/mips/mips.c : Likewise.
15780         * config/mmix/mmix.c : Likewise.
15781         * config/mn10300/mn10300.c : Likewise.
15782         * config/moxie/moxie.c : Likewise.
15783         * config/msp430/msp430-c.c : Likewise.
15784         * config/msp430/msp430.c : Likewise.
15785         * config/nds32/nds32-cost.c : Likewise.
15786         * config/nds32/nds32-fp-as-gp.c : Likewise.
15787         * config/nds32/nds32-intrinsic.c : Likewise.
15788         * config/nds32/nds32-isr.c : Likewise.
15789         * config/nds32/nds32-md-auxiliary.c : Likewise.
15790         * config/nds32/nds32-memory-manipulation.c : Likewise.
15791         * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
15792         * config/nds32/nds32-predicates.c : Likewise.
15793         * config/nds32/nds32.c : Likewise.
15794         * config/nios2/nios2.c : Likewise.
15795         * config/nvptx/nvptx.c : Likewise.
15796         * config/pa/pa.c : Likewise.
15797         * config/pdp11/pdp11.c : Likewise.
15798         * config/rl78/rl78-c.c : Likewise.
15799         * config/rl78/rl78.c : Likewise.
15800         * config/rs6000/rs6000-c.c : Likewise.
15801         * config/rs6000/rs6000.c : Likewise.
15802         * config/rx/rx.c : Likewise.
15803         * config/s390/s390-c.c : Likewise.
15804         * config/s390/s390.c : Likewise.
15805         * config/sh/sh-c.c : Likewise.
15806         * config/sh/sh-mem.cc : Likewise.
15807         * config/sh/sh.c : Likewise.
15808         * config/sh/sh_optimize_sett_clrt.cc : Likewise.
15809         * config/sh/sh_treg_combine.cc : Likewise.
15810         * config/sol2-c.c : Likewise.
15811         * config/sol2-cxx.c : Likewise.
15812         * config/sol2-stubs.c : Likewise.
15813         * config/sol2.c : Likewise.
15814         * config/sparc/sparc-c.c : Likewise.
15815         * config/sparc/sparc.c : Likewise.
15816         * config/spu/spu-c.c : Likewise.
15817         * config/spu/spu.c : Likewise.
15818         * config/stormy16/stormy16.c : Likewise.
15819         * config/tilegx/mul-tables.c : Likewise.
15820         * config/tilegx/tilegx-c.c : Likewise.
15821         * config/tilegx/tilegx.c : Likewise.
15822         * config/tilepro/mul-tables.c : Likewise.
15823         * config/tilepro/tilepro-c.c : Likewise.
15824         * config/tilepro/tilepro.c : Likewise.
15825         * config/v850/v850-c.c : Likewise.
15826         * config/v850/v850.c : Likewise.
15827         * config/vax/vax.c : Likewise.
15828         * config/visium/visium.c : Likewise.
15829         * config/vms/vms-c.c : Likewise.
15830         * config/vms/vms.c : Likewise.
15831         * config/vxworks.c : Likewise.
15832         * config/winnt-c.c : Likewise.
15833         * config/xtensa/xtensa.c : Likewise.
15835 2015-06-08  Jan Hubicka  <hubicka@ucw.cz>
15837         PR lto/65378
15838         * ipa-utils.h (warn_types_mismatch): Update prototype.
15839         * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
15840         parameters.
15841         (type_mismatch_p): New function.
15842         (warn_types_mismatch): Reorg to work better on non-C++ types.
15843         (odr_types_equivalent_p): Add loc1/loc2 parameters.
15844         (add_type_duplicate): Update.
15846 2015-06-08  Tom de Vries  <tom@codesourcery.com>
15848         PR rtl-optimization/66444
15849         * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
15850         call_used_regs.
15852 2015-06-08  Richard Biener  <rguenther@suse.de>
15854         PR tree-optimization/66422
15855         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
15856         block after inserted gcc_unreachable.
15858 2015-06-08  Nick Clifton  <nickc@redhat.com>
15860         * config/rx/rx.c (rx_function_value): Do not promote vector types.
15861         (rx_promote_function_mode): Likewise.
15862         * config/rx/rx.h (LIBCALL_VALUE): Likewise.
15864 2015-06-08  Jakub Jelinek  <jakub@redhat.com>
15866         * genattrtab.c (insn_alternatives): Change type from int *
15867         to uint64_t *.
15868         (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
15869         (get_attr_value): Change type of num_alt to uint64_t.
15870         (compute_alternative_mask): Change return type from
15871         int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
15872         (make_alternative_compare, mk_attr_alt): Change argument type
15873         from int to uint64_t.
15874         (simplify_test_exp): Change type of i from int to uint64_t.
15875         Shift ((uint64_t) 1) instead of 1 up.
15876         (main): Adjust oballocvec first argument from int to uint64_t.
15877         Shift ((uint64_t) 1) instead of 1 up.
15879 2015-06-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
15881         PR other/65366
15882         * gdbhooks.py: Import sys.
15883         (intptr): New function.  Replace int(...) by intptr(...).
15885 2015-06-08  Richard Biener  <rguenther@suse.de>
15887         * tree-vect-stmts.c (vectorizable_load): Compute the pointer
15888         adjustment for gaps at the end of a SLP load group properly.
15889         * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
15890         all permutations we can generate.
15891         (vect_transform_slp_perm_load): Use the correct group-size.
15893 2015-06-08  Marc Glisse  <marc.glisse@inria.fr>
15895         * genmatch.c (expr::gen_transform): For conditions, guess the type
15896         from the second operand.
15898 2015-06-08  Tom de Vries  <tom@codesourcery.com>
15900         PR tree-optimization/66442
15901         * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
15902         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
15903         if the loop latch is not a singleton.  Use
15904         gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
15906 2015-06-08  Marek Polacek  <polacek@redhat.com>
15908         PR sanitizer/66452
15909         * toplev.c (check_global_declaration): Don't warn about artificial
15910         decls.
15912 2015-06-08  Tom de Vries  <tom@codesourcery.com>
15914         PR tree-optimization/66436
15915         * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
15916         dump file.
15917         * gimplify.c: Add tree-dump.h include.
15918         (gimplify_function_tree): Dump function to gimple dump file.
15919         * stor-layout.c (finalize_size_functions): Don't dump function to gimple
15920         dump file.
15922 2015-06-08  Tom de Vries  <tom@codesourcery.com>
15924         PR tree-optimization/66435
15925         * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
15926         function.
15928 2015-06-06  Jan Hubicka  <hubicka@ucw.cz>
15930         * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
15931         of ptr_type_node to not be ptr_to_node.
15932         * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
15933         TREE_TYPE of pointers.
15934         * gimple-expr.c (useless_type_conversion): Reorder the check for
15935         function pointers and TYPE_CANONICAL.
15937 2015-06-06  John David Anglin  <danglin@gcc.gnu.org>
15939         PR bootstrap/66319
15940         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
15941         defines.  Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
15942         Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
15943         later.
15944         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
15945         Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
15946         _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
15947         _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
15948         and non iso if unix2003.
15950 2015-06-06  Aldy Hernandez  <aldyh@redhat.com>
15952         * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
15954 2015-06-06  Richard Sandiford  <richard.sandiford@arm.com>
15956         * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
15957         rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
15958         cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
15959         except.c, final.c, function.c, gcse-common.c, genemit.c,
15960         haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
15961         lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
15962         sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
15963         shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
15964         more derived ones.
15966 2015-06-06  Mikhail Maltsev  <maltsevm@gmail.com>
15968         * combine.c (combine_split_insns): Remove cast.
15969         * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
15970         * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
15971         * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
15972         * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
15973         * genemit.c (gen_split): Change return type of generated functions to
15974         rtx_insn.
15975         * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
15976         (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
15977         gen_peephole2_* functions.
15978         (print_subroutine, main): Likewise.
15979         * recog.c (peephole2_optimize): Remove cast.
15980         (peep2_next_insn): Promote return type to rtx_insn.
15981         * recog.h (peep2_next_insn): Fix prototype.
15982         * rtl.h (try_split, split_insns): Likewise.
15984 2015-06-06  DJ Delorie  <dj@redhat.com>
15986         * config/msp430/msp430.c (msp430_asm_integer): Support addition
15987         and subtraction too.
15989 2015-06-05  Kaz Kojima  <kkojima@gcc.gnu.org>
15991         PR target/66410
15992         * config/sh/constraints.md (Sid, Ssd): New memory constraints.
15993         * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
15994         instead of Snd.  Disparage Sid/z alternative with '^'.
15996 2015-06-05  Aldy Hernandez  <aldyh@redhat.com>
15998         * dwarf2out.c: Remove deferred_locations*.
15999         (dwarf2_debug_hooks): Add early_finish hook.
16000         Remove global_decl hook.
16001         Add early_global_decl and late_global_decl hook.
16002         New global early_dwarf.
16003         New structure set_early_dwarf.
16004         (output_die): Indicate whether a DIE was generated early
16005         when generating assembly with -dA.
16006         (struct limbo_die_struct): Document created_for field.
16007         Remove file_table_last_lookup.
16008         (remove_AT): Return TRUE if successful.
16009         (remove_child_TAG): Clear die_parent.
16010         (reparent_child): New function abstracted from...
16011         (splice_child_die): ...here.
16012         (new_die): ICE if a DIE ends up in limbo too late.
16013         (check_die): New.
16014         (defer_location): Remove.
16015         (add_subscript_info): Reuse DW_TAG_subrange_type if available.
16016         (fill_variable_array_bounds): New.
16017         (decl_start_label): Call fill_variable_array_bounds.
16018         (gen_formal_parameter_die): Rewrite to reuse previously generated
16019         DIEs.
16020         (gen_subprogram_die): Same.
16021         (gen_variable_die): Same.
16022         (gen_const_die): Same.
16023         (gen_label_die): Same.
16024         (gen_lexical_block_die): Same.
16025         (decl_will_get_specification_p): New.
16026         (local_function_static): New.
16027         (gen_struct_or_union_type_die): Fill in variable-length fields.
16028         (gen_typedef_die): Fill in variable-length typedefs.
16029         (gen_tagged_type_die): Gracefully return on error_mark_node.
16030         Handle re-entrancy.
16031         (gen_type_die_with_usage): Handle variable-length types.
16032         Remove duplicate code for ARRAY_TYPE case.
16033         (process_scope_var): Only process imported modules during early
16034         dwarf.
16035         (dwarf2out_early_global_decl): New.
16036         (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
16037         (dwarf2out_type_decl): Set early_dwarf while calling
16038         dwarf2out_decl.
16039         (dwarf2out_decl): Verify that we did not recreate a previously
16040         generated DIE.
16041         Do not return on DECL_EXTERNALs in VAR_DECLs.
16042         Abstract some code to local_function_static.
16043         (lookup_filename): Remove use of file_table_last_lookup.
16044         Gracefully exit on missing file_name.
16045         (dwarf2out_finish): Verify limbo list.
16046         Remove deferred_locations_list use.
16047         Move deferred_asm_name and limbo flushing to...
16048         (dwarf2out_early_finish): ...here.  New.
16049         (dwarf2out_c_finalize): Remove set of deferred_location_list,
16050         deferred_asm_name, and file_table_last_lookup.
16051         * cgraph.h (referred_to_p): Add default argument.
16052         * cgraphunit.c (referred_to_p): Add and handle include_self
16053         argument.
16054         (analyze_functions): Add first_time argument.
16055         Call check_global_declaration for all symbols.
16056         Call late_global_decl for nodes for moribund nodes.
16057         (finalize_compilation_unit): Add new argument to
16058         analyze_functions.
16059         Call early_global_decl for functions.
16060         Call early_finish debug hook.
16061         * dbxout.c (dbxout_early_global_decl): New.
16062         (dbxout_late_global_decl): New.  Adapted from dbxout_global_decl.
16063         (dbx_debug_hooks): Add new hooks.
16064         (xcoff_debug_hooks): Same.
16065         * debug.c (do_nothing_debug_hooks): Add early_finish field.
16066         Add early and late debug hooks.
16067         Remove global_decl hook.
16068         * debug.h (struct gcc_debug_hooks): Add early_finish,
16069         early_global_decl, and late_global_decl fields.
16070         Remove global_decl field.
16071         Document gcc_debug_hooks.
16072         * gengtype.c (output_typename): Remove.
16073         * godump.c (go_early_global_decl): New.
16074         (go_late_global_decl): New.
16075         (go_global_decl): Remove.
16076         (dump_go_spec_init): Remove global_decl.  Add
16077         {early,late}_global_decl.
16078         * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
16079         (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
16080         * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
16081         (write_global_declarations): Remove.
16082         (global_decl_processing): New.
16083         * langhooks.h (struct lang_hooks_for_decls): Remove
16084         final_write_globals field.
16085         Add post_compilation_parsing_cleanups field.
16086         * passes.c (rest_of_decl_compilation): Call early_global_decl.
16087         * sdbout.c: Add early and late_global_decl hooks.  Remove
16088         sdbout_global_decl hook.
16089         Add early_finish field for sdb_debug_hooks.
16090         (sdbout_global_decl): Remove.
16091         (sdbout_early_global_decl): New.
16092         (sdbout_late_global_decl): New.
16093         * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
16094         * toplev.c (check_global_declaration): Rename from
16095         check_global_declaration_1.
16096         Adapt to use symtab infrastructure.
16097         (check_global_declarations): Remove.
16098         (emit_debug_global_declarations): Remove.
16099         (compile_file): Remove call to final_write_globals langhook.
16100         Run the actual compilation process.
16101         Perform any post compilation parser cleanups.
16102         Generate late debug info.
16103         * toplev.h (check_global_declaration): New.
16104         (check_global_declaration_1): Remove.
16105         (check_global_declarations): Remove.
16106         (write_global_declarations): Remove.
16107         (emit_debug_global_declarations): Remove.
16108         (global_decl_processing): New.
16109         * tree-core.h (struct tree_block): Add DIE field.
16110         * tree.h (BLOCK_DIE): New.
16111         * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
16112         throughout.
16113         (vmsdbgout_early_global_decl): New.
16114         (vmsdbgout_late_global_decl): New.
16115         Add early_finish debug hook field to vmsdbg_debug_hooks.
16116         Remove vmsdbgout_decl to vmsdbgout_function_decl.
16117         Add early and late_global_decl debug hooks.
16119 2015-06-05  Julian Brown  <julian@codesourcery.com>
16120             Sandra Loosemore  <sandra@codesourcery.com>
16122         * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
16123         * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
16124         to print-sysroot-suffix.sh script.
16126 2015-06-05  Tom de Vries  <tom@codesourcery.com>
16128         merge from gomp4 branch:
16129         2015-05-28  Tom de Vries  <tom@codesourcery.com>
16131         PR tree-optimization/65443
16132         * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
16133         (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
16134         (try_transform_to_exit_first_loop_alt): New function.
16135         (transform_to_exit_first_loop): Use
16136         try_transform_to_exit_first_loop_alt.
16138 2015-06-05  James Greenhalgh  <james.greenhalgh@arm.com>
16140         * builtins.c (expand_builtin_atomic_compare_exchange): Call
16141         emit_cmp_and_jump_insns with the mode of target.
16143 2015-06-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16145         * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
16147 2015-06-04  DJ Delorie  <dj@redhat.com>
16149         * config/msp430/msp430.md (movsi_s): New.  Special case for
16150         storing a 20-bit symbol into a 32-bit register.
16151         * config/msp430/msp430.c (msp430_subreg): Add support for it.
16152         * config/msp430/predicates.md (msp430_symbol_operand): New.
16154 2015-06-04  Sriraman Tallam  <tmsriram@google.com>
16156         * c-family/c-common.c (noplt): New attribute.
16157         (handle_noplt_attribute): New handler.
16158         * calls.c (prepare_call_address): Check for noplt
16159         attribute.
16160         * config/i386/i386.c (ix86_expand_call): Check
16161         for noplt attribute.
16162         (ix86_nopic_noplt_attribute_p): New function.
16163         (ix86_output_call_insn): Output indirect call for non-pic
16164         no plt calls.
16165         * doc/extend.texi (noplt): Document new attribute.
16166         * doc/invoke.texi: Document new attribute.
16168 2015-06-04  Andrew MacLeod  <amacleod@redhat.com>
16170         * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
16171         real.h, and fixed-value.h when included in host source files.
16172         * double-int.h: Remove redundant #includes listed above.
16173         * fixed-value.h: Likewise.
16174         * real.h: Likewise.
16175         * wide-int.h: Likewise.
16176         * inchash.h: Likewise.
16177         * rtl.h: Add some include files When included from a generator file.
16178         * target.h: Remove wide-int.h and insn-modes.h from the include list.
16179         * internal-fn.h: Don't include coretypes.h.
16180         * alias.c: Adjust includes for restructured coretypes.h.
16181         * asan.c: Likewise.
16182         * attribs.c: Likewise.
16183         * auto-inc-dec.c: Likewise.
16184         * auto-profile.c: Likewise.
16185         * bb-reorder.c: Likewise.
16186         * bt-load.c: Likewise.
16187         * builtins.c: Likewise.
16188         * caller-save.c: Likewise.
16189         * calls.c: Likewise.
16190         * ccmp.c: Likewise.
16191         * cfg.c: Likewise.
16192         * cfganal.c: Likewise.
16193         * cfgbuild.c: Likewise.
16194         * cfgcleanup.c: Likewise.
16195         * cfgexpand.c: Likewise.
16196         * cfghooks.c: Likewise.
16197         * cfgloop.c: Likewise.
16198         * cfgloop.h: Likewise.
16199         * cfgloopanal.c: Likewise.
16200         * cfgloopmanip.c: Likewise.
16201         * cfgrtl.c: Likewise.
16202         * cgraph.c: Likewise.
16203         * cgraphbuild.c: Likewise.
16204         * cgraphclones.c: Likewise.
16205         * cgraphunit.c: Likewise.
16206         * cilk-common.c: Likewise.
16207         * combine-stack-adj.c: Likewise.
16208         * combine.c: Likewise.
16209         * compare-elim.c: Likewise.
16210         * convert.c: Likewise.
16211         * coverage.c: Likewise.
16212         * cppbuiltin.c: Likewise.
16213         * cprop.c: Likewise.
16214         * cse.c: Likewise.
16215         * cselib.c: Likewise.
16216         * data-streamer-in.c: Likewise.
16217         * data-streamer-out.c: Likewise.
16218         * data-streamer.c: Likewise.
16219         * dbxout.c: Likewise.
16220         * dce.c: Likewise.
16221         * ddg.c: Likewise.
16222         * debug.c: Likewise.
16223         * df-core.c: Likewise.
16224         * df-problems.c: Likewise.
16225         * df-scan.c: Likewise.
16226         * df.h: Likewise.
16227         * dfp.c: Likewise.
16228         * dojump.c: Likewise.
16229         * dominance.c: Likewise.
16230         * domwalk.c: Likewise.
16231         * double-int.c: Likewise.
16232         * dse.c: Likewise.
16233         * dumpfile.c: Likewise.
16234         * dwarf2asm.c: Likewise.
16235         * dwarf2cfi.c: Likewise.
16236         * dwarf2out.c: Likewise.
16237         * dwarf2out.h: Likewise.
16238         * emit-rtl.c: Likewise.
16239         * et-forest.c: Likewise.
16240         * except.c: Likewise.
16241         * explow.c: Likewise.
16242         * expmed.c: Likewise.
16243         * expr.c: Likewise.
16244         * final.c: Likewise.
16245         * fixed-value.c: Likewise.
16246         * fold-const.c: Likewise.
16247         * function.c: Likewise.
16248         * fwprop.c: Likewise.
16249         * gcc-plugin.h: Likewise.
16250         * gcse.c: Likewise.
16251         * generic-match-head.c: Likewise.
16252         * ggc-page.c: Likewise.
16253         * gimple-builder.c: Likewise.
16254         * gimple-expr.c: Likewise.
16255         * gimple-fold.c: Likewise.
16256         * gimple-iterator.c: Likewise.
16257         * gimple-low.c: Likewise.
16258         * gimple-match-head.c: Likewise.
16259         * gimple-pretty-print.c: Likewise.
16260         * gimple-ssa-isolate-paths.c: Likewise.
16261         * gimple-ssa-strength-reduction.c: Likewise.
16262         * gimple-streamer-in.c: Likewise.
16263         * gimple-streamer-out.c: Likewise.
16264         * gimple-streamer.h: Likewise.
16265         * gimple-walk.c: Likewise.
16266         * gimple.c: Likewise.
16267         * gimplify-me.c: Likewise.
16268         * gimplify.c: Likewise.
16269         * godump.c: Likewise.
16270         * graph.c: Likewise.
16271         * graphite-blocking.c: Likewise.
16272         * graphite-dependences.c: Likewise.
16273         * graphite-interchange.c: Likewise.
16274         * graphite-isl-ast-to-gimple.c: Likewise.
16275         * graphite-optimize-isl.c: Likewise.
16276         * graphite-poly.c: Likewise.
16277         * graphite-scop-detection.c: Likewise.
16278         * graphite-sese-to-poly.c: Likewise.
16279         * graphite.c: Likewise.
16280         * haifa-sched.c: Likewise.
16281         * hooks.h: Likewise.
16282         * hw-doloop.c: Likewise.
16283         * ifcvt.c: Likewise.
16284         * incpath.c: Likewise.
16285         * init-regs.c: Likewise.
16286         * internal-fn.c: Likewise.
16287         * ipa-chkp.c: Likewise.
16288         * ipa-comdats.c: Likewise.
16289         * ipa-cp.c: Likewise.
16290         * ipa-devirt.c: Likewise.
16291         * ipa-icf-gimple.c: Likewise.
16292         * ipa-icf.c: Likewise.
16293         * ipa-inline-analysis.c: Likewise.
16294         * ipa-inline-transform.c: Likewise.
16295         * ipa-inline.c: Likewise.
16296         * ipa-polymorphic-call.c: Likewise.
16297         * ipa-profile.c: Likewise.
16298         * ipa-prop.c: Likewise.
16299         * ipa-pure-const.c: Likewise.
16300         * ipa-ref.c: Likewise.
16301         * ipa-reference.c: Likewise.
16302         * ipa-split.c: Likewise.
16303         * ipa-utils.c: Likewise.
16304         * ipa-visibility.c: Likewise.
16305         * ipa.c: Likewise.
16306         * ira-build.c: Likewise.
16307         * ira-color.c: Likewise.
16308         * ira-conflicts.c: Likewise.
16309         * ira-costs.c: Likewise.
16310         * ira-emit.c: Likewise.
16311         * ira-lives.c: Likewise.
16312         * ira.c: Likewise.
16313         * jump.c: Likewise.
16314         * langhooks.c: Likewise.
16315         * lcm.c: Likewise.
16316         * loop-doloop.c: Likewise.
16317         * loop-init.c: Likewise.
16318         * loop-invariant.c: Likewise.
16319         * loop-iv.c: Likewise.
16320         * loop-unroll.c: Likewise.
16321         * lower-subreg.c: Likewise.
16322         * lra-assigns.c: Likewise.
16323         * lra-coalesce.c: Likewise.
16324         * lra-constraints.c: Likewise.
16325         * lra-eliminations.c: Likewise.
16326         * lra-lives.c: Likewise.
16327         * lra-remat.c: Likewise.
16328         * lra-spills.c: Likewise.
16329         * lra.c: Likewise.
16330         * lto-cgraph.c: Likewise.
16331         * lto-compress.c: Likewise.
16332         * lto-opts.c: Likewise.
16333         * lto-section-in.c: Likewise.
16334         * lto-section-out.c: Likewise.
16335         * lto-streamer-in.c: Likewise.
16336         * lto-streamer-out.c: Likewise.
16337         * lto-streamer.c: Likewise.
16338         * mcf.c: Likewise.
16339         * mode-switching.c: Likewise.
16340         * modulo-sched.c: Likewise.
16341         * omega.c: Likewise.
16342         * omp-low.c: Likewise.
16343         * optabs.c: Likewise.
16344         * opts-global.c: Likewise.
16345         * passes.c: Likewise.
16346         * plugin.c: Likewise.
16347         * postreload-gcse.c: Likewise.
16348         * postreload.c: Likewise.
16349         * predict.c: Likewise.
16350         * print-rtl.c: Likewise.
16351         * print-tree.c: Likewise.
16352         * profile.c: Likewise.
16353         * real.c: Likewise.
16354         * realmpfr.c: Likewise.
16355         * realmpfr.h: Likewise.
16356         * recog.c: Likewise.
16357         * ree.c: Likewise.
16358         * reg-stack.c: Likewise.
16359         * regcprop.c: Likewise.
16360         * reginfo.c: Likewise.
16361         * regrename.c: Likewise.
16362         * regs.h: Likewise.
16363         * regstat.c: Likewise.
16364         * reload.c: Likewise.
16365         * reload1.c: Likewise.
16366         * reorg.c: Likewise.
16367         * resource.c: Likewise.
16368         * rtl-chkp.c: Likewise.
16369         * rtlanal.c: Likewise.
16370         * rtlhooks.c: Likewise.
16371         * sanopt.c: Likewise.
16372         * sched-deps.c: Likewise.
16373         * sched-ebb.c: Likewise.
16374         * sched-rgn.c: Likewise.
16375         * sched-vis.c: Likewise.
16376         * sdbout.c: Likewise.
16377         * sel-sched-dump.c: Likewise.
16378         * sel-sched-ir.c: Likewise.
16379         * sel-sched.c: Likewise.
16380         * sese.c: Likewise.
16381         * shrink-wrap.c: Likewise.
16382         * shrink-wrap.h: Likewise.
16383         * simplify-rtx.c: Likewise.
16384         * stack-ptr-mod.c: Likewise.
16385         * statistics.c: Likewise.
16386         * stmt.c: Likewise.
16387         * stor-layout.c: Likewise.
16388         * store-motion.c: Likewise.
16389         * stringpool.c: Likewise.
16390         * symtab.c: Likewise.
16391         * target-globals.c: Likewise.
16392         * targhooks.c: Likewise.
16393         * toplev.c: Likewise.
16394         * tracer.c: Likewise.
16395         * trans-mem.c: Likewise.
16396         * tree-affine.c: Likewise.
16397         * tree-affine.h: Likewise.
16398         * tree-browser.c: Likewise.
16399         * tree-call-cdce.c: Likewise.
16400         * tree-cfg.c: Likewise.
16401         * tree-cfgcleanup.c: Likewise.
16402         * tree-chkp-opt.c: Likewise.
16403         * tree-chkp.c: Likewise.
16404         * tree-chrec.c: Likewise.
16405         * tree-complex.c: Likewise.
16406         * tree-data-ref.c: Likewise.
16407         * tree-dfa.c: Likewise.
16408         * tree-diagnostic.c: Likewise.
16409         * tree-dump.c: Likewise.
16410         * tree-eh.c: Likewise.
16411         * tree-emutls.c: Likewise.
16412         * tree-if-conv.c: Likewise.
16413         * tree-inline.c: Likewise.
16414         * tree-into-ssa.c: Likewise.
16415         * tree-iterator.c: Likewise.
16416         * tree-loop-distribution.c: Likewise.
16417         * tree-nested.c: Likewise.
16418         * tree-nrv.c: Likewise.
16419         * tree-object-size.c: Likewise.
16420         * tree-outof-ssa.c: Likewise.
16421         * tree-parloops.c: Likewise.
16422         * tree-phinodes.c: Likewise.
16423         * tree-predcom.c: Likewise.
16424         * tree-pretty-print.c: Likewise.
16425         * tree-pretty-print.h: Likewise.
16426         * tree-profile.c: Likewise.
16427         * tree-scalar-evolution.c: Likewise.
16428         * tree-sra.c: Likewise.
16429         * tree-ssa-address.c: Likewise.
16430         * tree-ssa-alias.c: Likewise.
16431         * tree-ssa-ccp.c: Likewise.
16432         * tree-ssa-coalesce.c: Likewise.
16433         * tree-ssa-copy.c: Likewise.
16434         * tree-ssa-copyrename.c: Likewise.
16435         * tree-ssa-dce.c: Likewise.
16436         * tree-ssa-dom.c: Likewise.
16437         * tree-ssa-dse.c: Likewise.
16438         * tree-ssa-forwprop.c: Likewise.
16439         * tree-ssa-ifcombine.c: Likewise.
16440         * tree-ssa-live.c: Likewise.
16441         * tree-ssa-loop-ch.c: Likewise.
16442         * tree-ssa-loop-im.c: Likewise.
16443         * tree-ssa-loop-ivcanon.c: Likewise.
16444         * tree-ssa-loop-ivopts.c: Likewise.
16445         * tree-ssa-loop-manip.c: Likewise.
16446         * tree-ssa-loop-niter.c: Likewise.
16447         * tree-ssa-loop-prefetch.c: Likewise.
16448         * tree-ssa-loop-unswitch.c: Likewise.
16449         * tree-ssa-loop.c: Likewise.
16450         * tree-ssa-loop.h: Likewise.
16451         * tree-ssa-math-opts.c: Likewise.
16452         * tree-ssa-operands.c: Likewise.
16453         * tree-ssa-phiopt.c: Likewise.
16454         * tree-ssa-phiprop.c: Likewise.
16455         * tree-ssa-pre.c: Likewise.
16456         * tree-ssa-propagate.c: Likewise.
16457         * tree-ssa-reassoc.c: Likewise.
16458         * tree-ssa-sccvn.c: Likewise.
16459         * tree-ssa-scopedtables.c: Likewise.
16460         * tree-ssa-sink.c: Likewise.
16461         * tree-ssa-strlen.c: Likewise.
16462         * tree-ssa-structalias.c: Likewise.
16463         * tree-ssa-tail-merge.c: Likewise.
16464         * tree-ssa-ter.c: Likewise.
16465         * tree-ssa-threadedge.c: Likewise.
16466         * tree-ssa-threadupdate.c: Likewise.
16467         * tree-ssa-uncprop.c: Likewise.
16468         * tree-ssa-uninit.c: Likewise.
16469         * tree-ssa.c: Likewise.
16470         * tree-ssanames.c: Likewise.
16471         * tree-stdarg.c: Likewise.
16472         * tree-streamer-in.c: Likewise.
16473         * tree-streamer-out.c: Likewise.
16474         * tree-streamer.c: Likewise.
16475         * tree-switch-conversion.c: Likewise.
16476         * tree-tailcall.c: Likewise.
16477         * tree-vect-data-refs.c: Likewise.
16478         * tree-vect-generic.c: Likewise.
16479         * tree-vect-loop-manip.c: Likewise.
16480         * tree-vect-loop.c: Likewise.
16481         * tree-vect-patterns.c: Likewise.
16482         * tree-vect-slp.c: Likewise.
16483         * tree-vect-stmts.c: Likewise.
16484         * tree-vectorizer.c: Likewise.
16485         * tree-vrp.c: Likewise.
16486         * tree.c: Likewise.
16487         * tsan.c: Likewise.
16488         * ubsan.c: Likewise.
16489         * valtrack.c: Likewise.
16490         * value-prof.c: Likewise.
16491         * var-tracking.c: Likewise.
16492         * varasm.c: Likewise.
16493         * varpool.c: Likewise.
16494         * vmsdbgout.c: Likewise.
16495         * vtable-verify.c: Likewise.
16496         * web.c: Likewise.
16497         * wide-int-print.cc: Likewise.
16498         * wide-int-print.h: Likewise.
16499         * wide-int.cc: Likewise.
16500         * xcoffout.c: Likewise.
16501         * config/aarch64/aarch64-builtins.c: Likewise.
16502         * config/aarch64/aarch64.c: Likewise.
16503         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16504         * config/alpha/alpha.c: Likewise.
16505         * config/arc/arc.c: Likewise.
16506         * config/arm/aarch-common.c: Likewise.
16507         * config/arm/arm-builtins.c: Likewise.
16508         * config/arm/arm-c.c: Likewise.
16509         * config/arm/arm.c: Likewise.
16510         * config/avr/avr-c.c: Likewise.
16511         * config/avr/avr-log.c: Likewise.
16512         * config/avr/avr.c: Likewise.
16513         * config/bfin/bfin.c: Likewise.
16514         * config/c6x/c6x.c: Likewise.
16515         * config/cr16/cr16.c: Likewise.
16516         * config/cris/cris.c: Likewise.
16517         * config/darwin-c.c: Likewise.
16518         * config/darwin.c: Likewise.
16519         * config/default-c.c: Likewise.
16520         * config/epiphany/epiphany.c: Likewise.
16521         * config/epiphany/mode-switch-use.c: Likewise.
16522         * config/epiphany/resolve-sw-modes.c: Likewise.
16523         * config/fr30/fr30.c: Likewise.
16524         * config/frv/frv.c: Likewise.
16525         * config/ft32/ft32.c: Likewise.
16526         * config/glibc-c.c: Likewise.
16527         * config/h8300/h8300.c: Likewise.
16528         * config/i386/i386-c.c: Likewise.
16529         * config/i386/i386.c: Likewise.
16530         * config/i386/msformat-c.c: Likewise.
16531         * config/i386/winnt-cxx.c: Likewise.
16532         * config/i386/winnt-stubs.c: Likewise.
16533         * config/i386/winnt.c: Likewise.
16534         * config/ia64/ia64-c.c: Likewise.
16535         * config/ia64/ia64.c: Likewise.
16536         * config/iq2000/iq2000.c: Likewise.
16537         * config/lm32/lm32.c: Likewise.
16538         * config/m32c/m32c-pragma.c: Likewise.
16539         * config/m32c/m32c.c: Likewise.
16540         * config/m32r/m32r.c: Likewise.
16541         * config/m68k/m68k.c: Likewise.
16542         * config/mcore/mcore.c: Likewise.
16543         * config/mep/mep-pragma.c: Likewise.
16544         * config/mep/mep.c: Likewise.
16545         * config/microblaze/microblaze-c.c: Likewise.
16546         * config/microblaze/microblaze.c: Likewise.
16547         * config/mips/mips.c: Likewise.
16548         * config/mmix/mmix.c: Likewise.
16549         * config/mn10300/mn10300.c: Likewise.
16550         * config/moxie/moxie.c: Likewise.
16551         * config/msp430/msp430-c.c: Likewise.
16552         * config/msp430/msp430.c: Likewise.
16553         * config/nds32/nds32-cost.c: Likewise.
16554         * config/nds32/nds32-fp-as-gp.c: Likewise.
16555         * config/nds32/nds32-intrinsic.c: Likewise.
16556         * config/nds32/nds32-isr.c: Likewise.
16557         * config/nds32/nds32-md-auxiliary.c: Likewise.
16558         * config/nds32/nds32-memory-manipulation.c: Likewise.
16559         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16560         * config/nds32/nds32-predicates.c: Likewise.
16561         * config/nds32/nds32.c: Likewise.
16562         * config/nios2/nios2.c: Likewise.
16563         * config/nvptx/nvptx.c: Likewise.
16564         * config/pa/pa.c: Likewise.
16565         * config/pdp11/pdp11.c: Likewise.
16566         * config/rl78/rl78-c.c: Likewise.
16567         * config/rl78/rl78.c: Likewise.
16568         * config/rs6000/rs6000-c.c: Likewise.
16569         * config/rs6000/rs6000.c: Likewise.
16570         * config/rx/rx.c: Likewise.
16571         * config/s390/s390-c.c: Likewise.
16572         * config/s390/s390.c: Likewise.
16573         * config/sh/sh-c.c: Likewise.
16574         * config/sh/sh-mem.cc: Likewise.
16575         * config/sh/sh.c: Likewise.
16576         * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16577         * config/sh/sh_treg_combine.cc: Likewise.
16578         * config/sol2-c.c: Likewise.
16579         * config/sol2-cxx.c: Likewise.
16580         * config/sol2-stubs.c: Likewise.
16581         * config/sol2.c: Likewise.
16582         * config/sparc/sparc-c.c: Likewise.
16583         * config/sparc/sparc.c: Likewise.
16584         * config/spu/spu-c.c: Likewise.
16585         * config/spu/spu.c: Likewise.
16586         * config/stormy16/stormy16.c: Likewise.
16587         * config/tilegx/mul-tables.c: Likewise.
16588         * config/tilegx/tilegx-c.c: Likewise.
16589         * config/tilegx/tilegx.c: Likewise.
16590         * config/tilepro/mul-tables.c: Likewise.
16591         * config/tilepro/tilepro-c.c: Likewise.
16592         * config/tilepro/tilepro.c: Likewise.
16593         * config/v850/v850-c.c: Likewise.
16594         * config/v850/v850.c: Likewise.
16595         * config/vax/vax.c: Likewise.
16596         * config/visium/visium.c: Likewise.
16597         * config/vms/vms-c.c: Likewise.
16598         * config/vms/vms.c: Likewise.
16599         * config/vxworks.c: Likewise.
16600         * config/winnt-c.c: Likewise.
16601         * config/xtensa/xtensa.c: Likewise.
16602         * common/config/bfin/bfin-common.c: Likewise.
16604 2015-06-04  Jan Hubicka  <hubicka@ucw.cz>
16606         * tree.h (tree_code_for_canonical_type_merging): New function.
16607         * tree.c (gimple_canonical_types_compatible_p): Use
16608         tree_code_for_canonical_type_merging..
16610 2015-06-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16612         PR c++/66192
16613         PR target/66200
16614         * doc/tm.texi: Regenerate.
16615         * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
16616         * target.def (TARGET_RELAXED_ORDERING): Likewise.
16617         * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
16618         * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
16619         * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
16620         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
16621         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
16622         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
16623         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
16625 2015-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16627         * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
16628         register fma steering pass.
16629         * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
16630         AARCH64_TUNE_FMA_STEERING.
16632 2015-06-03  Jan Hubicka  <hubicka@ucw.cz>
16634         * tree.c (verify_type_variant): Verify that type and variant is
16635         compatible.
16636         (gimple_canonical_types_compatible_p): Look for main variants.
16638 2015-06-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
16640         * config.gcc (powerpc*-*-*): Add support for a new configure
16641         option --with-advance-toolchain=<xxx> which overrides using the
16642         default header files, libraries and dynamic linker.
16644         * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
16645         specs to support the configure --with-advance-toolchain=<xxx>
16646         option.
16647         (INCLUDE_EXTRA_SPEC): Likewise.
16648         (LINK_OS_EXTRA_SPEC32): Likewise.
16649         (LINK_OK_EXTRA_SPEC64): Likewise.
16650         (LINK_OS_NEW_DTAGS_SPEC): Likewise.
16651         (DYNAMIC_LINKER_PREFIX): Likewise.
16652         (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
16653         toolchain support.
16654         (GLIBC_DYNAMIC_LINKER32): Likewise.
16655         (GLIBC_DYNAMIC_LINKER64): Likewise.
16656         (LINK_OS_LINUX_SPEC32): Likewise.
16657         (LINK_OS_LINUX_SPEC64): Likewise.
16659         * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
16660         configuration option.
16662 2015-06-03  Uros Bizjak  <ubizjak@gmail.com>
16664         PR target/66275
16665         * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
16666         to determine current function ABI.
16667         (ix86_function_value_regno_p): Ditto.
16669 2015-06-03  Martin Liska  <mliska@suse.cz>
16671         * alloc-pool.h (struct pool_usage): Correct GNU coding style.
16672         * bitmap.h (struct bitmap_usage): Likewise.
16673         * ggc-common.c (struct ggc_usage): Likewise.
16674         * mem-stats.h (struct mem_location): Likewise.
16675         (struct mem_usage): Likewise.
16676         * vec.c (struct vec_usage): Likewise.
16678 2015-06-03  Benigno B. Junior  <bbj@gentoo.org>
16680         * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
16681         -Bsymbolic.
16683 2015-06-02  Andres Tiraboschi  <andres.tiraboschi@tallertechnologies.com>
16685         * doc/plugins.texi (enum plugin_event): New event.
16686         * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
16687         and PLUGIN_FINISH_FUNCTION.
16688         * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
16689         (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
16691 2015-06-03  Richard Biener  <rguenther@suse.de>
16693         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16694         compute GROUP_GAP for the first element.
16695         * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
16696         on in-group gaps.
16698 2015-06-03  Nick Clifton  <nickc@redhat.com>
16700         * config/rl78/rl78-real.md: Add peepholes to avoid a register
16701         copy when calling a function.
16702         * config/rl78/rl78.c (need_to_save): Do not push the frame
16703         pointer in an interrupt handler prologue if it is never used.
16705 2015-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16707         * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
16709 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
16711         * ipa-chkp.c (chkp_maybe_create_clone): Create alias
16712         reference when cloning alias node.
16714 2015-06-03  Martin Liska  <mliska@suse.cz>
16716         * alloc-pool.h (struct pool_usage): Correct space padding.
16717         * ggc-page.c (ggc_print_statistics): Align columns in a report.
16718         * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
16719         * tree.c (dump_tree_statistics): Align columns in a report.
16721 2015-06-03  Martin Liska  <mliska@suse.cz>
16723         * alloc-pool.c (allocate_pool_descriptor): Remove.
16724         (struct pool_output_info): Likewise.
16725         (print_alloc_pool_statistics): Likewise.
16726         (dump_alloc_pool_statistics): Likewise.
16727         * alloc-pool.h (struct pool_usage): New struct.
16728         (pool_allocator::initialize): Change usage of memory statistics
16729         to a new interface.
16730         (pool_allocator::release): Likewise.
16731         (pool_allocator::allocate): Likewise.
16732         (pool_allocator::remove): Likewise.
16733         * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
16734         for a pool allocator.
16735         * mem-stats.h (struct mem_location): Add new ctor.
16736         (struct mem_usage): Add counter for number of
16737         instances.
16738         (mem_alloc_description::register_descriptor): New overload of
16739         * mem-stats.h (mem_location::to_string): New function.
16740         * bitmap.h (struct bitmap_usage): Use this new function.
16741         * ggc-common.c (struct ggc_usage): Likewise.
16742         the function.
16744 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
16746         * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
16747         of GCC_INSN_FLAGS_H block.
16749 2015-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
16751         * explow.c (plus_constant): Update check after force_const_mem call
16752         to see if the value returned is not a NULL_RTX.
16754 2015-06-03  Ilya Enkovich  <ilya.enkovich@intel.com>
16756         * ipa.c (symbol_table::remove_unreachable_nodes): Don't
16757         remove instumentation thunks calling reachable functions.
16758         * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
16759         * lto/lto-partition.c (privatize_symbol_name_1): New.
16760         (privatize_symbol_name): Privatize both decl and orig_decl
16761         names for instrumented functions.
16762         * cgraph.c (cgraph_node::verify_node): Add transparent
16763         alias chain check for instrumented node.
16765 2015-06-03  Marek Polacek  <polacek@redhat.com>
16767         PR c/64223
16768         PR c/29358
16769         * tree.c (attribute_value_equal): Handle attribute format.
16770         (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
16772 2015-06-03  Richard Biener  <rguenther@suse.de>
16774         PR tree-optimization/63916
16775         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16776         Forward-propagate non-invariant addresses by splicing their
16777         reference ops if the result isn't going to be used by PRE.
16778         (vn_reference_lookup_3): Remove pointless assert.
16780 2015-06-03  Richard Biener  <rguenther@suse.de>
16782         PR tree-optimization/66375
16783         * tree-scalar-evolution.c (follow_ssa_edge_binary): First
16784         add to the evolution before following SSA edges.
16786 2015-06-03  Bin Cheng  <bin.cheng@arm.com>
16788         * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
16789         (dump_use, dump_cand, find_induction_variables): Pass new argument
16790         to dump_iv.
16791         (record_use): Preserve the ssa name information in IV.
16793 2015-06-03  Richard Sandiford  <richard.sandiford@arm.com>
16795         * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
16796         NO_MODE_TEST.
16797         (add_mode_tests): Don't add mode tests if the predicate only
16798         accepts scalar constant integers.  Otherwise, allow the mode
16799         of "op" to be VOIDmode if the predicate does accept such integers.
16801 2015-06-02  Jim Wilson  <jim.wilson@linaro.org>
16803         PR target/66258
16804         * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
16805         !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
16806         (aarch64_secondary_reload): Likewise
16807         (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
16808         to !TARGET_FLOAT.
16809         (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
16810         Likewise.
16812 2015-06-03  Kugan Vivekanandarajah  <kuganv@linaro.org>
16813             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
16815         PR target/65768
16816         * cprop.c (try_replace_reg): Check cost of constants before propagating.
16818 2015-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16820         * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
16821         provide access to the IBM extended double floating point mode if
16822         long double is IEEE 128-bit floating point.
16823         (KFmode): Define KFmode to provide access to IEEE 128-bit floating
16824         point if long double is the IBM extended double type.
16826         * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
16827         enable adding IEEE 128-bit floating point support.
16828         (-mfloat128-software): Likewise.
16829         (-mfloat128-sw): Likewise.
16831         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
16832         128-bit floating point types to occupy any register if
16833         -mlong-double-64.  Do not allow use of IFmode/KFmode unless
16834         -mfloat128-software is enabled.
16835         (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
16836         support.
16837         (rs6000_option_override_internal): Add -mfloat128-* support.
16838         (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
16840         * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
16841         and float128 type nodes.
16842         (ieee128_float_type_node): Likewise.
16843         (ibm128_float_type_node): Likewise.
16845 2015-06-02  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16847         PR target/66136
16848         * config/aarch64/geniterators.sh: Rewrite in awk.
16850 2015-06-02  Martin Liska  <mliska@suse.cz>
16852         * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
16853         values to avoid -Wmaybe-uninitialized errors.
16855 2015-06-02  Richard Biener  <rguenther@suse.de>
16857         PR debug/65549
16858         * dwarf2out.c (lookup_context_die): New function.
16859         (resolve_addr): Avoid forcing a full DIE for the
16860         target of a DW_TAG_GNU_call_site during late compilation.
16861         Instead create a stub DIE without a type if we have a
16862         context DIE present.
16864 2015-06-02  Uros Bizjak  <ubizjak@gmail.com>
16866         * df-scan.c (df_scan_start_dump): Add space between regno and regname.
16868 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
16870         PR tree-optimization/48052
16871         * cfgloop.h (struct control_iv): New.
16872         (struct loop): New field control_ivs.
16873         * tree-ssa-loop-niter.c : Include "stor-layout.h".
16874         (number_of_iterations_lt): Set no_overflow information.
16875         (number_of_iterations_exit): Init control iv in niter struct.
16876         (record_control_iv): New.
16877         (estimate_numbers_of_iterations_loop): Call record_control_iv.
16878         (loop_exits_before_overflow): New.  Interface factored out of
16879         scev_probably_wraps_p.
16880         (scev_probably_wraps_p): Factor loop niter related code into
16881         loop_exits_before_overflow.
16882         (free_numbers_of_iterations_estimates_loop): Free control ivs.
16883         * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
16885 2015-06-02  Eric Botcazou  <ebotcazou@adacore.com>
16887         * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
16888         the target doesn't belong to the current function.
16890 2015-06-02  Marek Polacek  <polacek@redhat.com>
16892         PR middle-end/66345
16893         * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
16894         get_maxval_strlen does not produce an INTEGER_CST.
16896 2015-06-02  Richard Sandiford  <richard.sandiford@arm.com>
16898         * config/arc/constraints.md: Use lower-case names in match_code.
16899         * config/mmix/constraints.md: Likewise.
16901 2015-06-02  Richard Biener  <rguenther@suse.de>
16903         PR tree-optimization/65961
16904         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
16905         check and clarify dump message.
16906         (vect_build_slp_tree): If all children are built up from scalars
16907         build up the parent from scalars instead.
16908         * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
16910 2015-06-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
16912         PR other/65366
16913         * gdbhooks.py: Use int(...) instead of long(...).  Use print(...)
16914         instead of print ... .
16916 2015-06-02  Alan Modra  <amodra@gmail.com>
16918         * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
16919         2014-08-11 change.
16921 2015-06-02  Bin Cheng  <bin.cheng@arm.com>
16923         PR tree-optimization/52563
16924         PR tree-optimization/62173
16925         * tree-ssa-loop-ivopts.c (struct iv): New field.  Reorder fields.
16926         (alloc_iv, set_iv): New parameter.
16927         (determine_biv_step): Delete.
16928         (find_bivs): Inline original determine_biv_step.  Pass new
16929         argument to set_iv.
16930         (idx_find_step): Use no_overflow information for conversion.
16931         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
16932         resolve_mixers handle folded_casts.
16933         (instantiate_scev_name): Change bool parameter to bool pointer.
16934         (instantiate_scev_poly, instantiate_scev_binary): Ditto.
16935         (instantiate_array_ref, instantiate_scev_not): Ditto.
16936         (instantiate_scev_3, instantiate_scev_2): Ditto.
16937         (instantiate_scev_1, instantiate_scev_r): Ditto.
16938         (instantiate_scev_convert, ): Change parameter.  Pass argument
16939         to chrec_convert_aggressive.
16940         (instantiate_scev): Change argument.
16941         (resolve_mixers): New parameter and set it.
16942         (scev_const_prop): New argument.
16943         * tree-scalar-evolution.h (resolve_mixers): New parameter.
16944         * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
16945         of chrec_conert_1.
16946         (chrec_convert): New parameter.  Move definition below.
16947         (chrec_convert_aggressive): New parameter and set it.  Call
16948         convert_affine_scev.
16949         * tree-chrec.h (chrec_convert): New parameter.
16950         (chrec_convert_aggressive): Ditto.
16952 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
16954         * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
16955         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
16956         the LHS of a no-return call if its type has variable size.
16957         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
16958         * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
16960 2015-06-01  Andreas Tobler  <andreast@gcc.gnu.org>
16962         * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
16963         * config.in: Regenerate.
16965 2015-06-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
16967         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
16968         consecutive accesses within outer-loop with force_vectorize
16969         for references with zero step in inner-loop.
16971 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
16973         * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
16974         rather than from gcc/build directory.
16976 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
16978         PR target/65697
16979         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
16980         for __sync memory models, emit initial loads and final barriers as
16981         appropriate.
16983 2015-06-01  Matthew Wahab  <matthew.wahab@arm.com>
16985         PR target/65697
16986         * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
16987         (aarch64_split_atomic_op): Check for __sync memory models, emit
16988         appropriate initial loads and final barriers.
16990 2015-06-01  Vidya Praveen  <vidyapraveen@arm.com>
16992         * Makefile.in: Fix gcov dependencies that should
16993         not point to a build folder.
16995 2015-06-01  Richard Biener  <rguenther@suse.de>
16997         Revert
16998         2015-05-29  Richard Biener  <rguenther@suse.de>
17000         PR tree-optimization/66314
17001         * tree-ssa-threadupdate.c (create_block_for_threading): Add
17002         parameter that says which loop the new block belongs to.
17003         (ssa_create_duplicates): Blocks duplicated for the threaded
17004         path belong to the loop of the thread destination.
17006 2015-06-01  Martin Liska  <mliska@suse.cz>
17008         * sched-deps.c: Include pool-alloc.h before
17009         cselib.h header file is included.
17011 2015-06-01  Richard Biener  <rguenther@suse.de>
17013         * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
17014         functions.
17016 2015-06-01  Martin Liska  <mliska@suse.cz>
17018         * alloc-pool.h: Add ATTRIBUTE_UNUSED for
17019         a function local variable.
17021 2015-06-01  Martin Liska  <mliska@suse.cz>
17023         * alloc-pool.c (create_alloc_pool): Remove.
17024         (empty_alloc_pool): Likewise.
17025         (free_alloc_pool): Likewise.
17026         (free_alloc_pool_if_empty): Likewise.
17027         (pool_alloc): Likewise.
17028         (pool_free): Likewise.
17029         * alloc-pool.h: Remove old declarations.
17031 2015-06-01  Martin Liska  <mliska@suse.cz>
17033         * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
17034         (ira_create_object): Likewise.
17035         (ira_create_allocno): Likewise.
17036         (ira_create_live_range): Likewise.
17037         (copy_live_range): Likewise.
17038         (ira_finish_live_range): Likewise.
17039         (ira_free_allocno_costs): Likewise.
17040         (finish_allocno): Likewise.
17041         (finish_allocnos): Likewise.
17042         (initiate_prefs): Likewise.
17043         (ira_create_pref): Likewise.
17044         (finish_pref): Likewise.
17045         (finish_prefs): Likewise.
17046         (initiate_copies): Likewise.
17047         (ira_create_copy): Likewise.
17048         (finish_copy): Likewise.
17049         (finish_copies): Likewise.
17050         (finish_prefs): Likewise.
17052 2015-06-01  Martin Liska  <mliska@suse.cz>
17054         * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
17055         (allocate_and_init_ipcp_value): Likewise.
17056         (ipcp_lattice::add_value): Likewise.
17057         (merge_agg_lats_step): Likewise.
17058         (ipcp_driver): Likewise.
17059         * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
17060         (ipa_free_all_structures_after_iinln): Likewise.
17061         * ipa-prop.h: Likewise.
17063 2015-06-01  Martin Liska  <mliska@suse.cz>
17065         * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
17066         pool allocator.
17067         (set_hint_predicate): Likewise.
17068         (inline_summary_alloc): Likewise.
17069         (reset_inline_edge_summary): Likewise.
17070         (reset_inline_summary): Likewise.
17071         (set_cond_stmt_execution_predicate): Likewise.
17072         (set_switch_stmt_execution_predicate): Likewise.
17073         (compute_bb_predicates): Likewise.
17074         (estimate_function_body_sizes): Likewise.
17075         (inline_free_summary): Likewise.
17077 2015-06-01  Martin Liska  <mliska@suse.cz>
17079         * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
17080         (ipa_edge_duplication_hook): Likewise.
17081         (ipa_free_all_structures_after_ipa_cp): Likewise.
17082         (ipa_free_all_structures_after_iinln): Likewise.
17084 2015-06-01  Martin Liska  <mliska@suse.cz>
17086         * ipa-profile.c (account_time_size): Use new type-based pool allocator.
17087         (ipa_profile_generate_summary): Likewise.
17088         (ipa_profile_read_summary): Likewise.
17089         (ipa_profile): Likewise.
17091 2015-06-01  Martin Liska  <mliska@suse.cz>
17093         * tree-ssa-structalias.c (new_var_info): Use new type-based
17094         pool allocator.
17095         (new_constraint): Likewise.
17096         (init_alias_vars): Likewise.
17097         (delete_points_to_sets): Likewise.
17099 2015-06-01  Martin Liska  <mliska@suse.cz>
17101         * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
17102         (free_strinfo): Likewise.
17103         (pass_strlen::execute): Likewise.
17105 2015-06-01  Martin Liska  <mliska@suse.cz>
17107         * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
17108         pool allocator.
17109         (vn_reference_insert_pieces): Likewise.
17110         (vn_phi_insert): Likewise.
17111         (visit_reference_op_call): Likewise.
17112         (copy_phi): Likewise.
17113         (copy_reference): Likewise.
17114         (process_scc): Likewise.
17115         (allocate_vn_table): Likewise.
17116         (free_vn_table): Likewise.
17118 2015-06-01  Martin Liska  <mliska@suse.cz>
17120         * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
17121         pool allocator.
17122         (add_repeat_to_ops_vec): Likewise.
17123         (get_ops): Likewise.
17124         (maybe_optimize_range_tests): Likewise.
17125         (init_reassoc): Likewise.
17126         (fini_reassoc): Likewise.
17128 2015-06-01  Martin Liska  <mliska@suse.cz>
17130         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
17131         pool allocator.
17132         (bitmap_set_new): Likewise.
17133         (get_or_alloc_expr_for_constant): Likewise.
17134         (get_or_alloc_expr_for): Likewise.
17135         (phi_translate_1): Likewise.
17136         (compute_avail): Likewise.
17137         (init_pre): Likewise.
17138         (fini_pre): Likewise.
17140 2015-06-01  Martin Liska  <mliska@suse.cz>
17142         * sched-deps.c (create_dep_node): Use new type-based pool allocator.
17143         (delete_dep_node): Likewise.
17144         (create_deps_list): Likewise.
17145         (free_deps_list): Likewise.
17146         (sched_deps_init): Likewise.
17147         (sched_deps_finish): Likewise.
17149 2015-06-01  Martin Liska  <mliska@suse.cz>
17151         * regcprop.c (free_debug_insn_changes): Use new type-based
17152         pool allocator.
17153         (replace_oldest_value_reg): Likewise.
17154         (pass_cprop_hardreg::execute): Likewise.
17156 2015-06-01  Martin Liska  <mliska@suse.cz>
17158         * ira-build.c (initiate_cost_vectors): Use new type-based
17159         pool allocator.
17160         (ira_allocate_cost_vector): Likewise.
17161         (ira_free_cost_vector): Likewise.
17162         (finish_cost_vectors): Likewise.
17164 2015-06-01  Martin Liska  <mliska@suse.cz>
17166         * sel-sched-ir.c (alloc_sched_pools): Use new type-based
17167         pool allocator.
17168         (free_sched_pools): Likewise.
17169         * sel-sched-ir.h (_list_alloc): Likewise.
17170         (_list_remove): Likewise.
17172 2015-06-01  Martin Liska  <mliska@suse.cz>
17174         * stmt.c (add_case_node): Use new type-based pool allocator.
17175         (expand_case): Likewise.
17176         (expand_sjlj_dispatch_table): Likewise.
17178 2015-06-01  Martin Liska  <mliska@suse.cz>
17180         * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
17181         (free_bb): Likewise.
17182         (pass_cse_reciprocals::execute): Likewise.
17184 2015-06-01  Martin Liska  <mliska@suse.cz>
17186         * tree-sra.c (sra_initialize): Use new type-based pool allocator.
17187         (sra_deinitialize) Likewise.
17188         (create_access_1) Likewise.
17189         (build_accesses_from_assign) Likewise.
17190         (create_artificial_child_access) Likewise.
17192 2015-06-01  Martin Liska  <mliska@suse.cz>
17194         * dse.c (get_group_info):Use new type-based pool allocator.
17195         (dse_step0) Likewise.
17196         (free_store_info) Likewise.
17197         (delete_dead_store_insn) Likewise.
17198         (free_read_records) Likewise.
17199         (record_store) Likewise.
17200         (replace_read) Likewise.
17201         (check_mem_read_rtx) Likewise.
17202         (scan_insn) Likewise.
17203         (dse_step1) Likewise.
17204         (dse_step7) Likewise.
17206 2015-06-01  Martin Liska  <mliska@suse.cz>
17208         * df-scan.c (struct df_scan_problem_data):Use new type-based
17209         pool allocator.
17210         (df_scan_free_internal) Likewise.
17211         (df_scan_alloc) Likewise.
17212         (df_grow_reg_info) Likewise.
17213         (df_free_ref) Likewise.
17214         (df_insn_create_insn_record) Likewise.
17215         (df_mw_hardreg_chain_delete) Likewise.
17216         (df_insn_info_delete) Likewise.
17217         (df_free_collection_rec) Likewise.
17218         (df_mw_hardreg_chain_delete_eq_uses) Likewise.
17219         (df_sort_and_compress_mws) Likewise.
17220         (df_ref_create_structure) Likewise.
17221         (df_ref_record) Likewise.
17223 2015-06-01  Martin Liska  <mliska@suse.cz>
17225         * df-problems.c (df_chain_create):Use new type-based pool allocator.
17226         (df_chain_unlink_1) Likewise.
17227         (df_chain_unlink) Likewise.
17228         (df_chain_remove_problem) Likewise.
17229         (df_chain_alloc) Likewise.
17230         (df_chain_free) Likewise.
17231         * df.h (struct dataflow) Likewise.
17233 2015-06-01  Martin Liska  <mliska@suse.cz>
17235         * cselib.c (new_elt_list):Use new type-based pool allocator.
17236         (new_elt_loc_list) Likewise.
17237         (unchain_one_elt_list) Likewise.
17238         (unchain_one_elt_loc_list) Likewise.
17239         (unchain_one_value) Likewise.
17240         (new_cselib_val) Likewise.
17241         (cselib_init) Likewise.
17242         (cselib_finish) Likewise.
17244 2015-06-01  Martin Liska  <mliska@suse.cz>
17246         * config/sh/sh.c (add_constant):Use new type-based pool allocator.
17247         (sh_reorg) Likewise.
17249 2015-06-01  Martin Liska  <mliska@suse.cz>
17251         * cfg.c (initialize_original_copy_tables):Use new type-based
17252         pool allocator.
17253         (free_original_copy_tables) Likewise.
17254         (copy_original_table_clear) Likewise.
17255         (copy_original_table_set) Likewise.
17257 2015-06-01  Martin Liska  <mliska@suse.cz>
17259         * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
17260         pool allocator.
17261         (asan_mem_ref_new) Likewise.
17262         (free_mem_ref_resources) Likewise.
17264 2015-06-01  Martin Liska  <mliska@suse.cz>
17266         * var-tracking.c (variable_htab_free):Use new type-based
17267         pool allocator.
17268         (attrs_list_clear) Likewise.
17269         (attrs_list_insert) Likewise.
17270         (attrs_list_copy) Likewise.
17271         (shared_hash_unshare) Likewise.
17272         (shared_hash_destroy) Likewise.
17273         (unshare_variable) Likewise.
17274         (var_reg_delete_and_set) Likewise.
17275         (var_reg_delete) Likewise.
17276         (var_regno_delete) Likewise.
17277         (drop_overlapping_mem_locs) Likewise.
17278         (variable_union) Likewise.
17279         (insert_into_intersection) Likewise.
17280         (canonicalize_values_star) Likewise.
17281         (variable_merge_over_cur) Likewise.
17282         (dataflow_set_merge) Likewise.
17283         (remove_duplicate_values) Likewise.
17284         (variable_post_merge_new_vals) Likewise.
17285         (dataflow_set_preserve_mem_locs) Likewise.
17286         (dataflow_set_remove_mem_locs) Likewise.
17287         (variable_from_dropped) Likewise.
17288         (variable_was_changed) Likewise.
17289         (set_slot_part) Likewise.
17290         (clobber_slot_part) Likewise.
17291         (delete_slot_part) Likewise.
17292         (loc_exp_insert_dep) Likewise.
17293         (notify_dependents_of_changed_value) Likewise.
17294         (emit_notes_for_differences_1) Likewise.
17295         (vt_emit_notes) Likewise.
17296         (vt_initialize) Likewise.
17297         (vt_finalize) Likewise.
17299 2015-06-01  Martin Liska  <mliska@suse.cz>
17301         * ira-color.c (init_update_cost_records):Use new type-based
17302         pool allocator.
17303         (get_update_cost_record) Likewise.
17304         (free_update_cost_record_list) Likewise.
17305         (finish_update_cost_records) Likewise.
17306         (initiate_cost_update) Likewise.
17308 2015-06-01  Martin Liska  <mliska@suse.cz>
17310         * lra.c (init_insn_regs): Use new type-based pool allocator.
17311         (new_insn_reg) Likewise.
17312         (free_insn_reg) Likewise.
17313         (free_insn_regs) Likewise.
17314         (finish_insn_regs) Likewise.
17315         (init_insn_recog_data) Likewise.
17316         (init_reg_info) Likewise.
17317         (finish_reg_info) Likewise.
17318         (lra_free_copies) Likewise.
17319         (lra_create_copy) Likewise.
17320         (invalidate_insn_data_regno_info) Likewise.
17322 2015-06-01  Martin Liska  <mliska@suse.cz>
17324         * lra-lives.c (free_live_range): Use new type-based pool allocator.
17325         (free_live_range_list) Likewise.
17326         (create_live_range) Likewise.
17327         (copy_live_range) Likewise.
17328         (lra_merge_live_ranges) Likewise.
17329         (remove_some_program_points_and_update_live_ranges) Likewise.
17330         (lra_live_ranges_init) Likewise.
17331         (lra_live_ranges_finish) Likewise.
17333 2015-06-01  Martin Liska  <mliska@suse.cz>
17335         * et-forest.c (et_new_occ): Use new type-based pool allocator.
17336         (et_new_tree): Likewise.
17337         (et_free_tree): Likewise.
17338         (et_free_tree_force): Likewise.
17339         (et_free_pools): Likewise.
17340         (et_split): Likewise.
17342 2015-06-01  Martin Liska  <mliska@suse.cz>
17344         * alloc-pool.c (struct alloc_pool_descriptor): Move definition
17345         to header file.
17346         * alloc-pool.h (pool_allocator::pool_allocator): New function.
17347         (pool_allocator::release): Likewise.
17348         (inline pool_allocator::release_if_empty): Likewise.
17349         (inline pool_allocator::~pool_allocator): Likewise.
17350         (pool_allocator::allocate): Likewise.
17351         (pool_allocator::remove): Likewise.
17353 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17355         * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
17356         in comment.
17358 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17360         * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
17361         to fusible_ops.
17362         * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
17363         (arm_macro_fusion_p): Likewise.
17364         (arm_macro_fusion_pair_p): Likewise.
17366 2015-06-01  James Greenhalgh  <james.greenhalgh@arm.com>
17368         * config/aarch64/aarch64-protos.h (tune_params): Rename
17369         fuseable_ops to fusible_ops.
17370         * config/aarch64/aarch64.c (generic_tunings): Rename
17371         fuseable_ops to fusible_ops.
17372         (cortexa53_tunings): Likewise.
17373         (cortexa57_tunings): Likewise.
17374         (thunderx_tunings): Likewise.
17375         (xgene1_tunings): Likewise.
17376         (aarch64_macro_fusion_p): Likewise.
17377         (aarch64_macro_fusion_pair_p): Likewise.
17379 2015-06-01  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17381         * config/s390/driver-native.c: New file.
17382         * config/s390/x-native: New file.
17383         * config.host: Add new files for s390.
17384         * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
17385         and -march=native
17386         * config.gcc: Likewise.
17387         * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
17388         * config/s390/s390-opts.h (enum processor_type): Ditto.
17389         * config/s390/s390.c (s390_option_override): Catch unhandled
17390         PROCESSOR_NATIVE
17392 2015-06-01  Ilya Enkovich  <ilya.enkovich@intel.com>
17394         PR target/65527
17395         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
17396         redirection for instrumented calls.
17397         * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
17398         (append_compiler_options): Append -fcheck-pointer-bounds.
17399         * tree-chkp.h (chkp_copy_call_skip_bounds): New.
17400         (chkp_redirect_edge): New.
17401         * tree-chkp.c (chkp_copy_call_skip_bounds): New.
17402         (chkp_redirect_edge): New.
17404 2015-06-01  Richard Biener  <rguenther@suse.de>
17406         PR tree-optimization/66280
17407         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
17408         def-use walking.
17410 2015-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17412         * config/aarch64/aarch64.md
17413         (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
17414         logic_shift_imm.
17416 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
17418         * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
17419         Remove obsolete kludge.
17421 2015-06-01  Richard Biener  <rguenther@suse.de>
17423         * tree-ssa-reassoc.c (get_rank): Simplify.
17425 2015-05-31  H.J. Lu  <hongjiu.lu@intel.com>
17427         * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
17428         * configure: Regenerated.
17430 2015-05-31  Mikhail Maltsev  <maltsevm@gmail.com>
17432         * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
17433         issue (add space between string literal and macro).
17434         * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
17436 2015-05-30  Andreas Schwab  <schwab@linux-m68k.org>
17438         * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
17439         implict or explicit -fPIE or -fpie.
17441 2015-05-30  Mike Frysinger  <vapier@gentoo.org>
17443         * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
17445 2015-05-28  DJ Delorie  <dj@redhat.com>
17447         * expmed.c (extract_bit_field_1): Avoid clobbering a
17448         yet-to-be-used base/index register.
17450 2015-05-30  Jan Hubicka  <hubicka@ucw.cz>
17452         * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
17453         (alias_stats): Add num_universal.
17454         (alias_set_subset_of): Special case pointers; be ready for NULL
17455         children.
17456         (alias_sets_conflict_p): Special case pointers; be ready for NULL
17457         children.
17458         (init_alias_set_entry): Break out from ...
17459         (record_alias_subset): ... here; propagate new fields;
17460         allocate children only when really needed.
17461         (get_alias_set): Do less generous pointer globbing.
17462         (dump_alias_stats_in_alias_c): Update statistics.
17464 2015-05-30  Alan Modra  <amodra@gmail.com>
17466         * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
17467         correct block for use of r12.
17468         (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
17470 2015-05-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
17472         PR target/66215
17473         * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
17474         with -mhotpatch=.
17476 2015-05-29  Jakub Jelinek  <jakub@redhat.com>
17478         PR tree-optimization/66142
17479         * tree-if-conv.c (if_convertible_phi_p): Don't give up on
17480         virtual phis that feed themselves.
17482 2015-05-29  Richard Biener  <rguenther@suse.de>
17484         PR tree-optimization/66314
17485         * tree-ssa-threadupdate.c (create_block_for_threading): Add
17486         parameter that says which loop the new block belongs to.
17487         (ssa_create_duplicates): Blocks duplicated for the threaded
17488         path belong to the loop of the thread destination.
17490 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
17492         * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
17493         to cleanup-saved-temps.
17494         * doc/sourcebuild.texi (Clean up generated test files): Expand
17495         introduction.
17496         (dg-keep-saved-temps): Document new proc.
17497         (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
17498         cleanup-saved-temps): Remove.
17500 2015-05-28  Andreas Tobler  <andreast@gcc.gnu.org>
17502         * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
17503         gcc_AC_CHECK_DECLS.
17504         * configure: Regenerate.
17506 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17508         * config/nios2/linux.h (CPP_SPEC): Define.
17510 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17512         * config/microblaze/linux.h (CPP_SPEC): Define.
17514 2015-05-28  Mike Frysinger  <vapier@gentoo.org>
17516         * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
17517         -pthread is specified.
17519 2015-05-28  Richard Biener  <rguenther@suse.de>
17521         * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
17522         (vect_fixup_scalar_cycles_with_patterns): Likewise.
17523         (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
17524         after pattern recog.
17525         (vect_create_epilog_for_reduction): Properly handle reductions
17526         with patterns.
17527         (vectorizable_reduction): Likewise.
17528         * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
17529         reduction chains.
17530         (vect_get_constant_vectors): Create the correct number of
17531         initial values for reductions.
17532         (vect_schedule_slp_instance): Handle reduction chains that are
17533         type changing properly.
17534         * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
17536 2015-05-28  Richard Biener  <rguenther@suse.de>
17538         PR tree-optimization/66142
17539         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
17540         values better in memcpy destination handling.  Handle non-aliasing
17541         we discover here.
17543 2015-05-28  Lawrence Velázquez  <vq@larryv.me>
17545         PR target/63810
17546         * config/darwin-c.c (version_components): New global enum.
17547         (parse_version, version_as_legacy_macro)
17548         (version_as_modern_macro, macosx_version_as_macro): New functions.
17549         (version_as_macro): Remove.
17550         (darwin_cpp_builtins): Use new function.
17552 2015-05-28  H.J. Lu  <hongjiu.lu@intel.com>
17554         * builtins.c (expand_builtin_acc_on_device): Mark parameters
17555         with ATTRIBUTE_UNUSED.
17557 2015-05-28  Julian Brown  <julian@codesourcery.com>
17559         PR libgomp/65742
17561         * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
17562         sequence for !ACCEL_COMPILER.
17564 2015-05-28  Nick Clifton  <nickc@redhat.com>
17566         * config/rx/rx.c (push_regs): New function.  Extracts code from...
17567         (rx_expand_prologue): ... here.  Use push_regs to push even small
17568         spans of registers.
17569         (pop_regs): New function.
17570         (rx_expand_epilogue):  Use pop_regs to pop even small spans of
17571         registers.
17573 2015-05-28  Richard Biener  <rguenther@suse.de>
17575         * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
17576         member.
17577         (SLP_INSTANCE_BODY_COST_VEC): Remove.
17578         (vect_update_slp_costs_according_to_vf): Likewise.
17579         (vect_slp_analyze_operations): Update prototype.
17580         * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
17581         vect_update_slp_costs_according_to_vf, adjust.
17582         * tree-vect-slp.c (vect_free_slp_instance): Adjust.
17583         (vect_analyze_slp_cost_1): Likewise.
17584         (vect_analyze_slp_cost): Likewise.  Properly deal with
17585         widening reduction ops.  Commit body costs.
17586         (vect_analyze_slp_instance): Adjust.  Do not analyze SLP
17587         cost for loops from here.
17588         (vect_slp_analyze_operations): But do it from here when
17589         the vectorization factor is known and stmts are analyzed.
17590         (vect_bb_vectorization_profitable_p): Simplify.
17591         (vect_slp_analyze_bb_1): Do not compute SLP cost here.
17592         (vect_update_slp_costs_according_to_vf): Remove.
17594 2015-05-27  Magnus Granberg  <zorry@gentoo.org>
17595             H.J. Lu  <hongjiu.lu@intel.com>
17597         * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
17598         (BUILD_CFLAGS): Likewise.
17599         (BUILD_CXXFLAGS): Likewise.
17600         (LINKER): Add @NO_PIE_FLAG@.
17601         (BUILD_LDFLAGS): Likewise.
17602         (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
17603         --enable-default-pie.
17604         * common.opt (fPIE): Initialize to -1.
17605         (fpie): Likewise.
17606         (no-pie): New option.
17607         (pie): Replace "Negative(shared)" with "Negative(no-pie)".
17608         * configure.ac: Add --enable-default-pie.
17609         (NO_PIE_CFLAGS): New.  Check if -fno-PIE works.  AC_SUBST.
17610         (NO_PIE_FLAG): New.  Check if -no-pie works.  AC_SUBST.
17611         * defaults.h (DEFAULT_FLAG_PIE): New.  Default PIE to -fPIE.
17612         * gcc.c (NO_PIE_SPEC): New.
17613         (PIE_SPEC): Likewise.
17614         (NO_FPIE1_SPEC): Likewise.
17615         (FPIE1_SPEC): Likewise.
17616         (NO_FPIE2_SPEC): Likewise.
17617         (FPIE2_SPEC): Likewise.
17618         (NO_FPIE2_SPEC): Likewise.
17619         (FPIE_SPEC): Likewise.
17620         (NO_FPIE_SPEC): Likewise.
17621         (NO_FPIC1_SPEC): Likewise.
17622         (FPIC1_SPEC): Likewise.
17623         (NO_FPIC2_SPEC): Likewise.
17624         (FPIC2_SPEC): Likewise.
17625         (NO_FPIC2_SPEC): Likewise.
17626         (FPIC_SPEC): Likewise.
17627         (NO_FPIC_SPEC): Likewise.
17628         (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
17629         (FPIE1_OR_FPIC1_SPEC): Likewise.
17630         (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
17631         (FPIE2_OR_FPIC2_SPEC): Likewise.
17632         (NO_FPIE_AND_FPIC_SPEC): Likewise.
17633         (FPIE_OR_FPIC_SPEC): Likewise.
17634         (LD_PIE_SPEC): Likewise.
17635         (LINK_PIE_SPEC): Handle -no-pie.  Use PIE_SPEC and LD_PIE_SPEC.
17636         * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
17637         * config/darwin.h (PIE_SPEC): Renamed to ...
17638         (DARWIN_PIE_SPEC): This.
17639         (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
17640         * config/darwin9.h (PIE_SPEC): Renamed to ...
17641         (DARWIN_PIE_SPEC): This.
17642         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
17643         PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
17644         * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
17645         FPIE2_OR_FPIC2_SPEC.
17646         * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
17647         * config/m68k/openbsd.h (ASM_SPEC): Likewise.
17648         * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
17649         * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17650         * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17651         * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
17652         * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
17653         * config/m32r/m32r.h (ASM_SPEC): Likewise.
17654         * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
17655         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
17656         * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
17657         * config/sparc/freebsd.h (ASM_SPEC): Likewise.
17658         * config/sparc/linux.h (ASM_SPEC): Likewise.
17659         * config/sparc/linux64.h (ASM_SPEC): Likewise.
17660         * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
17661         * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
17662         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
17663         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17664         * config/sparc/sparc.h (ASM_SPEC): Likewise.
17665         * config/sparc/sysv4.h (ASM_SPEC): Likewise.
17666         * config/sparc/vxworks.h (ASM_SPEC): Likewise.
17667         * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
17668         FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
17669         * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
17670         * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
17671         NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
17672         (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
17673         * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
17674         * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
17675         * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
17676         * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
17677         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
17678         * config/vax/linux.h (ASM_SPEC): Likewise.
17679         * doc/install.texi: Document --enable-default-pie.
17680         * doc/invoke.texi: Document -no-pie.
17681         * config.in: Regenerated.
17682         * configure: Likewise.
17684 2015-05-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
17686         PR rtl-optimization/66168
17687         * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
17688         can_move_invariant_reg.
17690 2015-05-27  John David Anglin  <danglin@gcc.gnu.org>
17692         PR target/66148
17693         * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
17694         REG_EQUAL note when doing insert.
17696         * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
17697         instead of "%d" for 'o' operand.
17699 2015-05-27  Nathan Sidwell  <nathan@acm.org>
17701         PR c++/66270
17702         * tree.c (build_pointer_type_for_mode): Canonical type does not
17703         inherit can_alias_all.
17704         (build_reference_type_for_mode): Likewise.
17706 2015-05-27  Eric Botcazou  <ebotcazou@adacore.com>
17708         * expr.h (array_at_struct_end_p): Move to...
17709         (array_ref_element_size): Likewise.
17710         (component_ref_field_offset): Likewise.
17711         * tree.h (array_ref_element_size): ...here.
17712         (array_at_struct_end_p): Likewise.
17713         (component_ref_field_offset): Likewise.
17714         * expr.c (array_ref_element_size): Move to...
17715         (array_ref_low_bound): Likewise.
17716         (array_at_struct_end_p): Likewise.
17717         (array_ref_up_bound): Likewise.
17718         (component_ref_field_offset): Likewise.
17719         * tree.c (array_ref_element_size): ...here.
17720         (array_ref_low_bound): Likewise.
17721         (array_ref_up_bound): Likewise.
17722         (array_at_struct_end_p): Likewise.
17723         (component_ref_field_offset): Likewise.
17725 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
17726             Szabolcs Nagy  <szabolcs.nagy@arm.com>
17728         * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
17730 2015-05-27  Jason Merrill  <jason@redhat.com>
17732         PR bootstrap/66304
17733         * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
17734         ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
17735         ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
17737 2015-05-22  Aditya Kumar  <hiraditya@msn.com>
17739         * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
17740         is true.
17742         * statistics.c (statistics_fini_pass): Print pass name.
17744 2015-05-27  Richard Biener  <rguenther@suse.de>
17746         PR tree-optimization/66272
17747         Revert parts of
17748         2014-08-15  Richard Biener  <rguenther@suse.de>
17750         PR tree-optimization/62031
17751         * tree-data-ref.c (dr_analyze_indices): Do not set
17752         DR_UNCONSTRAINED_BASE.
17753         (dr_may_alias_p): All indirect accesses have to go the
17754         formerly DR_UNCONSTRAINED_BASE path.
17755         * tree-data-ref.h (struct indices): Remove
17756         unconstrained_base member.
17757         (DR_UNCONSTRAINED_BASE): Remove.
17759 2015-05-27  Aldy Hernandez  <aldyh@redhat.com>
17761         * dwarf2out.c: Remove block_map.
17762         (gen_call_site_die): Replace block_map use with BLOCK_DIE.
17763         (gen_lexical_block_die): Same.
17764         (dwarf2out_function_decl): Remove block_map use.
17765         (dwarf2out_c_finalize): Same.
17766         * tree-core.h (struct tree_block): Add die field.
17767         * tree.h (BLOCK_DIE): New.
17769 2015-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17771         PR target/65358
17772         * expr.c (memory_load_overlap): New function.
17773         (emit_push_insn): When pushing partial args to the stack would
17774         clobber the register part load the overlapping part into a pseudo
17775         and put it into the hard reg after pushing.  Change return type
17776         to bool.  Add bool argument.
17777         * expr.h (emit_push_insn): Change return type to bool.
17778         Add bool argument.
17779         * calls.c (expand_call): Cancel sibcall optimization when encountering
17780         partial argument on targets with ARGS_GROW_DOWNWARD and
17781         !STACK_GROWS_DOWNWARD.
17782         (emit_library_call_value_1): Update callsite of emit_push_insn.
17783         (store_one_arg): Likewise.
17785 2015-05-27  Gregor Richards  <gregor.richards@uwaterloo.ca>
17787         * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
17789 2015-05-27  Martin Liska  <mliska@suse.cz>
17791         * Makefile.in: Add additional dependencies related to memory report
17792         enhancement.
17793         * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
17794         * bitmap.c (struct bitmap_descriptor_d): Remove.
17795         (struct loc): Likewise.
17796         (struct bitmap_desc_hasher): Likewise.
17797         (bitmap_desc_hasher::hash): Likewise.
17798         (bitmap_desc_hasher::equal): Likewise.
17799         (get_bitmap_descriptor): Likewise.
17800         (bitmap_register): User new memory descriptor API.
17801         (register_overhead): Likewise.
17802         (bitmap_find_bit): Register nsearches and search_iter statistics.
17803         (struct bitmap_output_info): Remove.
17804         (print_statistics): Likewise.
17805         (dump_bitmap_statistics): Use new memory descriptor.
17806         * bitmap.h (struct bitmap_usage): New class.
17807         * genmatch.c: Extend header file inclusion.
17808         * genpreds.c: Likewise.
17809         * ggc-common.c (struct ggc_usage): New class.
17810         (struct ggc_loc_desc_hasher): Remove.
17811         (ggc_loc_desc_hasher::hash): Likewise.
17812         (ggc_loc_desc_hasher::equal): Likewise.
17813         (struct ggc_ptr_hash_entry): Likewise.
17814         (struct ptr_hash_hasher): Likewise.
17815         (ptr_hash_hasher::hash): Likewise.
17816         (ptr_hash_hasher::equal): Likewise.
17817         (make_loc_descriptor): Likewise.
17818         (ggc_prune_ptr): Likewise.
17819         (dump_ggc_loc_statistics): Use new memory descriptor.
17820         (ggc_record_overhead): Likewise.
17821         (ggc_free_overhead): Likewise.
17822         (final_cmp_statistic): Remove.
17823         (cmp_statistic): Likewise.
17824         (ggc_add_statistics): Liekwise.
17825         (ggc_prune_overhead_list): Likewise.
17826         * hash-map-traits.h: New file.
17827         * hash-map.h (struct default_hashmap_traits): Move the traits to a
17828         separate header file.
17829         * hash-set.h: Pass memory statistics info to ctor.
17830         * hash-table.c (void dump_hash_table_loc_statistics): New function.
17831         * hash-table.h (hash_table::hash_table): Add new ctor arguments.
17832         (hash_table::~hash_table): Register memory release operation.
17833         (hash_table::alloc_entries): Handle memory allocation operation.
17834         (hash_table::expand): Likewise.
17835         * inchash.c (iterative_hash_hashval_t): Move implementation to header
17836         file.
17837         (iterative_hash_host_wide_int): Likewise.
17838         * inchash.h (class hash): Likewise.
17839         * mem-stats-traits.h: New file.
17840         * mem-stats.h: New file.
17841         (mem_location): Add new class.
17842         (mem_usage): Likewise.
17843         (mem_alloc_description): Likewise.
17844         * sese.c: Add new header file inclusision.
17845         * toplev.c (dump_memory_report): Add report for hash_table, hash_map
17846         and hash_set.
17847         * tree-sra.c: Add new header file inclusision.
17848         * vec.c (struct vec_descriptor): Remove.
17849         (hash_descriptor): Likewise.
17850         (struct vec_usage): Likewise.
17851         (struct ptr_hash_entry): Likewise.
17852         (hash_ptr): Likewise.
17853         (eq_ptr): Likewise.
17854         (vec_prefix::register_overhead): Use new memory descriptor API.
17855         (vec_prefix::release_overhead): Likewise.
17856         (add_statistics): Remove.
17857         (dump_vec_loc_statistics): Use new memory descriptor API.
17858         * vec.h (struct vec_prefix): Likewise.
17859         (va_heap::reserve): Likewise.
17860         (va_heap::release): Likewise.
17861         * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
17863 2015-05-27  Richard Biener  <rguenther@suse.de>
17865         * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
17866         earlier and remove ??? comment.
17867         (vect_analyze_stmt): If we are analyzing a pure SLP stmt
17868         and got called from loop analysis bail out.  Always pass the SLP
17869         node to the vectorizable_* functions.
17870         * tree-vect-loop.c (vect_analyze_loop_operations): Remove
17871         the premature SLP check here.
17872         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
17873         detected SLP stmts.
17874         (vect_detect_hybrid_slp_1): Likewise.
17876 2015-05-26  Jeff Law  <law@redhat.com>
17878         * combine.c (find_split_point): Verify that the shift count is a
17879         constant when choosing (plus (ashift ...)) as a split point.
17881         * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
17882         No functional changes.
17884 2015-05-26  Jan Hubicka  <hubicka@ucw.cz>
17886         * ipa-polymorphic-call.c
17887         (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
17888         case when call target is already known.
17890 2015-05-26  Oleg Endo  <olegendo@gcc.gnu.org>
17892         PR target/65979
17893         * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
17894         take into account the case that operands[1] and operands[2]
17895         are the same register.
17897 2015-05-26  Michael Matz  <matz@suse.de>
17899         PR middle-end/66251
17901         * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
17902         stores.
17903         (vect_create_vectorized_demotion_stmts): Always set
17904         STMT_VINFO_VEC_STMT, also with SLP.
17905         (vectorizable_store): Handle strided group stores.
17907 2015-05-26  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
17909         PR target/66049
17910         * config/aarch64/aarch64.md
17911         (*adds_shift_imm_<mode>):  New pattern.
17912         (*subs_shift_imm_<mode>):  Likewise.
17913         (*adds_<optab><ALLX:mode>_shift_<GPI:mode>):  Likewise.
17914         (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
17915         (*add_uxt<mode>_shift2): Likewise.
17916         (*add_uxtsi_shift2_uxtw): Likewise.
17917         (*sub_uxt<mode>_shift2): Likewise.
17918         (*sub_uxtsi_shift2_uxtw): Likewise.
17920 2015-05-26  David Edelsohn  <dje.gcc@gmail.com>
17922         * config/rs6000/constraints.md (Y, U): Use match_test.
17924 2015-05-26  Christian Bruel  <christian.bruel@st.com>
17926         PR target/52144
17927         * config/arm/arm.c (arm_option_check_internal)
17928         (arm_option_params_internal): Check opts->target_flags to set macros.
17929         (TREE_TARGET_ARM, TREE_TARGET_THUMB)
17930         (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
17931         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
17932         (builtin_define): Replaced with def_or_undef_macro.
17933         * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
17934         TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
17935         (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
17936         (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
17937         (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
17938         (TARGET_ARM_FEATURE_LDREX_P)
17939         (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
17940         * config/arm/arm-c.c (def_or_undef_macro): New function.
17941         (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
17943 2015-05-26  Christian Bruel  <christian.bruel@st.com>
17945         * c-common.h (builtin_define_with_int_value)
17946         (builtin_define_type_sizeof): Declare.
17947         * c-cppbuiltin.c (builtin_define_with_int_value)
17948         (builtin_define_type_sizeof): Externalize.
17949         (builtin_define_std): Cleanup declaration.
17950         * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
17951         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
17952         * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
17953         (builtin_define, builtin_assert): New macros.
17955 2015-05-26  Richard Biener  <rguenther@suse.de>
17957         PR tree-optimization/66142
17958         * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
17959         MEM_REFs for the same base address.
17961 2015-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17963         PR ipa/66181
17964         * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
17966 2015-05-26  Jason Merrill  <jason@redhat.com>
17968         * configure.ac: Set CXXFLAGS for ISL test.
17969         * configure: Regenerate.
17971         * configure.ac: Use C++ for all tests.  Use AC_CHECK_DECLS for
17972         strstr and basename.
17973         * configure: Regenerate.
17975 2015-05-26  Richard Biener  <rguenther@suse.de>
17977         * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
17978         X % C -> X & (C - 1) for C being a power-of two to ...
17979         * match.pd: ... patterns.
17981 2015-05-26  Marc Glisse  <marc.glisse@inria.fr>
17983         * match.pd (swapped_tcc_comparison): New operator list.
17984         (-A CMP -B): New simplification.
17985         * fold-const.c (fold_comparison): Remove corresponding code.
17987 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
17989         * caller-save.c (init_caller_save): Base temporary register numbers
17990         on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
17991         * cfgloopanal.c (init_set_costs): Likewise.
17992         * dojump.c (prefer_and_bit_test): Likewise.
17993         * expr.c (init_expr_target): Likewise.
17994         * ira.c (setup_prohibited_mode_move_regs): Likewise.
17995         * lower-subreg.c (init_lower_subreg): Likewise.
17996         * postreload.c (reload_cse_regs_1): Likewise.
17998 2015-05-26  Richard Sandiford  <richard.sandiford@arm.com>
18000         * gensupport.h (compute_test_codes): Declare.
18001         * gensupport.c (compute_predicate_codes): Rename to...
18002         (compute_test_codes): ...this.  Generalize error message.
18003         (process_define_predicate): Update accordingly.
18004         * genpreds.c (compute_maybe_allows): Delete.
18005         (add_constraint): Use compute_test_codes to determine whether
18006         something can accept a SUBREG, REG or MEM.
18008 2015-05-26  Torvald Riegel  <triegel@redhat.com>
18010         * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
18011         'memory model' to align with C++11; fix description of memory orders;
18012         fix a few typos.
18014 2015-05-26  Richard Biener  <rguenther@suse.de>
18016         * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
18017         (vect_analyze_loop_operations): ... here.  Remove slp parameter,
18018         detect whether we apply SLP.  Remove call to
18019         vect_update_slp_costs_according_to_vf.
18020         (vect_analyze_loop_2): Call vect_update_vf_for_slp and
18021         vect_update_slp_costs_according_to_vf from here.  Dispatch
18022         to vect_slp_analyze_operations to analyze SLP stmts.
18023         * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
18024         unused bb_vec_info parameter, adjust assert.
18025         (vect_slp_analyze_operations): Pass in the slp instance tree
18026         instead of bb_vec_info.
18027         (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
18028         * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
18030 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
18032         * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
18033         Q_REGS.  Expand comment.
18034         (REG_CLASS_NAMES): Ditto.
18035         (REG_CLASS_CONTENTS): Ditto.
18037 2015-05-25  Uros Bizjak  <ubizjak@gmail.com>
18039         PR target/66274
18040         * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
18041         when LEGACY_INT_REGNO_P is processed.
18043 2015-05-25  Alexander Monakov  <amonakov@ispras.ru>
18045         * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
18047 2015-05-25  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18049         * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
18050         register if not marked dead/unused, before return.
18052 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18054         PR lto/66180
18055         * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
18056         is set; check for assembler name at LTO time.
18057         (type_in_anonymous_namespace): Remove hacks, check that all
18058         anonymous types are called "<anon>"
18059         (odr_type_p): Simplify; add check for "<anon>"
18060         (odr_subtypes_equivalent): Add odr_type_p check.
18061         * tree.c (need_assembler_name_p): Even anonymous namespace needs
18062         assembler name.
18064 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18066         * ipa-utils.h (method_class_type): Remove.
18067         * cgraphunit.c (walk_polymorphic_call_targets): Use
18068         TYPE_METHOD_BASETYPE.
18069         * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
18070         on main variants only.
18071         (method_class_type): Remove.
18072         (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
18073         (build_type_inheritance_graph): Likewise.
18074         * ipa-icf.c (sem_function::equals_wpa): Likewise.
18075         * pa-polymorphic-call.c (decl_maybe_in_construction_p,
18076         check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
18078 2015-05-24  Jan Hubicka  <hubicka@ucw.cz>
18080         * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
18081         is_typedef_decl, typedef_variant_p): Constify.
18082         * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
18083         is_typedef_decl, typedef_variant_p): Constify.
18085 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18087         * defaults.h (gen_tablejump): New function.
18088         (HAVE_tablejump): Add default value.
18089         * expr.c: Adjust.
18090         * stmt.c: Likewise.
18092 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18094         * defaults.h (gen_store_multiple): New function.
18095         (HAVE_store_multiple): Add default value.
18096         * expr.c (move_block_from_reg): Adjust.
18098 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18100         * defaults.h (gen_load_multiple): New function.
18101         (HAVE_load_multiple): Add default value.
18102         * expr.c (move_block_to_reg): Adjust.
18104 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18106         * defaults.h (gen_mem_signal_fence): New function.
18107         (HAVE_mem_signal_fence): Add default value.
18108         * optabs.c: Adjust.
18110 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18112         * defaults.h (gen_memory_barrier): New function.
18113         (HAVE_memory_barrier): Add default value.
18114         * optabs.c: Adjust.
18116 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18118         * defaults.h (gen_mem_thread_fence): New function.
18119         (HAVE_mem_thread_fence): Add default definition.
18120         * optabs.c: Adjust.
18122 2015-05-23  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18124         * combine.c (find_split_point): Check the value of HAVE_lo_sum
18125         instead of if it is defined.
18126         (combine_simplify_rtx): Likewise.
18127         * lra-constraints.c (process_address_1): Likewise.
18128         * config/darwin.c: Adjust.
18129         * genconfig.c (main): Always define HAVE_lo_sum.
18131 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18133         * genmatch.c (parser::parse_operation): Reject expanding
18134         operator-list inside 'for'.
18136 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18138         * genmatch.c (parser::parse_for): Reject iterator if used as
18139         operator-list.
18141 2015-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
18143         * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
18144         after end of id-list.
18146 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
18148         * tree.c (gimple_canonical_types_compatible_p): Sanity check that
18149         we do not try to compute canonical type for type that does not need
18150         alias set.
18151         (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
18152         FUNCITON_TYPE.
18153         * tree.h (type_with_alias_set_p): New.
18155 2015-05-22  Jan Hubicka  <hubicka@ucw.cz>
18157         * tree.c (gimple_canonical_types_compatible_p):  Do not compare
18158         function attributes.
18159         (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
18161 2015-05-22  Jim Wilson  <jim.wilson@linaro.org>
18163         * Makefile.in (check_gcc_parallelize): Delete.
18164         (lang_checks_parallelized): Update comment.
18166 2015-05-22  Mikhail Maltsev  <maltsevm@gmail.com>
18168         PR rtl-optimization/66237
18169         * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
18170         location of an "as_a" cast.
18172 2015-05-22  Jeff Law  <law@redhat.com>
18174         * config/pa/pa.md (non-canonical shift-add insns): Remove.
18175         (peepholes with non-canonical RTL sources): Remove.
18176         (peepholes for indexed stores of FP regs in integer modes): Match and
18177         generate canonical RTL.
18179 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18181         PR tree-optimization/63387
18182         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
18183         ((x ord x) & (y ord y) -> (x ord y),
18184         (x ord x) & (x ord y) -> (x ord y)): New simplifications.
18185         * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
18186         vectors like scalars.
18188 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18190         * convert.c (convert_to_integer, convert_to_vector): Include the
18191         types in the error message.
18193 2015-05-22  Marc Glisse  <marc.glisse@inria.fr>
18195         * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
18196         simplifications.
18198 2015-05-22  Jeff Law  <law@redhat.com>
18200         * config/pa/pa.md (integer_indexed_store splitters): Use
18201         mem_shadd_operand.  Use ASHIFT rather than MULT in the resulting
18202         insns -- adjusting the constant 2nd operand accordingly.
18204         * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
18205         (plus (ashift X log2) Y) if it is a split point.
18207         * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
18208         out of hppa_legitimize_address to handle both forms of a multiply
18209         by 2, 4 or 8.
18210         (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
18211         Always generate the ASHIFT variant as the result is not directly
18212         used in a MEM.  Update comments and refactor slightly to improve
18213         readability.
18215 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18217         PR target/65491
18218         * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
18219         aarch64_composite_type_p.  Remove check for aarch64_composite_type_p.
18220         (aarch64_composite_type_p): Return false if given type and mode are
18221         for a short vector.
18223 2015-05-22  Richard Biener  <rguenther@suse.de>
18225         * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
18226         member.
18227         * tree-vect-loop.c (vect_analyze_loop_operations): Look at
18228         patterns when determining whether SLP is pure.
18229         (vect_is_slp_reduction): Remove check for pattern stmts.
18230         (vect_is_simple_reduction_1): Remove dead code.
18231         * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
18232         (vect_get_and_check_slp_defs): Pass in the stmt number.
18233         Allow the first def in a reduction to be not a pattern stmt when
18234         the rest of the stmts def are patterns.
18235         (vect_build_slp_tree_1): Allow tcc_expression codes like
18236         SAD_EXPR and DOT_PROD_EXPR.
18237         (vect_build_slp_tree): Adjust.
18238         (vect_analyze_slp): Refactor and move BB vect error message ...
18239         (vect_slp_analyze_bb_1): ... here.
18241 2015-05-22  Aldy Hernandez  <aldyh@redhat.com>
18243         * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
18244         for CSWTCH temporary.
18246 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18248         * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
18249         (arm_unspec_cost): Allow UNSPEC_VOLATILE.  Do not recurse inside
18250         unknown unspecs.
18252 2015-05-22  Richard Biener  <rguenther@suse.de>
18254         PR tree-optimization/66251
18255         * tree-vect-stmts.c (vectorizable_conversion): Properly
18256         set STMT_VINFO_VEC_STMT even for the SLP case.
18258 2015-05-22  Marek Polacek  <polacek@redhat.com>
18260         * doc/extend.texi: Use @pxref instead of @xref.
18262 2015-05-22  hiraditya  <hiraditya@msn.com>
18264         * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
18265         redundant if.
18267 2015-05-22  Richard Biener  <rguenther@suse.de>
18269         PR tree-optimization/65701
18270         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
18271         Move peeling cost models into one place.  Peel for alignment
18272         for single loads only if an aligned load is cheaper than
18273         an unaligned load.
18275 2015-05-22  Marek Polacek  <polacek@redhat.com>
18277         PR c/47043
18278         * doc/extend.texi (Enumerator Attributes): New section.
18279         Document syntax of enumerator attributes.
18281 2015-05-22  Richard Biener  <rguenther@suse.de>
18283         * tree-vect-loop.c (get_reduction_op): New function.
18284         (vect_model_reduction_cost): Use it, add reduc_index parameter.
18285         Make ready for BB reductions.
18286         (vect_create_epilog_for_reduction): Use get_reduction_op.
18287         (vectorizable_reduction): Init reduc_index to a valid value.
18288         Adjust vect_model_reduction_cost call.
18289         * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
18290         operand for reduction defaults.  Add SAD_EXPR support.
18291         Assert we have a neutral op for SLP reductions.
18292         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
18293         walking pattern stmt ops only recurse to SSA names.
18295 2015-05-22  Richard Biener  <rguenther@suse.de>
18297         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
18298         assert with guard, remove check on detected reduction.
18299         (vect_recog_sad_pattern): Likewise.
18300         (vect_recog_widen_sum_pattern): Likewise.
18302 2015-05-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18304         * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
18305         __always_inline__ attribute.
18306         (vaesdq_u8): Likewise.
18307         (vaesmcq_u8): Likewise.
18308         (vaesimcq_u8): Likewise.
18309         (vsha1cq_u32): Likewise.
18310         (vsha1mq_u32): Likewise.
18311         (vsha1pq_u32): Likewise.
18312         (vsha1h_u32): Likewise.
18313         (vsha1su0q_u32): Likewise.
18314         (vsha1su1q_u32): Likewise.
18315         (vsha256hq_u32): Likewise.
18316         (vsha256h2q_u32): Likewise.
18317         (vsha256su0q_u32): Likewise.
18318         (vsha256su1q_u32): Likewise.
18319         (vmull_p64): Likewise.
18320         (vmull_high_p64): Likewise.
18322 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18324         * final.c (final_scan_insn): Don't check HAVE_peephole with the
18325         preprocessor.
18326         * output.h: Likewise.
18327         * genconfig.c (main): Alwways define HAVE_peephole.
18328         * genpeep.c: Don't emit checks of HAVE_peephole.
18330 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18332         * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
18333         check HAVE_conditional_move with the preprocessor.
18335 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18337         * genconfig.c (main): Always define HAVE_conditional_move.
18338         * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
18339         toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
18340         is defined.
18342 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18344         * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
18345         reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
18346         and FRAME_POINTER_REGNUM with the preprocessor.
18348 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18350         * defaults.h: Add default for STACK_PUSH_CODE.
18351         * expr.c: Don't redefine STACK_PUSH_CODE.
18352         * recog.c: Likewise.
18354 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18356         * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
18357         sched-deps.c: Use if instead of preprocessor checks with
18358         STACK_GROWS_DOWNWARD.
18360 2015-05-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18362         * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
18363         is defined.
18364         * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
18365         * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
18366         * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
18367         * doc/tm.texi: Regenerate.
18369 2015-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18371         PR target/66232
18372         * config/i386/constraints.md (Bg): New constraint for GOT memory
18373         operand.
18374         * config/i386/i386.md (*call_got_x32): New pattern.
18375         (*call_value_got_x32): Likewise.
18376         * config/i386/predicates.md (GOT_memory_operand): New predicate.
18378 2015-05-21  Jakub Jelinek  <jakub@redhat.com>
18380         PR tree-optimization/66233
18381         * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
18382         Simplify.
18384 2015-05-21  Jeff Law  <law@redhat.com>
18386         * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
18387         than MULT for shadd sequences.
18389 2015-05-08  Jan Hubicka  <hubicka@ucw.cz>
18391         * alias.c (alias_stats): New static var.
18392         (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
18393         (dump_alias_stats_in_alias_c): New function.
18394         * alias.h (dump_alias_stats_in_alias_c): Declare.
18395         * tree-ssa-alias.c (dump_alias_stats): Call it.
18397 2015-05-08  Michael Matz  <matz@suse.de>
18399         * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
18400         to strided_p.
18401         (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
18402         (STMT_VINFO_STRIDED_P): ... this.
18403         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
18404         (vect_verify_datarefs_alignment): Likewise.
18405         (vect_enhance_data_refs_alignment): Likewise.
18406         (vect_analyze_data_ref_access): Likewise.
18407         (vect_analyze_data_refs): Accept strided stores.
18408         * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
18409         (vect_model_load_cost): Adjust for macro rename.
18410         (vectorizable_mask_load_store): Likewise.
18411         (vectorizable_load): Likewise.
18412         (vectorizable_store): Open code strided stores.
18414 2015-05-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18416         * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
18417         Document sqrt_insn.
18419 2015-05-21  Richard Biener  <rguenther@suse.de>
18421         PR c++/66211
18422         * match.pd: Guard pattern optimzing (int)(float)int
18423         conversions to apply only on GIMPLE.
18425 2015-05-21  Jeff Law  <law@redhat.com>
18427         * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
18428         multiply-accumulate/shift-add insn generation.
18430 2015-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
18432         PR target/54236
18433         * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
18434         operands[1] are the same.
18436 2015-05-21  Ilya Enkovich  <enkovich.gnu@gmail.com>
18438         PR middle-end/66221
18439         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
18440         build_distinct_type_copy to copy bounds.
18442 2015-05-21  Thomas Schwinge  <thomas@codesourcery.com>
18444         * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
18445         Change to unsigned int.
18447 2015-05-20  Jeff Law  <law@redhat.com>
18449         * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
18450         (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
18451         (pa_shadd_constant_p): Allow constants for shadd insns rather
18452         than valid scaling constants for memory addresses.
18453         * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
18454         * config/pa/predicates.md (mem_shadd_operand): New predicate.
18455         * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
18456         (shift-add insns using ASHIFT): New patterns.
18458 2015-05-20  Mikhail Maltsev  <maltsevm@gmail.com>
18460         * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
18461         feasible.
18462         (fix_up_fall_thru_edges): Likewise.
18463         (fix_crossing_conditional_branches): Likewise. Promote jump targets
18464         from to rtx_insn to rtx_code_label where feasible.
18465         * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
18466         gen_move_insn (returned type changed to rtx_insn).
18467         * builtins.c (expand_errno_check): Fix arguments of
18468         do_compare_rtx_and_jump (now expects rtx_code_label).
18469         (expand_builtin_acc_on_device): Likewise.
18470         * cfgcleanup.c (try_simplify_condjump): Add cast when calling
18471         invert_jump (now exprects rtx_jump_insn).
18472         * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
18473         (construct_init_block): Use rtx_code_label.
18474         * cfgrtl.c (block_label): Promote return type to rtx_code_label.
18475         (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
18476         calling redirect_jump.
18477         (patch_jump_insn): Likewise.
18478         (redirect_branch_edge): Likewise.
18479         (force_nonfallthru_and_redirect): Likewise.
18480         (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
18481         when suitable.
18482         (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
18483         * cfgrtl.h: Promote return type of block_label to rtx_code_label.
18484         * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
18485         * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
18486         to store the value retured by gen_label_rtx.
18487         * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
18488         rtx_jump_insn.
18489         * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
18490         (split_branches): Fix calls of redirect_jump.
18491         * dojump.c (jumpifnot): Promote argument type from rtx to
18492         rtx_code_label.
18493         (jumpifnot_1): Likewise.
18494         (jumpif): Likewise.
18495         (jumpif_1): Likewise.
18496         (do_jump_1): Likewise.
18497         (do_jump): Likewise. Use rtx_code_label when feasible.
18498         (do_jump_by_parts_greater_rtx): Likewise.
18499         (do_jump_by_parts_zero_rtx): Likewise.
18500         (do_jump_by_parts_equality_rtx): Likewise.
18501         (do_compare_rtx_and_jump): Likewise.
18502         * dojump.h: Update function prototypes.
18503         * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
18504         returns rtx_insn).
18505         * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
18506         rtx_jump_insn.
18507         (emit_label_before): Likewise.
18508         (emit_jump_insn_after_noloc): Likewise.
18509         (emit_jump_insn_after_setloc): Likewise.
18510         (emit_jump_insn_after): Likewise
18511         (emit_jump_insn_before_setloc): Likewise.
18512         (emit_jump_insn_before): Likewise.
18513         (emit_label_before): Promote return type to rtx_code_label.
18514         (emit_label): Likewise.
18515         * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
18516         * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
18517         gen_move_insn.
18518         (emit_stack_restore): Likewise.
18519         * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
18520         (do_cmp_and_jump): Likewise.
18521         * expr.c (expand_expr_real_2): Likewise. Promote some local variables
18522         from rtx to rtx_code_label.
18523         (gen_move_insn_uncast): New function.
18524         * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
18525         * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
18526         * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
18527         * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
18528         invert_jump_1 and redirect_jump_1.
18529         * internal-fn.c (expand_arith_overflow_result_store): Fix call of
18530         do_compare_rtx_and_jump.
18531         (expand_addsub_overflow): Likewise.
18532         (expand_neg_overflow): Likewise.
18533         (expand_mul_overflow): Likewise.
18534         * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
18535         return value of gen_move_insn.
18536         * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
18537         * loop-doloop.c (add_test): Use rtx_code_label.
18538         (doloop_modify): Likewise.
18539         (doloop_optimize): Likewise.
18540         * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
18541         * lra-constraints.c (emit_spill_move): Remove cast of value returned
18542         by gen_move_insn.
18543         (inherit_reload_reg): Add cast when calling dump_insn_slim.
18544         (split_reg): Likewise.
18545         * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
18546         gen_move_insn.
18547         * optabs.c (expand_binop_directly): Remove casts of values returned by
18548         maybe_gen_insn.
18549         (expand_unop_direct): Likewise.
18550         (expand_abs): Likewise.
18551         (maybe_emit_unop_insn): Likewise.
18552         (maybe_gen_insn): Promote return type to rtx_insn.
18553         * optabs.h: Update prototype of maybe_gen_insn.
18554         * postreload-gcse.c (eliminate_partially_redundant_load): Remove
18555         redundant cast.
18556         * recog.c (struct peep2_insn_data): Promote type of insn field to
18557         rtx_insn.
18558         (peep2_reinit_state): Use NULL instead of NULL_RTX.
18559         (peep2_attempt): Remove casts of insn in peep2_insn_data.
18560         (peep2_fill_buffer): Promote argument from rtx to rtx_insn
18561         * recog.h (struct insn_gen_fn): Promote return types of function
18562         pointers and operator ().from rtx to rtx_insn.
18563         * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
18564         (fill_eager_delay_slots): Likewise.
18565         (relax_delay_slots): Likewise.
18566         (make_return_insns): Likewise.
18567         (dbr_schedule): Likewise.
18568         (optimize_skips): Likewise.
18569         (reorg_redirect_jump): Likewise.
18570         (fill_slots_from_thread): Likewise.
18571         * reorg.h: Update prototypes.
18572         * resource.c (find_dead_or_set_registers): Use dyn_cast to
18573         rtx_jump_insn instead of check.  Use it's jump_target method.
18574         * rtl.h (rtx_jump_insn::jump_label): Define new method.
18575         (rtx_jump_insn::jump_target): Define new method.
18576         (rtx_jump_insn::set_jump_target): Define new method.
18577         * rtlanal.c (tablejump_p): Promote type of one local variable.
18578         * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
18579         (sched_analyze_insn): Likewise.
18580         * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
18581         (print_insn): Likewise.
18582         * stmt.c (label_rtx): Promote return type to rtx_insn.
18583         (force_label_rtx): Likewise.
18584         (jump_target_rtx): Define new function.
18585         (expand_label): Use it, get rid of one cast.
18586         (expand_naked_return): Promote rtx to rtx_code_label.
18587         (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
18588         (expand_case): Use rtx_code_label instread of rtx where feasible.
18589         (expand_sjlj_dispatch_table): Likewise.
18590         (emit_case_nodes): Likewise.
18591         * stmt.h: Declare jump_target_rtx.  Update prototypes.  Fix comments.
18592         * store-motion.c (insert_store): Make use of new return type of
18593         gen_move_insn and remove a cast.
18594         (replace_store_insn): Likewise.
18596 2015-05-20  Max Filippov  <jcmvbkbc@gmail.com>
18598         * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
18599         by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
18601 2015-05-20  Jeff Law  <law@redhat.com>
18603         * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
18604         dispose of the jump thread path when the jump threading
18605         opportunity is cancelled.
18607 2015-05-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18609         * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
18610         when printing the caret character.
18612 2015-05-20  Marek Polacek  <polacek@redhat.com>
18614         * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
18616 2015-05-20  Marek Polacek  <polacek@redhat.com>
18618         * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
18619         * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
18620         * gimple-fold.c (canonicalize_bool): Likewise.
18621         (same_bool_result_p): Likewise.
18622         * tree-if-conv.c (parse_predicate): Likewise.
18624 2015-05-20  Marek Polacek  <polacek@redhat.com>
18626         * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
18627         * gimplify.c (gimplify_modify_expr_rhs): Likewise.
18629 2015-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18631         * config/aarch64/aarch64.c (aarch64_class_max_nregs):
18632         Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
18633         values.
18635 2015-05-20  Robert Suchanek  <robert.suchanek@imgtec.com>
18637         * config/mips/mips.h (micromips_globals): Declare.
18639 2015-05-20  David Malcolm  <dmalcolm@redhat.com>
18641         * timevar.def (TV_INITIALIZE_RTL): New.
18642         * toplev.c (initialize_rtl): Use an auto_timevar to account this
18643         function's time to TV_INITIALIZE_RTL.
18645 2015-05-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
18647         * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
18648         gimple_build_nop calls.
18649         (chkp_find_bounds_for_elem): Likewise.
18650         (chkp_get_zero_bounds): Likewise.
18651         (chkp_get_none_bounds): Likewise.
18652         (chkp_get_bounds_by_definition): Likewise.
18653         (chkp_generate_extern_var_bounds): Likewise.
18654         (chkp_get_bounds_for_decl_addr): Likewise.
18655         (chkp_get_bounds_for_string_cst): Likewise.
18657 2015-05-20  Bin Cheng  <bin.cheng@arm.com>
18659         PR tree-optimization/65447
18660         * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
18661         (dump_use, dump_uses): Support to dump sub use.
18662         (record_use): New parameters to support sub use.  Remove call to
18663         dump_use.
18664         (record_sub_use, record_group_use): New functions.
18665         (compute_max_addr_offset, split_all_small_groups): New functions.
18666         (group_address_uses, rewrite_use_address): New functions.
18667         (strip_offset): New declaration.
18668         (find_interesting_uses_address): Call record_group_use.
18669         (add_candidate): New assertion.
18670         (infinite_cost_p): Move definition forward.
18671         (add_costs): Check INFTY cost and return immediately.
18672         (get_computation_cost_at): Clear setup cost and dependent bitmap
18673         for sub uses.
18674         (determine_use_iv_cost_address): Compute cost for sub uses.
18675         (rewrite_use_address_1): Rename from old rewrite_use_address.
18676         (free_loop_data): Free sub uses.
18677         (tree_ssa_iv_optimize_loop): Call group_address_uses.
18679 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18680             Jim Wilson  <jim.wilson@linaro.org>
18682         * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
18683         new  fields loadv and storev.
18684         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
18685         Initialize loadv and storev.
18686         * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
18687         (cortexa53_extra_costs): Likewise.
18688         (cortexa57_extra_costs): Likewise.
18689         (xgene1_extra_costs): Likewise.
18690         * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
18691         rtx_costs.
18693 2015-05-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
18695         * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
18696          storev.
18697         (cortexa8_extra_costs): Likewise.
18698         (cortexa5_extra_costs): Likewise.
18699         (cortexa7_extra_costs): Likewise.
18700         (cortexa12_extra_costs): Likewise.
18701         (cortexa15_extra_costs): Likewise.
18702         (v7m_extra_costs): Likewise.
18704 2015-05-20  Jeff Law  <law@redhat.com>
18706         * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
18707         instead of open-coded version.  Also delete the jump thread created
18708         within this function.
18710 2015-05-20  Alan Modra  <amodra@gmail.com>
18712         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
18713         stack adjusting insn.  Formatting.
18714         (rs6000_emit_prologue): Track stack adjusting insn, and use of
18715         r12.  If possible, emit first -fsplit-stack arg pointer insn
18716         before stack adjust.  Don't use r12 to save cr if split-stack.
18718 2015-05-20  Alan Modra  <amodra@gmail.com>
18720         * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
18721         Define.
18722         (rs6000_supports_split_stack): New function.
18723         * gcc/config/rs6000/rs6000.c (machine_function): Add
18724         split_stack_arg_pointer.
18725         (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
18726         (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
18727         rather than virtual_incoming_args_rtx.
18728         (rs6000_va_start): Likewise.
18729         (split_stack_arg_pointer_used_p): New function.
18730         (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
18731         (morestack_ref): New var.
18732         (gen_add3_const, rs6000_expand_split_stack_prologue,
18733         rs6000_internal_arg_pointer, rs6000_live_on_entry,
18734         rs6000_split_stack_space_check): New functions.
18735         (rs6000_elf_file_end): Call file_end_indicate_split_stack.
18736         * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
18737         (UNSPECV_SPLIT_STACK_RETURN): Define.
18738         (split_stack_prologue, load_split_stack_limit,
18739         load_split_stack_limit_di, load_split_stack_limit_si,
18740         split_stack_return, split_stack_space_check): New expands and insns.
18741         * gcc/config/rs6000/rs6000-protos.h
18742         (rs6000_expand_split_stack_prologue): Declare.
18743         (rs6000_split_stack_space_check): Declare.
18745 2015-05-20  Alan Modra  <amodra@gmail.com>
18747         * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
18748         (direct_return): Test vrsave_size rather than vrsave_mask.
18749         (rs6000_emit_prologue): Likewise.  Remove redundant altivec tests.
18750         (rs6000_emit_epilogue): Likewise.
18752 2015-05-20  Alan Modra  <amodra@gmail.com>
18754         * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
18755         when not saving registers.
18756         (debug_stack_info): Adjust to omit printing unused offsets,
18757         as before.
18758         (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
18759         expression.
18761 2015-05-19  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
18763         PR c++/65835
18764         * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
18765         value_type to const char *.
18767 2015-05-19  Sandra Loosemore  <sandra@codesourcery.com>
18769         * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
18770         to build a biarch toolchain again.
18772 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
18774         * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
18775         or implicit declarations.
18776         (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
18777         into it.
18778         (get_odr_type): Check type has linkage before adding bases.
18779         (register_odr_type): Check that type has linkage before adding it.
18780         (type_known_to_have_no_deriavations_p): Rename to ..
18781         (type_known_to_have_no_derivations_p): This one.
18782         * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
18783         (type_known_to_have_no_derivations_p): This one.
18784         * ipa-polymorphic-call.c
18785         (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
18786         type has linkage.
18788 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
18790         * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
18791         (layout_type): Use RECORD_OR_UNION_TYPE_P.
18793 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18795         * config/s390/s390.c (s390_vector_bool_type_p): New function.
18796         (s390_invalid_binary_op): New function.
18797         (TARGET_INVALID_BINARY_OP): Define macro.
18799 2015-05-19  David Sherwood  <david.sherwood@arm.com>
18801         * loop-invariant.c (create_new_invariant): Don't calculate address cost
18802         if mode is not a scalar integer.
18803         (get_inv_cost): Increase computational cost for unused invariants.
18805 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18807         * config.gcc: Add vecintrin.h to extra_headers.  Add s390-c.o to
18808         c_target_objs and cxx_target_objs.  Add t-s390 to tmake_file.
18809         * config/s390/s390-builtin-types.def: New file.
18810         * config/s390/s390-builtins.def: New file.
18811         * config/s390/s390-builtins.h: New file.
18812         * config/s390/s390-c.c: New file.
18813         * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
18814         CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
18815         * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
18816         (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
18817         prototypes.
18818         * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
18819         Include.
18820         (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
18821         (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
18822         variable definitions.
18823         (s390_const_operand_ok): New function.
18824         (s390_expand_builtin): Rewrite.
18825         (s390_init_builtins): New function.
18826         (s390_handle_vectorbool_attribute): New function.
18827         (s390_attribute_table): Add s390_vector_bool attribute.
18828         (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
18829         (s390_branch_condition_mask): Generate masks for new modes.
18830         (s390_expand_vec_compare_cc): New function.
18831         (s390_mangle_type): Add mangling for vector bool types.
18832         (enum s390_builtin): Remove.
18833         (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
18834         efpc builtins.
18835         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
18836         s390_cpu_cpp_builtins.
18837         (REGISTER_TARGET_PRAGMAS): New macro.
18838         * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
18839         (insn_cmp mode attribute): Add new CC modes.
18840         (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
18841         (lcbb): New pattern definition.
18842         * config/s390/s390intrin.h: Include vecintrin.h.
18843         * config/s390/t-s390: New file.
18844         * config/s390/vecintrin.h: New file.
18845         * config/s390/vector.md: Include vx-builtins.md.
18846         * config/s390/vx-builtins.md: New file.S/390 zvector builtin
18847         support.
18849 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18851         * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
18852         CCVFHE.
18853         * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
18854         (s390_select_ccmode): Likewise.
18855         (s390_canonicalize_comparison): Swap operands if necessary.
18856         (s390_expand_vec_compare_scalar): Expand DFmode compare using
18857         single element vector instructions.
18858         (s390_emit_compare): Call s390_expand_vec_compare_scalar.
18859         (s390_branch_condition_mask): Generate CC masks for the new modes.
18860         * config/s390/s390.md (v0, vf, vd): New mode attributes.
18861         (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
18862         (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
18863         (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
18864         (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
18865         (*extend<DSF:mode><BFP:mode>2): New insn definition.
18866         (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
18867         (extend<DSF:mode><BFP:mode>2): Turn into expander.
18868         (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
18869         (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
18870         (sqrt<mode>2): Add vector instruction.
18872 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18874         * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
18875         constraints.
18876         * config/s390/predicates.md (const0_operand, constm1_operand)
18877         (constable_operand): Accept vector operands.
18878         * config/s390/s390-modes.def: Add supported vector modes.
18879         * config/s390/s390-protos.h (s390_cannot_change_mode_class)
18880         (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
18881         (s390_bytemask_vector_p, s390_expand_vec_strlen)
18882         (s390_expand_vec_compare, s390_expand_vcond)
18883         (s390_expand_vec_init): Add prototypes.
18884         * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
18885         (s390_vector_mode_supported_p): New function.
18886         (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
18887         (s390_contiguous_bitmask_vector_p): New function.
18888         (s390_bytemask_vector_p): New function.
18889         (s390_split_ok_p): Vector regs don't work either.
18890         (regclass_map): Add VEC_REGS.
18891         (s390_legitimate_constant_p): Handle vector constants.
18892         (s390_cannot_force_const_mem): Handle CONST_VECTOR.
18893         (legitimate_reload_vector_constant_p): New function.
18894         (s390_preferred_reload_class): Handle CONST_VECTOR.
18895         (s390_reload_symref_address):  Likewise.
18896         (s390_secondary_reload): Vector memory instructions only support
18897         short displacements.  Rename reload*_nonoffmem* to reload*_la*.
18898         (s390_emit_ccraw_jump): New function.
18899         (s390_expand_vec_strlen): New function.
18900         (s390_expand_vec_compare): New function.
18901         (s390_expand_vcond): New function.
18902         (s390_expand_vec_init): New function.
18903         (s390_dwarf_frame_reg_mode): New function.
18904         (print_operand): Handle addresses with 'O' and 'R' constraints.
18905         (NR_C_MODES, constant_modes): Add vector modes.
18906         (s390_output_pool_entry): Handle vector constants.
18907         (s390_hard_regno_mode_ok): Handle vector registers.
18908         (s390_class_max_nregs): Likewise.
18909         (s390_cannot_change_mode_class): New function.
18910         (s390_invalid_arg_for_unprototyped_fn): New function.
18911         (s390_function_arg_vector): New function.
18912         (s390_function_arg_float): Remove size variable.
18913         (s390_pass_by_reference): Handle vector arguments.
18914         (s390_function_arg_advance): Likewise.
18915         (s390_function_arg): Likewise.
18916         (s390_return_in_memory): Vector values are returned in a VR if
18917         possible.
18918         (s390_function_and_libcall_value): Handle vector arguments.
18919         (s390_gimplify_va_arg): Likewise.
18920         (s390_call_saved_register_used): Consider the arguments named.
18921         (s390_conditional_register_usage): Disable v16-v31 for non-vec
18922         targets.
18923         (s390_preferred_simd_mode): New function.
18924         (s390_support_vector_misalignment): New function.
18925         (s390_vector_alignment): New function.
18926         (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
18927         (TARGET_VECTOR_MODE_SUPPORTED_P)
18928         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
18929         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
18930         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
18931         (TARGET_VECTOR_ALIGNMENT): Define target macro.
18932         * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
18933         (FIRST_PSEUDO_REGISTER): Increase value.
18934         (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
18935         (VECTOR_REG_P): Define macros.
18936         (FIXED_REGISTERS, CALL_USED_REGISTERS)
18937         (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
18938         (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
18939         (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
18940         Add vector registers.
18941         (CANNOT_CHANGE_MODE_CLASS): Call C function.
18942         (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
18943         (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
18944         memory.
18945         (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
18946         (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
18947         * config/s390/s390.md (UNSPEC_VEC_*): New constants.
18948         (VR*_REGNUM): New constants.
18949         (ALL): New mode iterator.
18950         (INTALL): Remove mode iterator.
18951         Include vector.md.
18952         (movti): Implement TImode moves for VRs.
18953         Disable TImode splitter for VR targets.
18954         Implement splitting TImode GPR<->VR moves.
18955         (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
18956         (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
18957         reload<mode>_la_in, reload<mode>_la_out.
18958         (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
18959         (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
18960         (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
18961         (mov<mode> SF SD): Prefer lder, lde for loading.
18962         Add lrl and strl instructions.
18963         Add vector instructions.
18964         (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
18965         Call s390_expand_vec_strlen on z13.
18966         (*cc_to_int): Change predicate to nonimmediate_operand.
18967         (addti3): Rename to *addti3.  New expander.
18968         (subti3): Rename to *subti3.  New expander.
18969         * config/s390/vector.md: New file.
18971 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18973         * common/config/s390/s390-common.c (processor_flags_table): Add
18974         z13.
18975         * config.gcc: Add z13.
18976         * config/s390/s390-opts.h (enum processor_type): Add
18977         PROCESSOR_2964_Z13.
18978         * config/s390/s390.c (s390_adjust_priority): Check for
18979         PROCESSOR_2964_Z13.
18980         (s390_reorg): Likewise.
18981         (s390_sched_reorder): Likewise.
18982         (s390_sched_variable_issue): Likewise.
18983         (s390_loop_unroll_adjust): Likewise.
18984         (s390_option_override): Likewise. Default to -mvx when available.
18985         * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
18986         (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
18987         (TARGET_VX_ABI): Define macros.
18988         macros.
18989         (TARGET_DEFAULT): Add MASK_OPT_VX.
18990         * config/s390/s390.md ("cpu" attribute): Add z13.
18991         ("cpu_facility" attribute): Add vec.
18992         * config/s390/s390.opt (processor_type): Add z13.
18993         (mvx): New options.
18994         * doc/invoke.texi: Add z13 option for -march.
18996 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18998         * config/s390/predicates.md (shift_count_or_setmem_operand): Add
18999         mode check to make sure that only scalar integer values are
19000         accepted.
19002 2015-05-19  Jan Hubicka  <hubicka@ucw.cz>
19004         * tree.c (verify_type_variant): Fix #undef.
19005         (gimple_canonical_types_compatible_p): Move here from lto.c
19006         (verify_type): Verify TYPE_CANONICAL compatibility.
19007         * tree.h (gimple_canonical_types_compatible_p): Declare.
19009 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
19011         PR middle-end/66199
19012         * tree.h (OMP_TEAMS_COMBINED): Define.
19013         * gimplify.c (enum gimplify_omp_var_data): Add
19014         GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
19015         (enum omp_region_type): Add ORT_COMBINED_TEAMS.
19016         (omp_notice_variable): Accept both ORT_TEAMS
19017         and ORT_COMBINED_TEAMS.  Don't recurse if
19018         GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
19019         GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
19020         GOVD_FIRSTPRIVATE.
19021         (omp_no_lastprivate): New function.
19022         (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
19023         and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
19024         notice_outer and set appropriate bits, otherwise make
19025         sure default(none) combined constructs won't complain.
19026         (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
19027         outer special casing, for OMP_CLAUSE_LASTPRIVATE if
19028         omp_no_lastprivate either remove the clause or turn it
19029         into OMP_CLAUSE_PRIVATE.
19030         (gimplify_omp_for): Fix up handling of implicit
19031         lastprivate or linear iterators.
19032         (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
19033         ORT_COMBINED_TEAMS.
19034         * omp-low.c (lower_omp_for_lastprivate): For combined
19035         for simd use fd.loop.n2 from the for rather than simd.
19037 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19039         * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
19040         instead of gen_rtx_raw_REG.
19041         (cris_expand_epilogue): Likewise.
19042         * config/microblaze/microblaze.c (microblaze_classify_address):
19043         Likewise.
19044         * config/sparc/sparc.md: Likewise.
19046 2015-05-19  Uros Bizjak  <ubizjak@gmail.com>
19048         * config/alpha/alpha.c (alpha_legitimize_reload_address)
19049         (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
19050         CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
19051         (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
19052         Use CASE_CONST_SCALAR_INT.
19053         (print_operand) <case 'M'>: Use mode_width_operand to check the
19054         value of the constant.
19055         * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
19056         * config/alpha/predicates.md (input_operand): Use general_operand
19057         instead of match_code as operand check.
19058         (symbolic_operand): Use match_code with subexpression digits.
19059         * config/alpha/constraints.md (Q): Ditto.
19061 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19063         * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
19065 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19067         * config/s390/s390.c (s390_secondary_reload): Fix check for
19068         load/store relative.
19070 2015-05-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19072         * recog.h: Increase MAX_RECOG_ALTERNATIVES.  Change type of
19073         alternative_mask to uint64_t.
19075 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
19077         PR tree-optimization/66187
19078         * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
19079         Pass TYPE_SIGN to tree_int_cst_min_precision.  If
19080         !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
19082 2015-05-19  David Malcolm  <dmalcolm@redhat.com>
19084         * diagnostic.c (diagnostic_report_current_module): Strengthen
19085         local "new_map" from const line_map * to
19086         const line_map_ordinary *.
19087         * genmatch.c (error_cb): Likewise for local "map".
19088         (output_line_directive): Likewise for local "map".
19089         * input.c (expand_location_1): Likewise for local "map".
19090         Pass NULL rather than &map to
19091         linemap_unwind_to_first_non_reserved_loc, since the value is never
19092         read from there, and the value written back not read from here.
19093         (is_location_from_builtin_token): Strengthen local "map" from
19094         const line_map * to const line_map_ordinary *.
19095         (dump_location_info): Strengthen locals "map" from
19096         line_map *, one to const line_map_ordinary *, the other
19097         to const line_map_macro *.
19098         * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
19099         const line_map * to const line_map_macro *.
19100         (maybe_unwind_expanded_macro_loc): Add a call to
19101         linemap_check_macro when writing to the "map" field of the
19102         loc_map_pair.
19103         Introduce local const line_map_ordinary * "ord_map", using it in
19104         place of "map" in the part of the function where we know we have
19105         an ordinary map.  Strengthen local "m" from const line_map * to
19106         const line_map_ordinary *.
19108 2015-05-19  Nick Clifton  <nickc@redhat.com>
19110         PR target/66156
19111         * config/msp430/msp430.md (zero_extendhisi2): Add support for
19112         separate source and destination registers.
19114 2015-05-19  Richard Biener  <rguenther@suse.de>
19116         PR tree-optimization/66165
19117         * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
19118         for no load permutation.
19120         PR tree-optimization/66185
19121         * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
19122         when building the SLP node from scalars.
19124 2015-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19125             Tristan Gingold  <gingold@adacore.com>
19127         * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
19128         * builtins.c (expand_builtin_update_setjmp_buf): Make global.
19129         (expand_stack_restore): Call record_new_stack_level.
19130         (expand_stack_save): Do not call do_pending_stack_adjust.
19131         * builtins.h (expand_builtin_update_setjmp_buf): Declare.
19132         * calls.c (expand_call): Call record_new_stack_level for alloca.
19133         * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
19134         wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
19135         (update_sjlj_context): New global function.
19136         * except.h (update_sjlj_context): Declare.
19137         * explow.c (record_new_stack_level): New global function.
19138         (allocate_dynamic_stack_space): Call record_new_stack_level.
19139         * explow.h (record_new_stack_level): Declare.
19140         * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
19141         * cfgrtl.c (duplicate_insn_chain): Likewise.
19143 2015-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19145         * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
19146         (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
19147         STACK_GROWS_DOWNWARD as normal if.
19148         (expand_call): Likewise.
19150 2015-05-19  Oleg Endo  <olegendo@gcc.gnu.org>
19152         PR target/54236
19153         * config/sh/sh.md (*round_int_even): New insn_and_split and
19154         accompanying new unnamed split.
19156 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19158         * bitmap.c (bitmap_set_range): Handle count==1 specially.
19159         (bitmap_clear_range): Likewise.
19160         * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
19161         bitmap_set_range unconditionally.
19162         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19163         * df-scan.c (df_mark_reg): Likewise.
19164         * haifa-sched.c (setup_ref_regs): Likewise.
19165         * sched-rgn.c (update_live_1): Likewise.
19167 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19169         * regs.h (END_HARD_REGNO): Delete.
19170         (END_REGNO): Move to...
19171         * rtl.h: ...here.
19172         * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
19173         * caller-save.c (mark_set_regs): Likewise.
19174         * combine.c (move_deaths, distribute_notes): Likewise.
19175         * cse.c (invalidate, invalidate_for_call): Likewise.
19176         * df-scan.c (df_ref_record): Likewise.
19177         * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
19178         (record_last_reg_set_info): Likewise.
19179         * reg-stack.c (convert_regs_exit): Likewise.
19180         * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
19181         * resource.c (update_live_status): Likewise.
19182         * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
19184 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19186         * rtl.h (reg_info): Add an nregs field.
19187         (REG_NREGS): Use it.
19188         (SET_REGNO_RAW): Delete.
19189         (set_regno_raw): New function.
19190         * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
19191         (END_REGNO): Redefine in terms of REG_NREGS.
19192         * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
19193         SET_REGNO_RAW.
19194         * emit-rtl.c (set_mode_and_regno): Likewise.
19195         * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
19196         instead of SET_REGNO_RAW.
19198 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19200         * rtl.h (PUT_MODE_RAW): New macro.
19201         (PUT_REG_NOTE_KIND): Use it.
19202         (set_mode_and_regno): Declare.
19203         (gen_raw_REG): Change regno to "unsigned int".
19204         (gen_rtx_REG): Change "unsigned" to "unsigned int".
19205         (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
19206         use set_mode_and_regno to change the mode of registers.
19207         * gengenrtl.c (gendef): Use PUT_MODE_RAW.
19208         * emit-rtl.c (set_mode_and_regno): New function.
19209         (gen_raw_REG): Change regno to unsigned int.  Use set_mode_and_regno.
19210         * caller-save.c (reg_save_code): Use set_mode_and_regno.
19211         * expr.c (init_expr_target): Likewise.
19212         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19213         * postreload.c (reload_cse_simplify_operands): Likewise.
19215 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19217         * caller-save.c (init_caller_save): Use word_mode and
19218         FIRST_PSEUDO_REGISTER when creating temporary rtxes.
19219         * expr.c (init_expr_target): Likewise.
19220         * ira.c (setup_prohibited_mode_move_regs): Likewise.
19221         * postreload.c (reload_cse_regs_1): Likewise.
19223 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19225         * rtl.def (REG): Change format to "r".
19226         * rtl.h (rtunion): Remove rt_reg.
19227         (reg_info): New structure.
19228         (rtx_def): Add reg field to main union.
19229         (X0REGATTR): Delete.
19230         (REG_CHECK): New macro.
19231         (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
19232         * rtl.c (rtx_format): Document "r".
19233         (rtx_code_size): Handle REG specially.
19234         * gengenrtl.c (special_format): Return true for formats
19235         that include 'r'.
19236         * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
19237         Deal with REG_ATTRS after the field loop.
19238         * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
19239         * expmed.c (init_expmed): Call gen_raw_REG instead of
19240         gen_rtx_raw_REG.
19241         * expr.c (init_expr_target): Likewise.
19242         * regcprop.c (maybe_mode_change): Likewise.
19243         * varasm.c (make_decl_rtl): Likewise.
19244         * final.c (leaf_renumber_regs_insn): Return early after
19245         handling REGs.
19246         * genemit.c (gen_exp): Handle 'r' fields.
19247         * genpeep.c (match_rtx): Likewise.
19248         * gensupport.c (subst_pattern_match): Likewise.
19249         (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
19250         (alter_constraints, subst_dup): Likewise.
19251         * read-rtl.c (read_rtx_code): Likewise.
19252         * print-rtl.c (print_rtx): Likewise.
19253         * genrecog.c (find_operand, find_matching_operand): Likewise.
19254         (validate_pattern, match_pattern_2): Likewise.
19255         (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
19256         (rtx_test::regno_field): New function.
19257         (operator ==, safe_to_hoist_p, transition_parameter_type)
19258         (parameter_type_string, print_parameter_value)
19259         (print_nonbool_test, print_test): Handle new enum values.
19260         * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
19261         * lra-constraints.c (operands_match_p): Likewise.
19263 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19265         * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
19266         Change type of new_regno to unsigned int.
19267         * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
19268         new_regno to unsigned int.
19269         (df_ref_change_reg_with_loc): Remove old_regno parameter.
19270         Change type of new_regno to unsigned int.  Use SET_REGNO_RAW.
19271         * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
19272         (SET_REGNO_RAW): Add space after ",".
19274 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19276         * rtl.h (REG_NREGS): New macro
19277         * alias.c (record_set): Use it.
19278         * cfgcleanup.c (mark_effect): Likewise.
19279         * combine.c (likely_spilled_retval_1): Likewise.
19280         (likely_spilled_retval_p, can_change_dest_mode): Likewise.
19281         (move_deaths, distribute_notes): Likewise.
19282         * cselib.c (cselib_record_set): Likewise.
19283         * df-problems.c (df_simulate_one_insn_forwards): Likewise.
19284         * df-scan.c (df_mark_reg): Likewise.
19285         * dse.c (look_for_hardregs): Likewise.
19286         * dwarf2out.c (reg_loc_descriptor): Likewise.
19287         (multiple_reg_loc_descriptor): Likewise.
19288         * expr.c (write_complex_part, read_complex_part): Likewise.
19289         (emit_move_complex): Likewise.
19290         * haifa-sched.c (setup_ref_regs): Likewise.
19291         * ira-lives.c (mark_hard_reg_live): Likewise.
19292         * lra.c (lra_set_insn_recog_data): Likewise.
19293         * mode-switching.c (create_pre_exit): Likewise.
19294         * postreload.c (reload_combine_recognize_const_pattern): Likewise.
19295         (reload_combine_recognize_pattern): Likewise.
19296         (reload_combine_note_use, move2add_record_mode): Likewise.
19297         (reload_cse_move2add): Likewise.
19298         * reg-stack.c (subst_stack_regs_pat): Likewise.
19299         * regcprop.c (kill_value, copy_value): Likewise.
19300         (copyprop_hardreg_forward_1): Likewise.
19301         * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
19302         (build_def_use): Likewise.
19303         * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
19304         (deps_analyze_insn): Likewise.
19305         * sched-rgn.c (check_live_1, update_live_1): Likewise.
19306         * sel-sched.c (count_occurrences_equiv): Likewise.
19307         * valtrack.c (dead_debug_insert_temp): Likewise.
19309 2015-05-19  Richard Sandiford  <richard.sandiford@arm.com>
19311         * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
19312         * dse.c (note_add_store): Likewise.
19313         * ira-lives.c (mark_hard_reg_dead): Likewise.
19314         * loop-invariant.c (mark_reg_store): Likewise.
19315         (mark_reg_death): Likewise.
19316         * postreload.c (reload_combine): Likewise.
19317         (reload_combine_note_store): Likewise.
19318         (reload_combine_note_use): Likewise.
19319         * recog.c (peep2_reg_dead_p): Likewise.
19321 2015-05-19  Alan Modra  <amodra@gmail.com>
19323         * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
19324         hard registers numbered greater or equal to ARG_POINTER_REGNUM.
19325         (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
19326         unused predicates.
19327         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
19328         Use altivec_register_operand.  Make insn predicate TARGET_ALTIVEC.
19329         * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
19330         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
19332 2015-05-19  Sameera Deshpande  <Sameera.Deshpande@imgtec.com>
19334         * config/mips/mips.md (JOIN_MODE): New mode iterator.
19335         (join2_load_Store<JOIN_MODE:mode>): New pattern.
19336         (join2_loadhi): Likewise.
19337         (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
19338         load-load and store-stores.
19339         * config/mips/mips.opt (mload-store-pairs): New option.
19340         (TARGET_LOAD_STORE_PAIRS): New macro.
19341         * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
19342         * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
19343         * config/mips/mips.c (mips_load_store_bonding_p): New function.
19345 2015-05-19  Mikhail Maltsev  <maltsevm@gmail.com>
19347         * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
19348         explicit swaps.
19349         * dojump.c (do_compare_rtx_and_jump): Likewise.
19350         * expmed.c (emit_store_flag_1): Likewise.
19351         * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
19352         * final.c (sprint_ul): Use std::reverse for reversing a string.
19353         * fold-const.c (extract_muldiv_1): Use std::swap.
19354         * genmodes.c (emit_mode_int_n): Likewise.
19355         * ifcvt.c (dead_or_predicable): Likewise.
19356         * ira-build.c (ira_merge_live_ranges): Likewise.
19357         (swap_allocno_copy_ends_if_necessary): Likewise.
19358         * ira.c (ira_setup_alts): Likewise.
19359         * loop-iv.c (iv_analyze_expr): Likewise.
19360         (implies_p): Likewise.
19361         (canon_condition): Likewise.
19362         * lra-constraints.c (swap_operands): Likewise.
19363         * lra-lives.c (lra_merge_live_ranges): Likewise.
19364         * omega.c (swap): Remove.
19365         (bswap): Remove.
19366         (omega_unprotect_1): Use std::swap.
19367         (omega_solve_geq): Likewise.
19368         * optabs.c (expand_binop_directly): Likewise.
19369         (expand_binop): Likewise.
19370         (emit_conditional_move): Likewise.
19371         (emit_conditional_add): Likewise.
19372         * postreload.c (reload_cse_simplify_operands): Likewise.
19373         * reg-stack.c (emit_swap_insn): Likewise.
19374         (swap_to_top): Likewise.
19375         (compare_for_stack_reg): Likewise.
19376         (subst_asm_stack_regs): Likewise.
19377         * reload.c (find_reloads): Likewise.
19378         * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
19379         * sel-sched.c (invoke_reorder_hooks): Likewise.
19380         (create_block_for_bookkeeping): Likewise.
19381         * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
19382         (lambda_matrix_right_hermite): Use std::swap.
19383         * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
19384         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
19385         * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
19386         * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
19387         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
19388         * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
19389         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
19390         * tree-vrp.c (compare_ranges): Likewise.
19391         * var-tracking.c (add_with_sets): Likewise.
19392         (vt_find_locations): Likewise.
19394 2015-05-18  Andreas Tobler  <andreast@gcc.gnu.org>
19396         * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
19397         pie executables.
19398         (FBSD_ENDFILE_SPEC): Likewise.
19399         * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
19400         config/freebsd-spec.h.
19401         (ENDFILE_SPEC): Likewise.
19403 2015-05-18  Uros Bizjak  <ubizjak@gmail.com>
19404             Richard Henderson  <rth@redhat.com>
19406         PR target/57032
19407         * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
19408         Check for a memory location that is not a reference (using an AND)
19409         to an unaligned location here.
19410         * config/alpha/predicates.md (normal_memory_operand): Remove.
19412 2015-05-18  Alex Velenko  <Alex.Velenko@arm.com>
19414         * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
19415         (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
19417 2015-05-18  Robert Suchanek  <robert.suchanek@imgtec.com>
19419         * config/mips/mips.c (micromips_globals): New variable.
19420         (mips_set_compression_mode): Save and reinitialize target-dependent
19421         state for microMIPS.
19423 2015-05-18  Martin Liska  <mliska@suse.cz>
19425         * dbgcnt.def: Add new counter.
19426         * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
19428 2015-05-18  Martin Liska  <mliska@suse.cz>
19430         * dbgcnt.def: Sort counters.
19431         * opts.c (common_handle_option): Do not compile if
19432         -fdbg-cnt-list is enabled.
19434 2015-05-18  Tom de Vries  <tom@codesourcery.com>
19436         * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
19437         (gimplify_va_arg_expr): Remove do_deref handling.  Remove adding of
19438         address operator to va_list operand.
19439         * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
19440         unconditionally.
19441         * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
19442         operand.
19443         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
19444         * config/s390/s390.c (s390_gimplify_va_arg): Same.
19445         * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
19447 2015-05-18  Tom de Vries  <tom@codesourcery.com>
19449         * tree-ssa-tail-merge.c: Fix whitespace.
19451 2015-05-17  Jim Wilson  <jim.wilson@linaro.org>
19453         * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
19454         cortex-a17, and cortex-a17.cortex-a7.
19456 2015-05-17  Oleg Endo  <olegendo@gcc.gnu.org>
19458         PR target/54236
19459         * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
19461 2015-05-17  Uros Bizjak  <ubizjak@gmail.com>
19463         PR target/66174
19464         * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
19465         QImode inner modes for TARGET_AVX512BW.  Force mask operand
19466         to a register for AVX512F modes.
19468 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19470         * toplev.c (emit_debug_global_declarations): Do not output debug info
19471         when doing slim LTO objects.
19473 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19475         * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
19476         odr_types_equivalent_p): Declare.
19477         (odr_type_p): Use gcc_checking_assert.
19478         (type_in_anonymous_namespace_p) Declare.
19479         (type_with_linkage_p): Declare.
19480         * common.opt (Wlto-type-mismatch): New warning.
19481         * ipa-devirt.c (compound_type_base): New function.
19482         (odr_or_derived_type_p): New function.
19483         (odr_types_equivalent_p): New function.
19484         (add_type_duplicate): Simplify.
19485         (type_with_linkage_p): Add hack to prevent false positives on C types
19486         (type_in_anonymous_namespace_p): Likewise.
19487         * tree.c (need_assembler_name_p): Use type_with_linkage.
19488         * tree.h (type_in_anonymous_namespace_p): Remove.
19489         * doc/invoke.texi (-Wlto-type-mismatch): Document
19491 2015-05-16  Jan Hubicka  <hubicka@ucw.cz>
19493         * tree.c (verify_type_variant): Verify tree_base and type_common flags.
19494         (verify_type): Verify STRING_FLAG.
19496 2015-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19498         PR fortran/44054
19499         * tree-pretty-print.c (percent_K_format): Replace locus pointer
19500         with accessor function.
19501         * tree-diagnostic.c (diagnostic_report_current_function): Use
19502         diagnostic_location function.
19503         (maybe_unwind_expanded_macro_loc): Likewise.
19504         (virt_loc_aware_diagnostic_finalizer): Likewise.
19505         (default_tree_printer): Replace locus pointer with accessor function.
19506         * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
19507         (diagnostic_set_info_translated): Initialize second location.
19508         (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
19509         (diagnostic_show_locus): Handle two locations. Call
19510         diagnostic_print_caret_line.
19511         (diagnostic_print_caret_line): New.
19512         (default_diagnostic_starter): Use diagnostic_location function.
19513         (diagnostic_report_diagnostic): Use diagnostic_location function.
19514         (verbatim): Do not set text.locus.
19515         * diagnostic.h (struct diagnostic_info): Remove location field.
19516         (struct diagnostic_context): Make caret_chars an array of two.
19517         (diagnostic_location): New inline.
19518         (diagnostic_expand_location): Handle two locations.
19519         (diagnostic_same_line): New inline.
19520         (diagnostic_print_caret_line): Declare.
19521         (CARET_LINE_MARGIN): New constant.
19522         * pretty-print.c (pp_printf): Do not set text.locus.
19523         (pp_verbatim): Do not set text.locus.
19524         * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
19525         (struct text_info): Replace locus pointer with locations
19526         array. Add accessor functions.
19528 2015-05-16  Kugan Vivekanandarajah  <kuganv@linaro.org>
19529             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19531         PR target/65768
19532         * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
19533         * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
19534          large constants in register instead of splitting them.
19536 2015-05-16  Uros Bizjak  <ubizjak@gmail.com>
19538         PR target/66140
19539         * config/alpha/alpha.c (get_aligned_mem): Also look for reload
19540         replacements in memory addresses.
19541         (get_unaligned_address): Ditto.
19543 2015-05-16  James Bowman  <james.bowman@ftdichip.com>
19545         * config/ft32/*: New files for FT32 port.
19546         * doc/install.texi: Add FT32 information.
19547         * doc/invoke.texi: Add FT32 information.
19548         * doc/md.texi: Add FT32 information.
19549         * doc/contrib.texi: Self added.
19551 2015-05-15  Marc Glisse  <marc.glisse@inria.fr>
19553         PR tree-optimization/64454
19554         * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
19555         (-1 - A -> ~A): Remove unnecessary condition.
19557 2015-05-15  Gregor Richards  <gregor.richards@uwaterloo.ca>
19559         * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
19560         * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
19561         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
19563 2015-05-15  Ilya Enkovich  <ilya.enkovich@intel.com>
19565         * ipa-chkp.h (chkp_wrap_function): New.
19566         * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
19567         (chkp_wrap_function_name): New.
19568         (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
19569         to get wrapper name.
19570         * lto-cgraph.c: Include ipa-chkp.h.
19571         (input_cgraph_1): Avoid alias chain for wrappers.
19573 2015-05-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
19575         PR middle-end/66134
19576         * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
19577         (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
19579 2015-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19581         * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
19582         (AARCH64_FL_SLOWMUL): Delete.
19583         (AARCH64_FL_CRC): Redefine to 1<<3.
19584         (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
19586 2015-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19588         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
19589         casting.
19591 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
19593         * config/alpha/alpha.md (extendqidi2): Use general_operand
19594         instead of some_operand for operand[1] predicate.
19595         (extendhidi2): Ditto.
19596         (cbranchdi4): Use general_operand instead of some_operand
19597         for operand[1] and operands[2] predicates.
19598         (cstoredi4): Ditto.
19599         * config/alpha/predicates.md (some_operand): Remove unused predicate.
19600         (some_ni_operand): Ditto.
19602 2015-05-15  Uros Bizjak  <ubizjak@gmail.com>
19604         * config/alpha/alpha.c (alpha_extract_integer): Do not handle
19605         CONST_WIDE_INT and CONST_DOUBLE.  Assert CONST_INT_P (x).
19606         (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
19607         low part of the constant using alpha_emit_set_const_1.
19608         (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
19610 2015-05-14  Rohit Arul Raj  <rohitrulraj@freescale.com>
19612         * varasm.c (output_constant_pool_1): Pass down alignment from
19613         constant pool entry's descriptor to output_constant_pool_2.
19614         (output_object_block): Add comment prior to call to
19615         output_constant_pool_1.
19617 2015-05-14  Vladimir Makarov  <vmakarov@redhat.com>
19619         PR rtl-optimization/65862
19620         * target.def (ira_change_pseudo_allocno_class): New hook.
19621         * targhooks.c (default_ira_change_pseudo_allocno_class): Default
19622         value of the hook.
19623         * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
19624         * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
19625         hook.
19626         * ira-costs.c (find_costs_and_classes): Call the hook and change
19627         classes when it is necessary.
19628         * doc/tm.texi: Update.
19630 2015-05-14  Alexander Monakov  <amonakov@ispras.ru>
19632         * config/i386/i386.md (sibcall_memory): Check that register with
19633         callee address is not also used as one of the arguments, instead
19634         of checking that it is not live after the sibcall.
19635         (sibcall_pop_memory): Ditto.
19636         (sibcall_value_memory): Ditto.
19637         (sibcall_value_pop_memory): Ditto.
19639 2015-05-14  Marc Glisse  <marc.glisse@inria.fr>
19641         * generic-match-head.c (types_match): Handle non-types.
19642         * gimple-match-head.c (types_match): Likewise.
19643         * match.pd: Remove unnecessary TREE_TYPE for types_match.
19645 2015-05-14  Wilco Dijkstra  <wdijkstr@arm.com>
19647         * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
19648         (csneg3<mode>_insn): Enable expansion of pattern.
19650 2015-05-14  Nick Clifton  <nickc@redhat.com>
19652         * config/rl78/rl78.c (rl78_select_section): Select the correct
19653         default section based upon the category of the decl.
19655 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
19657         PR rtl-optimization/30967
19658         * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
19659         destination mode for the cost of scc patterns.
19661 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
19663         * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
19664         using SWIM248 mode iterator.
19665         (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
19666         (*mulvhi4): mark operand[1] as commutative.  Use nonimmediate_operand
19667         for operand[2] constraint.
19668         (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
19670 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
19672         PR middle-end/66133
19673         * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
19674         make sure it is never noreturn, even when the task body does not
19675         return.
19676         (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
19677         right before GIMPLE_OMP_RETURN.
19678         (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
19679         for GIMPLE_OMP_TASK.  For GIMPLE_OMP_RETURN corresponding to
19680         GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
19682 2015-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19684         * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
19685         * tree-ssa-math-opts.c: Include params.h
19686         (pow_synth_sqrt_info): New struct.
19687         (representable_as_half_series_p): New function.
19688         (get_fn_chain): Likewise.
19689         (print_nested_fn): Likewise.
19690         (dump_fractional_sqrt_sequence): Likewise.
19691         (dump_integer_part): Likewise.
19692         (expand_pow_as_sqrts): Likewise.
19693         (gimple_expand_builtin_pow): Use above to attempt to expand
19694         pow as series of square roots.  Removed now unused variables.
19696 2015-05-13  Uros Bizjak  <ubizjak@gmail.com>
19698         * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
19699         (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
19700         Remove *p0 and *p1 arguments.  Rewrite function.
19701         (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
19702         (alpha_split_const_mov): Update calls to alpha_extract_integer and
19703         alpha_emit_set_long_const.
19704         (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
19705         (alpha_output_mi_thunk_osf): Ditto.
19706         * config/alpha/alpha.md (movti): Do not check operands[1]
19707         for CONST_DOUBLE.
19709 2015-05-13  Richard Biener  <rguenther@suse.de>
19711         PR tree-optimization/66129
19712         * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
19713         commutative.
19714         (vect_schedule_slp_instance): Fix typo.
19716 2015-05-13  David Malcolm  <dmalcolm@redhat.com>
19718         * common.opt (fdump-internal-locations): New option.
19719         * input.c: Include diagnostic-core.h.
19720         (get_end_location): New function.
19721         (write_digit): New function.
19722         (write_digit_row): New function.
19723         (dump_location_range): New function.
19724         (dump_labelled_location_range): New function.
19725         (dump_location_info): New function.
19726         * input.h (dump_location_info): New prototype.
19727         * toplev.c (compile_file): Handle flag_dump_locations.
19729 2015-05-13  Eric Botcazou  <ebotcazou@adacore.com>
19731         * gimple-expr.h (is_gimple_constant): Reorder.
19732         * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
19734 2015-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
19736         * combine.c (simplify_set): When generating a CC set, if the
19737         source already is in the correct mode, do not wrap it in a
19738         compare.  Simplify the rest of that code.
19740 2015-05-13  Richard Biener  <rguenther@suse.de>
19742         PR tree-optimization/66123
19743         * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
19744         a taken edge.
19746 2015-05-13  Richard Biener  <rguenther@suse.de>
19748         PR middle-end/66110
19749         * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
19750         specially.
19751         * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
19753 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
19755         * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
19756         * aclocal.m4: Regenerated with automake-1.11.6.
19758 2015-05-13  Tom de Vries  <tom@codesourcery.com>
19760         PR tree-optimization/66010
19761         * gimplify.h (gimplify_va_arg_internal): Remove declaration.
19762         * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
19763         * tree-stdarg.c (expand_ifn_va_arg_1): ... here.  Choose between lval
19764         and rval based on do_deref.
19766 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19768         PR target/65103
19769         * config/i386/i386.c (ix86_rtx_costs): We want to propagate
19770         link time constants into adress expressions and therefore set
19771         their cost to 0.
19773 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
19775         PR target/66112
19776         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
19777         Use SWI248 iterator instead of SWI.
19778         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
19779         Use eq_attr "alternative" "0" instead of match_test in
19780         length_immediate attribute computation.
19781         (*mulvhi4, *mulvhi4_1): New define_insns.
19783         PR target/66112
19784         * internal-fn.c (get_min_precision): Use UNSIGNED instead of
19785         SIGNED to get precision of non-negative value.
19787 2015-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
19789         PR target/66048
19790         * function.c (diddle_return_value_1): Process bounds first.
19791         * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
19792         register.
19794 2015-05-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19796         PR rtl-optimization/64616
19797         * loop-invariant.c (can_move_invariant_reg): New.
19798         (move_invariant_reg): Call above new function to decide whether
19799         instruction can just be moved, skipping creation of temporary
19800         register.
19802 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
19804         PR target/pr66047.c
19805         * i386.c (ix86_function_sseregparm): Only return -1 if local function
19806         with implied regparm is called from -mno-sse function.
19807         (init_cumulative_args): Output error if ix86_function_sseregparm
19808         return -1 and SSE register would be needed.
19809         (function_arg_advance_32): Likewise.
19810         (function_arg_32): Likewise.
19811         * i386.h (ix86_args): Add decl field.
19813 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
19815         PR ipa/65873
19816         * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
19817         inlines across optimization boundary.
19819 2015-05-12  Jason Merrill  <jason@redhat.com>
19821         * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
19822         string literal and macro name.
19824 2015-05-12  Steve Ellcey  <sellcey@imgtec.com>
19826         * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
19827         * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
19828         * config/mips/predicates.md (const_immlsa_operand): Remove log call.
19830 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
19832         * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
19833         (-Wmisleading-indentation): New option.
19834         * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
19836 2015-05-12  Uros Bizjak  <ubizjak@gmail.com>
19838         * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
19839         * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
19840         (alpha_extract_integer): Ditto.
19841         (alpha_legitimate_constant_p): Ditto.
19842         (alpha_split_tmode_pair): Ditto.
19843         (alpha_preferred_reload_class): Add CONST_WIDE_INT.
19844         (alpha_expand_mov): Ditto.
19845         (print_operand): Remove handling of 'H' modifier.
19846         <case 'm'>: Remove CONST_DOUBLE handling.
19847         (summarize_insn): Handle CONST_WIDE_INT.
19848         * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
19849         (anddi3): Ditto.
19850         (movti): Handle CONST_WIDE_INT.
19851         * config/alpha/constraints.md ('H'): Remove constraint definition.
19852         ('G'): Do not match MODE_FLOAT class.
19853         * config/alpha/predicates.md (const0_operand): Also match
19854         const_wide_int.
19855         (non_add_const_operand): Ditto.
19856         (non_zero_const_operand): Ditto.
19857         (some_operand): Ditto.
19858         (input_operand): Ditto.  Handle CONST_WIDE_INT.
19859         (and_operand): Do not match const_double.
19860         * config/alpha/sync.md (fetchop_constr): Remove H constraint.
19862 2015-05-12  Andrew MacLeod  <amacleod@redhat.com>
19864         PR target/65697
19865         * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
19866         (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
19867         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
19868         is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
19869         is_mm_seq_cst, is_mm_sync): New accessor functions.
19870         * builtins.c (expand_builtin_sync_operation,
19871         expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
19872         (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
19873         (get_memmodel,  expand_builtin_atomic_compare_exchange,
19874         expand_builtin_atomic_load, expand_builtin_atomic_store,
19875         expand_builtin_atomic_clear): Use new accessor routines.
19876         (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
19877         * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
19878         (maybe_emit_sync_lock_test_and_set): Use new accessors and
19879         MEMMODEL_SYNC_ACQUIRE.
19880         (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
19881         (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
19882         expand_atomic_store): Use new accessors.
19883         * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
19884         * tsan.c (instrument_builtin_call): Update check for memory model beyond
19885         final enum to use MEMMODEL_LAST.
19886         * c-family/c-common.c: Use new accessor for memmodel_base.
19887         * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
19888         accessors.
19889         * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
19890         arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
19891         mem_thread_fence, *dmb): Likewise.
19892         * config/alpha/alpha.c (alpha_split_compare_and_swap,
19893         alpha_split_compare_and_swap_12): Likewise.
19894         * config/arm/arm.c (arm_expand_compare_and_swap,
19895         arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
19896         * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
19897         atomic_loaddi): Likewise.
19898         * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
19899         Likewise.
19900         * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
19901         * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
19902         use new accessors.
19903         * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
19904         atomic_store<mode>, atomic_compare_and_swap<mode>,
19905         atomic_exchange<mode>): Use new accessors.
19906         * config/mips/mips.c (mips_process_sync_loop): Likewise.
19907         * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
19908         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
19909         rs6000_post_atomic_barrier): Add new cases.
19910         (rs6000_expand_atomic_compare_and_swap): Use new accessors.
19911         * config/rs6000/sync.md (mem_thread_fence): Add new cases.
19912         (atomic_load<mode>): Add new cases and use new accessors.
19913         (store_quadpti): Add new cases.
19914         * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
19915         accessors.
19916         * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
19917         * doc/extend.texi: Update docs to indicate 16 bits are used for memory
19918         model, not 8.
19920 2015-05-12  Jan Hubicka  <hubicka@ucw.cz>
19922         * ipa-devirt.c (type_with_linkage_p): New function.
19923         (type_in_anonymous_namespace_p): Move here from tree.c; assert that
19924         type has linkage.
19925         (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
19926         (can_be_name_hashed_p): Simplify.
19927         (hash_odr_name): Check that type has linkage before checking if it is
19928         anonymous.
19929         (types_same_for_odr): Likewise.
19930         (odr_name_hasher::equal): Likewise.
19931         (odr_subtypes_equivalent_p): Likewise.
19932         (warn_types_mismatch): Likewise.
19933         (get_odr_type): Likewise.
19934         (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
19935         * ipa-utils.h (odr_type_p): Move offline.
19936         * tree.c (need_assembler_name_p): Fix handling of types
19937         without linkages.
19938         (type_in_anonymous_namespace_p): Move to ipa-devirt.c
19940 2015-05-12  David Malcolm  <dmalcolm@redhat.com>
19942         * timevar.c (timevar_enable): Delete in favor of...
19943         (g_timer): New global.
19944         (struct timevar_def): Move to timevar.h inside class timer.
19945         (struct timevar_stack_def): Likewise.
19946         (timevars): Delete global in favor of field "m_timevars" within
19947         class timer in timevar.h
19948         (stack): Likewise, in favor of field "m_stack".
19949         (unused_stack_instances): Likewise, in favor of field
19950         "m_unused_stack_instances".
19951         (start_time): Likewise, in favor of field "m_start_time".
19952         (get_time): Eliminate check for timevar_enable.
19953         (timer::timer): New function, built from part of timevar_init.
19954         (timevar_init): Rewrite idempotency test from using
19955         "timevar_enable" bool to using dynamic allocation of "g_timer".
19956         Move rest of implementation into timer's constructor.
19957         (timevar_push_1): Rename to...
19958         (timer::push): ...this, adding "m_" prefixes to variables that
19959         are now fields of timer.
19960         (timevar_pop_1): Likewise, rename to...
19961         (timer::pop): ...this, and add "m_" prefixes.
19962         (timevar_start): Replace test for "timevar_enable" with one for
19963         "g_timer", and move bulk of implementation to...
19964         (timer::start): ...here, adding "m_" prefixes.
19965         (timevar_stop): Likewise, from here...
19966         (timer::stop): ...to here.
19967         (timevar_cond_start): Likewise, from here...
19968         (timer::cond_start): ...to here.
19969         (timevar_cond_stop): Likewise, from here...
19970         (timer::cond_stop): ...to here.
19971         (validate_phases): Rename to...
19972         (timer::validate_phases): ...this, and add "m_" prefixes.  Make
19973         locals "total" and "tv" const.
19974         (timevar_print): Rename to...
19975         (timer::print): ...this, and add "m_" prefixes.  Make locals
19976         "total" and "tv" const.  Eliminate test for timevar_enable.
19977         * timevar.h (timevar_enable): Eliminate.
19978         (g_timer): New declaration.
19979         (timevar_push_1): Eliminate.
19980         (timevar_pop_1): Eliminate.
19981         (timevar_print): Eliminate.
19982         (class timer): New class.
19983         (timevar_push): Rewrite to use g_timer.
19984         (timevar_pop): Likewise.
19985         * toplev.c (toplev::~toplev): Likewise.
19987 2015-05-12  Richard Earnshaw  <rearnsha@arm.com>
19989         * arm-protos.h (arm_sched_autopref): Delete.
19990         (tune_params): Re-organize, use enums for flag values.
19991         (FUSE_OPS): New macro.
19992         * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
19993         (ARM_PREFETCH_BENEFICIAL): Likewise.
19994         (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
19995         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
19996         (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
19997         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
19998         (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
19999         (arm_cortex_a57_tune,  arm_xgene1_tune, arm_cortex_a5_tune)
20000         (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
20001         (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
20002         format.
20003         (arm_option_override, thumb2_reorg, arm_print_tune_info)
20004         (aarch_macro_fusion_pair_p): Update uses of current_tune.
20005         * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
20007 2015-05-12  Sandra Loosemore  <sandra@codesourcery.com>
20009         * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
20010         "break".
20012 2015-05-12  Chung-Lin Tang  <cltang@codesourcery.com>
20013             Sandra Loosemore <sandra@codesourcery.com>
20015         * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
20016         value.
20017         (REG_CLASS_NAMES): Add "IJMP_REGS".
20018         (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
20019         * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
20020         use new "c" register constraint.
20021         * config/nios2/constraint.md (c): New register constraint
20022         corresponding to IJMP_REGS.
20024 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20026         * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
20027         *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
20028         define_splits): Delete, revamp, transmogrify into ...
20029         (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20030         *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20031         *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20032         New.
20034 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20036         * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
20037         gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
20039 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20041         * config/rs6000/rs6000.md (extzv): FAIL for SImode.
20042         (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
20043         *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
20044         *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
20045         *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
20046         *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
20047         *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
20048         *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
20049         *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
20050         *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
20051         *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
20052         *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
20053         *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
20054         *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
20055         *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
20056         *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
20057         and 30 corresponding splitters): Delete.
20059 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20061         * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
20062         zero_extract.
20064 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20066         * combine.c (recog_for_combine_1): New function, factored out
20067         from recog_for_combine.
20068         (change_zero_ext): New function.
20069         (recog_for_combine): If recog fails, try again with the pattern
20070         modified by change_zero_ext; if that still fails, restore the
20071         pattern.
20073 2015-05-12  Segher Boessenkool  <segher@kernel.crashing.org>
20075         * combine.c (get_undo_marker): New function.
20076         (undo_to_marker): New function, largely factored out from ...
20077         (undo_all): ... this.  Adjust.
20079 2015-05-12  Richard Biener  <rguenther@suse.de>
20081         PR tree-optimization/66101
20082         * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
20083         fixup if we turn a loop exit edge to a fallthru edge.
20085 2015-05-12  Richard Biener  <rguenther@suse.de>
20087         PR tree-optimization/37021
20088         * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
20089         (SLP_TREE_TWO_OPERATORS): New define.
20090         * tree-vect-slp.c (vect_create_new_slp_node): Initialize
20091         SLP_TREE_TWO_OPERATORS.
20092         (vect_build_slp_tree_1): Allow two mixing plus/minus in an
20093         SLP node.
20094         (vect_build_slp_tree): Adjust.
20095         (vect_analyze_slp_cost_1): Likewise.
20096         (vect_schedule_slp_instance): Vectorize mixing plus/minus by
20097         emitting two vector stmts and mixing the results.
20099 2015-05-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20101         * call.c (print_z_candidates): Remove dead code.
20103 2015-05-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20105         * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
20106         and zEC12_simple_fp.
20107         * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
20108         to 1.
20110 2015-05-12  Tom de Vries  <tom@codesourcery.com>
20112         PR tree-optimization/66010
20113         * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
20114         ifn_va_arg.
20115         * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
20116         (gimplify_va_arg_internal): Remove loc parameter.  Assert no array-typed
20117         va_lists are passed, and remove corresponding handling.
20118         (gimplify_va_arg_expr): Only take address of ap if necessary.  Add
20119         do_deref argument to ifn_va_arg.
20120         * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
20121         ifn_va_arg.
20123 2015-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20125         PR target/65955
20126         * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
20127         REG before taking its REGNO.
20129 2015-05-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20131         * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
20132         rsp->sign_bit_copies and rsp->nonzero_bits into ...
20133         (update_rsp_from_reg_equal): This.  Also use REG_EQUAL note on src if
20134         present to get more accurate information about the number of sign bit
20135         copies and non zero bits.
20137 2015-05-12  Richard Biener  <rguenther@suse.de>
20139         * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
20140         do not allow unrolling.
20142 2015-05-11  Richard Henderson  <rth@redhat.com>
20144         * config/i386/i386-modes.def (CCP): New.
20145         * config/i386/i386.c (put_condition_code): Handle it.
20146         (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
20148 2015-05-11  Richard Henderson  <rth@redhat.com>
20150         * target.def (md_asm_clobbers): Replace with...
20151         (md_asm_adjust): this.
20152         * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
20153         (TARGET_MD_ASM_ADJUST): New.
20154         * tm.texi: Rebuild.
20155         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
20156         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
20157         * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
20159         * cfgexpand.c (check_operand_nalternatives): Accept vector of
20160         constraints instead of lists of outputs and inputs.
20161         (expand_asm_stmt): Save and restore input_location around the
20162         body of the function.  Move asm data into vectors instead of
20163         building tree lists.  Generate cleanup sequences as needed,
20164         rather than waiting til the end.  Use new md_asm_adjust hook.
20166         * config/vxworks.c: Include vec.h before target.h.
20167         * gimple.c: Likewise.
20168         * incpath.c: Likewise.
20169         * mode-switching.c: Likewise.
20171         * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
20172         (cris_md_asm_adjust): this.
20173         (TARGET_MD_ASM_CLOBBERS): Remove.
20174         (TARGET_MD_ASM_ADJUST): New.
20175         * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
20176         (ix86_md_asm_adjust): this.
20177         (TARGET_MD_ASM_CLOBBERS): Remove.
20178         (TARGET_MD_ASM_ADJUST): New.
20179         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
20180         (mn10300_md_asm_adjust): this.
20181         (TARGET_MD_ASM_CLOBBERS): Remove.
20182         (TARGET_MD_ASM_ADJUST): New.
20183         * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
20184         (rs6000_md_asm_adjust): this.
20185         (TARGET_MD_ASM_CLOBBERS): Remove.
20186         (TARGET_MD_ASM_ADJUST): New.
20187         * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
20188         (visium_md_asm_adjust): this.
20189         (TARGET_MD_ASM_CLOBBERS): Remove.
20190         (TARGET_MD_ASM_ADJUST): New.
20192 2015-05-11  Richard Henderson  <rth@redhat.com>
20194         * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
20195         if noutputs is zero.
20196         * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
20198         * cfgexpand.c (expand_asm_operands): Merge into...
20199         (expand_asm_stmt): ... here.
20201         * cfgexpand.c (expand_asm_operands): Don't call
20202         resolve_asm_operand_names.
20203         * stmt.c (resolve_asm_operand_names): Clarify block comment.
20205 2015-05-11  Jan Hubicka  <hubicka@ucw.cz>
20207         * dwarf2out.c (gen_member_die): Sanity check that we access
20208         TYPE_MAIN_VARIANT for TYPE_METHODS.
20209         * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
20210         checking TYPE_METHODS.
20211         * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
20212         if non-null.
20213         (build_distinct_type_copy): Clear TYPE_METHODS.
20214         (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
20215         (verify_type): Allow TYPE_METHODS to be error_mark_node.
20216         * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
20218 2015-05-11  Eric Botcazou  <ebotcazou@adacore.com>
20220         * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
20221         (emit_pattern_before_setloc): Likewise.
20223 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
20225         * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
20226         for define_peephole2s.
20227         (get_peephole2_pattern): New function.
20228         (main): Use it.  Call validate_pattern.
20230 2015-05-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
20232         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
20233         LAST_CALLEE_SAVED_REG instead of hard-coded register number.
20234         (Last callee saved reg is different for AVR_TINY architecture)
20236 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
20238         * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
20239         when looking for memory references.
20241 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
20243         PR target/65753
20244         * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
20245         via function pointers.
20247 2015-05-11  Alexander Monakov  <amonakov@ispras.ru>
20249         * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
20250         indirect call by forcing address into a pseudo with -fno-plt.
20251         * common.opt (flag_plt): New option.
20252         * doc/invoke.texi (Code Generation Options): Add -fno-plt.
20253         ([-fno-plt]): Document.
20255 2015-05-11  Markus Trippelsdorf  <markus@trippelsdorf.de>
20257         PR bootstrap/66105
20258         * config/rs6000/option-defaults.h: Add space between string literal
20259         and macro name.
20261 2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20263         * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
20264         accross ARM targets.
20266 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20268         * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
20269         * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
20271 2015-05-11  Richard Sandiford  <richard.sandiford@arm.com>
20273         PR rtl-optimization/66076
20274         * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
20275         Don't grow the heap array if it is already big enough from a
20276         previous iteration.
20278 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20280         * config/arm/arm-protos.h (arm_declare_function_name): Declare.
20281         (is_called_in_ARM_mode): Remove.
20282         * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
20283         (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
20284         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
20285          arm_declare_function_name.
20287 2015-05-11  Christian Bruel  <christian.bruel@st.com>
20289         * config/arm/arm.c (arm_option_override): Reoganized and split into :
20290         (arm_option_params_internal); New function.
20291         (arm_option_check_internal): New function.
20292         (arm_option_override_internal): New function.
20293         (thumb_code, thumb1_code): Remove.
20294         * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
20295         (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
20296         (thumb_code, thumb1_code): Remove.
20297         * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
20299 2015-05-11  Uros Bizjak  <ubizjak@gmail.com>
20301         * config/alpha/alpha.c (alpha_emit_set_const_1)
20302         (alpha_emit_set_long_const, alpha_extract_integer)
20303         (alpha_legitimate_constant_p, alpha_split_const_mov)
20304         (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
20305         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20306         (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
20307         HOST_WIDE_INT_1U.
20308         * config/alpha/predicates.md (mode_mask_operand): Do not match
20309         const_double RTX.
20310         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20311         * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
20312         Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
20313         [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
20314         (*negtf_internal): Use gen_int_mode instead of immed_double_const.
20316 2015-05-11  Jakub Jelinek  <jakub@redhat.com>
20318         PR target/65780
20319         * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
20320         default_binds_local_p_2.
20321         * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
20322         * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
20324 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20326         * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
20328 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20330         Patch by Richard Biener
20331         * coverage.c (coverage_obj_init): Delay building of type variant
20332         until the type is finished.
20334 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20336         * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
20337         mismatch between C and C++ type; compoare correctly ARG_TYPES
20338         for non-prototypes and output correctly parameter index for METHOD_TYPE.
20339         (odr_types_equivalent_p): Fix wording of warning about attributes;
20340         it is OK to match prototype and non-prototype.
20342 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20344         * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
20345         TYPE_ARG_TYPES list.
20346         (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
20347         * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
20349 2015-05-09  Jan Hubicka  <hubicka@ucw.cz>
20351         * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
20352         * tree.h (is_lang_specific): Constify.
20354 2015-05-09  Marc Glisse  <marc.glisse@inria.fr>
20356         PR tree-optimization/64454
20357         * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
20358         Rewrite.
20360 2015-05-08  Jason Merrill  <jason@redhat.com>
20362         * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
20363         config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
20364         config/darwin.h, config/darwin9.h, config/elfos.h,
20365         config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
20366         config/microblaze/microblaze.h, config/mips/mips.h,
20367         config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
20368         config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
20369         config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
20370         config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
20371         config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
20372         cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
20373         dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
20374         ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
20375         ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
20376         modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
20377         tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
20378         between string literal and macro name.
20380 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20382         * jump.c: Change argument types to rtx_insn *.
20383         * rtl.h: Adjust.
20385 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20387         * lra-constraints.c: Change argument type to rtx_insn *.
20389 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20391         * df-problems.c: Change argument type to rtx_insn *.
20393 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20395         * combine.c: Change argument type to rtx_insn *.
20397 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20399         * rtl.h: Adjust.
20400         * rtlanal.c: Change argument type to rtx_insn *.
20402 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20404         * sched-deps.c: Change argument types to rtx_insn *.
20405         * sched-int.h: Adjust.
20407 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20409         * dwarf2cfi.c: Change argument type to rtx_insn *.
20411 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20413         * ira.c (decrease_live_ranges_number): Changetype of local
20414         variable to rtx_insn *.
20415         * recog.c: Change argument types to rtx_insn *.
20416         * recog.h: Adjust.
20418 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20420         * reorg.c: Change argument types to rtx_insn *.
20422 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20424         * ira-color.c: Change argument types to rtx_insn *.
20425         * lra-eliminations.c: Likewise.
20426         * ira.h: Adjust.
20428 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20430         * gcse.c: Change argument types to rtx_insn *.
20432 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20434         * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
20436 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20438         * emit-rtl.c (emit_debug_insn_before): Change argument type to
20439         rtx_insn *.
20440         * rtl.h: Adjust.
20442 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20444         * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
20445         * rtl.h: Adjust.
20447 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20449         * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
20450         * rtl.h: Adjust.
20452 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20454         * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
20455         * rtl.h: Adjust.
20457 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20459         * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
20460         * rtl.h: Adjust.
20462 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20464         * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
20465         to rtx_insn *.
20466         * rtl.h: Adjust.
20468 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20470         * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
20471         to rtx_insn *.
20472         * rtl.h: Likewise.
20474 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20476         * except.c (can_nonlocal_goto): Change type of argument to
20477         rtx_insn *.
20478         * rtl.h: Adjust.
20480 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20482         * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
20483         * rtl.h: Adjust.
20485 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20487         * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
20488         * cfgrtl.c (can_delete_label_p): Adjust.
20489         * rtl.h: likewise.
20491 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20493         * reorg.c (stop_search_p): Change argument to rtx_insn *.
20495 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20497         * except.c (make_reg_eh_region_note): Change argument to
20498         rtx_insn *.
20499         (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
20500         * except.h: Adjust.
20502 2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
20504         * mode-switching.c (commit_mode_sets): Change type of local
20505         variable from rtx to rtx_insn *.
20507 2015-05-08  Jim Wilson  <jim.wilson@linaro.org>
20509         * doc/install.texi (--enable-languages): Add missing jit and lto info.
20510         Add ^ to grep command.
20511         * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
20512         arg to last gimple_simplify declaration.  Add missing gimple_build
20513         declaration for built-in function case with four tree args.
20515 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
20516             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20518         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
20519         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
20520         (GNU_USER_DYNAMIC_LINKERN32): Update.
20522 2015-05-08  Richard Biener  <rguenther@suse.de>
20524         PR tree-optimization/66036
20525         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20526         Handle strided group loads.
20527         (vect_verify_datarefs_alignment): Likewise.
20528         (vect_enhance_data_refs_alignment): Likewise.
20529         (vect_analyze_group_access): Likewise.
20530         (vect_analyze_data_ref_access): Likewise.
20531         (vect_analyze_data_ref_accesses): Likewise.
20532         * tree-vect-stmts.c (vect_model_load_cost): Likewise.
20533         (vectorizable_load): Likewise.
20535 2015-05-08  Segher Boessenkool  <segher@kernel.crashing.org>
20537         * config/rs6000/rs6000.md: Require operand inequality in one
20538         of the peepholes.
20540 2015-05-08  Richard Sandiford  <richard.sandiford@arm.com>
20541             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
20543         * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
20544         from (set ...).
20545         * config/rx/rx.md (movdi, movdf): Likewise.
20546         Likewise for define_peephole2s.
20548 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20550         * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
20551         vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
20552         vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
20553         vtst_u64): Rewrite using gcc vector extensions.
20555 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20557         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
20558         vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
20560 2015-05-08  Alan Lawrence  <alan.lawrence@arm.com>
20562         * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
20564 2015-05-08  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20566         * config/glibc-stdint.h (OPTION_MUSL): Define.
20567         (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
20568         Change the definition based on OPTION_MUSL for 64 bit targets.
20569         * config/linux.h (OPTION_MUSL): Redefine.
20570         * config/alpha/linux.h (OPTION_MUSL): Redefine.
20571         * config/rs6000/linux.h (OPTION_MUSL): Redefine.
20572         * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
20574 2015-05-08  Gregor Richards  <gregor.richards@uwaterloo.ca>
20575             Szabolcs Nagy  <szabolcs.nagy@arm.com>
20577         * config.gcc (LIBC_MUSL): New tm_defines macro.
20578         * config/linux.h (OPTION_MUSL): Define.
20579         (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
20580         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
20581         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
20582         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
20583         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
20584         * config/linux.opt (mmusl): New option.
20585         * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
20586         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
20587         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
20588         * configure: Regenerate.
20590 2015-05-08  H.J. Lu  <hongjiu.lu@intel.com>
20591             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
20593         PR target/48904
20594         * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
20595         * config/i386/knetbsd-gnu64.h: New file.
20597 2015-05-08  Marek Polacek  <polacek@redhat.com>
20599         PR c/64918
20600         * doc/invoke.texi: Document -Woverride-init-side-effects.
20602 2015-05-07  Marek Polacek  <polacek@redhat.com>
20604         PR c/65179
20605         * doc/invoke.texi: Document -Wshift-negative-value.
20607 2015-05-06  Aditya Kumar  <hiraditya@msn.com>
20609         * gcov-tool.c (do_merge): Refactore to remove int ret.
20610         * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
20611         !type == FUNC to type != FUNC.
20612         * reload.h (struct target_reload): Changee to type of
20613         x_spill_indirect_levels from bool to unsigned char.
20615 2015-05-07  Richard Sandiford  <richard.sandiford@arm.com>
20617         * rtl.h (always_void_p): New function.
20618         * gengenrtl.c (always_void_p): Likewise.
20619         (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
20620         with code foo are always VOIDmode.
20621         * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
20622         * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
20623         compare-elim.c, config/aarch64/aarch64.c,
20624         config/aarch64/aarch64.md, config/alpha/alpha.c,
20625         config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
20626         config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
20627         config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
20628         config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20629         config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
20630         config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
20631         config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
20632         config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
20633         config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
20634         config/ia64/vect.md, config/iq2000/iq2000.c,
20635         config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
20636         config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
20637         config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
20638         config/mep/mep.c, config/microblaze/microblaze.c,
20639         config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
20640         config/mn10300/mn10300.c, config/msp430/msp430.c,
20641         config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
20642         config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
20643         config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
20644         config/rs6000/altivec.md, config/rs6000/rs6000.c,
20645         config/rs6000/rs6000.md, config/rs6000/vector.md,
20646         config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
20647         config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
20648         config/sh/sh.md, config/sh/sh_treg_combine.cc,
20649         config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
20650         config/spu/spu.md, config/stormy16/stormy16.c,
20651         config/tilegx/tilegx.c, config/tilegx/tilegx.md,
20652         config/tilepro/tilepro.c, config/tilepro/tilepro.md,
20653         config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
20654         config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
20655         expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
20656         lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
20657         reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
20658         var-tracking.c: Update calls accordingly.
20660 2015-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
20662         PR middle-end/192
20663         PR middle-end/54303
20664         * varasm.c (function_mergeable_rodata_prefix): New function.
20665         (mergeable_string_section): Use it.
20666         (mergeable_constant_section): Use it.
20668 2015-05-07  Jeff Law  <law@redhat.com>
20670         PR target/39726
20671         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
20672         simplifier to narrow arithmetic.
20673         * generic-match-head.c: (types_match, single_use): New functions.
20674         * gimple-match-head.c: (types_match, single_use): New functions.
20676 2015-05-07  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20678         * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
20679         rtx type.
20681 2015-05-07  Richard Biener  <rguenther@suse.de>
20683         PR tree-optimization/66002
20684         * passes.def: Schedule another pass_merge_phi after ifcombine, right
20685         before phiopt.
20687 2015-05-07  Marek Polacek  <polacek@redhat.com>
20688             Martin Uecker  <uecker@eecs.berkeley.edu>
20690         * doc/invoke.texi: Document -fsanitize=bounds-strict.
20691         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
20692         into SANITIZE_NONDEFAULT.
20693         * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
20695 2015-05-07  Uros Bizjak  <ubizjak@gmail.com>
20697         PR target/66015
20698         * config/alpha/alpha.c (alpha_override_options_after_change): New.
20699         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
20700         (alpha_override_options): Move align_loops, align_jumps and
20701         align_functions handling into alpha_override_options_after_change.
20703 2015-05-06  Sandra Loosemore  <sandra@codesourcery.com>
20704             Chris Jones  <chrisj@nvidia.com>
20705             Joshua Conner  <jconner@nvidia.com>
20707         * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
20708         linking of crtfastmath.o.
20709         * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
20711 2015-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
20713         * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
20714         (cstore<mode>4_unsigned_imm): New expander.
20715         (cstore<mode>4): Remove empty constraint strings.  Use the new
20716         expanders.
20718 2015-05-06  Yvan Roux  <yvan.roux@linaro.org>
20720         PR target/64208
20721         * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
20722         alternatives.
20724 2015-05-06  Szabolcs Nagy  <szabolcs.nagy@arm.com>
20726         * config/aarch64/geniterators.sh: Use standard BRE in sed.
20728 2015-05-06  Alan Modra  <amodra@gmail.com>
20730         PR target/66033
20731         * config/rs6000/rs6000.md (nop): Use an unspec pattern.
20732         (UNSPEC_NOP): Define.
20733         (reload_vsx_from_gpr<mode>): Add missing DONE.
20734         (reload_gpr_from_vsx<mode>): Likewise.
20735         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
20736         (vsx_div_v2di, vsx_udiv_v2di): Likewise.
20738 2015-05-06  Christian Bruel  <christian.bruel@st.com>
20740         PR target/66015
20741         * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
20742         align_jumps, align_functions into aarch64_override_options_after_change.
20744 2015-05-06  Richard Biener  <rguenther@suse.de>
20746         * tree-vect-slp.c (vect_supported_load_permutation_p): Use
20747         vect_transform_slp_perm_load to check if we support a permutation
20748         for basic-block vectorization.
20750 2015-05-06  Nick Clifton  <nickc@redhat.com>
20752         * config/rl78/rl78.c (need_to_save): Save register 22 if it is
20753         used, even if it is not being used as a frame pointer.
20755 2015-05-05  Jason Merrill  <jason@redhat.com>
20757         * dwarf2out.c (gen_member_die): Don't emit anything for an
20758         anonymous class constructor.
20760 2015-05-05  David Malcolm  <dmalcolm@redhat.com>
20762         * auto-profile.c (afdo_find_equiv_class): Fix indentation so
20763         that it reflects the block structure.
20764         (afdo_propagate_edge): Likewise.
20765         (afdo_calculate_branch_prob): Likewise.
20766         (afdo_annotate_cfg): Likewise.
20767         * cfgcleanup.c (equal_different_set_p): Likewise.
20768         (try_crossjump_to_edge): Likewise.
20769         * cgraph.c (cgraph_node::verify_node): Likewise.
20770         * cgraphunit.c (expand_all_functions): Likewise.
20771         * config/i386/i386.c (ix86_expand_copysign): Likewise.
20772         (exact_dependency_1): Likewise.
20773         * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
20774         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
20775         * gensupport.c (process_define_subst): Likewise.
20776         * lto-wrapper.c (merge_and_complain): Likewise.
20777         * tree-if-conv.c (if_convertible_bb_p): Likewise.
20778         * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
20779         * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
20780         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
20781         * tree-vect-loop.c (vectorizable_reduction): Likewise.
20782         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
20783         * tree-vect-stmts.c (vectorizable_shift): Likewise.
20784         * tree-vrp.c (vrp_finalize): Likewise.
20785         * tree.c (variably_modified_type_p): Likewise.
20787 2015-05-05  Jack Howarth  <howarth.at.gcc@gmail.com>
20789         * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
20790         on darwin12 and later.
20791         * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
20792         file to pass -rdynamic on darwin12 and later.
20793         * config/darwin.opt (rdynamic): Add.
20795 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
20797         * doc/extend.texi (C Extensions): Update menu for moved Variable
20798         Attributes and Type Attributes sections.
20800 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
20802         PR target/65990
20803         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
20804         if rep_8byte stringop strategy was specified for 32-bit target.
20806 2015-05-05  Ilya Tocar  <ilya.tocar@intel.com>
20808         PR target/65915
20809         * config/i386/i386.md (vector convert to float spltiter): Check for
20810         xmm16+, when splitting scalar float conversion.
20811         * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
20813 2015-05-05  Nick Clifton  <nickc@redhat.com>
20815         * config/msp430/msp430-opts.h (enum msp430_regions): New.
20816         * config/msp430/msp430.c (msp430_override_options): Complain if
20817         -mcode-region or -mdata-region is used on a non MSP430X.
20818         (msp430_section_attr): New function.  Checks lower, upper and
20819         either attributes.
20820         (msp430_attribute_table): Add lower, upper and either.
20821         (gen_prefix): New function.  Generates a prefix for a section
20822         name.
20823         (msp430_select_section): New function - handles the choice of
20824         section for an object.  Takes into account memory region
20825         attributes and options.
20826         (msp430_function_section): Use gen_prefix.
20827         (TARGET_SECTION_TYPE_FLAGS): Define.
20828         (msp430_section_type_flags): New function.
20829         (TARGET_ASM_UNIQUE_SECTION): Define.
20830         (msp430_unique_section): New function.
20831         (msp430_output_aligned_decl_common): New function.
20832         (msp430_do_not_relax_short_jumps): New function.
20833         * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
20834         Define.
20835         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
20836         * config/msp430/msp430-protos.h
20837         (msp430_do_not_relax_short_jumps): New prototype.
20838         (msp430_output_aligned_decl_common): New prototype.
20839         * config/msp430/msp430.md (length): New attribute.
20840         (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
20841         then use a long code sequence for short jumps.
20842         * config/msp430/msp430.opt (mcode-region): New.
20843         (mdata-region): New.
20844         * doc/invoke.texi: Document new options.
20845         * doc/extend.texi: Document new attributes.
20847 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
20849         * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
20850         (tune_params): Add field branch_costs.
20851         (aarch64_branch_cost): Declare.
20852         * gcc/config/aarch64.c (generic_branch_cost): New.
20853         (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
20854         (cortexa53_tunings): Likewise.
20855         (cortexa57_tunings): Likewise.
20856         (thunderx_tunings): Likewise.
20857         (xgene1_tunings): Likewise.
20858         (aarch64_branch_cost): Define.
20859         * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
20861 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
20863         * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
20864         and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
20865         * config/i386/i386.md: Ditto.
20866         * config/i386/winnt.c: Ditto.
20868 2015-05-05  Matthew Wahab  <matthew.wahab@arm.com>
20870         * doc/extend.texi (__atomic Builtins): Move implementation details
20871         to the end of the description, rewrite opening paragraphs, state
20872         difference with __sync builtins, state C11/C++11 assumptions,
20873         weaken itemized descriptions, add explanation of memory model
20874         behaviour, expand description of compare-exchange, simplify text.
20876 2015-05-05  Renlin Li  <renlin.li@arm.com>
20878         * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
20880 2015-05-05  Yvan Roux  <yvan.roux@linaro.org>
20882         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
20883         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
20884         * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
20885         (LINK_SPEC): Include CA53_ERR_843419_SPEC.
20886         * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
20887         * configure: Regenerate.
20888         * configure.ac: Add --enable-fix-cortex-a53-843419 option.
20889         * doc/install.texi (aarch64*-*-*): Document new
20890         --enable-fix-cortex-a53-843419 option.
20891         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
20892         and -mno-fix-cortex-a53-843419 options.
20894 2015-05-05  Uros Bizjak  <ubizjak@gmail.com>
20896         PR target/65871
20897         * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
20899 2015-05-04  Jan Hubicka  <hubicka@ucw.cz>
20901         * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
20902         fix overactive TYPE_MIN_VALUE check and add FIXME for type
20903         compatibility problems.
20905 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
20907         * config/microblaze/microblaze.md (cbranchsi4): Added immediate
20908         constraints.
20909         (cbranchsi4_reg): New.
20910         * config/microblaze/microblaze.c
20911         (microblaze_expand_conditional_branch_reg): New.
20912         * config/microblaze/microblaze-protos.h
20913         (microblaze_expand_conditional_branch_reg): New prototype.
20915 2015-05-04  Ajit Agarwal  <ajitkum@xilinx.com>
20917         * config/microblaze/microblaze.md (peephole2): New.
20919 2015-05-04  Jeff Law  <law@redhat.com>
20921         Revert:
20922         2015-05-04  Jeff Law  <law@redhat.com>
20924         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
20925         simplifier to narrow arithmetic.
20926         * generic-match-head.c: (types_match, single_use): New functions.
20927         * gimple-match-head.c: (types_match, single_use): New functions.
20929 2015-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
20931         PR target/65987
20932         * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
20933         (split_branches): Likewise.
20935 2015-05-04  Sandra Loosemore  <sandra@codesourcery.com>
20937         * common.opt (fdelete-null-pointer-checks): Init to -1.
20938         * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
20939         override flag_delete_null_pointer_checks default.
20940         * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
20941         behavior re address zero.  Better document target-specific behavior.
20942         (-fisolate-errneous-paths-dereference): Mention relationship to
20943         -fdelete-null-pointer-checks.
20945 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
20947         PR tree-optimization/65984
20948         * ubsan.c: Include tree-cfg.h.
20949         (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
20950         stmt_could_throw_p test, rename can_throw variable to ends_bb.
20952 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
20954         * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
20955         to CONST_DOUBLE_P predicate.
20956         (standard_sse_constant_p): Return 0 for !TARGET_SSE.
20957         (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
20958         allow only operands that satisfy standard_sse_constant_p predicate.
20959         * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
20960         to CONST_DOUBLE_P predicate.
20962 2015-05-04  Jeff Law  <law@redhat.com>
20964         * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
20965         simplifier to narrow arithmetic.
20966         * generic-match-head.c: (types_match, single_use): New functions.
20967         * gimple-match-head.c: (types_match, single_use): New functions.
20969 2015-05-04  Andreas Tobler  <andreast@gcc.gnu.org>
20971         * config/arm/arm.c: Restore bootstrap.
20973 2015-05-04  Uros Bizjak  <ubizjak@gmail.com>
20975         * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
20976         * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
20977         as CONST_WIDE_INT, not CONST_DOUBLE.
20978         (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
20979         (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
20980         (ix86_find_base_term): Do not check for CONST_DOUBLE.
20981         (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
20982         (ix86_build_signbit_mask): Rewrite using wide ints.
20983         (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
20984         (ix86_rtx_costs): Handle CONST_WIDE_INT.
20985         (find_constant): Ditto.
20986         * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
20987         using gen_int_mode.
20988         * config/i386/predicates.md (x86_64_immediate_operand)
20989         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
20990         (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
20991         <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
20992         (const0_operand): Also match const_wide_int.
20993         (constm1_operand): Ditto.
20994         (const1_operand): Ditto.
20996 2015-05-04  Richard Biener  <rguenther@suse.de>
20998         PR tree-optimization/65965
20999         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
21000         store groups at gaps.
21002 2015-05-04  Richard Biener  <rguenther@suse.de>
21004         PR tree-optimization/65935
21005         * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
21006         then make sure to apply that swapping to the IL.
21008 2015-05-04  Jakub Jelinek  <jakub@redhat.com>
21010         * Makefile.in (PATCHLEVEL_c): New variable.
21011         (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
21012         expand the same way as if DEVPHASE_c was non-empty.
21014 2015-05-04  Kai Tietz  <ktietz@redhat.com>
21016         PR target/65559
21017         * lto-wrapper.c (run_gcc): Open filename
21018         in binary-mode.
21020 2015-05-03  Sandra Loosemore  <sandra@codesourcery.com>
21022         * doc/extend.texi (Variable Attributes, Type Attributes):  Move
21023         sections up in file, to immediately after the Function Attributes
21024         section.
21026 2015-05-02  Jan Hubicka  <hubicka@ucw.cz>
21028         * tree.c (verify_type): Check various uses of TYPE_MINVAL.
21030 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21032         * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
21033         (insert_partition_copy_on_edge): Adjust.
21034         (insert_rtx_to_part_on_edge): Likewise.
21035         (insert_part_to_rtx_on_edge): Likewise.
21037 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21039         * function.c (set_return_jump_label): Change type of argument to
21040         rtx_insn *.
21041         * function.h (set_return_jump_label): Adjust.
21043 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21045         * reload.h (struct reg_equivs_t): Change type of init to
21046         rtx_insn *.
21047         * ira.c (fix_reg_equiv_init): Adjust.
21048         * reload1.c (eliminate_regs_1): Likewise.
21049         (init_eliminable_invariants): Likewise.
21051 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21053         * cselib.c (fp_setter_insn): Take a rtx_insn *.
21054         * cselib.h (fp_setter_insn): Adjust.
21056 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21058         * recog.c (struct validate_replace_src_data): Change type of
21059         insn field to rtx_insn *.
21060         (validate_replace_src_group): Change type of argument to rtx_insn *.
21061         * recog.h (validate_replace_src_group): Adjust.
21063 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21065         * haifa-sched.c: Change the type of some variables to rtx_insn *.
21066         * sched-deps.c: Likewise.
21067         * sched-int.h: Likewise.
21068         * sched-rgn.c: Likewise.
21069         * sel-sched.c: Likewise.
21071 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21073         to rtx_insn *.
21074         * config/i386/i386.c: Change the type of some arguments to
21075         rtx_insn *.
21076         * config/arm/arm.c: Likewise.
21078 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21080         * lra-constraints.c: Change type of some arguments to rtx_insn *.
21082 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21084         * regcprop.c (kill_autoinc_value): Change type of argument to
21085         rtx_insn *.
21087 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21089         * genrecog.c (print_subroutine): Adjust.
21090         * recog.c (get_bool_attr_mask_uncached): Likewise.
21091         * recog.h (struct recog_data_d): Change the type of insn to
21092         rtx_insn *.
21094 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21096         * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
21098 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21100         * df-problems.c (df_set_note): Change type of argument to
21101         rtx_insn *.
21103 2015-05-02  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21105         * builtins.c (expand_builtin_trap): Change type of local
21106         variable to rtx_insn *.
21107         (add_sched_insns_for_speculation): Likewise.
21108         (ix86_emit_save_regs): Likewise.
21109         (get_scratch_register_on_entry): Likewise.
21110         (ix86_emit_restore_reg_using_pop): Likewise.
21111         (ix86_emit_leave): Likewise.
21112         (ix86_emit_restore_regs_using_mov): Likewise.
21113         (ix86_expand_epilogue): Likewise.
21114         Likewise.
21115         (rl78_alloc_physical_registers_umul): Likewise.
21116         * cselib.c (discard_useless_locs): Likewise.
21117         (cselib_invalidate_regno): Likewise.
21118         (cselib_invalidate_mem): Likewise.
21119         * function.c (expand_function_start): Likewise.
21120         (emit_use_return_register_into_block): Likewise.
21121         * gcse.c: Likewise.
21122         * haifa-sched.c (ok_for_early_queue_removal): Likewise.
21123         * ifcvt.c (noce_get_alt_condition): Likewise.
21124         * loop-doloop.c (doloop_condition_get): Likewise.
21125         * lra-constraints.c (inherit_in_ebb): Likewise.
21126         * modulo-sched.c (sms_schedule_by_order): Likewise.
21127         * recog.c (next_insn_tests_no_inequality): Likewise.
21128         * reorg.c (emit_delay_sequence): Likewise.
21129         (update_reg_dead_notes): Likewise.
21130         (fix_reg_dead_note): Likewise.
21131         (fill_slots_from_thread): Likewise.
21132         (delete_computation): Likewise.
21134 2015-05-01  Sandra Loosemore  <sandra@codesourcery.com>
21136         * doc/extend.texi (Variable Attributes): Add menu and proper
21137         @nodes to subsections.  Move Microsoft Windows attributes to
21138         their own subsection.
21139         (Type Attributes): Reorganize introduction to remove duplicate
21140         list of attributes.  Add menu and proper @nodes to subsections.
21141         Alphabetize the main table of common attributes.
21143 2015-05-01  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
21145         * match.pd: New simplification patterns.
21146         (x + (x & 1))  -> ((x + 1) & ~1)
21147         (x & ~(x & y)) -> ((x & ~y))
21148         (x | ~(x | y)) -> ((x | ~y))
21150 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21152         * target.def (attribute_table): Mention that struct attribute_spec
21153         is defined in tree-core.h rather than tree.h
21154         * doc/tm.texi: Regenerate.
21156 2015-05-01  Richard Sandiford  <richard.sandiford@arm.com>
21158         * genrecog.c (test): Rename to rtx_test.  Update rest of file
21159         accordingly.
21161 2015-05-01  Andreas Schwab  <schwab@linux-m68k.org>
21163         PR translation/65959
21164         * params.h (DEFPARAM): Rename msgid to nocmsgid.
21166 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21168         * gcc/config/aarch64/aarch64-protos.h (tune_params):
21169         Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
21170         * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
21171         Return value depending on target.
21172         (generic_tunings): Initialize new target settings.
21173         (cortexa53_tunings): Likewise.
21174         (cortexa57_tunings): Likewise.
21175         (thunderx_tunings): Likewise.
21176         (xgene1_tunings): Likewise.
21178 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21180         * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
21181         Make Cortex-A53 shift costs more accurate.
21183 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21185         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
21186         UNSIGNED_FLOAT.
21188 2015-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
21190         * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
21191         Calculate cost of op0 and op1 in PLUS and MINUS cases.
21193 2015-05-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21195         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
21196         Add cost of op0 in the compare-with-fpzero case.
21198 2015-04-30  David Malcolm  <dmalcolm@redhat.com>
21200         * builtins.c (fold_builtin_1): Remove spurious second
21201         semicolon.
21202         * cgraph.h (symtab_node::get_availability): Likewise.
21203         * opts.c (common_handle_option): Remove spurious second semicolon.
21204         * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21205         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
21207 2015-04-30  Caroline Tice  <cmtice@google.com>
21209         PR gcov-profile/65929
21210         * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
21211         (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
21212         * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
21213         (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
21214         * doc/tm.texi: Regenerate.
21215         * final.c (final_scan_insn):  Use ASM_DECLARE_COLD_FUNCTION_NAME
21216         instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
21217         * varasm.c (assemble_end_function):  Use ASM_DECLARE_COLD_FUNCTION_SIZE
21218         instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
21220 2015-04-30  Marek Polacek  <polacek@redhat.com>
21222         * varasm.c (handle_cache_entry): Fix logic.
21224 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21226         * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
21227         (*extrsi5_insn_uxtw_alt): Likewise.
21228         * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
21229         (aarch64_rtx_costs, IOR case): Use above to properly cost extr
21230         operations.
21232 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21234         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
21235         fabd in ABS case.
21237 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21239         * config/aarch64/aarch64.md
21240         (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
21241         (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
21242         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
21243         appropriately.  Handle alternative EON form.
21245 2015-04-30  Renlin Li  <renlin.li@arm.com>
21247         * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
21248         * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
21250 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
21252         PR ipa/65873
21253         * ipa-inline.c (can_inline_edge_p): It is safe to inline across
21254         -fstrict-aliasing boundaries.
21256 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21258         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
21259         and [SU]MNEGL patterns.
21261 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21263         * config/aarch64/aarch64.c (aarch64_shift_p): New function.
21264         (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
21265         combined arithmetic-shift ops.  Properly handle all shift and extend
21266         operations that can occur in combination with PLUS/MINUS.
21267         Rename maybe_fma to compound_p.
21268         (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
21269         arithmetic and shift operations.
21271 2015-04-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21273         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
21274         rather than arith_shift cost when costing ADD/MINUS of an
21275         extended value.
21277 2015-04-30  Jan Hubicka  <hubicka@ucw.cz>
21279         PR lto/65948
21280         * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
21281         to itself.
21283 2015-04-30  Richard Sandiford  <richard.sandiford@arm.com>
21285         * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
21286         are for the same position.
21288 2015-04-29  Aditya Kumar  <hiraditya@hotmail.com>
21290         * tree-vectorizer.c (set_uid_loop_bbs): New.  Factored out of
21291         vectorize_loops.
21292         (vectorize_loops): Use it.
21294 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21296         * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
21297         for aggregate types.
21298         (register_odr_type): Be ready for MAIN_VARIANT of ODR type
21299         type to be non_ODR.
21300         * tree.c (need_assembler_name_p): Compute mangled name for
21301         non-fundamental types and integer types.
21303 2015-04-29  Mikhail Maltsev  <maltsevm@gmail.com>
21305         * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
21306         manual swaps.
21307         * expr.c (expand_expr_real_2): Likewise.
21309 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21311         * tree.c (build_common_builtin_nodes): Do not build
21312         __builtin_alloca_with_align as equivalent of library alloca.
21314 2015-04-29  Jan Hubicka  <hubicka@ucw.cz>
21316         * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
21317         * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
21318         bugus variants.
21319         * tree.c: Include print-tree.h and ipa-utils.h
21320         (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
21321         (free_lang_data_in_cgraph): Call verify_type.
21322         (verify_type_variant): New function.
21323         (verify_type): New function.
21324         * tree.h (verify_type): Declare.
21326 2015-04-29  Steve Ellcey  <sellcey@imgtec.com>
21328         * config/mips/mips-cpus.def: (mips4): Change default processor
21329         from PROCESSOR_R8000 to PROCESSOR_R10000.
21331 2015-04-29  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
21333         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
21334         la/jalr instead of jal.
21336 2015-04-29  Uros Bizjak  <ubizjak@gmail.com>
21338         PR target/65871
21339         * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
21340         (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
21341         (setcc+movzbl peephole2): Check also clobbered reg.
21342         (setcc+andl peephole2): Ditto.
21344 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
21346         PR libgomp/65099
21347         * config/nvptx/mkoffload.c (target_ilp32): New variable.
21348         (main): Set it depending on "-foffload-abi=[...]".
21349         (compile_native, main): Use it to pass "-m32" or "-m64" to the
21350         compiler.
21352 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
21354         PR target/65770
21355         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
21356         vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
21357         Flip lane index back at assembly time for bigendian.
21359 2015-04-29  Thomas Schwinge  <thomas@codesourcery.com>
21361         * tree.h (OMP_STANDALONE_CLAUSES): New macro.
21362         * gimplify.c (gimplify_omp_workshare): Use it.
21364 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21366         * Makefile.in (build/genrecog.o): Depend on inchash.h.
21367         (build/genrecog$(build_exeext): Depend on build/hash-table.o and
21368         build/inchash.o
21369         * genrecog.c: Rewrite most of the code except for the third page.
21371 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21373         * inchash.h, inchash.c: Include bconfig.h for build objects.
21374         * Makefile.in (build/inchash.o): New rule.
21376 2015-04-29  Yvan Roux  <yvan.roux@linaro.org>
21378         PR target/65924
21379         * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
21380         number in type attribute expression.
21382 2015-04-29  Richard Sandiford  <richard.sandiford@arm.com>
21384         * loop-iv.c (canon_condition): Generalize to all types of integer
21385         constant.
21387 2015-04-29  Bernhard Reuther-Fischer  <aldot@gcc.gnu.org>
21389         * gimple-walk.c: Prune duplicate or unneeded includes.
21390         (walk_gimple_asm): Only call parse_input_constraint or
21391         parse_output_constraint if their findings are used.
21392         Honour parse_input_constraint and parse_output_constraint
21393         result.
21395 2015-04-29  Alan Lawrence  <alan.lawrence@arm.com>
21397         * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
21399 2015-04-29  Tom de Vries  <tom@codesourcery.com>
21401         PR tree-optimization/65893
21402         * passes.def (pass_all_optimizations): Move pass_stdarg to after
21403         pass_dce.
21405 2015-04-29  Richard Biener  <rguenther@suse.de>
21407         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
21408         compute GROUP_SIZE for basic-block SLP.
21409         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
21410         take into account gaps.
21411         (vect_get_mask_element): Properly reject references to previous
21412         vectors.
21413         (vect_transform_slp_perm_load): Likewise.
21415 2015-04-29  Christian Bruel  <christian.bruel@st.com>
21417         PR target/64835
21418         * config/i386/i386.c (ix86_default_align): New function.
21419         (ix86_override_options_after_change): Call ix86_default_align.
21420         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
21421         (ix86_override_options_after_change): New function.
21423 2015-04-28  Jeff Law  <law@redhat.com>
21425         * tree-ssa-dom.c (record_equality); Fix comment typos.
21427 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21429         PR tree-optimization/65887
21430         * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
21432 2015-04-28  Sandra Loosemore  <sandra@codesourcery.com>
21434         * doc/extend.texi (Declaring Attributes of Functions): Split into
21435         subsections by target.  Alphabetize the table of common attributes.
21436         Rewrite some of the introductory text to reflect the new structure.
21437         Update some cross-references to point to the new subsections.
21438         (Attribute Syntax): Put paragraph about "__" naming here.  Remove
21439         duplicate copies in the discussion of function, label, and type
21440         attributes.
21442 2015-04-28  Dominique d'Humieres  <dominiq@lps.ens.fr>
21444         PR bootstrap/65910
21445         * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
21447 2015-04-28  Jason Merrill  <jason@redhat.com>
21449         PR c++/65734
21450         * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
21451         (finalize_type_size): Respect TYPE_USER_ALIGN.
21452         (layout_type) [ARRAY_TYPE]: Likewise.
21454 2015-04-28  Yvan Roux  <yvan.roux@linaro.org>
21456         * config/arm/arm.md (*arm_movt): Fix type attribute.
21457         (*cmpsi_shiftsi): Likewise.
21458         (*cmpsi_shiftsi_swp): Likewise.
21459         (*movsicc_insn): Likewise.
21460         (*cond_move): Likewise.
21461         (*if_plus_move): Likewise.
21462         (*if_move_plus): Likewise.
21463         (*if_arith_move): Likewise.
21464         (*if_move_arith): Likewise.
21465         (*if_shift_move): Likewise.
21466         (*if_move_shift): Likewise.
21467         (*arm_movtas_ze): Likewise.
21468         * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
21469         redundancy and type attribute.
21470         (*thumb2_movsi_insn): Fix type attribute.
21471         (*thumb2_addsi_short): Likewise.
21472         (thumb2_addsi3_compare0): Likewise.
21473         (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
21474         attributes accordingly.
21476 2015-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
21478         PR other/65911
21479         * function.c (pad_to_arg_alignment): Add parentheses.
21481 2015-04-28  Uros Bizjak  <ubizjak@gmail.com>
21483         * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
21484         libgcc/config/frv/elf-lib.h.
21486 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21488         * tree-call-cdce.c: Fix example in header comment.
21490 2015-04-28  Richard Biener  <rguenther@suse.de>
21492         PR tree-optimization/62283
21493         * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
21494         fails fatally and we are vectorizing a basic-block simply
21495         cause the child to be constructed piecewise.
21496         (vect_analyze_slp_cost_1): Adjust.
21497         (vect_detect_hybrid_slp_stmts): Likewise.
21498         (vect_bb_slp_scalar_cost): Likewise.
21499         (vect_get_constant_vectors): For piecewise constructed
21500         constants place them after the last def.
21501         (vect_get_slp_defs): Adjust.
21502         * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
21503         externals for basic-block vectorization.
21505 2015-04-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21507         PR target/63503
21508         * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
21509         aarch64-*-*.
21510         * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
21511         * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
21512         (AARCH64_TUNE_FMA_STEERING): Likewise.
21513         * config/aarch64/aarch64-cores.def: Set
21514         AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
21515         FMUL/FMADD instructions.
21516         * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
21517         (aarch64_override_options): Include cortex-a57-fma-steering.h.  Call
21518         aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
21519         * config/aarch64/cortex-a57-fma-steering.h: New file.
21520         * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21522 2015-04-28  Richard Sandiford  <richard.sandiford@arm.com>
21524         * gensupport.c (std_preds): Add missing codes to address_operand entry.
21526 2015-04-28  Richard Biener  <rguenther@suse.de>
21528         PR tree-optimization/65851
21529         * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
21530         changing CONSTANT to CONSTANT non-copy.  Get new_val by reference.
21531         (ccp_lattice_meet): Remove stray argument.  Use operand_equal_p
21532         rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
21533         (ccp_visit_phi_node): Adjust.
21534         (evaluate_stmt): For simplifications to SSA names return its
21535         lattice value if that isn't VARYING.  Return immediately when
21536         simplified to a constant.
21537         (visit_assignment): Adjust.
21538         (ccp_visit_stmt): Likewise.
21540 2015-04-28  Tom de Vries  <tom@codesourcery.com>
21542         PR tree-optimization/65818
21543         * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
21544         evaluated.
21546 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21548         * calls.c (save_fixed_argument_area): Don't check
21549         ARGS_GROW_DOWNWARD with the preprocessor.
21550         (restore_fixed_argument_area): Likewise.
21551         (mem_overlaps_already_clobbered_arg_p): Likewise.
21552         (check_sibcall_argument_overlap): Likewise.
21553         (expand_call): Likewise.
21554         (emit_library_call_value_1): Likewise.
21555         (store_one_arg): Likewise.
21556         * function.c (assign_parms): Likewise.
21557         (locate_and_pad_parm): Likewise.
21558         (pad_to_arg_alignment): Likewise.
21559         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
21561 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21563         * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
21564         * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
21565         * calls.c (save_fixed_argument_area): Don't chekc if
21566         ARGS_GROW_DOWNWARD is defined.
21567         (restore_fixed_argument_area): Likewise.
21568         (mem_overlaps_already_clobbered_arg_p): Likewise.
21569         (check_sibcall_argument_overlap): Likewise.
21570         (expand_call): Likewise.
21571         (emit_library_call_value_1): Likewise.
21572         (store_one_arg): Likewise.
21573         * function.c (assign_parms): Likewise.
21574         (locate_and_pad_parm): Likewise.
21575         (pad_to_arg_alignment): Likewise.
21576         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
21578 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21580         * defaults.h (gen_epilogue): New function.
21581         * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
21582         defined.
21583         * cfgrtl.c (cfg_layout_finalize): Likewise.
21584         * df-scan.c: Likewise.
21585         * function.c (thread_prologue_and_epilogue_insns): Likewise.
21586         (reposition_prologue_and_epilogue_notes): Likewise.
21587         * reorg.c (find_end_label): Likewise.
21588         * toplev.c: Likewise.
21590 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21592         * bb-reorder.c (HAVE_return): Don't check if its undefined.
21593         * defaults.h (gen_simple_return): New function.
21594         (gen_simple_return): Likewise.
21595         (HAVE_return): Add default definition to false.
21596         (HAVE_simple_return): Likewise.
21597         * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
21598         HAVE_return and HAVE_simple_return are defined.
21599         * function.c (gen_return_pattern): Likewise.
21600         (convert_jumps_to_returns): Likewise.
21601         (thread_prologue_and_epilogue_insns): Likewise.
21602         * reorg.c (find_end_label): Likewise.
21603         (dbr_schedule): Likewise.
21604         * shrink-wrap.c: Likewise.
21605         * shrink-wrap.h: Likewise.
21607 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21609         * defaults.h (EPILOGUE_USES): Add default definition of false.
21610         * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
21611         * resource.c (init_resource_info): Likewise.
21613 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21615         * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
21616         to false.
21617         * dwarf2out.c (field_byte_offset): REmove check if
21618         PCC_BITFIELD_TYPE_MATTERS is defined.
21619         * stor-layout.c (layout_decl): Likewise.
21620         (update_alignment_for_field): Likewise.
21621         (place_field): Likewise.
21623 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21625         * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
21626         true.
21627         * regrename.c (check_new_reg_p): Remove check if
21628         HARD_REGNO_RENAME_OK is defined.
21629         * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
21631 2015-04-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21633         * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
21634         * cse.c (fold_rtx): Likewise.
21635         * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
21636         * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
21637         * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
21638         * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
21639         * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
21640         * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
21641         * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
21642         * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
21643         * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
21644         * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
21645         * Likewise.
21646         * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
21647         * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
21648         * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
21649         * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
21650         * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
21651         * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
21652         * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
21653         * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
21654         * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
21655         * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
21656         * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
21657         * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
21658         * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
21659         * doc/tm.texi: Regenerate.
21660         * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
21661         either true or false.
21663 2015-04-27  Jeff Law  <law@redhat.com>
21665         PR tree-optimization/65217
21666         * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
21667         of them has a single use, make sure it is the LHS of the implied
21668         copy.
21670 2015-04-28  Alan Modra  <amodra@gmail.com>
21672         PR target/65810
21673         * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
21674         (offsettable_ok_by_alignment): Use minimum of decl and toc
21675         pointer alignment.  Replace dead code with assertion.
21676         (use_toc_relative_ref): Add mode arg.  Return false in -mcmodel=medium
21677         case if size exceeds toc pointer alignment.
21678         (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
21679         (rs6000_emit_move): Likewise.
21680         * configure.ac: Add linker toc pointer alignment check.
21681         * configure: Regenerate.
21682         * config.in: Regenerate.
21684 2015-04-27  Yoshinori Sato <ysato@users.sourceforge.jp>
21686         * config.gcc: Add h8300-*-linux.
21687         * config/h8300/linux.h: New.
21688         * config/h8300/t-linux: New.
21689         * config/h8300/h8300.c (h8300_option_override): Normal mode
21690         is not supported for h8300-*-linux.
21691         (h8300_file_start): Target priority change.
21692         (get_shift_alg): Likewise.
21693         (h8300_shift_need_scratch_p): Likewise.
21694         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
21695         * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
21697 2015-04-27  Caroline Tice  <cmtice@google.com>
21699         * final.c (final_scan_insn):  Output cold_function_name as function
21700         type.
21701         * varasm.c (cold_function_name):  Make global.
21702         (assemble_start_function):  Re-set cold_function_name.
21703         (assemble_end_function): Output cold partition size.
21704         * varasm.h (cold_function_name):  Declare global.
21706 2015-04-27  Ilya Tocar  <ilya.tocar@intel.com>
21708         * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
21709         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
21710         constraint.
21711         (*movxi_internal_avx512f): Ditto.
21712         (define_split): Check for xmm16+, when splitting scalar float_extend.
21713         (*extendsfdf2_mixed): Use "v" constraint.
21714         (define_split): Check for xmm16+, when splitting scalar float_truncate.
21715         (*truncdfsf_fast_sse): Use "v" constraint.
21716         (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
21717         (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
21718         (define_peephole2): Check for xmm16+, when converting scalar
21719         float_truncate.
21720         (define_peephole2): Check for xmm16+, when converting scalar
21721         float_extend.
21722         (*fop_<mode>_comm_mixed): Use "v" constraint.
21723         (*fop_<mode>_comm_sse): Ditto.
21724         (*fop_<mode>_1_mixed): Ditto.
21725         (*sqrt<mode>2_sse): Ditto.
21726         (*ieee_s<ieee_maxmin><mode>3): Ditto.
21728 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21730         * combine.c (simplify_if_then_else): Use std::swap instead
21731         of manually swapping.
21732         (known_cond): Likewise.
21733         (simplify_comparison): Likewise.
21735 2015-04-27  Peter Bergner  <bergner@vnet.ibm.com>
21737         PR target/64579
21738         * config/rs6000/htm.md: Remove all define_expands.
21739         (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
21740         UNSPECV_HTM_TABORTWCI): Remove.
21741         (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
21742         (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
21743         trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
21744         (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
21745         (tabortdc_internal, tabortdci_internal, tabortwc_internal,
21746         tabortwci_internal): Remove define_insns.
21747         (tabort<wd>c, tabort<wd>ci): New define_insns.
21748         (tabort): Use gpc_reg_operand.
21749         (tcheck): Remove operand.
21750         (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
21751         * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
21752         expected value.
21753         * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
21754         (BU_HTM_SPR1): Rename to BU_HTM_V1.  Remove use of RS6000_BTC_SPR.
21755         (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
21756         tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
21757         tsr, ttest): Pass in the RS6000_BTC_CR attribute.
21758         (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
21759         get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
21760         (tcheck): Remove builtin argument.
21761         * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
21762         not TARGET_64BIT.
21763         (htm_expand_builtin): Fix usage of expandedp.  Disallow usage of the
21764         tabortdc and tabortdci builtins when not in 64-bit mode.
21765         Modify code to handle the loss of the HTM define_expands.
21766         Emit code to copy the CR register to TARGET.
21767         (htm_init_builtins): Modify code to handle the loss of the HTM
21768         define_expands.
21769         * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
21770         (RS6000_BTC_64BIT): Likewise.
21771         (RS6000_BTC_CR): New macro.
21772         * doc/extend.texi: Update documentation for htm builtins.
21774 2015-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21776         * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
21777         of manually swapping.
21778         (simplify_associative_operation): Likewise.
21779         (simplify_binary_operation): Likewise.
21780         (simplify_plus_minus): Likewise.
21781         (simplify_relational_operation): Likewise.
21782         (simplify_ternary_operation): Likewise.
21784 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
21786         * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
21787         (xs_hi_nonmemory_operand): Remove error.
21788         * config/stormy16/stormy16.md (movhi, movhi_internal): Use
21789         general_operand rather than xs_hi_general_operand.
21791 2015-04-27  Richard Biener  <rguenther@suse.de>
21793         * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
21794         (record_equivalences_from_stmt): Valueize rhs.
21795         (record_equality): Canonicalize x and y order via
21796         tree_swap_operands_p.  Do not swap operands for same loop depth.
21798 2015-04-27  Georg-Johann Lay  <avr@gjlay.de>
21800         PR target/65296
21801         PR target/65895
21802         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
21803         Add hint how to use own spec file.
21805 2015-04-27  Jakub Jelinek  <jakub@redhat.com>
21807         PR tree-optimization/65875
21808         * tree-vrp.c (update_value_range): If in is_new case setting
21809         old_vr to VR_VARYING, also set new_vr to it.  Remove
21810         old_vr->type == VR_VARYING test.
21811         (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
21812         SSA_PROP_INTERESTING if update_value_range returned true,
21813         but new range is VR_VARYING.
21815 2015-04-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21817         * combine.c (sign_extend_short_imm): New.
21818         (set_nonzero_bits_and_sign_copies): Use above new function for sign
21819         extension of src short immediate.
21820         (reg_nonzero_bits_for_combine): Likewise for tem.
21822 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21824         * stor-layout.c (self_referential_component_ref_p): New predicate.
21825         (copy_self_referential_tree_r): Use it.
21826         (self_referential_size): Punt for simple operations directly involving
21827         self-referential component references.
21828         * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
21830 2015-04-27  Eric Botcazou  <ebotcazou@adacore.com>
21832         * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
21834 2015-04-27  Richard Sandiford  <richard.sandiford@arm.com>
21836         * vec.h (vec): Make splice arguments const.  Update definitions
21837         accordingly.
21839 2015-04-27  Yvan Roux  <yvan.roux@linaro.org>
21841         * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
21842         alternatives.
21844 2015-04-26  Tom de Vries  <tom@codesourcery.com>
21846         PR tree-optimization/65826
21847         * internal-fn.def: Mark VA_ARG with ECF_LEAF.
21849 2015-04-24  Steve Ellcey  <sellcey@imgtec.com>
21851         * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
21852         (*madd3<mode>): Ditto.
21853         (*msub4<mode>): Ditto.
21854         (*msub3<mode>): Ditto.
21855         (*nmadd4<mode>): Ditto.
21856         (*nmadd3<mode>): Ditto.
21857         (*nmadd4<mode>_fastmath): Ditto.
21858         (*nmadd3<mode>_fastmath): Ditto.
21859         (*nmsub4<mode>): Ditto.
21860         (*nmsub3<mode>): Ditto.
21861         (*nmsub4<mode>_fastmath): Ditto.
21862         (*nmsub3<mode>_fastmath): Ditto.
21864 2015-04-24  Jason Merrill  <jason@redhat.com>
21866         PR c++/50800
21867         * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
21868         down when building TYPE_CANONICAL.
21869         (build_pointer_type_for_mode): Likewise.
21871 2015-04-24  Chen Gang  <gang.chen.5i5j@gmail.com>
21873         * genrecog.c (validate_pattern): Check matching constraint refers
21874         to a lower numbered operand.
21876 2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
21878         PR target/65849
21879         * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
21880         save to independent variables use the Save attribute.  This will
21881         allow these options to be modified with the #pragma/attribute
21882         target support.
21883         (-mallow-movmisalign): Likewise.
21884         (-mallow-df-permute): Likewise.
21885         (-msched-groups): Likewise.
21886         (-malways-hint): Likewise.
21887         (-malign-branch-targets): Likewise.
21888         (-mvectorize-builtins): Likewise.
21889         (-msave-toc-indirect): Likewise.
21891         * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
21892         can be set via the #pragma/attribute target support.
21893         (rs6000_opt_vars): Likewise.
21894         (rs6000_inner_target_options): If VSX was set, also set
21895         -mno-avoid-indexed-addresses.
21897 2015-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21899         * config/arm/iterators.md (shiftable_ops): Rename to...
21900         (SHIFTABLE_OPS): ... This.  Update use in comments.
21901         (ior_xor): Rename to...
21902         (IOR_XOR): ... This.
21903         (vqh_ops): Rename to...
21904         (VQH_OPS): ... This.
21905         (vqhs_ops): Rename to...
21906         (VQHS_OPS): ... This.
21907         (rshifts): Rename to...
21908         (RSHIFTS): ... This.
21909         (returns): Rename to...
21910         (RETURNS): ... This.
21911         * config/arm/arm.md: Update uses of the above.
21912         * config/arm/neon.md: Likewise.
21914 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21916         * config.host (case ${host}): Add aarch64*-*-linux case.
21917         * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
21918         fields to all the cores.
21919         * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
21920         Add MCPU_MTUNE_NATIVE_SPECS.
21921         * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
21922         field to all extensions.
21923         * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
21924         * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
21925         Adjust definition of AARCH64_OPT_EXTENSION.
21926         * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
21927         (MCPU_MTUNE_NATIVE_SPECS): Define.
21928         * config/aarch64/driver-aarch64.c: New file.
21929         * config/aarch64/x-arch64: New file.
21930         * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
21931         -mtune and -march.
21933 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
21934             Wei Mi  <wmi@google.com>
21936         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
21937         * config/i386/i386.c (extract_base_offset_in_addr): New function.
21938         (ix86_operands_ok_for_move_multiple): Ditto.
21939         * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
21940         (movlpd/movhpd to movupd peephole2): Ditto.
21942 2015-04-24  Marek Polacek  <polacek@redhat.com>
21944         PR c/61534
21945         * input.h (from_macro_expansion_at): Define.
21947         PR c/63357
21948         * doc/invoke.texi: Update description of -Wlogical-op.
21950 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21952         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
21953         ternary operator in fprintf and harmonize spacing.
21955 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
21957         * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
21958         Mark operand1 commutative.
21960 2015-04-24  Uros Bizjak  <ubizjak@gmail.com>
21962         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
21963         input operands in memory.
21964         (*vec_concatv2si_sse4_1): Ditto.
21965         (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
21966         (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
21967         register_operand.
21968         (vec_extract_hi_v32hi): Ditto.
21969         (vec_extract_hi_v64hi): Ditto.
21970         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
21972 2015-04-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21973             Steven Bosscher <steven@gcc.gnu.org>
21975         PR rtl-optimization/34503
21976         * cprop.c (cprop_reg_p): New.
21977         (hash_scan_set): Use above function to check if register can be
21978         propagated.
21979         (find_avail_set): Return up to two sets, one whose source is a
21980         register and one whose source is a constant.  Sets are returned in an
21981         array passed as parameter rather than as a return value.
21982         (cprop_insn): Use a do while loop rather than a goto.  Try each of the
21983         sets returned by find_avail_set, starting with the one whose source is
21984         a constant. Use cprop_reg_p to check if register can be propagated.
21985         (do_local_cprop): Use cprop_reg_p to check if register can be
21986         propagated.
21987         (implicit_set_cond_p): Likewise.
21989 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
21991         * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
21992         (sem_function::equals): IGNORED_NODES parameter is now unused;
21993         update call of equals_private.
21994         (sem_function::equals_private): Do not call equals_wpa; skip
21995         gimple body matching if there is no body.
21996         (sem_function::init): Add logic to hash tthunk info.
21997         (sem_function::parse): Also parse thunks.
21998         * ipa-icf.h (equals_private): Update declaration.
22000 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22002         * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
22003         asterisk from name so this can be generated directly.
22004         (*altivec_stvx_<mode>_internal): Likewise.
22005         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
22006         that this is never called during or after reload/lra.
22007         (rs6000_frame_related): Remove split_reg
22008         argument and logic that references it.
22009         (emit_frame_save): Remove last parameter from call to
22010         rs6000_frame_related.
22011         (rs6000_emit_prologue): Remove last parameter from eight calls to
22012         rs6000_frame_related.  Force generation of stvx instruction for
22013         Altivec register saves.  Remove split_reg handling, which is no
22014         longer needed.
22015         (rs6000_emit_epilogue):  Force generation of lvx instruction for
22016         Altivec register restores.
22018 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22020         * config/rs6000/rs6000.opt (mcrypto): Change option description to
22021         match category changes in ISA 2.07B.
22023 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22025         * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
22026         iterators.
22027         (cmp_op, cmp_type): New code attributes.
22028         (NEON_VCMP, NEON_VACMP): New int iterators.
22029         (cmp_op_unsp): New int attribute.
22030         * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
22031         (neon_vceq<mode>): Delete.
22032         (neon_vc<cmp_op><mode>_insn): New pattern.
22033         (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
22034         (neon_vcgeu<mode>): Delete.
22035         (neon_vcle<mode>): Likewise.
22036         (neon_vclt<mode>: Likewise.
22037         (neon_vcage<mode>): Likewise.
22038         (neon_vcagt<mode>): Likewise.
22039         (neon_vca<cmp_op><mode>): New define_expand.
22040         (neon_vca<cmp_op><mode>_insn): New pattern.
22041         (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
22043 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22045         * tree.h (attribute_value_equal): Declare.
22046         * tree.c (attribute_value_equal): Export.
22048 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22050         * ipa-icf.c (sem_item::compare_attributes): New function.
22051         (sem_item::compare_referenced_symbol_properties): Compare variable
22052         attributes.
22053         (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
22054         (sem_function::param_used_p): New function.
22055         (sem_function::equals_wpa): Fix attribute comparsion; match
22056         parameter type codes; do not compare paremter flags when
22057         they are not used; compare edge flags; compare indirect calls.
22058         (sem_item::update_hash_by_addr_refs): Hash reference type.
22059         (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
22060         (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
22061         reference use type.
22062         (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
22063         * ipa-icf.h (compare_attributes, param_used_p): Declare.
22065 2015-04-23  Jan Hubicka  <hubicka@ucw.cz>
22067         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
22068         cleanup.
22069         (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
22070         DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
22071         (sem_item::compare_referenced_symbol_properties): New.
22072         (sem_item::hash_referenced_symbol_properties): New.
22073         (sem_item::compare_cgraph_references): Rename to ...
22074         (sem_item::compare_symbol_references): ... this one; use
22075         compare_referenced_symbol_properties.
22076         (sem_function::equals_wpa): Do not compare
22077         DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
22078         DECL_IS_OPERATOR_NEW; compare pointer sizes.
22079         (sem_item::update_hash_by_addr_refs): Call
22080         hash_referenced_symbol_properties.
22081         (sem_item::update_hash_by_local_refs): Cleanup.
22082         (sem_function::merge): Do not mix up symbol properties.
22083         (sem_variable::equals_wpa): Use compare_symbol_references.
22084         * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
22085         (sem_item::hash_referenced_symbol_properties): New.
22086         (sem_item::compare_symbol_references): New.
22087         (sem_item::compare_cgraph_references): Remove.
22089 2015-04-23  Kwok Cheung Yeung  <kcy@codesourcery.com>
22091         PR target/26702
22092         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
22093         Emit size of local.
22095 2015-04-23  Nick Clifton  <nickc@redhat.com>
22097         * config/rl78/rl78.c (rl78_preferred_reload_class): Add
22098         ATTRIBUTE_UNUSED to x parameter.
22099         * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
22101 2015-04-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22103         * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
22104         TARGET_CRYPTO to TARGET_P8_VECTOR>
22105         (crypto_vpermxor_<mode>): Likewise.
22106         * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
22107         (BU_CRYPTO_3A): Likewise.
22108         (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
22109         (BU_CRYPTO_OVERLOAD_3A): New #define.
22110         (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
22111         (VPMSUMH): Likewise.
22112         (VPMSUMW): Likewise.
22113         (VPMSUMD): Likewise.
22114         (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
22115         (VPERMXOR_V4SI): Likewise.
22116         (VPERMXOR_V8HI): Likewise.
22117         (VPERMXOR_V16QI): Likewise.
22118         (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
22119         BU_CRYPTO_OVERLOAD_2A.
22120         (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
22121         BU_CRYPTO_OVERLOAD_3A.
22122         * config/rs6000/rs6000.opt (mcrypto): Change description of
22123         option.
22125 2015-04-23  Richard Biener  <rguenther@suse.de>
22127         * passes.def: Remove copy propagation passes run directly after CCP.
22128         * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
22129         SSA names.
22130         (ccp_visit_phi_node): Rework to handle first executable edge
22131         specially.
22133 2015-04-23  Matthew Wahab  <matthew.wahab@arm.com>
22135         * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22136         (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22137         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
22138         * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
22139         (thumb_legimitimize_reload_address): Remove.
22140         * config/arm/arm-protos.h (arm_legimitimize_reload_address):
22141         Remove.
22142         (thumb_legimitimize_reload_address): Remove.
22144 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22146         * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
22148 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22150         * config/arm/arm.md (load_multiple): Reject operand 2 greater than
22151         MAX_LDM_STM_OPS.
22152         (store_multiple): Likewise.
22154 2015-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22156         * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
22157         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
22158         arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
22159         arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
22160         arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
22161         arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
22162         arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
22163         Specify issue_rate value.
22164         (arm_issue_rate): Look up issue rate from tuning structs. Remove
22165         large switch statement.
22166         (arm_marvell_pj4_tune): New struct.
22167         * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
22168         struct.
22170 2015-04-23  Richard Biener  <rguenther@suse.de>
22172         * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
22173         (vect_find_last_store_in_slp_instance): Rename to ...
22174         (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
22175         (vect_analyze_slp_cost_1): Use vector_load for constant defs
22176         and vec_construct for external defs when estimating prologue cost.
22177         (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
22178         Compute costs here only when vectorizing loops.
22179         (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
22180         have been determined.
22181         (vect_schedule_slp_instance): Simplify vectorized code placement
22182         and prepare for in-BB external defs.
22183         * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
22184         (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
22185         * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
22186         guard.
22187         (vect_model_load_cost): Likewise.
22188         (vectorizable_store): Instead add it here.
22189         (vectorizable_load): Likewise.
22190         (vect_is_simple_use): Dump def type textually.
22192 2015-04-23  Richard Biener  <rguenther@suse.de>
22194         * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
22195         * cfgloop.c (verify_loop_structure): Verify the root loop node.
22196         * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
22197         instead of get_eh_region_from_lp_number.
22198         * loop-init.c (fix_loop_structure): If we removed a loop, reset
22199         the SCEV cache.
22201 2015-04-23  Anton Blanchard  <anton@samba.org>
22203         * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
22204         need for -mprofile-kernel to save LR to stack.
22206 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22208         * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
22209         adjustments.
22210         (insn_is_swappable_p): Return 1 for a convert from double to
22211         single precision when all of its uses are splats of BE element
22212         zero.
22214 2015-04-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
22216         * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
22218 2015-04-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22220         PR target/65456
22221         * config/rs6000/rs6000.c (rs6000_option_override_internal):  For
22222         VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
22223         TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
22224         option.
22225         (rs6000_builtin_mask_for_load): Return 0 for targets with
22226         efficient unaligned VSX accesses so that the vectorizer will use
22227         direct unaligned loads.
22228         (rs6000_builtin_support_vector_misalignment): Always return true
22229         for targets with efficient unaligned VSX accesses.
22230         (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
22231         stores on targets with efficient unaligned VSX accesses is almost
22232         always the same as the cost of an aligned load or store, so model
22233         it that way.
22234         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
22235         unaligned vectors if we have efficient unaligned VSX accesses.
22236         * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
22237         undocumented option.
22239 2015-04-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22241         Revert:
22242         2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
22244         * config.gcc (LIBC_MUSL): New tm_defines macro.
22245         * config/linux.h (OPTION_MUSL): Define.
22246         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22247         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22248         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22250         * config/linux.opt (mmusl): New option.
22251         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22252         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22254         * configure: Regenerate.
22256 2015-04-22  Gregor Richards  <gregor.richards@uwaterloo.ca>
22258         * config.gcc (LIBC_MUSL): New tm_defines macro.
22259         * config/linux.h (OPTION_MUSL): Define.
22260         (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
22261         (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
22262         (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
22264         * config/linux.opt (mmusl): New option.
22265         * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
22266         (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
22268         * configure: Regenerate.
22270 2015-04-22  Yury Gribov  <y.gribov@samsung.com>
22272         * doc/invoke.texi (-fsanitize-sections): Update description.
22273         * asan.c (set_sanitized_sections): Parse incoming arg.
22274         (section_sanitized_p): Support wildcards.
22276 2015-04-22  Tom de Vries  <tom@codesourcery.com>
22278         PR tree-optimization/65823
22279         * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
22280         equality between ap_copy and ap.
22282 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22284         PR target/47098
22285         * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
22287 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22289         PR target/47122
22290         * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
22292 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22294         PR target/55144
22295         * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
22296         remove already contained t-files.
22298 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22300         * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
22301         Remove unneeded forward declarations.
22302         (suitable_for_tail_call_opt_p): Commentary typo fix.
22304 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22306         * varasm.c (emit_bss): Remove redundant guard.
22308 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22310         * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
22312 2015-04-22  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
22314         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
22316 2015-04-22  Hale Wang  <hale.wang@arm.com>
22317             Terry Guo  <terry.guo@arm.com>
22319         PR rtl-optimization/64818
22320         * combine.c (can_combine_p): Don't combine user-specified
22321         register if it is in an asm input.
22323 2015-04-21  Jan Hubicka  <hubicka@ucw.cz>
22325         PR ipa/65076
22326         * passes.def (early_optimizations): Add pass_dse.
22328 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22330         * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
22331         * reorg.c (redundant_insn): Remove ifdef
22332         INSN_REFERENCES_ARE_DELAYED.
22333         * resource.c (mark_referenced_resources): Likewise.
22335 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22337         * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
22338         * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
22339         * resource.c (mark_set_resources): Likewise.
22341 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22343         * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
22344         * cfgcleanup.c (flow_find_cross_jump): Likewise.
22345         (flow_find_head_matching_sequence): Likewise.
22346         (try_head_merge_bb): Likewise.
22347         * combine.c (can_combine_p): Likewise.
22348         (try_combine): Likewise.
22349         (distribute_notes): Likewise.
22350         * df-problems.c (can_move_insns_across): Likewise.
22351         * final.c (final): Likewise.
22352         * gcse.c (insert_insn_end_basic_block): Likewise.
22353         * ira.c (find_moveable_pseudos): Likewise.
22354         * reorg.c (try_merge_delay_insns): Likewise.
22355         (fill_simple_delay_slots): Likewise.
22356         (fill_slots_from_thread): Likewise.
22357         * sched-deps.c (sched_analyze_2): Likewise.
22359 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22361         * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
22362         PIC_OFFSET_TABLE_REGNUM.
22364 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22366         * alias.c (init_alias_target): Remove ifdef
22367         * HARD_FRAME_POINTER_IS_FRAME_POINTER.
22368         * df-scan.c (df_insn_refs_collect): Likewise.
22369         (df_get_regular_block_artificial_uses): Likewise.
22370         (df_get_eh_block_artificial_uses): Likewise.
22371         (df_get_entry_block_def_set): Likewise.
22372         (df_get_exit_block_use_set): Likewise.
22373         * emit-rtl.c (gen_rtx_REG): Likewise.
22374         * ira.c (ira_setup_eliminable_regset): Likewise.
22375         * reginfo.c (init_reg_sets_1): Likewise.
22376         * regrename.c (rename_chains): Likewise.
22377         * reload1.c (reload): Likewise.
22378         (eliminate_regs_in_insn): Likewise.
22379         * resource.c (mark_referenced_resources): Likewise.
22380         (init_resource_info): Likewise.
22382 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22384         * defaults.h (MASK_RETURN_ADDR): New definition.
22385         * except.c (expand_builtin_extract_return_addr): Remove ifdef
22386         MASK_RETURN_ADDR.
22388 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22390         * defaults.h (RETURN_ADDR_OFFSET): New definition.
22391         * except.c (expand_builtin_extract_return_addr): Remove ifdef
22392         RETURN_ADDR_OFFSET.
22393         (expand_builtin_frob_return_addr): Likewise.
22395 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22397         * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
22398         (try_redirect_by_replacing_jump): Likewise.
22399         (rtl_tidy_fallthru_edge): Likewise.
22400         * combine.c (insn_a_feeds_b): Likewise.
22401         (find_split_point): Likewise.
22402         (simplify_set): Likewise.
22403         * cprop.c (cprop_jump): Likewise.
22404         * cse.c (cse_extended_basic_block): Likewise.
22405         * df-problems.c (can_move_insns_across): Likewise.
22406         * function.c (emit_use_return_register_into_block): Likewise.
22407         * haifa-sched.c (sched_init): Likewise.
22408         * ira.c (find_moveable_pseudos): Likewise.
22409         * loop-invariant.c (find_invariant_insn): Likewise.
22410         * lra-constraints.c (curr_insn_transform): Likewise.
22411         * postreload.c (reload_combine_recognize_const_pattern):
22412         * Likewise.
22413         * reload.c (find_reloads): Likewise.
22414         * reorg.c (delete_scheduled_jump): Likewise.
22415         (steal_delay_list_from_target): Likewise.
22416         (steal_delay_list_from_fallthrough): Likewise.
22417         (redundant_insn): Likewise.
22418         (fill_simple_delay_slots): Likewise.
22419         (fill_slots_from_thread): Likewise.
22420         (delete_computation): Likewise.
22421         * sched-rgn.c (add_branch_dependences): Likewise.
22423 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22425         * genconfig.c (main): Always define HAVE_cc0.
22426         * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
22427         HAVE_cc0.
22428         * cfgcleanup.c (flow_find_cross_jump): Likewise.
22429         (flow_find_head_matching_sequence): Likewise.
22430         (try_head_merge_bb): Likewise.
22431         * cfgrtl.c (rtl_merge_blocks): Likewise.
22432         (try_redirect_by_replacing_jump): Likewise.
22433         (rtl_tidy_fallthru_edge): Likewise.
22434         * combine.c (do_SUBST_MODE): Likewise.
22435         (insn_a_feeds_b): Likewise.
22436         (combine_instructions): Likewise.
22437         (can_combine_p): Likewise.
22438         (try_combine): Likewise.
22439         (find_split_point): Likewise.
22440         (subst): Likewise.
22441         (simplify_set): Likewise.
22442         (distribute_notes): Likewise.
22443         * cprop.c (cprop_jump): Likewise.
22444         * cse.c (cse_extended_basic_block): Likewise.
22445         * df-problems.c (can_move_insns_across): Likewise.
22446         * final.c (final): Likewise.
22447         (final_scan_insn): Likewise.
22448         * function.c (emit_use_return_register_into_block): Likewise.
22449         * gcse.c (insert_insn_end_basic_block): Likewise.
22450         * haifa-sched.c (sched_init): Likewise.
22451         * ira.c (find_moveable_pseudos): Likewise.
22452         * loop-invariant.c (find_invariant_insn): Likewise.
22453         * lra-constraints.c (curr_insn_transform): Likewise.
22454         * optabs.c (prepare_cmp_insn): Likewise.
22455         * postreload.c (reload_combine_recognize_const_pattern):
22456         * Likewise.
22457         * reload.c (find_reloads): Likewise.
22458         (find_reloads_address_1): Likewise.
22459         * reorg.c (delete_scheduled_jump): Likewise.
22460         (steal_delay_list_from_target): Likewise.
22461         (steal_delay_list_from_fallthrough): Likewise.
22462         (try_merge_delay_insns): Likewise.
22463         (redundant_insn): Likewise.
22464         (fill_simple_delay_slots): Likewise.
22465         (fill_slots_from_thread): Likewise.
22466         (delete_computation): Likewise.
22467         (relax_delay_slots): Likewise.
22468         * sched-deps.c (sched_analyze_2): Likewise.
22469         * sched-rgn.c (add_branch_dependences): Likewise.
22471 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22473         * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
22474         that is trivially ded on non cc0 targets.
22475         (simplify_set): Likewise.
22476         (mark_used_regs_combine): Likewise.
22477         * cse.c (new_basic_block): Likewise.
22478         (fold_rtx): Likewise.
22479         (cse_insn): Likewise.
22480         (cse_extended_basic_block): Likewise.
22481         (set_live_p): Likewise.
22482         * rtlanal.c (canonicalize_condition): Likewise.
22483         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22485 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22487         * conditions.h: Define macros even if HAVE_cc0 is undefined.
22488         * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
22489         * final.c: Likewise.
22490         * jump.c: Likewise.
22491         * recog.c: Likewise.
22492         * recog.h: Declare functions even when HAVE_cc0 is undefined.
22493         * sched-deps.c (sched_analyze_2): Always compile case for cc0.
22495 2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22497         * defaults.h: New definition of EH_RETURN_DATA_REGNO.
22498         * except.c: Remove definition of EH_RETURN_DATA_REGNO.
22499         * builtins.c (expand_builtin): Remove check if
22500         EH_RETURN_DATA_REGNO is defined.
22501         * df-scan.c (df_bb_refs_collect): Likewise.
22502         (df_get_exit_block_use_set): Likewise.
22503         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
22504         * ira-lives.c (process_bb_node_lives): Likewise.
22505         * lra-lives.c (process_bb_lives): Likewise.
22507 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
22509         * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
22510         FIRST_PSEUDO_REG): New.
22511         * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
22512         (ARG_POINTER_REGNUM): Define to ARGP_REG.
22513         (FRAME_POINTER_REGNUM): Define to FRAME_REG.
22514         (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
22515         (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
22516         (FIRST_INT_REG): New.
22517         (LAST_INT_REG): New.
22518         (FIRST_*_REG): Define using *_REG.
22519         (LAST_*_REG): Ditto.
22520         (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
22521         (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
22522         (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
22524 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22526         * expmed.c: (synth_mult): Only assume overlapping
22527         shift with previous steps in alg_sub_t_m2 case.
22529 2015-04-21  Richard Biener  <rguenther@suse.de>
22531         PR tree-optimization/65650
22532         * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
22533         transitions involving copies.
22534         (set_lattice_value): Adjust for copy lattice state.
22535         (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
22536         if that doesn't dominate the merge point.
22537         (bit_value_unop): Adjust what we treat as varying mask.
22538         (bit_value_binop): Likewise.
22539         (bit_value_assume_aligned): Likewise.
22540         (evaluate_stmt): When we simplified to a SSA name record a copy
22541         instead of dropping to varying.
22542         (visit_assignment): Simplify.
22544         * gimple-match.h (gimple_simplify): Add another callback.
22545         * gimple-fold.c (fold_stmt_1): Adjust caller.
22546         (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
22547         for the 2nd callback.
22548         * gimple-match-head.c (gimple_simplify): Add a callback that is
22549         used to valueize the stmt operands and use it that way.
22551 2015-04-21  Richard Biener  <rguenther@suse.de>
22553         PR tree-optimization/65788
22554         * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
22556 2015-04-21  Richard Biener  <rguenther@suse.de>
22558         * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
22559         vec_construct cost by vec_stmt_cost.
22561 2015-04-21  Richard Biener  <rguenther@suse.de>
22563         * cfghooks.h (create_basic_block): Replace with two overloads
22564         for RTL and GIMPLE.
22565         (split_block): Likewise.
22566         * cfghooks.c (split_block): Rename to ...
22567         (split_block_1): ... this.
22568         (split_block): Add two type-safe overloads for RTL and GIMPLE.
22569         (split_block_after_labels): Call split_block_1.
22570         (create_basic_block): Rename to ...
22571         (create_basic_block_1): ... this.
22572         (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
22573         (create_empty_bb): Call create_basic_block_1.
22574         * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
22575         split_block_after_labels.
22576         * omp-low.c (expand_parallel_call): Likewise.
22577         (expand_omp_target): Likewise.
22578         (simd_clone_adjust): Likewise.
22579         * tree-chkp.c (chkp_get_entry_block): Likewise.
22580         * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
22581         create_basic_block overload.
22582         (cgraph_node::expand_thunk): Likewise.
22583         * tree-cfg.c (make_blocks): Likewise.
22584         (handle_abnormal_edges): Likewise.
22585         * tree-inline.c (copy_bb): Likewise.
22587 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22589         * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
22590         New pattern.
22591         (*xor_one_cmplsidi3_ze): Likewise.
22593 2015-04-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22595         * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
22596         use df_remove_problem rather than manually removing problems, leaving
22597         holes in df->problems_in_order[].
22599 2015-04-21  Tom de Vries  <tom@codesourcery.com>
22601         PR tree-optimization/65802
22602         * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
22604 2015-04-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22606         * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
22607         Increase to 128.
22608         (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
22609         at '.'.  Assert that there's enough space for everything.
22611 2015-04-21  Uros Bizjak  <ubizjak@gmail.com>
22613         PR tree-optimization/64950
22614         Revert:
22615         2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
22617         PR target/41089
22618         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
22619         as volatile.
22621 2015-04-20  Shiva Chen  <shiva0217@gmail.com>
22623         PR rtl-optimization/64916
22624         * cfgcleanup.c (values_equal_p): New function.
22625         (can_replace_by): Use it.
22627 2015-04-20  Paolo Carlini  <paolo.carlini@oracle.com>
22629         PR c++/65801
22630         * doc/invoke.texi ([-Wnarrowing]): Update.
22632 2015-04-20  Jeff Law  <law@redhat.com>
22634         PR tree-optimization/65658
22635         * tree-ssa-threadupdate.c (redirection_block_p): Remove
22636         redundant test for GIMPLE_ASSIGN in last change.
22638 2015-04-20  Uros Bizjak  <ubizjak@gmail.com>
22640         * config/i386/i386.c (set_pic_reg_ever_live): Remove.
22641         (legitimize_pic_address): Do not call set_pic_reg_ever_live.
22642         (legitimize_tls_address): Ditto.
22643         (ix86_expand_move): Ditto.
22644         (ix86_expand_binary_operator): Remove reload_in_progress checks.
22645         (ix86_expand_unary_operator): Ditto.
22646         * config/i386/predicates.md (index_register_operand): Ditto.
22648 2015-04-20  Selim Belbachir  <selim.belbachir@fr.thalesgroup.com>
22650         * reorg.c (try_merge_delay_insns): Improve correctness checking
22651         for targets with multiple delay slots.
22653 2015-04-20  Jeff Law  <law@redhat.com>
22655         PR tree-optimization/65658
22656         * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
22657         statements too.
22659 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
22661         * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
22662         * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
22663         Delete.
22665 2015-04-20  Jakub Jelinek  <jakub@redhat.com>
22667         PR debug/65807
22668         * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
22670 2015-04-20  Richard Biener  <rguenther@suse.de>
22672         * gimple-fold.h (gimple_build): Remove optional valueize arguments.
22673         * gimple-fold.c (gimple_build_valueize): New function.
22674         (gimple_build): Always use gimple_build_valueize as valueize hook.
22676 2015-04-20  Alan Lawrence  <alan.lawrence@arm.com>
22678         PR target/64134
22679         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
22680         and overwrite variable parts if <= 1/2 the elements are variable.
22682 2015-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22684         PR rtl-optimization/65805
22685         * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
22686         Don't use difference of offset and previous offset if
22687         update_sp_offset is non-zero.
22688         (eliminate_regs_in_insn): Ditto.
22689         * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
22690         lra_eliminate_regs_1 call.
22691         * lra-constraints.c (get_equiv_with_elimination): Ditto.
22693 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
22695         * hash-table.h: Remove version of hash_table that stored value_type *.
22696         * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
22697         config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
22698         config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
22699         dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
22700         gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
22701         hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
22702         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
22703         loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
22704         reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
22705         tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
22706         tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
22707         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
22708         tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
22709         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
22710         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
22711         valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
22713 2015-04-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22714             Jakub Jelinek  <jakub@redhat.com>
22716         PR target/65787
22717         * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
22718         subsequent SH_NONE operand does not overwrite an existing *special
22719         value.
22720         (adjust_extract): Handle case where a vec_extract operation is
22721         wrapped in a PARALLEL.
22723 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
22725         PR target/65780
22726         * config/i386/i386.c (ix86_binds_local_p): Define only if
22727         TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
22729 2015-04-17  Jeff Law  <law@redhat.com>
22731         PR tree-optimization/47679
22732         * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
22733         * tree-ssa-scopedtables.c: New file.
22734         * tree-ssa-scopedtables.h: New file.
22735         * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
22736         (const_and_copies): Change name/type.
22737         (record_const_or_copy): Move into tree-ssa-scopedtables.c
22738         (record_const_or_copy_1): Similarly.
22739         (restore_vars_to_original_value): Similarly.
22740         (pass_dominator::execute): Create and destroy const_and_copies table.
22741         (thread_across_edge): Update passing of const_and_copies.
22742         (record_temporary_equivalence): Use method calls rather than
22743         manipulating const_and_copies directly.
22744         (record_equality, cprop_into_successor_phis): Similarly.
22745         (dom_opt_dom_walker::before_dom_children): Similarly.
22746         (dom_opt_dom_walker::after_dom_children): Similarly.
22747         (eliminate_redundant_computations): Similarly.
22748         * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
22749         (record_temporary_equivalence): Likewise.
22750         (invalidate_equivalences): Likewise.
22751         (record_temporary_equivalences_from_phis): Update due to type
22752         change of const_and_copies.  Use method calls rather than
22753         manipulating the stack directly.
22754         (record_temporary_equivalences_from_stmts_at_dest): Likewise.
22755         (thread_through_normal_block, thread_across_edge): Likewise.
22756         (thread_across_edge): Likewise.
22757         * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
22758         * tree-vrp.c: Include tree-ssa-scopedtables.h.  Change type
22759         of equiv_stack.
22760         (identify_jump_threads): Update due to type change of equiv_stack.
22761         (finalize_jump_threads): Delete the equiv_stack when complete.
22763 2015-04-17  Uros Bizjak  <ubizjak@gmail.com>
22765         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
22766         * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
22767         * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
22769 2015-04-17  Andreas Tobler  <andreast@gcc.gnu.org>
22771         PR target/65535
22772         * config.gcc: Exit with a comment when we do not have a major version
22773         number for the FreeBSD target.
22775 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
22777         PR target/65689
22778         * genpreds.c (struct constraint_data): Add maybe_allows_reg and
22779         maybe_allows_mem bitfields.
22780         (maybe_allows_none_start, maybe_allows_none_end,
22781         maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
22782         maybe_allows_mem_end): New variables.
22783         (compute_maybe_allows): New function.
22784         (add_constraint): Use it to initialize maybe_allows_reg and
22785         maybe_allows_mem fields.
22786         (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
22787         is_address constraints such that those that allow neither mem nor
22788         reg come first, then those that only allow reg but not mem, then
22789         those that only allow mem but not reg, then the rest.
22790         (write_allows_reg_mem_function): New function.
22791         (write_tm_preds_h): Call it.
22792         * stmt.c (parse_output_constraint, parse_input_constraint): Use
22793         the generated insn_extra_constraint_allows_reg_mem function
22794         instead of always setting *allows_reg = true; *allows_mem = true;
22795         for unknown extra constraints.
22797 2015-04-17  H.J. Lu  <hongjiu.lu@intel.com>
22799         PR target/65780
22800         * output.h (default_binds_local_p_3): New.
22801         * varasm.c (default_binds_local_p_3): Make it public.  Take an
22802         argument to indicate if common symbol may be local.  If common
22803         symbol may be local, treat non-external variable as defined
22804         locally.
22805         (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
22806         (default_binds_local_p_1): Pass false to default_binds_local_p_3.
22807         * config/i386/i386.c (ix86_binds_local_p): New.
22808         (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
22809         ix86_binds_local_p.
22811 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
22813         PR debug/65771
22814         * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
22815         trying mem_loc_descriptor on XEXP (rtl, 0).
22817 2015-04-17  Martin Liska  <mliska@suse.cz>
22819         * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
22820         Release symbol_compare_collection.
22821         * ipa-reference.c: Add TODO that a vector should be released.
22823 2015-04-17  Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
22825         PR target/65296
22826         * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
22827         to new AVR-LibC file layout (bug #44574).
22828         (*avrlibc_devicelib): Same.
22829         * config/avr/avr-mcus.def: Adjust comments.
22830         * config/avr/avr.opt (nodevicelib): Adjust help.
22832 2015-04-17  Alan Lawrence  <alan.lawrence@arm.com>
22834         * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
22836 2015-04-17  Patrick Palka  <ppalka@gcc.gnu.org>
22838         PR c++/64527
22839         * gimplify.c (gimplify_init_constructor): Always emit a
22840         side-effecting constructor.
22842 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22844         PR tree-optimization/64950
22845         * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
22846         in cfun->curr_properties.
22847         (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
22848         if we generate an IFN_VA_ARG.
22849         * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
22850         function if PROP_gimple_lva is not set in src function.
22852 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22853             Michael Matz  <matz@suse.de>
22855         PR tree-optimization/64950
22856         * gimple-iterator.c (update_modified_stmts): Remove static.
22857         * gimple-iterator.h (update_modified_stmts): Declare.
22858         * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
22859         (gimplify_va_arg_internal): New function.
22860         (gimplify_va_arg_expr): Use IFN_VA_ARG.
22861         * gimplify.h (gimplify_va_arg_internal): Declare.
22862         * internal-fn.c (expand_VA_ARG): New unreachable function.
22863         * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
22864         * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
22865         (expand_ifn_va_arg): New function.
22866         (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
22867         (pass_stdarg::execute): Call expand_ifn_va_arg.
22868         (pass_data_lower_vaarg): New pass_data.
22869         (pass_lower_vaarg): New gimple_opt_pass.
22870         (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
22871         (make_pass_lower_vaarg): New function.
22872         * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
22873         properties_required field.
22874         * passes.def (all_passes): Add pass_lower_vaarg.
22875         * tree-pass.h (PROP_gimple_lva): Add define.
22876         (make_pass_lower_vaarg): Declare.
22878 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22880         * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
22881         * calls.c (call_expr_flags): Same.
22883 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22885         * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
22886         (pass_stdarg::execute): ... here.
22888 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22889             Michael Matz  <matz@suse.de>
22891         * tree-cfg.c (make_blocks_1): Factor out of ...
22892         (make_blocks): ... here.
22893         (make_edges_bb): Factor out of ...
22894         (make_edges): ... here.
22895         (gimple_find_sub_bbs): New function.
22896         * tree-cfg.h (gimple_find_sub_bbs): Declare.
22898 2015-04-17  Tom de Vries  <tom@codesourcery.com>
22900         * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
22902 2015-04-17  Yury Gribov  <y.gribov@samsung.com>
22904         * asan.c (set_sanitized_sections): New function.
22905         (section_sanitized_p): Ditto.
22906         (asan_protect_global): Optionally sanitize user-defined
22907         sections.
22908         * asan.h (set_sanitized_sections): Declare new function.
22909         * common.opt (fsanitize-sections): New option.
22910         * doc/invoke.texi (-fsanitize-sections): Document new option.
22911         * opts-global.c (handle_common_deferred_options): Handle new
22912         option.
22914 2015-04-17  Jakub Jelinek  <jakub@redhat.com>
22916         PR debug/65771
22917         * dwarf2out.c (loc_list_from_tree): Return NULL
22918         for DEBUG_EXPR_DECL.
22920 2015-04-17  Christian Bruel  <christian.bruel@st.com>
22922         * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
22923         same attributes.
22925 2015-04-16  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
22927         * ira-color.c (setup_left_conflict_sizes_p): Do not process
22928         node itself when computing left conflict subnode size.
22930 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
22932         * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
22933         * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
22934         *fop_<mode>_1_sse using enabled attribute.  Use
22935         register_mixssei387nonimm_operand operand 1 predicate. Change
22936         alternative 3 constraints from "x" to "v".
22938 2015-04-16  Richard Biener  <rguenther@suse.de>
22940         PR tree-optimization/65774
22941         * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
22942         bit-value tracking on.
22944 2015-04-16  Richard Biener  <rguenther@suse.de>
22946         PR tree-optimization/64277
22947         * tree-vrp.c (check_array_ref): Fix anti-range handling,
22948         simplify upper bound handling.
22949         (search_for_addr_array): Simplify.
22950         (check_array_bounds): Handle ADDR_EXPRs here.
22951         (check_all_array_refs): Simplify.
22953 2015-04-16  Uros Bizjak  <ubizjak@gmail.com>
22955         * config/i386/i386.c (print_reg): Rewrite function.
22957 2015-04-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22959         * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
22960         Invert the condition.
22962 2015-04-16  Renlin Li  <renlin.li@arm.com>
22964         * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
22965         simplifications for UNSIGNED_FLOAT.
22967 2015-04-16  Nick Clifton  <nickc@redhat.com>
22969         * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
22970         MUL_UNINIT.
22971         (enum rl78_cpu_type): New.
22972         * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
22973         (umulhi3_shift_virt): Remove m constraint from operand 1.
22974         (umulqihi3_virt): Likewise.
22975         * config/rl78/rl78.c (rl78_option_override): Add code to process
22976         -mcpu and -mmul options.
22977         (rl78_alloc_physical_registers): Add code to handle divhi and
22978         divsi valloc attributes.
22979         (set_origin): Likewise.
22980         * config/rl78/rl78.h (RL78_MUL_G14): Define.
22981         (TARGET_G10, TARGET_G13, TARGET_G14): Define.
22982         (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
22983         __RL78_Gxx__.
22984         (ASM_SPEC): Pass -mcpu on to assembler.
22985         * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
22986         (mulqi3_rl78): Likewise.
22987         (mulhi3_g13): Likewise.
22988         (mulhi3): Generate the G13 or G14 versions of the insn directly.
22989         (mulsi3): Likewise.
22990         (mulhi3_g14): Add clobbers of AX and BC.
22991         (mulsi3_g14): Likewise.
22992         (mulsi3_g13): Likewise.
22993         (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
22994         (udivmodsi4_g14, udivmodsi4_g13): New patterns.
22995         * config/rl78/rl78.opt (mmul): Initialise value to
22996         RL78_MUL_UNINIT.
22997         (mcpu): New option.
22998         (m13, m14, mrl78): New option aliases.
22999         * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
23000         (MULTILIB_DIRNAMES): Add g13 and g14.
23001         * doc/invoke.texi: Document -mcpu and -mmul options.
23003 2015-04-16  Richard Biener  <rguenther@suse.de>
23005         * tree-ssa-ccp.c (likely_value): See if we have operands that
23006         are marked as never simulate again and return CONSTANT in this
23007         case.
23008         * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
23009         not have any operands that will be simulated again as
23010         not being simulated again.
23012 2015-04-15  Uros Bizjak  <ubizjak@gmail.com>
23014         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
23015         Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
23016         (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
23017         attribute.
23018         (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
23019         enabled attribute.
23020         (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
23021         *float<SWI48:mode><MODEF:mode>2_sse.
23022         (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
23023         enabled attribute.
23024         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
23025         enabled attribute.
23027 2015-04-15  Tom de Vries  <tom@codesourcery.com>
23029         PR other/65487
23030         * function.c (push_dummy_function): New function.
23031         (init_dummy_function_start): Use push_dummy_function.
23032         (pop_dummy_function): New function.  Factored out of ...
23033         (expand_dummy_function_end): ... here.
23034         * function.h (push_dummy_function, pop_dummy_function): Declare.
23035         * passes.c (pass_manager::dump_passes): Use push_dummy_function and
23036         pop_dummy_function.
23037         * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
23039 2015-04-15  Jeff Law  <law@redhat.com>
23041         PR tree-optimization/47679
23042         * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
23043         need for forward declaration in upcoming changes.
23044         (record_conditions, record_edge_info): Likewise.
23046         PR rtl-optimization/42522
23047         * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
23048         SIGN_EXTRACT as a whole object rather than simplifying
23049         its operand.
23051 2015-04-15  Jakub Jelinek  <jakub@redhat.com>
23053         PR ipa/65765
23054         * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
23055         and GIMPLE_PREDICT use break instead of return true. For
23056         GIMPLE_EH_DISPATCH, compare dispatch region.
23058 2015-04-14  Matthew Wahab  <matthew.wahab@arm.com>
23060         * doc/extend.texi (__sync Builtins): Simplify some text.  Update
23061         details about the implementation.  Make clear preference for
23062         __atomic builtins.  Reduce possibility of future change.
23064 2015-04-15  Nick Clifton  <nickc@redhat.com>
23066         * config/rx/rx.opt (mallow-string-insns): New option.
23067         * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
23068         builtin if string instructions are denied.
23069         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
23070         __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
23071         appropriate.
23072         (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
23073         * config/rx/rx.md (movstr): Enable pattern only if string
23074         instructions are allowed.
23075         (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
23076         (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
23077         * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
23078         (MULTILIB_DIRNAMES): Add no-strings.
23079         * doc/invoke.texi: Document -mno-allow-string-insns.
23081 2015-04-15  Alan Modra  <amodra@gmail.com>
23083         PR target/65408
23084         PR target/58744
23085         PR middle-end/36043
23086         * calls.c (load_register_parameters): Don't load past end of
23087         mem unless suitably aligned.
23089 2015-04-15  Nick Clifton  <nickc@redhat.com>
23091         * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
23092         decrement instruction as being frame related.
23093         (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
23094         based addresses.
23095         If zero extending a function address enclose the operation in
23096         %code(...).
23097         (rl78_preferred_reload_class): New function.
23098         (TARGET_PREFERRED_RELOAD_CLASS): Define.
23099         * config/rl78/rl78.md: Remove useless constraints in expanders.
23100         (mulqi3_rl78): Remove + qualifier on input-only operand 1.
23101         (mulhi3_rl78): Likewise.
23102         (mulhi3_g13): Likewise.
23103         (mulsi3_rl78): Likewise.
23104         (es_addr): Move to before the multiply patterns.
23106 2015-04-15  Alan Modra  <amodra@gmail.com>
23108         * function.h (struct emit_status): Delete x_first_insn, x_last_insn
23109         and sequence_stack.  Add seq.
23110         (seq_stack): Delete.
23111         * function.c (prepare_function_start): Don't access x_last_insn.
23112         * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
23113         (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
23114         * emit_rtl.c (start_sequence, push_topmost_sequence,
23115         pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
23116         sequence accessors.
23117         (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
23118         remove_insn): Likewise.  Simplify.
23119         * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
23120         and pop_topmost_sequence.
23121         (m32c_function_needs_enter): Use get_topmost_sequence.  Ignore
23122         debug insns.
23123         * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
23125 2015-04-14  Yvan Roux  <yvan.roux@linaro.org>
23127         PR target/65729
23128         * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
23129         the assertiion.
23131 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
23133         * config/i386/i386.h (LEGACY_INT_REG_P): New define.
23134         (LEGACY_INT_REGNO_P): Ditto.
23135         (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
23136         (ANY_MASK_REG_P): Remove.
23137         (BND_REG_P): Rename from ANY_BND_REG_P.
23138         * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
23139         legacy integer registers.  Do not handle MMX_REG_P in a special way.
23140         Merge 64byte and 32byte SSE handling.
23142 2015-04-14  Nick Clifton  <nickc@redhat.com>
23144         * expr.c (expand_assignment): Force an address offset computation
23145         into a register before changing its mode.
23146         (expand_expr_real_1): Likewise.
23148 2015-04-14  Alan Lawrence  <alan.lawrence@arm.com>
23150         * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
23151         vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
23152         vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
23153         vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
23154         vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
23155         vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
23156         vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
23157         and __aarch64_vget_lane_any.
23159 2015-04-14  Jakub Jelinek  <jakub@redhat.com>
23161         PR rtl-optimization/65761
23162         * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
23163         get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
23165 2015-04-14  Richard Biener  <rguenther@suse.de>
23167         * graphite-scop-detection.c: Do not include cp/cp-tree.h.
23168         (graphite_can_represent_scev): Use POINTER_TYPE_P.
23170 2015-04-14  Richard Biener  <rguenther@suse.de>
23172         PR tree-optimization/65758
23173         * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
23174         against -1.
23175         (ccp_lattice_meet): Likewise.
23176         (bit_value_unop): Likewise.
23177         (bit_value_binop): Likewise.
23178         (bit_value_assume_aligned): Likewise.
23180 2015-04-14  Christian Bruel  <christian.bruel@st.com>
23182         * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
23183         function.
23185 2015-04-14  Marc Glisse  <marc.glisse@inria.fr>
23187         PR tree-optimization/63387
23188         * match.pd ((x unord x) | (y unord y) -> (x unord y),
23189         (x unord x) | (x unord y) -> (x unord y)): New simplifications.
23191 2015-04-14  Uros Bizjak  <ubizjak@gmail.com>
23193         * config/i386/predicates.md (any_QIreg_operand): Rename from
23194         q_regs_operand.  Do not process subregs.
23195         (QIreg_operand): Use QI_REGNO_P predicate.
23196         (ext_QIreg_operand): Ditto.
23197         (ext_register_operand): Ditto.
23198         * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
23199         (AND splitters): Ditto.
23200         (AND with -65536 splitter): Add SWI48 mode for operand 0.
23201         (AND with -256 splitter): Use any_QIreg_operand predicate and
23202         SWI248 mode for operand 0.
23203         (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
23204         mode for operand 0.
23205         (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
23207 2015-04-13  Gerald Pfeifer  <gerald@pfeifer.com>
23209         * doc/plugins.texi: Rewrite first introductory paragraph.
23211 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23213         * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
23214         (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
23216 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23218         * ipa-profie.c (ipa_profile): Check number of parameters
23219         and possible polymorphic call targets before
23220         devirtualizing.
23222 2015-04-13  Uros Bizjak  <ubizjak@gmail.com>
23224         * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
23225         *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
23227 2015-04-13  Richard Biener  <rguenther@suse.de>
23229         PR tree-optimization/65204
23230         * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
23231         takens for bit-CCP.
23233 2015-04-13  Richard Biener  <rguenther@suse.de>
23235         PR target/65660
23236         * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
23237         and cond_not_taken_branch_cost to 4 and 2.
23238         (bdver2_cost): Likewise.
23239         (bdver3_cost): Likewise.
23240         (bdver4_cost): Likewise.
23242 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23244         * hash-table.h (hash_table constructor): Add mem stats.
23245         (alloc_entries): Likewise.
23247 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23249         * ipa-cp.c (ipcp_driver): Relase prev_edge.
23250         * passes.c (execute_one_pass): Only add transform if pass has one.
23252 2015-04-12  Joseph Myers  <joseph@codesourcery.com>
23254         * config/i386/i386.c (ix86_option_override_internal): Don't set
23255         -fprefetch-loop-arrays if optimizing for size.
23257 2015-04-12  Jan Hubicka  <hubicka@ucw.cz>
23258             Gerald Pfeifer  <gerald@pfeifer.com>
23260         * doc/contrib.texi (Contributors): Add Martin Jambor and
23261         Michael Matz.
23263 2015-04-12  Jakub Jelinek  <jakub@redhat.com>
23265         * BASE-VER: Set to 6.0.0.
23267         PR tree-optimization/65747
23268         * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
23269         rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
23271 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
23273         * doc/invoke.texi (-Wmemset-transposed-args): Break a long
23274         sentence.  Improve grammar.
23276 2015-04-12  Gerald Pfeifer  <gerald@pfeifer.com>
23278         * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
23280 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
23282         PR ipa/65743
23283         * ipa-inline-transform.c (speculation_removed): Remove static var.
23284         (check_speculations): New function.
23285         (clone_inlined_nodes): Do not check spculations.
23286         (inline_call): Call check_speculations.
23287         * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
23288         consider non-invariants.
23290 2015-04-11  Jan Hubicka  <hubicka@ucw.cz>
23291             Martin Liska  <mliska@suse.cz>
23293         PR ipa/65722
23294         * ipa-icf.c (sem_item::compare_cgraph_references): function and
23295         variable can not match.
23296         (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
23297         (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
23299 2015-04-11  Jakub Jelinek  <jakub@redhat.com>
23301         PR tree-optimization/65735
23302         * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
23303         Remove visited_phis argument, add visited_bbs, avoid recursing into the
23304         same bb rather than just into the same phi node.
23305         (thread_through_normal_block): Adjust caller.
23307 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
23309         * doc/contrib.texi (Contributors): Add Ira Rosen.
23311 2015-04-11  Benno Schulenberg  <bensberg@justemail.net>
23313         * gcov.c (find_source): Fix miswording in error message.
23314         * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
23315         (ix86_expand_sse_comi_round): Fix typo in error message.
23317 2015-04-11  Gerald Pfeifer  <gerald@pfeifer.com>
23319         * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
23321 2015-04-10  Gerald Pfeifer  <gerald@pfeifer.com>
23323         * doc/contrib.texi (Contributors): Update Joe Buck's entry.
23325 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
23327         PR target/65710
23328         * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
23329         Print bad_spills_num and insn_pseudos_num.
23331 2015-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23333         PR target/65694
23334         * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
23335         when creating +1 values for SImode.
23337 2015-04-10  Vladimir Makarov  <vmakarov@redhat.com>
23339         PR target/65729
23340         * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
23341         assert.
23343 2015-04-10  Jakub Jelinek  <jakub@redhat.com>
23344             Iain Sandoe  <iain@codesourcery.com>
23346         PR target/65351
23347         * configure: Regenerate.
23349 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
23351         PR target/65671
23352         * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
23354 2015-04-09  Gerald Pfeifer  <gerald@pfeifer.com>
23356         * doc/contrib.texi (Contributors): Add John Marino.
23358 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
23360         PR tree-optimization/65709
23361         * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
23362         TREE_TYPE (TREE_TYPE (t)).
23364 2015-04-09  Vladimir Makarov  <vmakarov@redhat.com>
23366         PR target/65710
23367         * lra-int.h (lra_bad_spill_regno_start): New.
23368         * lra.c (lra_bad_spill_regno_start): New.
23369         (lra): Set up lra_bad_spill_regno_start.  Set up
23370         lra_constraint_new_regno_start unconditionally.
23371         * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
23372         spill preferences.
23374 2015-04-09  Marek Polacek  <polacek@redhat.com>
23375             Jakub Jelinek  <jakub@redhat.com>
23377         PR middle-end/65554
23378         * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
23379         (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
23380         of STRIP_NOPS.
23382 2015-04-09  Segher Boessenkool  <segher@kernel.crashing.org>
23384         PR rtl-optimization/65693
23385         * combine.c (is_parallel_of_n_reg_sets): Move outside of
23386         #ifndef HAVE_cc0.
23388 2015-04-09  Georg-Johann Lay  <avr@gjlay.de>
23390         PR target/65296
23391         * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
23392         device specs file if "device-specs%s" didn't resolve to a path.
23394 2015-04-09  Kirill Yukhin  <kirill.yukhin@intel.com>
23396         PR target/65676
23397         * config/i386/i386.c (fixup_modeless_constant): New.
23398         (ix86_expand_args_builtin): Fixup modeless constant operand.
23399         (ix86_expand_round_builtin): Ditto.
23400         (ix86_expand_special_args_builtin): Ditto.
23401         (ix86_expand_builtin): Ditto.
23403 2015-04-09  Jakub Jelinek  <jakub@redhat.com>
23405         PR target/65693
23406         * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
23407         any pow2 integer in between 2 and 0x80000000U inclusive.
23409 2015-04-08  Segher Boessenkool  <segher@kernel.crashing.org>
23411         PR rtl-optimization/65693
23412         * combine.c (is_parallel_of_n_reg_sets): Change first argument
23413         from an rtx_insn * to an rtx.
23414         (try_combine): Adjust both callers.  Use it once more.
23416 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23418         * tree-chkp.c (chkp_find_const_bounds_var): Remove.
23419         (chkp_make_static_const_bounds): Search existing
23420         symbol by assembler name.  Use make_decl_one_only.
23421         (chkp_get_zero_bounds_var): Remove node search which
23422         is now performed in chkp_make_static_const_bounds.
23423         (chkp_get_none_bounds_var): Likewise.
23425 2015-04-08  Michael Witten  <mfwitten@gmail.com>
23427         * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
23428         to an example.
23430 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23432         * tree.h (CONVERT_EXPR_P): Commentary typo fix.
23434 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
23436         * doc/extend.texi (__sync Builtins): Fix grammar.
23438 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23440         * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
23442 2015-04-08  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
23444         * varasm.c (emit_local): Move definition of align.
23446 2015-04-08  Julian Brown  <julian@codesourcery.com>
23448         * config/nvptx/mkoffload.c (process): Support variable mapping.
23450 2015-03-27  Trevor Saunders  <tbsaunde@tbsaunde.org>
23452         * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
23453         alpha_links **.
23454         (alpha_write_one_linkage): Correct typo.
23456 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23458         * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
23460 2015-04-08  Gerald Pfeifer  <gerald@pfeifer.com>
23462         * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
23464 2015-04-08  Ilya Enkovich  <ilya.enkovich@intel.com>
23466         * tree-chkp.h (chkp_insert_retbnd_call): New.
23467         * tree-chkp.c (chkp_insert_retbnd_call): New.
23468         * ipa-split.c (insert_bndret_call_after): Remove.
23469         (split_function): Use chkp_insert_retbnd_call.
23470         * cgraphunit.c (cgraph_node::expand_thunk): Build returned
23471         bounds for instrumented functions.
23473 2015-04-07  Jan Hubicka  <hubicka@ucw.cz>
23475         PR ipa/65540
23476         * calls.c (initialize_argument_information): When producing tail
23477         call also turn SSA_NAMES passed by references to original PARM_DECLs
23479 2015-04-07  Vladimir Makarov  <vmakarov@redhat.com>
23481         PR target/65648
23482         * lra-remat.c (do_remat): Process input and non-input insn
23483         registers separately.
23485 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
23487         PR debug/65678
23488         * valtrack.c (debug_lowpart_subreg): New function.
23489         (dead_debug_insert_temp): Use it.
23491         PR middle-end/65680
23492         * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
23493         into signed HOST_WIDE_INT the same as negative bit_offset.
23495 2015-04-07  Ilya Enkovich  <ilya.enkovich@intel.com>
23497         * ipa-comdats.c (ipa_comdats): Visit all thunks
23498         to set proper comdat group.
23500 2015-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23502         PR target/65489
23503         * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
23504         on constants for NEON VSTRUCT modes.
23506 2015-04-07  Jakub Jelinek  <jakub@redhat.com>
23507             Iain Sandoe  <iain@codesourcery.com>
23509         PR target/65351
23510         * configure: Regenerate.
23512 2015-04-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23514         PR target/65614
23515         * config/rs6000/rs6000.c (struct processor_costs): Add cost field
23516         for SF->DF conversions to make FLOAT_EXTEND more expensive, so
23517         that LFD is used to load double constants instead of LFS.  Add
23518         defaults for all costs structures.  Add comments for missing
23519         initialization fields.
23520         (size32_cost): Likewise.
23521         (size64_cost): Likewise.
23522         (rs64a_cost): Likewise.
23523         (mpccore_cost): Likewise.
23524         (ppc403_cost): Likewise.
23525         (ppc405_cost): Likewise.
23526         (ppc440_cost): Likewise.
23527         (ppc476_cost): Likewise.
23528         (ppc601_cost): Likewise.
23529         (ppc603_cost): Likewise.
23530         (ppc604_cost): Likewise.
23531         (ppc604e_cost): Likewise.
23532         (ppc620_cost): Likewise.
23533         (ppc630_cost): Likewise.
23534         (ppccell_cost): Likewise.
23535         (ppc750_cost): Likewise.
23536         (ppc7450_cost): Likewise.
23537         (ppc8540_cost): Likewise.
23538         (ppce300c2c3_cost): Likewise.
23539         (ppce500mc_cost): Likewise.
23540         (ppce500mc64_cost): Likewise.
23541         (ppce5500_cost): Likewise.
23542         (ppce6500_cost): Likewise.
23543         (titan_cost): Likewise.
23544         (power4_cost): Likewise.
23545         (power6_cost): Likewise.
23546         (power7_cost): Likewise.
23547         (power8_cost): Likewise.
23548         (ppca2_cost): Likewise.
23549         (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
23551         * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
23552         instead of XXLOR to copy SFmode to clear out dirty bits created
23553         when SFmode denormals are generated.
23554         (mov<mode>_hardfloat, FMOVE32 case): Likewise.
23555         (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
23557 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
23559         * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
23560         * config/aarch64/aarch64-cores.def (exynos-m1): New core.
23561         * config/aarch64/aarch64-tune.md: Regenerate.
23563 2015-04-06  Evandro Menezes  <e.menezes@samsung.com>
23565         * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
23566         * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
23567         * config/arm/arm-cores.def (exynos-m1): New core.
23568         * config/arm/arm-tune.md: Regenerate.
23569         * config/arm/arm-tables.opt: Add entry for "exynos-m1".
23570         * config/arm/bpabi.h: Likewise.
23572 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
23574         * ipa-cp (set_single_call_flag): Remove too
23575         restrictive assert.
23577 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
23579         * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
23580         GOMP_offload_unregister from the destructor.
23582 2015-04-06  Ilya Enkovich  <ilya.enkovich@intel.com>
23584         * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
23585         flags for instrumentation thunk.
23586         (chkp_produce_thunks): Likewise.
23588 2015-04-05  Martin Liska  <mliska@suse.cz>
23590         PR ipa/65665
23591         * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
23592         has computed data structure.
23593         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
23595 2015-04-04  Jan Hubicka  <hubicka@ucw.cz>
23597         * invoke.texi (inline-unit-growth): Increase growth to 20%
23598         * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
23600 2015-04-04  Vladimir Makarov  <vmakarov@redhat.com>
23602         PR target/65647
23603         * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New.  Add its
23604         value checking.
23605         (lra_rematerialization_iter): New.
23606         * lra.c (lra): Initialize lra_rematerialization_iter.
23607         Stop updating lra_constraint_new_regno_start after switching of
23608         inheritance and rematerialization.
23609         * lra-remat.c (lra_rematerialization_iter): New.
23610         (lra_remat): Add printing pass iteration.  Do rematerialization
23611         only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
23613 2015-04-04  Richard Biener  <rguenther@suse.de>
23615         PR tree-optimization/64909
23616         PR tree-optimization/65660
23617         * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
23618         to take a cost vector for scalar iteration cost.
23619         (vect_get_single_scalar_iteration_cost): Likewise.
23620         * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
23621         Compute the scalar iteration cost into a cost vector.
23622         (vect_get_known_peeling_cost): Use the scalar cost vector to
23623         account for the cost of the peeled iterations.
23624         (vect_estimate_min_profitable_iters): Likewise.
23625         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
23626         Likewise.
23628 2015-04-04  Alan Modra  <amodra@gmail.com>
23630         PR target/65576
23631         PR target/65240
23632         * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
23633         0.0 constant unless TARGET_VSX.
23634         * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
23635         alternative.
23637 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23639         PR ipa/65654
23640         * ipa-inline-transform.c (inline_call): Skip sanity check to work
23641         around the ICE
23643 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23645         PR ipa/65655
23646         * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
23647         speculative indirect edges to avoid ordering issue.
23649 2015-04-03  Jan Hubicka  <hubicka@ucw.cz>
23651         PR ipa/65076
23652         * ipa-inline.c (edge_badness): Add combined size to the denominator.
23654 2015-04-03  Jakub Jelinek  <jakub@redhat.com>
23656         * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
23657         TYPE_ARTIFICIAL on the .omp_data* types.
23659 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23661         * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
23662         instrumentation thunks.
23664 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23666         * config/i386/i386.c (ix86_expand_call): Avoid nested
23667         PARALLEL in returned call value.
23669 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23671         * lto-cgraph.c (input_cgraph_1): Always link instrumented
23672         assembler name with original one.
23674 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
23676         * config/i386/i386.c (ix86_register_priority): Use AX_REG.
23678 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
23680         Revert parts of r216820.
23681         * config/i386/i386.md (movqi_internal): Correct type calculation
23682         for alternatives 3 and 5.
23684 2015-04-02  Jakub Jelinek  <jakub@redhat.com>
23686         PR preprocessor/61977
23687         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
23688         predefine __vector/__bool/__pixel macros nor context sensitive
23689         macros for CLK_ASM.
23690         * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
23692 2015-04-02  John David Anglin  <danglin@gcc.gnu.org>
23694         * config/pa/pa.c (pa_output_move_double): Directly handle register
23695         indexed memory operand.  Simplify handling of scaled register indexed
23696         memory operands.
23698 2015-04-02  Ilya Enkovich  <ilya.enkovich@intel.com>
23700         PR driver/65444
23701         * config/i386/linux-common.h (MPX_SPEC): New.
23702         (CHKP_SPEC): Add MPX_SPEC.
23703         * doc/invoke.texi (-fcheck-pointer-boudns): Document
23704         possible issues with '-z bndplt' support in linker.
23706 2015-04-02  Uros Bizjak  <ubizjak@gmail.com>
23708         * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
23709         (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
23710         (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
23711         * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
23712         (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
23714 2015-04-01  Uros Bizjak  <ubizjak@gmail.com>
23716         * config/i386/sync.md (UNSPEC_MOVA): Remove.
23717         (atomic_load<mode>): Change operand 0 predicate to
23718         nonimmediate_operand and fix up the destination when needed.
23719         Use UNSPEC_LDA.
23720         (atomic_loaddi_fpu): Use UNSPEC_LDA.
23721         (atomic_store<mode>): Change operand 1 predicate to
23722         nonimmendate_operand and move the source to register when needed.
23723         Use UNSPEC_STA.
23724         (atomic_store<mode>_1): Use UNSPEC_STA.
23725         (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
23726         Fix moves from memory operand.  Use UNSPEC_STA.
23728 2015-04-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23730         * expmed.c (strict_volatile_bitfield_p): Check that the access will
23731         not cross a MODESIZE boundary.
23732         (store_bit_field, extract_bit_field): Added assertions in the
23733         strict volatile bitfields code path.
23735 2015-04-01  Max Ostapenko  <m.ostapenko@partner.samsung.com>
23737         PR target/65624
23738         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
23739         Increase args array size by one to avoid buffer overflow.
23741 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
23743         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23744         split_part.
23745         * ipa-inline.c (edge_badness): Add wrapper penalty.
23746         (sum_callers): Move up.
23747         (inline_small_functions): Set single_caller.
23748         * ipa-inline.h (inline_summary): Add single_caller.
23749         * ipa-split.c (split_function): Set split_part.
23750         (cgraph_node::create_clone): Do not shadow decl; copy split_part.
23751         * cgraph.h (cgraph_node): Add split_part.
23753 2015-03-31  Uros Bizjak  <ubizjak@gmail.com>
23755         PR target/58945
23756         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
23757         Do not split operands 0 and operands 2 to halfmode.
23758         (atomic_compare_and_swap<mode>): Update for
23759         atomic_compare_and_swap<dwi>_doubleword changes.
23761 2015-03-31  Jan Hubicka  <hubicka@ucw.cz>
23763         * tree.c (need_assembler_name_p): Artificial types have no ODR names.
23764         * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
23765         no caching is done.
23767 2015-03-31  Martin Liska  <mliska@suse.cz>
23769         PR ipa/65557
23770         * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
23771         has already filled up function summary.
23772         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
23774 2015-03-31  Richard Biener  <rguenther@suse.de>
23776         * tree-sra.c (create_access_replacement): Drop under-/over-alignment
23777         of types.
23779 2015-03-31  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23781         * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
23782         nested functions.
23783         (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
23784         (s390_asm_output_function_label): Adapt to new signature of
23785         s390_function_num_hotpatch_hw
23786         Optimise the code generating assembler output.
23787         Add comments to assembler file.
23789 2015-03-31  Richard Biener  <rguenther@suse.de>
23791         PR middle-end/65626
23792         * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
23793         of the noreturn call so it is last and cleanup_control_flow_bb
23794         can do the CFG part.
23796 2015-03-31  Ilya Enkovich  <ilya.enkovich@intel.com>
23798         PR target/65531
23799         * ipa-chkp.c (chkp_maybe_create_clone): Don't set
23800         same_comdat_group for external symbols.
23801         * symtab.c (symtab_node::verify_symtab_nodes): Avoid
23802         infinite same_comdat_group traversal loop.
23804 2015-03-31  Jakub Jelinek  <jakub@redhat.com>
23806         PR plugins/61176
23807         * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
23808         automatically to $headers.
23810 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
23812         PR ipa/65610
23813         * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
23814         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
23815         function.
23816         (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
23817         Use it.
23818         * ipa-prop.c (param_type_may_change_p): Likewise.
23819         * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
23820         (remove_unused_scope_block_p): Add in_ctor_dtor_block
23821         argument.  Before inlining, preserve
23822         inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
23823         with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them.  Adjust
23824         recursive calls.
23825         (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
23827 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
23829         PR ipa/65076
23830         * ipa-inline.c (edge_badness): Base denominator on callee's
23831         grwoth squared.
23833 2015-03-27  Martin Jambor  <mjambor@suse.cz>
23835         PR ipa/65478
23836         * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
23837         (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
23838         * ipa-prop.h (ipa_node_params): New flags node_within_scc and
23839         node_calling_single_call.
23840         * ipa-cp.c (count_callers): New function.
23841         (set_single_call_flag): Likewise.
23842         (initialize_node_lattices): Count callers and set single_flag_call if
23843         necessary.
23844         (incorporate_penalties): New function.
23845         (good_cloning_opportunity_p): Use it, dump new flags.
23846         (propagate_constants_topo): Set node_within_scc flag if appropriate.
23847         * doc/invoke.texi (ipa-cp-recursion-penalty,
23848         ipa-cp-single-call-pentalty): Document.
23850 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
23852         PR ipa/65588
23853         * symtab.c (symtab_node::get_partitioning_class): Register vars
23854         are duplicated.
23855         * varpool.c (symbol_table::output_variables) Do not assemble unefined
23856         decls for non-symbols.
23858 2015-03-27  H.J. Lu  <hongjiu.lu@intel.com>
23860         PR target/65248
23861         * output.h (default_binds_local_p_2): New.
23862         * varasm.c (default_binds_local_p_2): Renamed to ...
23863         (default_binds_local_p_3): This.  Don't return true on protected
23864         data symbol if protected data may be external.
23865         (default_binds_local_p): Use default_binds_local_p_3.
23866         (default_binds_local_p_1): Likewise.
23867         (default_binds_local_p_2): New.
23868         * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
23869         default_binds_local_p_2 if TARGET_MACHO is undefined.
23871 2015-03-27  Jakub Jelinek  <jakub@redhat.com>
23873         PR target/65593
23874         * config/i386/i386.c (legitimize_pic_address): If base
23875         is SYMBOL_REF or LABEL_REF using %rip addressing, force
23876         it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
23878 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
23880         PR target/65531
23881         * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
23882         comdat groups.
23884 2015-03-27  Jan Hubicka  <hubicka@ucw.cz>
23886         PR ipa/65600
23887         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
23888         of optimized out indirect call.
23889         (redirect_to_unreachable): Always build symbol table node for
23890         BUILT_IN_UNREACHABLE
23892 2015-03-27  Vladimir Makarov  <vmakarov@redhat.com>
23894         PR target/65407
23895         * ira-costs.c (record_reg_classes): Process all constraint string
23896         containing 0-9.
23898 2015-03-27  Bernd Schmidt  <bernds@codesourcery.com>
23900         * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
23901         memory_operand.
23903         PR target/65052
23904         * config/c6x/constraints.md (S3): New constraint.
23905         * config/c6x/c6x.md (real_jump): Use it.
23907 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23909         PR middle-end/65595
23910         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
23911         do redirection if the call is not optimized out.
23913 2015-03-27  Ilya Enkovich  <ilya.enkovich@intel.com>
23915         PR target/65495
23916         * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
23917         (fchkp-check-incomplete-type): Add LTO.
23918         (fchkp-zero-input-bounds-for-main): Likewise.
23919         (fchkp-first-field-has-own-bounds): Likewise.
23920         (fchkp-narrow-bounds): Likewise.
23921         (fchkp-narrow-to-innermost-array): Likewise.
23922         (fchkp-use-static-bounds): Likewise.
23923         (fchkp-use-static-const-bounds): Likewise.
23924         (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
23926 2015-03-27  Marek Polacek  <polacek@redhat.com>
23928         * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
23930 2015-03-27  Marek Polacek  <polacek@redhat.com>
23932         PR sanitizer/65583
23933         * ubsan.c (ubsan_create_edge): New function.
23934         (instrument_bool_enum_load): Call it.
23935         (instrument_nonnull_arg): Likewise.
23936         (instrument_nonnull_return): Likewise.
23937         (instrument_object_size): Likewise.
23939 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23941         * lto-streamer.h (class lto_location_cache): Turn loc_cache into
23942         auto_vec.
23944 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23946         PR lto/65536
23947         * lto-streamer.h (class lto_location_cache): New.
23948         (struct data_in): Add location_cache.
23949         (lto_input_location): Update prototype.
23950         (stream_input_location_now): New.
23951         * streamer-hooks.h (struct streamer_hooks): Make input_location to take
23952         pointer to location.
23953         (stream_input_location): Update.
23954         * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
23955         (warn_odr): Apply location cache before warning.
23956         (lto_input_location): Update prototype.
23957         * gimple-streamer-in.c (input_phi, input_gimple_stmt):
23958         Use stream_input_location_now.
23959         * lto-streamer-in.c (lto_location_cache::current_cache): New static
23960         variable.
23961         (lto_location_cache::cmp_loc): New function.
23962         (lto_location_cache::apply_location_cache): New function.
23963         (lto_location_cache::accept_location_cache): New function.
23964         (lto_location_cache::revert_location_cache): New function.
23965         (lto_location_cache::input_location): New function.
23966         (lto_input_location): Do location caching.
23967         (stream_input_location_now): New function.
23968         (input_eh_region, input_struct_function_base): Use
23969         stream_input_location_now.
23970         (lto_data_in_create): use new.
23971         (lto_data_in_delete): Use delete.
23972         * tree-streamer-in.c (unpack_ts_block_value_fields,
23973         unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
23974         lto_input_ts_exp_tree_pointers): Update for cached location api.
23976 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23978         PR ipa/65076
23979         * passes.def: Add pass_nothrow.
23980         * ipa-pure-const.c: (pass_data_nothrow): New.
23981         (pass_nothrow): New.
23982         (pass_nothrow::execute): New.
23983         (make_pass_nothrow): New.
23984         * tree-pass.h (make_pass_nothrow): Declare.
23986 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23988         * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
23989         edge to change by speculation resolution or redirection.
23990         (edge_set_predicate): Likewise.
23991         (inline_summary_t::duplicate): Likewise.
23992         (remap_edge_summaries): Likewise.
23994 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
23996         * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
23997         New macros.
23998         (can_inline_edge_p): Relax option matching for always inline functions.
24000 2015-03-26  Uros Bizjak  <ubizjak@gmail.com>
24002         PR target/65561
24003         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
24004         Check operand 4 and operand 0 for equality.
24005         (avx512f_vextract<shuffletype>32x4_1_maskm):
24006         Check operand 6 and operand 0 for equality.
24007         (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
24008         for equality.
24009         (vec_extract_hi_<mode>_maskm): Ditto.
24011 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24013         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
24014         dead calls back to live.
24015         (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
24016         cross check to ...
24017         (cgraph_node::verify_node): ... here; verify only callee edges,
24018         not caller.
24019         * cif-code.def (CILK_SPAWN): New code.
24021 2015-03-26  Jan Hubicka  <hubicka@ucw.cz>
24023         * ipa-inline-analysis.c (redirect_to_unreachable): New function.
24024         (edge_set_predicate): Use it to mark unreachable edges.
24025         (inline_summary_t::duplicate): Remove unnecesary code.
24026         (remap_edge_summaries): Likewise.
24027         (dump_inline_summary): Report contains_cilk_spawn.
24028         (compute_inline_parameters): Compute contains_cilk_spawn.
24029         (inline_read_section, inline_write_summary): Stream
24030         contains_cilk_spawn.
24031         * ipa-inline.c (can_inline_edge_p): Do not touch
24032         DECL_STRUCT_FUNCTION that may not be available;
24033         use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
24034         remove check for callee_fun->can_throw_non_call_exceptions and
24035         replace it by optimization attribute check; check for flag_exceptions.
24036         * ipa-inline-transform.c (inline_call): Maintain
24037         DECL_FUNCTION_PERSONALITY
24038         * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
24040 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
24042         PR tree-optimization/65551
24043         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
24044         TYPE_PRECISION only for INTEGRAL_TYPE_P types.
24046 2015-03-26  Richard Biener  <rguenther@suse.de>
24048         PR middle-end/65555
24049         * tree-cfg.c (verify_gimple_call): Do not require a call to
24050         have no LHS if it wasn't recognized as control altering yet.
24052 2015-03-26  Jakub Jelinek  <jakub@redhat.com>
24054         PR tree-optimization/64715
24055         * passes.def: Add another instance of pass_object_sizes before ccp1.
24056         * tree-object-size.c (pass_object_sizes::execute): In
24057         first_pass_instance, only handle __bos (, 1) and __bos (, 3)
24058         calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
24059         __bos result and the computed constant.  Remove redundant
24060         checks, obsoleted by gimple_call_builtin_p test.
24062         * var-tracking.c (variable_tracking_main_1): Don't track
24063         variables for targetm.no_register_allocation targets.
24065 2015-03-26  Oleg Endo  <olegendo@gcc.gnu.org>
24067         * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
24068         * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
24070 2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
24072         PR target/65569
24073         * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
24074         XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
24075         0.0 is correctly setup.
24076         (extenddftf2_internal): Likewise.
24078 2015-03-25  Sebastian Pop  <s.pop@samsung.com>
24080         PR tree-optimization/65177
24081         * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
24082         (bb_in_bbs): New.
24083         (duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
24084         edges not adjacent on the path to the original code.
24086 2015-03-25  Uros Bizjak  <ubizjak@gmail.com>
24088         PR bootstrap/65537
24089         * doc/install.texi (Building a native compiler): Document new
24090         bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
24091         configuration assumes that the host supports the linker plugin.
24093 2015-03-25  Ilya Enkovich  <ilya.enkovich@intel.com>
24095         PR target/65508
24096         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
24097         chain for generated call.
24099 2015-03-25  Richard Biener  <rguenther@suse.de>
24101         * passes.c (pass_manager::execute_early_local_passes): Guard
24102         execution of pass_chkp_instrumentation_passes with
24103         flag_check_pointer_bounds.
24104         (pass_chkp_instrumentation_passes::gate): Likewise.
24106 2015-03-25  Martin Liska  <mliska@suse.cz>
24108         PR tree-optimization/65538
24109         * symbol-summary.h (function_summary::~function_summary):
24110         Relese memory for allocated summaries.
24111         (function_summary::release): New function.
24113 2015-03-25  Jakub Jelinek  <jakub@redhat.com>
24115         PR lto/65515
24116         * lto-streamer-out.c (DFS::worklist): New struct.
24117         (DFS::worklist_vec): New data member.
24118         (DFS::next_dfs_num): Remove.
24119         (DFS::DFS): Rewritten using worklist instead of recursion,
24120         using most of code from DFS::DFS_write_tree.
24121         (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
24122         pass it to DFS_write_tree calls.
24123         (DFS::DFS_write_tree): Remove SINGLE_P argument, after
24124         quick initial checks push it into worklist_vec and return.
24126 2015-03-25  Richard Biener  <rguenther@suse.de>
24128         PR middle-end/65519
24129         * genmatch.c (expr::gen_transform): Re-write to avoid
24130         using gimple_build.
24132 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
24134         * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
24136 2015-03-25  Bin Cheng  <bin.cheng@arm.com>
24138         * config/arm/arm.opt (print_tune_info): New option.
24139         * config/arm/arm.c (arm_print_tune_info): New function.
24140         (arm_file_start): Call arm_print_tune_info.
24141         * config/arm/arm-protos.h (struct tune_params): Add comment.
24142         * doc/invoke.texi (@item -mprint-tune-info): New item.
24143         (-mtune): mention it in ARM Option Summary.
24145 2015-03-25  DJ Delorie  <dj@redhat.com>
24147         * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
24148         correct clause.
24150 2015-03-24  Jan Hubicka  <hubicka@ucw.cz>
24151             Martin Liska  <mliska@suse.cz>
24153         * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
24154         * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
24155         (sem_item::add_type): New function.
24156         (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
24157         (sem_function::compare_polymorphic_p): Do not consider indirect calls.
24158         (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
24159         (sem_function::equals_wpa): Fix typo.
24160         * ipa-icf.h (sem_item::add_type): New function.
24161         (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
24162         order.
24164 2015-03-24  Jakub Jelinek  <jakub@redhat.com>
24166         PR tree-optimization/65533
24167         * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
24168         with swapped operands, call vect_free_slp_tree on
24169         SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
24170         vector.
24172 2015-03-24  Richard Biener  <rguenther@suse.de>
24174         PR middle-end/65517
24175         * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
24176         for fixup if necessary.
24178 2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>
24180         * doc/extend.texi (Function Attributes): Add @cindex entries
24181         for all attributes and regularize their format.  Delete text
24182         about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
24183         information about "eightbit_data", "tiny_data", and "model"
24184         variable attributes to the Variable Attributes section.  Fix
24185         some obvious typos and copy-editing issues.
24186         (Variable Attributes, Type Attributes): Likewise add/fix
24187         @cindex entries for all attributes.
24189 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
24191         PR target/65523
24192         * tree-chkp.c (chkp_build_returned_bound): Ignore
24193         ERF_RETURNS_ARG calls if they have fewer than needed arguments.
24195 2015-03-23  Oleg Endo  <olegendo@gcc.gnu.org>
24197         PR target/65505
24198         * config/sh/predicates.md (simple_mem_operand,
24199         displacement_mem_operand): Add test for reg.
24200         (short_displacement_mem_operand): Test for displacement_mem_operand
24201         before invoking sh_disp_addr_displacement.
24202         * config/sh/constraints.md (Sdd, Sra): Simplify.
24203         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
24204         Remove redundant displacement_mem_operand tests.
24206 2015-03-23  Georg-Johann Lay  <avr@gjlay.de>
24208         PR target/65296
24209         * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
24210         the same -mmcu=MCU more than once.
24212 2015-03-23  Jakub Jelinek  <jakub@redhat.com>
24214         PR bootstrap/65522
24215         * ipa-devirt.c: Remove duplicate demangle.h include.
24217         PR target/65504
24218         * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
24219         on the pseudo.
24220         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
24221         REG_POINTER on *destptr after adjusting it for prologue size.
24223         PR ipa/65521
24224         * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
24225         ultimate_alias_target ()->order ints instead of
24226         ultimate_alias_target () pointers.
24228 2015-03-23  Richard Biener  <rguenther@suse.de>
24230         PR tree-optimization/65518
24231         * tree-vect-stmts.c (vectorizable_load): Reject single-element
24232         interleaving cases we generate absymal code for.
24234 2015-03-23  Richard Biener  <rguenther@suse.de>
24236         PR tree-optimization/65494
24237         * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
24238         matches here.
24239         (vect_analyze_slp_instance): But do that here, always and once.
24241 2015-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24243         * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
24244         adding T or multiplying by T+1 and subracting T.
24246 2015-03-22  Jeff Law  <law@redhat.com>
24248         PR rtl-optimization/64317
24249         * Makefile.in (OBJS): Add gcse-common.c
24250         * gcse.c: Include gcse-common.h
24251         (struct modify_pair_s): Move structure definition to gcse-common.h
24252         (compute_transp): Move function to gcse-common.c.
24253         (canon_list_insert): Similarly.
24254         (record_last_mem_set_info): Break out some code and put it into
24255         gcse-common.c.  Call into the new common code.
24256         (compute_local_properties): Pass additional arguments to compute_transp.
24257         * postreload-gcse.c: Include gcse-common.h and df.h
24258         (modify_mem_list_set, blocks_with_calls): New variables.
24259         (modify_mem_list, canon_modify_mem_list, transp): Likewise.
24260         (get_bb_avail_insn): Pass in the expression index too.
24261         (alloc_mem): Allocate memory for the new bitmaps and lists.
24262         (free_mem): Free memory for the new bitmaps and lists.
24263         (insert_expr_in_table): Record a bitmap index for each entry we
24264         add to the table.
24265         (record_last_mem_set_info): Call into common code in gcse-common.c.
24266         (get_bb_avail_insn): If no available insn was found in the requested
24267         BB.  If BB has a single predecessor, see if the expression is
24268         transparent in BB and available in that single predecessor.
24269         (compute_expr_transp): New wrapper for compute_transp.
24270         (eliminate_partially_redundant_load): Pass expression's bitmap_index
24271         to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
24272         (gcse_after_reload_main): If there are elements in the hash table,
24273         then compute transparency for all the elements in the hash table.
24274         * gcse-common.h: New file.
24275         * gcse-common.c: New file.
24277 2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>
24279         * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
24280         as an adjective.
24281         (System Headers): Likewise.
24282         (Ifdef): Likewise.
24283         (Traditional macros): Likewise.
24284         (Invocation): Likewise.
24285         (Option Index): Likewise.
24286         * doc/cppopts.texi (-M): Likewise.
24287         (-finput-charset): Likewise.
24288         (--help): Likewise.
24289         * doc.invoke.texi (AVR Options): Likewise.
24290         (V850 Options): Likewise.
24292 2015-03-22  Jan Hubicka  <hubicka@ucw.cz>
24294         PR ipa/65475
24295         * ipa-devirt.c: Include demangle.h
24296         (odr_type_d): Add field rtti_broken.
24297         (odr_subtypes_equivalent_p): Do not require name to match.
24298         (compare_virtual_tables): Fix typo; if type already has ODR violation,
24299         bypass the tests; be ready for function referneces in vtables that are
24300         not DECL_VIRTUAL; make warnings to be OPT_Wodr.
24301         (warn_odr): Give up for nameless types.
24302         (warn_types_mismatch): Report mismatch in mangled names;
24303         report mismatch in anonymous namespaces; look into component types to
24304         give useful error; report when mismatch is dragged in from other ODR
24305         type.
24306         (odr_types_equivalent_p): Match types for being polymorphic; avoid
24307         duplicated diagnostics.
24308         (add_type_duplicate): Reorder checks so more informative ones come
24309         first; fix typo; do not output "the extra base is defined here" when
24310         we did not warn.
24311         (BINFO_N_BASE_BINFOS): Relax sanity check.
24313 2015-03-22  Martin Liska  <mliska@suse.cz>
24314             Jakub Jelinek  <jakub@redhat.com>
24316         * config/i386/i386.c (def_builtin): Set deferred_isa_values for
24317         masks that can potentially include a builtin.
24318         (ix86_add_new_builtins): Introduce fast filter for isa values
24319         that cannot trigger builtin inclusion.
24321 2015-03-22  Martin Liska  <mliska@suse.cz>
24323         * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
24324         (sem_item::update_hash_by_local_refs): Likewise.
24325         (sem_variable::get_hash): Empty line is fixed.
24326         (sem_item_optimizer::execute): Include adding of hash references.
24327         (sem_item_optimizer::update_hash_by_addr_refs): New function.
24328         (sem_item_optimizer::build_hash_based_classes): Use local hash.
24329         * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
24330         (sem_item::update_hash_by_local_refs): Likewise.
24332 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24334         PR ipa/65502
24335         * ipa-comdats.c (enqueue_references): Walk through thunks.
24336         (ipa_comdats): Likewise.
24337         (set_comdat_group_1): New function.
24339 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24341         PR ipa/65475
24342         * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
24343         non-polymorphic
24345 2015-03-22  Dave Korn  <dave.korn.cygwin@gmail.com>
24346             Gerald Pfeifer  <gerald@pfeifer.com>
24348         * doc/contrib.texi (Contributors): Update entry for Danny Smith.
24350 2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
24351             Sandra Loosemore  <sandra@codesourcery.com>
24353         * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
24354         function parameter declaration.
24355         * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
24356         Update arguments to nios2_adjust_call_address().
24357         (sibcall_internal): Rename from *sibcall.
24358         (sibcall_value_internal): Rename from *sibcall_value.
24359         * config/nios2/nios2.c (nios2_emit_add_constant): New function.
24360         (nios2_large_got_address): Add target temp reg parameter.
24361         (nios2_got_address): Adjust call to nios2_large_got_address, add
24362         force_reg around it.
24363         (nios2_load_pic_address): Add target temp reg parameter, replace call
24364         to nios2_got_address with corresponding code.
24365         (nios2_legitimize_constant_address): Update call to
24366         nios2_load_pic_address.
24367         (nios2_adjust_call_address): Add temp reg parameter, update PIC case
24368         to use temp reg for PIC loading purposes.
24369         (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
24370         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24371         (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
24373 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24375         * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
24376         usage of "the @option{...}".
24377         (-Wopenmp-simd): Likewise.
24378         (-fsanitize-recover): Likewise.
24379         (-fsanitize-undefined-trap-on-error): Likewise.
24380         (-flto): Likewise.
24381         (tracer-dynamic-coverage-feedback): Likewise.
24382         (reorder-block-duplicate-feedback): Likewise.
24383         (loop-unroll-jam-size): Likewise.
24384         (-B): Likewise.
24385         (-I-): Likewise.
24386         (-mabs=legacy): Likewise.
24387         (-mupper-regs-df): Likewise.
24388         (-mupper-regs-sf): Likewise.
24389         (-mpointers-to-nested-functions): Likewise.
24391 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24393         * doc/extend.texi (Cilk Plus Builtins): Add markup.
24395 2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>
24397         * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
24398         additional index entries and cross-references.
24399         (-fchkp-check-incomplete-type): Likewise.
24400         (-fchkp-first-field-has-own-bounds): Likewise.
24401         (-fchkp-narrow-to-innermost-array): Likewise.
24402         (-fchkp-use-fast-string-functions): Likewise.
24403         (-fchkp-use-nochk-string-functions): Likewise.
24404         (-fchkp-use-static-const-bounds): Likewise.
24405         (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
24406         (-fchkp-instrument-marked-only): Likewise.
24407         (-fchkp-use-wrappers): Likewise.
24408         (-static-libmpx): Likewise.
24409         (-static-libmpxwrappers): Likewise.
24410         * doc/extend.texi (bnd_legacy): Likewise.
24411         (bnd_instrument): Likewise.
24412         (bnd_variable_size): Likewise.
24413         (Pointer Bounds Checker builtins): Likewise.
24415 2015-03-21  Tom de Vries  <tom@codesourcery.com>
24417         PR tree-optimization/65458
24418         * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
24419         * cgraph.h (cgraph_node): Add parallelized_function field.
24420         * lto-cgraph.c (lto_output_node): Write parallelized_function field.
24421         (input_overwrite_node): Read parallelized_function field.
24422         * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
24423         parallelized_function on cgraph_node for child_fn.
24424         * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
24425         Remove include of gt-tree-parloops.h.
24426         (parallelized_functions): Remove static variable.
24427         (parallelized_function_p): Rewrite using parallelized_function field of
24428         cgraph_node.
24429         (create_loop_fn): Remove adding to parallelized_functions.
24430         * Makefile.in (GTFILES): Remove tree-parloops.c
24432 2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>
24434         PR rtl-optimization/64366
24435         * lra.c (lra_update_insn_regno_info): Consider regs in
24436         CALL_INSN_FUNCTION_USAGE memory.
24438 2015-03-20  Richard Biener  <rguenther@suse.de>
24440         PR middle-end/64715
24441         * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
24442         for type comparison and gcc_checking_assert.
24443         (chrec_fold_plus_poly_poly): Likewise.
24444         (chrec_fold_multiply_poly_poly): Likewise.
24445         (chrec_convert_1): Likewise.
24446         * gimplify.c (gimplify_expr): Remove premature folding of
24447         &X + CST to &MEM[&X, CST].
24449 2015-03-20  Jan Hubicka  <hubicka@ucw.cz>
24451         * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
24452         already is final.
24453         (ipa_inline): Recompute inline_failed codes.
24454         * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
24455         USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
24456         CIF_FINAL_ERROR.
24458 2015-03-20  Uros Bizjak  <ubizjak@gmail.com>
24460         PR rtl-optimization/60851
24461         * recog.c (constrain_operands): Accept a pseudo register before reload
24462         for LRA enabled targets.
24464 2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
24466         PR target/65240
24467         * config/rs6000/predicates.md (easy_fp_constant): Remove special
24468         -ffast-math handling that kept non-0 constants live in the RTL
24469         until reload.  Remove logic testing the number of instructions it
24470         took to create a constant in a GPR that was never used, due to a
24471         test for soft-float earlier.
24472         (memory_fp_constant): Delete, no longer used.
24474         * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
24475         alternatives for loading non-0 constants into GPRs for hard
24476         floating point that is no longer needed due to changes in
24477         easy_fp_constant.  Add support for loading 0.0 into GPRs.
24478         (mov<mode>_hardfloat32): Likewise.
24479         (mov<mode>_hardfloat64): Likewise.
24480         (mov<mode>_64bit_dm): Likewise.
24481         (movtd_64bit_nodm): Likewise.
24482         (pre-reload move FP constant define_split): Delete define_split,
24483         since it is no longer used.
24484         (extenddftf2_internal): Remove GHF constraints that are not valid
24485         for extenddftf2.
24487 2015-03-19  Vladimir Makarov  <vmakarov@redhat.com>
24489         PR rtl-optimization/63491
24490         * lra-constraints.c (check_and_process_move): Use src instead of
24491         sreg.  Remove some dead code.
24493 2015-03-19  Jan Hubicka  <hubicka@ucw.cz>
24495         PR ipa/65380
24496         * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
24497         (sem_variable::merge): Likewise.
24499 2015-03-19  Martin Liska  <mliska@suse.cz>
24501         PR ipa/65465
24502         * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
24503         all fields of cgraph_thunk_info.
24505 2015-03-19  Ilya Enkovich  <ilya.enkovich@intel.com>
24507         * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
24508         clone instrumented thunks.
24510 2015-03-19  Richard Biener  <rguenther@suse.de>
24512         Revert
24513         2015-03-10  Richard Biener  <rguenther@suse.de>
24515         PR middle-end/63155
24516         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
24517         * tree-ssa-coalesce.c: Include timevar.h.
24518         (attempt_coalesce): Handle graph being NULL.
24519         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
24520         Split out abnormal coalescing to ...
24521         (perform_abnormal_coalescing): ... this function.
24522         (coalesce_ssa_name): Perform abnormal coalescing without computing
24523         live/conflict.
24524         (verify_ssa_coalescing_worker): New function.
24525         (verify_ssa_coalescing): Likewise.
24527 2015-03-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24528             Jakub Jelinek  <jakub@redhat.com>
24530         PR sanitizer/65400
24531         * tsan.c (instrument_gimple): Clear tail call flag on
24532         calls.
24534 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
24536         PR sanitizer/65400
24537         * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
24538         call in the return bb.
24539         (find_split_points): Add RETURN_BB argument, don't call
24540         find_return_bb.
24541         (split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
24542         if true append TSAN_FUNC_EXIT internal call after the call to
24543         the split off function.
24544         (execute_split_functions): Call find_return_bb here.
24545         Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
24546         Adjust find_split_points and split_function calls.
24548 2015-03-18  DJ Delorie  <dj@redhat.com>
24550         * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
24551         (iorqi3_virt): Likewise.
24553 2015-03-18  Tom de Vries  <tom@codesourcery.com>
24555         * tree-parloops.c (parallelize_loops): Make static.
24556         * tree-parloops.h (parallelize_loops): Remove extern declaration.
24558 2015-03-18  Andrew Stubbs  <ams@codesourcery.com>
24560         PR middle-end/64491
24561         Revert:
24562         2014-11-20  Andrew Stubbs  <ams@codesourcery.com>
24564         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
24565         condition would be removed due to undefined behaviour.
24567 2015-03-18  Martin Liska  <mliska@suse.cz>
24569         PR ipa/65432
24570         * cgraph.c (cgraph_node::get_create): Remove unnecessary
24571         xstrdup_for_dump wrapper.
24572         * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
24573         sem_item::name.
24574         (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
24575         with xstrdup_for_dump.
24576         (sem_variable::equals): Likewise.
24577         (sem_item_optimizer::read_section): Use symtab_node::name instead of
24578         sem_item::name.
24579         (sem_item_optimizer::parse_funcs_and_vars): Likewise.
24580         (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
24581         symtab_node::asm_name with xstrdup_for_dump.
24582         (congruence_class::dump): Use symtab_node::name instead of
24583         sem_item::name.
24584         * ipa-icf.h (symtab_node::name): Remove.
24585         (symtab_node::asm_name): Likewise.
24587 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
24589         PR tree-optimization/65450
24590         * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
24591         function.
24592         (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
24593         it instead of duplicate_ssa_name_ptr_info.
24595         PR target/65222
24596         * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
24598 2015-03-18  Richard Biener  <rguenther@suse.de>
24600         * tree-data-ref.h (struct access_matrix): Remove.
24601         (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
24602         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
24603         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
24604         (am_vector_index_for_loop): Likewise.
24605         (struct data_reference): Remove access_matrix member.
24606         (DR_ACCESS_MATRIX): Remove.
24607         (lambda_vector_new): Add comment.
24608         (lambda_matrix_new): Use XOBNEWVEC.
24610 2015-03-18  Richard Biener  <rguenther@suse.de>
24612         * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
24613         (pass_ch::execute): Cleanup the CFG only if we did sth.
24614         * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
24616 2015-03-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24618         * expmed.c (synth_mult): Use std::swap instead of manually
24619         swapping algorithms.
24621 2015-03-18  Jakub Jelinek  <jakub@redhat.com>
24623         PR target/65078
24624         * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
24626 2015-03-16  Georg-Johann Lay  <avr@gjlay.de>
24628         PR target/65296
24629         * config/avr/avr.opt (-nodevicelib): New option.
24630         * doc/invoke.texi (AVR Options): Document it.
24631         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
24632         libgcc.a, libc.a, libm.a.
24633         * config/avr/specs.h: Same.
24634         * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
24635         which don't (directly) depend on the device.  Print more help.
24636         (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
24637         (*cpp): Don't define __AVR_DEV_LIB_NAME__.
24638         * config/avr/driver-avr.c: Remove -nodevicelib from option list in
24639         case of an error.
24640         (avr_devicespecs_file): Use suffix "%s" instead of absolute path
24641         for specs file name.
24642         * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
24643         * config/avr/avr-mcus.def: Adjust initializers and comments.
24645 2015-03-16  Jan Hubicka  <hubicka@ucw.cz>
24647         * tree-sra.c (ipa_sra_preliminary_function_checks): Use
24648         DECL_ONE_ONLY to check if decl is one only.
24649         * ipa-split.c (consider_split): Limit splitt of one only functions.
24651 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
24653         PR tree-optimization/65427
24654         * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
24655         functions.
24656         (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
24658 2015-03-16  Marek Polacek  <polacek@redhat.com>
24660         * cgraph.h (add_new_static_var): Remove declaration.
24661         * varpool.c (add_new_static_var): Remove function.
24663 2015-03-16  Jakub Jelinek  <jakub@redhat.com>
24665         * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
24666         instead of vec<tree> * with vec_alloc and release for args.
24667         Adjust all users.
24669         PR middle-end/65431
24670         * omp-low.c (delete_omp_context): Only splay_tree_delete
24671         reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
24672         is_gimple_omp_oacc contexts.  Don't look at ctx->outer.
24674 2015-03-16  Max Ostapenko  <m.ostapenko@partner.samsung.com>
24676         PR sanitizer/64820
24677         * cfgexpand.c (align_base): New function.
24678         (alloc_stack_frame_space): Call it.
24679         (expand_stack_vars): Align prev_frame to be sure
24680         data->asan_vec elements aligned properly.
24682 2015-03-16  Eric Botcazou  <ebotcazou@adacore.com>
24684         PR middle-end/65409
24685         * expr.c (store_field): Do not do a direct block copy if the source is
24686         a PARALLEL with BLKmode.
24688 2015-03-16  Tom de Vries  <tom@codesourcery.com>
24690         PR middle-end/65414
24691         Revert:
24692         2015-03-12  Tom de Vries  <tom@codesourcery.com>
24694         PR rtl-optimization/64895
24695         * lra-lives.c (check_pseudos_live_through_calls): Use
24696         actual_call_used_reg_set instead of call_used_reg_set, if available.
24698 2015-03-16  Alan Modra  <amodra@gmail.com>
24700         PR target/63150
24701         * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
24702         Modify Z->r bswapdi splitter to use dest in place of scratch.
24703         In r->Z and Z->r bswapdi splitter rename word_high, word_low
24704         to word1, word2 and rearrange logic to suit.
24705         (bswapdi2_64bit): Remove early clobber on Z->r alternative.
24706         (bswapdi2_ldbrx): Likewise.  Remove '??' on r->r.
24707         (bswapdi2_32bit): Remove early clobber on Z->r alternative.
24708         Add one '?' on r->r.  Modify Z->r splitter to avoid need for
24709         early clobber.
24711 2015-03-14  Jakub Jelinek  <jakub@redhat.com>
24713         PR tree-optimization/65369
24714         * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
24715         Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
24716         (vs - 1) * TYPE_SIZE_UNIT (elem_type).
24718         PR tree-optimization/65418
24719         * tree-ssa-reassoc.c (extract_bit_test_mask): If there
24720         are casts in the first PLUS_EXPR operand, ensure tbias and
24721         *totallowp are in the inner type.
24723         PR rtl-optimization/65401
24724         * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
24725         argument.  If true, adjust_address_nv of x with big-endian
24726         correction for the mode widening to GET_MODE (y).
24727         (make_field_assignment): Don't do MEM mode widening here.
24728         Use MEM_P instead of GET_CODE == MEM.
24730 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
24732         * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
24733         the external decls.
24735 2015-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24737         PR target/64600
24738         * config/arm/arm.c (arm_gen_constant, AND case): Use
24739         ARM_SIGN_EXTEND when constructing AND mask.
24741 2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24743         * graph.c (print_graph_cfg): Make function names visible and append
24744         parenthesis to it.  Also make groups of basic blocks belonging to the
24745         same function visible.
24747 2015-03-12  Richard Biener  <rguenther@suse.de>
24749         PR middle-end/44563
24750         * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
24751         to avoid quadratic behavior with inline expansion splitting blocks.
24752         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
24753         with the successor if the predecessor will be merged with it.
24754         * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
24755         entry block with its successor.
24757 2015-03-13  Richard Biener  <rguenther@suse.de>
24759         PR middle-end/44563
24760         * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
24761         (cleanup_tree_cfg_1): Do not call it.
24762         (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
24763         (fixup_noreturn_call): Mark the stmt as control altering.
24764         * tree-cfg.c (execute_fixup_cfg): Do not dump the function
24765         here.
24766         (pass_data_fixup_cfg): Produce a dump file.
24767         * tree-ssa-dom.c: Include tree-cfgcleanup.h.
24768         (need_noreturn_fixup): New global.
24769         (pass_dominator::execute): Fixup queued noreturn calls.
24770         (optimize_stmt): Queue calls that became noreturn for fixup.
24771         * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
24772         * tree-ssa-pre.c: Include tree-cfgcleanup.h.
24773         (el_to_fixup): New global.
24774         (eliminate_dom_walker::before_dom_childre): Queue calls that
24775         became noreturn for fixup.
24776         (eliminate): Fixup queued noreturn calls.
24777         * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
24778         (substitute_and_fold_dom_walker): New member stmts_to_fixup.
24779         (substitute_and_fold_dom_walker::before_dom_children): Queue
24780         alls that became noreturn for fixup.
24781         (substitute_and_fold): Fixup queued noreturn calls.
24783 2015-03-12  Jan Hubicka  <hubicka@ucw.cz>
24785         * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
24786         and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
24787         are building; for methods check ODR type of class they belong to if
24788         they may lead to a polymorphic call.
24789         (sem_function::compare_polymorphic_p): Be bit smarter about testing
24790         when function may lead to a polymorphic call.
24791         (sem_function::compare_type_list): Remove.
24792         (sem_variable::equals): Update use of compatible_types_p.
24793         (sem_variable::parse_tree_refs): Remove.
24794         (sem_item_optimizer::filter_removed_items): Do not filter out CXX
24795         cdtor.
24796         * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
24797         matching here.
24798         (func_checker::compatible_polymorphic_types_p): Break out from ...
24799         (unc_checker::compatible_types_p): ... here.
24800         * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
24801         Declare.
24802         (unc_checker::compatible_types_p): Update.
24803         * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
24804         Remove.
24806 2015-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24808         PR rtl-optimization/65235
24809         * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
24810         When first element of vec_concat is const_int, calculate its size
24811         using second element.
24813 2015-03-12  Richard Biener  <rguenther@suse.de>
24815         PR middle-end/65270
24816         * fold-const.c (operand_equal_p): Fix ordering of resetting
24817         OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
24819 2015-03-12  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24821         * config/s390/s390.c (s390_reorg): Move code to output nops after label
24822         to s390_reorg ().
24823         (s390_asm_output_function_label): Likewise.
24824         * config/s390/s390.c (s390_asm_output_function_label):
24825         Fix function label alignment with -mhtopatch.
24826         * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
24827         UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
24828         ("nop_2_byte"): New define_insn.
24829         ("nop_4_byte"): Likewise.
24830         ("nop_6_byte"): Likewise.
24831         * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
24832         * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
24834 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
24836         PR target/65103
24837         * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
24838         register.
24840 2015-03-12  Ilya Enkovich  <ilya.enkovich@intel.com>
24842         PR target/65044
24843         * toplev.c (process_options): Restrict Pointer Bounds Checker
24844         usage with Address Sanitizer.
24846 2015-03-12  Richard Biener  <rguenther@suse.de>
24848         * tree-cfg.c (gimple_split_block): Remove loop finding stmt
24849         to split on.
24850         * omp-low.c (expand_omp_taskreg): Split block before removing
24851         the stmt.
24852         (expand_omp_target): Likewise.
24853         * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
24854         * tree-parloops.c (create_call_for_reduction_1): Pass a proper
24855         stmt to split_block.
24857 2015-03-12  Tom de Vries  <tom@codesourcery.com>
24859         PR rtl-optimization/64895
24860         * lra-lives.c (check_pseudos_live_through_calls): Use
24861         actual_call_used_reg_set instead of call_used_reg_set, if available.
24863 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
24865         * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
24866         (cgraph_node::remove): Likewise.
24867         (cgraph_node::get_untransformed_body): Likewise.
24868         * varpool.c (varpool_node::remove): Likewise.
24869         (varpool_node::get_constructor): Add sanity check.
24871 2015-03-11  Sandra Loosemore  <sandra@codesourcery.com>
24873         * doc/invoke.texi (-fgnu89-inline): Remove discussion about
24874         old GCC versions.
24875         (-fabi-compat-version): Likewise.
24876         (-ffriend-injection): Likewise.
24877         (-Wdeclaration-after-statement): Likewise.
24878         (-fomit-frame-pointer): Likewise.
24879         (-ftree-coalesce-inlined-vars): Likewise.
24880         (-fvisibility=): Likewise.
24881         * doc/extend.texi (Typeof): Likewise.
24882         (Zero Length): Likewise.
24883         (Escaped Newlines): Likewise.
24884         (Compound Literals): Likewise.
24885         (Function Attributes): Likewise.
24886         (Label Attributes): Likewise.
24887         (Type Attributes): Likewise.
24888         (Function Names): Likewise.
24889         (Other Builtins): Likewise.
24890         (Function Specific Option Pragmas): Likewise.
24891         (C++ Interface): Likewise.
24893 2015-03-11  Thomas Schwinge  <thomas@codesourcery.com>
24895         * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
24897 2015-03-11  Marek Polacek  <polacek@redhat.com>
24899         PR tree-optimization/65388
24900         * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
24902 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
24904         PR target/65296
24905         * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
24906         * configure: Regenerate.
24907         * config.in: Regenerate.
24908         * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
24909         [-mn-flash]: Document it.
24910         [__AVR_ARCH__]: Document avrtiny.
24912         * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
24913         (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
24914         (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
24916 2015-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24918         * doc/invoke.texi: Add missing cpu values (z196, zEC12).
24920 2015-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24922         PR target/65242
24923         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
24924         allow reloads of PLUS in floating point/VSX registers.
24926 2015-03-11  Junmo Park  <junmoz.park@samsung.com>
24928         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
24929         crypto_sha256_fast.
24930         (cortex_a57_crypto_complex): Add crypto_sha256_slow.
24932 2015-03-11  Richard Biener  <rguenther@suse.de>
24934         PR tree-optimization/65310
24935         * tree-sra.c (build_ref_for_offset): Also preserve larger
24936         alignment.
24938 2015-03-11  Marat Zakirov  <m.zakirov@samsung.com>
24940         * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
24942 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
24944         PR target/65368
24945         * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
24946         new define_expand.
24947         (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
24949 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
24951         * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
24952         (sem_function::equals_wpa): ... here.
24954 2015-03-10  Marek Polacek  <polacek@redhat.com>
24955             Jakub Jelinek  <jakub@redhat.com>
24957         PR sanitizer/65367
24958         * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
24959         when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
24960         separately.
24962 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
24964         PR target/65286
24965         * config/rs6000/t-linux: For powerpc64* target set
24966         MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
24968 2015-03-10  Richard Biener  <rguenther@suse.de>
24970         PR middle-end/44563
24971         * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
24972         for redirect_all_calls.
24974 2015-03-10  Marek Polacek  <polacek@redhat.com>
24976         * gdbinit.in (pcfun): Define and document.
24978 2015-03-10  Ilya Verbin  <ilya.verbin@intel.com>
24980         * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
24981         of libgomp-plugin.h.
24982         (find_target_compiler): Support a case when the path to gcc is
24983         specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
24984         (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
24985         intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
24986         libgomp-plugin.h.
24987         (main): Use GCC_INSTALL_NAME as target_driver_name.
24988         * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
24989         define.
24990         (mkoffload.o): Remove obsolete include path and defines.
24991         (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
24993 2015-03-10  Richard Biener  <rguenther@suse.de>
24995         PR middle-end/63155
24996         * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
24997         * tree-ssa-coalesce.c: Include timevar.h.
24998         (attempt_coalesce): Handle graph being NULL.
24999         (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
25000         Split out abnormal coalescing to ...
25001         (perform_abnormal_coalescing): ... this function.
25002         (coalesce_ssa_name): Perform abnormal coalescing without computing
25003         live/conflict.
25004         (verify_ssa_coalescing_worker): New function.
25005         (verify_ssa_coalescing): Likewise.
25007 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
25009         PR target/65296
25010         * config.gcc (extra_options) [avr]: Remove.
25011         (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
25012         (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
25013         (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
25015         * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
25016         (-mmcu=): Add Var and MissingArgError properties.
25017         (-march=): Remove.
25018         * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
25019         * config/avr/t-multilib: Regenerate.
25020         * config/avr/specs.h: New file.
25021         * config/avr/driver-avr.c: New file.
25022         * config/avr/genopt.sh: Remove file.
25023         * config/avr/avr-tables.opt: Remove file.
25024         * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
25025         * config/avr/avr-c.c: Same.
25026         * avr-arch.h: Same.
25027         (avr_current_device): Remove proto.
25028         * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
25029         (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
25030         (EXTRA_SPEC_FUNCTIONS): Define.
25031         (avr_devicespecs_file): New specs function proto.
25032         (DRIVER_SELF_SPECS): Use device-specs-file spec function.
25033         * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
25034         (avr_current_device): Remove definition and usage.
25035         (avr_set_core_architecture): New static function.
25036         (avr_option_override): Use it.
25037         * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
25038         (mcu_name): New static array.
25039         (comparator, avr_archs_str, avr_mcus_str): New static functions.
25040         (avr_inform_devices, avr_inform_core_architectures): New functions.
25041         * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
25042         (avrlibc.h) [WITH_AVRLIBC]: Include.
25043         (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
25044         (print_mcu): Rewrite from scratch.
25045         * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
25046         Forward to avr-specific specs defined in device-specs file.
25047         * config/avr/t-avr (driver-avr.o): New rule.
25048         (avr-devices.o): Depend on avr-arch.h.
25049         (avr-mcus): No more depend on avr-tables.opt.
25050         (avr-tables.opt): Remove rule.
25051         (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
25053 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25055         * c-family/c.opt (fchkp-use-wrappers): New.
25056         * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
25057         (chkp_wrap_function): New.
25058         (chkp_build_instrumented_fndecl): Support wrapped
25059         functions.
25060         * doc/invoke.texi (-fcheck-pointer-bounds): New.
25061         (-fchkp-check-incomplete-type): New.
25062         (-fchkp-first-field-has-own-bounds): New.
25063         (-fchkp-narrow-bounds): New.
25064         (-fchkp-narrow-to-innermost-array): New.
25065         (-fchkp-optimize): New.
25066         (-fchkp-use-fast-string-functions): New.
25067         (-fchkp-use-nochk-string-functions): New.
25068         (-fchkp-use-static-bounds): New.
25069         (-fchkp-use-static-const-bounds): New.
25070         (-fchkp-treat-zero-dynamic-size-as-infinite): New.
25071         (-fchkp-check-read): New.
25072         (-fchkp-check-write): New.
25073         (-fchkp-store-bounds): New.
25074         (-fchkp-instrument-calls): New.
25075         (-fchkp-instrument-marked-only): New.
25076         (-fchkp-use-wrappers): New.
25077         (-static-libmpx): New.
25078         (-static-libmpxwrappers): New.
25080 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25082         * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
25083         (CHKP_SPEC): Add wrappers library.
25084         * c-family/c.opt (static-libmpxwrappers): New.
25086 2015-03-10  Ilya Enkovich  <ilya.enkovich@intel.com>
25088         * config/i386/linux-common.h (LIBMPX_LIBS): New.
25089         (LIBMPX_SPEC): New.
25090         (CHKP_SPEC): New.
25091         * gcc.c (CHKP_SPEC): New.
25092         (LINK_COMMAND_SPEC): Add CHKP_SPEC.
25093         * c-family/c.opt (static-libmpx): New.
25095 2015-03-10  Richard Biener  <rguenther@suse.de>
25097         PR middle-end/44563
25098         * cgraph.h (struct cgraph_edge_hasher): Add hash overload
25099         for compare_type.
25100         * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
25101         (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
25102         (cgraph_add_edge_to_call_site_hash): Likewise.
25103         (cgraph_node::get_edge): Likewise.
25104         (cgraph_edge::set_call_stmt): Likewise.
25105         (cgraph_edge::remove_caller): Likewise.
25107 2015-03-10  Chung-Ju Wu  <jasonwucj@gmail.com>
25109         * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
25110         (callee_saved_gpr_regs_size): ... this.
25111         (callee_saved_regs_first_regno): Rename to ...
25112         (callee_saved_first_gpr_regno): ... this.
25113         (callee_saved_regs_last_regno) Rename to ...
25114         (callee_saved_last_gpr_regno): ... this.
25115         * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
25116         variables.
25117         (nds32_initial_elimination_offset): Likewise.
25118         (nds32_expand_prologue): Likewise.
25119         (nds32_expand_epilogue): Likewise.
25120         (nds32_expand_prologue_v3push): Likewise.
25121         (nds32_expand_epilogue_v3pop): Likewise.
25122         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
25123         Adjust renamed variables.
25124         (nds32_output_stack_pop): Likewise.
25126 2015-03-10  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25128         * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
25129         code in comment.
25131 2015-03-10  Jakub Jelinek  <jakub@redhat.com>
25133         PR rtl-optimization/65321
25134         * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
25135         than shift mode.
25136         * var-tracking.c (use_narrower_mode): Likewise.
25138 2015-03-10  Jan Hubicka  <hubicka@ucw.cz>
25140         PR tree-optimization/65355
25141         * varasm.c (notice_global_symbol): Do not produce RTL.
25142         * symtab.c (symtab_node::can_increase_alignment_p): Check for section
25143         anchor.
25144         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
25145         check for section anchors.
25147 2015-03-10  Alan Modra  <amodra@gmail.com>
25149         PR target/65286
25150         * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
25151         to be single-arch by default.  Set cpu_is_64bit for powerpc64
25152         given --with-cpu=native.
25153         * config/rs6000/t-fprules: Do not set default MULTILIB vars.
25154         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
25155         and powerpc64le.
25156         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
25157         rs6000_isa_flags rather than TARGET_64BIT.
25159 2015-03-09  Yoshinori Sato  <ysato@users.sourceforge.jp>
25160             Kaz Kojima  <kkojima@gcc.gnu.org>
25162         * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
25164 2015-03-09  Jakub Jelinek  <jakub@redhat.com>
25166         PR lto/65361
25167         * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
25168         on a TREE_BINFO, instead use BINFO_TYPE.
25170 2015-03-09  Richard Biener  <rguenther@suse.de>
25172         PR middle-end/65270
25173         * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
25174         * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
25175         operand set OEP_ADDRESS_OF.  Clear it when recursing to non-bases
25176         of that.  When comparing dereferences compare alignment.
25177         When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
25179 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
25181         * ipa-inline-analysis.c (check_callers): Check
25182         node->can_remove_if_no_direct_calls_and_refs_p.
25183         (growth_likely_positive): Reorganize to call
25184         can_remove_if_no_direct_calls_p later.
25185         * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
25186         will_be_removed_from_program_if_no_direct_calls_p): Add
25187         will_inline parameter.
25188         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
25189         cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25190         Handle inliner case correctly.
25192 2015-03-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25194         PR tree-optimization/63743
25195         * cfgexpand.c (reorder_operands): Also reorder if only second operand
25196         had its definition forwarded by TER.
25198 2015-03-08  Jan Hubicka  <hubicka@ucw.cz>
25200         PR lto/65316
25201         * ipa-utils.h (types_odr_comparable): Add strict argument.
25202         * ipa-devirt.c: Fix whitespace;
25203         (odr_hasher): Remove.
25204         (odr_name_hasher, odr_vtable_hasher): New hashers.
25205         (can_be_name_hashed_p): New predicate.
25206         (hash_type_name): remove.
25207         (hash_odr_name): New.
25208         (odr_name_hasher::hash): new.
25209         (can_be_vtable_hashed_p): New.
25210         (hash_odr_vtable): New.
25211         (odr_vtable_hasher::hash): New.
25212         (types_same_for_odr): Add strict parameter.
25213         (types_odr_comparable): Likewise.
25214         (odr_name_hasher::equal): New.
25215         (odr_vtable_hasher::equal): New.
25216         (odr_name_hasher::remove): New.
25217         (odr_hash_type): Change to hash_table<odr_name_hasher>.
25218         (odr_vtable_hash_type): New.
25219         (odr_vtable_hash): New.
25220         (odr_subtypes_equivalent_p): Do strict comparsion.
25221         (add_type_duplicate): Merge type names; cleanup; avoid type
25222         duplicates.
25223         (register_odr_type): Initialize vtable hash.
25224         (build_type_inheritance_graph): Likewise
25225         (get_odr_type): Reorg to use two hashes.
25226         (dump_possible_polymorphic_call_targets): Move sanity check after debug
25227         output.
25228         (ipa_devirt): Dump type_inheritance_graph.
25229         (types_same_for_odr): Add strict mode.
25231 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25233         PR ipa/65334
25234         * cgraph.h (symtab_node): Add definition_alignment,
25235         can_increase_alignment_p and increase_alignment.
25236         * symtab.c (symtab_node::can_increase_alignment_p,
25237         increase_alignment_1, symtab_node::increase_alignment,
25238         symtab_node::definition_alignment): New.
25239         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
25240         can_increase_alignment_p.
25241         * tree-vectorizer.c (increase_alignment): Use increase_alignment.
25242         * tree-vect-stmts.c (ensure_base_align): Likewise.
25243         * varasm.c (function_section_1): Use definition_alignment.
25244         (assemble_start_function): Likewise.
25245         (emit_local): likewise.
25246         (build_constant_desc): Likewsie.
25247         (output_constant_def_contents): Likewise.
25248         (place_block_symbol): Likewise.
25249         (output_object_block): Likewise.
25251 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25253         PR ipa/65316
25254         * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
25255         when outputting debug.
25257 2015-03-07  Marek Polacek  <polacek@redhat.com>
25258             Martin Uecker  <uecker@eecs.berkeley.edu>
25260         PR sanitizer/65280
25261         * doc/invoke.texi: Update description of -fsanitize=bounds.
25263 2015-03-06  Wilco Dijkstra  <wilco.dijkstra@arm.com>
25265         * tree-ssa-phiopt.c (neg_replacement): Remove.
25266         (tree_ssa_phiopt_worker): Remove negate optimization.
25268 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25270         PR ipa/65302
25271         * value-prof.c (gimple_ic): Pure dead eh edges when needed.
25273 2015-03-06  Richard Biener  <rguenther@suse.de>
25275         PR middle-end/64928
25276         * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
25277         and liveout_obstack members.
25278         (calculate_live_on_exit): Remove.
25279         (calculate_live_ranges): Change declaration.
25280         * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
25281         (new_tree_live_info): Adjust.
25282         (calculate_live_ranges): Delete livein when not wanted.
25283         (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
25284         Deal with partly deleted live info.
25285         (loe_visit_block): Remove temporary bitmap by using
25286         bitmap_ior_and_compl_into.
25287         (live_worklist): Adjust accordingly.
25288         (calculate_live_on_exit): Make static.
25289         * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
25290         we do not need livein.
25292 2015-03-06  Jonathan Wakely  <jwakely@redhat.com>
25294         * real.c (real_from_string): Fix typo in assertion.
25296 2015-03-06  Alex Velenko  <alex.velenko@arm.com>
25298         * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
25299         the patch.
25301 2015-03-05  Jan Hubicka  <hubicka@ucw.cz>
25303         * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
25305 2015-03-05  Vladimir Makarov  <vmakarov@redhat.com>
25307         PR target/64342
25308         * lra-assigns.c (find_hard_regno_for): Rename to
25309         find_hard_regno_for_1.  Add a new parameter.
25310         (find_hard_regno_for): New function using find_hard_regno_for_1.
25312 2015-03-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25314         PR rtl-optimization/65067
25315         * expmed.c (store_bit_field, extract_bit_field): Reworked the
25316         strict volatile bitfield handling.
25318 2015-03-05  Martin Liska  <mliska@suse.cz>
25320         PR ipa/65318
25321         * ipa-icf.c (sem_variable::equals): Compare variables types.
25323 2015-03-05  Richard Henderson  <rth@redhat.com>
25325         PR target/65121
25326         * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
25327         correctly check weak symbol binding.
25329 2015-03-05  Steve Ellcey  <sellcey@imgtec.com>
25331         PR middle-end/65315
25332         * cfgexpand.c (expand_stack_vars): Update large_align to maximum
25333         needed alignment.
25335 2015-03-05  Martin Liska  <mliska@suse.cz>
25337         * ipa-inline.c (inline_small_functions): Set default value to
25338         prevent warning during bootstrap.
25339         * tree.h: Add pragma guard that ignores false positives during
25340         bootstrap.
25342 2015-03-05  Richard Biener  <rguenther@suse.de>
25344         PR tree-optimization/65310
25345         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
25346         Properly preserve alignment of the base of the access.
25348 2015-03-05  Richard Biener  <rguenther@suse.de>
25350         PR ipa/65270
25351         * ipa-icf-gimple.c (func_checker::compare_memory_operand):
25352         Compare dependence info.
25354 2015-03-05  Richard Biener  <rguenther@suse.de>
25356         PR middle-end/65233
25357         * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
25358         tree-into-ssa.h.
25359         (walk_ssa_copies): Revert last chage.  Instead do not walk
25360         SSA names registered for SSA update.
25362 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25364         PR ipa/65270
25365         * ipa-icf.c (sem_item::compare_cgraph_references): Compare
25366         vtable references for their containing type.
25367         (sem_function::equals_wpa): Compare TYPE_RESTRICT
25368         and type attributes.
25370 2015-03-04  Eric Botcazou  <ebotcazou@adacore.com>
25372         * fold-const.c (round_up_loc): Cast divisor to signed on all paths
25373         before negating it.
25374         * stor-layout.c (finalize_record_size): Revert latest change.
25376 2015-03-04  Andreas Tobler  <andreast@gcc.gnu.org>
25378         * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
25380 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25382         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
25383         for correct comdat handling.
25384         (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
25385         Likewise.
25386         * cgraph.h (call_for_symbol_and_aliases): Fix formating.
25387         (used_from_object_file_p_worker): Remove.
25388         (cgraph_node::only_called_directly_or_alised): Add
25389         used_from_object_file_p.
25390         * ipa-inline-analysis.c (growth_likely_positive): Optimie.
25391         * ipa-inline-transform.c (can_remove_node_now_p_1): Use
25392         can_remove_if_no_direct_calls_and_refs_p.
25394 2015-03-04  Nick Clifton  <nickc@redhat.com>
25396         * config/rl78/rl78.h (enum reg_class): Remove real registers from
25397         General register class.
25398         * config/rl78/rl78-real.md: Replace general register constraints
25399         with real+virtual register constraints.
25401 2015-03-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25403         * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
25404         from checking for -mhtm option.
25406 2015-03-03  Jan Hubicka  <hubicka@ucw.cz>
25408         * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
25409         (struct ipa_sra_check_caller_data): Add has_thunk field.
25410         (ipa_sra_check_caller): Check for thunk.
25411         (ipa_sra_preliminary_function_checks): Give up on function with
25412         thunks.
25413         (ipa_early_sra): Use call_for_symbol_and_aliases.
25415 2015-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
25417         PR target/65249
25418         * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
25419         called for __stack_chk_guard symbol.
25421 2015-03-03  DJ Delorie  <dj@redhat.com>
25423         * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
25424         inc/dec.
25425         (*addhi3_real): Likewise.
25426         * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
25427         pattern to match incrementing memory.
25428         * config/rl78/predicates.md (rl78_1_2_operand): New.
25429         * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
25430         it's the same and only mem.
25431         (rl78_alloc_physical_registers_op2): If there's effectively only
25432         one MEM, transcode it into HL.
25433         (rl78_far_p): Reject addresses that aren't legitimate.
25435 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25437         * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
25438         negating it.
25440         * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
25442 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
25444         Implement call0 ABI for xtensa
25445         * config/xtensa/constraints.md ("a" constraint): Include stack
25446         pointer in case of call0 ABI.
25447         ("q" constraint): Make empty in case of call0 ABI.
25448         ("D" constraint): Include stack pointer in case of call0 ABI.
25449         * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
25450         xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
25451         prototypes.
25452         * config/xtensa/xtensa.c (xtensa_callee_save_size): New
25453         variable.
25454         (xtensa_regno_to_class): Make it a local variable in the
25455         function xtensa_regno_to_class.
25456         (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
25457         macro, function prototype and implementation.
25458         (reg_nonleaf_alloc_order): Make it a local variable in the
25459         function order_regs_for_local_alloc.
25460         (xtensa_conditional_register_usage): New function.
25461         (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
25462         (xtensa_valid_move): Allow direct moves to stack pointer
25463         register in call0 ABI.
25464         (xtensa_setup_frame_addresses): Only spill register windows in
25465         windowed ABI.
25466         (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
25467         call0 ABI respectively.
25468         (xtensa_function_arg_1): Only mark a7 register for copying in
25469         windowed ABI.
25470         (xtensa_call_save_reg): New function.
25471         (compute_frame_size): Add space for callee saved register
25472         storage to the frame size in call0 ABI.
25473         (xtensa_expand_prologue): Generate code to set up stack frame
25474         and save callee-saved registers in call0 ABI.
25475         (xtensa_expand_epilogue): New function.
25476         (xtensa_set_return_address): New function.
25477         (xtensa_return_addr): Calculate return address in call0 ABI.
25478         (xtensa_builtin_saveregs): Only mark a7 register for copying and
25479         emit copying code in windowed ABI.
25480         (order_regs_for_local_alloc): Add preferred register allocation
25481         order for non-leaf function in call0 ABI.
25482         (xtensa_static_chain): Add atatic chain passing for call0 ABI.
25483         (xtensa_asm_trampoline_template): Add trampoline generation for
25484         call0 ABI.
25485         (xtensa_trampoline_init): Add trampoline initialization for
25486         call0 ABI.
25487         (xtensa_conditional_register_usage, xtensa_regno_to_class): New
25488         functions.
25489         * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
25490         (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
25491         (CALL_USED_REGISTERS): Modify to encode both windowed and call0
25492         ABI call-used registers.
25493         (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
25494         (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
25495         call0 ABI.
25496         (REG_CLASS_CONTENTS): Include all registers into the preferred
25497         reload registers set, adjust the set in the
25498         xtensa_conditional_register_usage.
25499         (xtensa_regno_to_class): Drop variable declaration.
25500         (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
25501         function.
25502         (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
25503         respectively.
25504         (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
25505         (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
25506         (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
25507         (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
25508         location in call0 ABI.
25509         (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
25510         stack adjustment size when handling exception.
25511         (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
25512         * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
25513         definitions.
25514         ("return" pattern): Generate ret.n/ret in call0 ABI.
25515         ("epilogue" pattern): Expand epilogue.
25516         ("nonlocal_goto" pattern): Use default in call0 ABI.
25517         ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
25518         emit eh_set_a0_* depending on ABI.
25519         ("eh_set_a0_windowed" pattern): Former eh_return pattern.
25520         ("eh_set_a0_call0", "blockage"): New patterns.
25522 2015-03-03  Martin Liska  <mliska@suse.cz>
25524         PR ipa/65287
25525         * ipa-icf.c (sem_variable::parse): Skip all alias variables.
25527 2015-03-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
25529         PR 65138/target
25530         * config/rs6000/rs6000-tables.opt: Regenerate table.
25532 2015-03-03  Renlin Li  <renlin.li@arm.com>
25534         * doc/md.texi (@item ^): Change ? into ^.
25536 2015-03-03  H.J. Lu  <hongjiu.lu@intel.com>
25538         * doc/tm.texi: Regenerated.
25540 2015-03-03  Max Filippov  <jcmvbkbc@gmail.com>
25542         * builtins.c (expand_builtin_return_addr): Add
25543         RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
25544         surrounding #ifdef.
25545         * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
25546         definition to 1.
25547         * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
25548         Likewise.
25549         * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
25550         undefined.
25551         * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
25552         paragraph.
25554 2015-03-03  Martin Jambor  <mjambor@suse.cz>
25555             Eric Botcazou  <ebotcazou@adacore.com>
25557         * tree-sra.c (ipa_sra_check_caller_data): New type.
25558         (has_caller_p): Removed.
25559         (ipa_sra_check_caller): New function.
25560         (ipa_sra_preliminary_function_checks): Use it.
25562 2015-03-03  Martin Liska  <mliska@suse.cz>
25564         * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
25565         instead of if branch.
25567 2015-03-03  Martin Liska  <mliska@suse.cz>
25569         PR ipa/65282
25570         * ipa-icf.c (sem_variable::equals): Fix wrong condition.
25572 2015-03-23  Jeff Law  <law@redhat.com>
25574         PR tree-optimization/65241
25575         * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
25576         hash table if INSERT is true.
25578 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25580         PR target/65296
25581         * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
25583 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25585         PR target/64331
25586         * config/avr/avr.c (context.h, tree-pass.h): Include them.
25587         (avr_pass_data_recompute_notes): New static variable.
25588         (avr_pass_recompute_notes): New class.
25589         (avr_register_passes): New static function.
25590         (avr_option_override): Call it.
25592 2015-03-03  Georg-Johann Lay  <avr@gjlay.de>
25594         Fix various problems with specs file generation.
25596         PR target/65296
25597         * config.gcc (extra_gcc_objs) [avr]: Remove.
25598         * config/avr/driver-avr.c: Remove file.
25599         * config/avr/t-avr (driver-avr.o): Remove rule.
25600         (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
25601         INCLUDES to build.  Depend on TM_H.
25602         * config/avr/gen-avr-mmcu-specs.c: Tidy up code.  Fix various
25603         build warnings.  Fix non-matching types and non-existing %-codes.
25604         (tm.h): Include.
25605         (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
25606         (*libgcc) [WITH_AVRLIBC]: Add "-lm".
25607         * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
25608         * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
25609         (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
25610         (LIBGCC_SPEC): Remove definitions.
25612 2015-03-03  Eric Botcazou  <ebotcazou@adacore.com>
25614         * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
25615         to create a register in testing mode.
25617 2015-03-03  Martin Liska  <mliska@suse.cz>
25618             Jan Hubicka  <hubicka@ucw.cz>
25620         PR ipa/65263
25621         * cgraph.c (cgraph_node::has_thunk_p): New function.
25622         * cgraph.h (cgraph_node::has_thunk_p: Likewise.
25623         * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
25624         (sem_function::merge): Assert is changed.
25626 2015-03-03  Martin Liska  <mliska@suse.cz>
25627             Martin Jambor  <mjambor@suse.cz>
25629         PR ipa/65087
25630         * ipa-icf.c (sem_item_optimizer::execute): Change function
25631         return value to boolean.
25632         (sem_item_optimizer::merge_classes): Likewise.
25633         (ipa_icf_driver): Return TODO_remove_functions in case there's
25634         a merge operation processed.
25635         * ipa-icf.h: Change function return value to boolean.
25637 2015-03-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
25639         PR 65138/target
25640         * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
25641         processor type for 64-bit little endian PowerPC.
25643         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
25644         -mdebug=reg, print TARGET_DEFAULT.  Fix logic to use
25645         TARGET_DEFAULT if there is no default cpu.  Fix -mdebug=reg
25646         printing built-in mask so it does not pass NULL pointers.
25648         * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
25649         -mcpu=powerpc64le.
25651 2015-03-02  Steve Ellcey  <sellcey@imgtec.com>
25653         PR target/58158
25654         * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
25655         !ISA_HAS_FP_CONDMOVE.
25657 2015-03-02  Aldy Hernandez  <aldyh@redhat.com>
25659         * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
25660         reload_completed.
25662 2015-03-02  Ulrich Drepper  <drepper@gmail.com>
25664         * doc/invoke.texi (Options for Code Generation Conventions):
25665         Fix URL of DSO paper.
25667 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25669         PR ipa/65130
25670         * ipa-inline.c (check_callers): Looks for recursion.
25671         (inline_to_all_callers): Give up on uninlinable or recursive edges.
25672         * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
25673         summary of inline clones.
25674         (do_estimate_growth_1): Fix recursion check.
25676 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25678         PR ipa/64988
25679         * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
25680         comdat groups.
25682 2015-03-02  Jan Hubicka  <hubicka@ucw.cz>
25683             Aldy Hernandez  <aldyh@redhat.com>
25685         PR lto/65276
25686         * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
25687         when checking TYPE_BINFO.
25689 2015-03-02  Richard Biener  <rguenther@suse.de>
25691         PR ipa/65270
25692         * ipa-icf-gimple.c: Include builtins.h.
25693         (func_checker::compare_memory_operand): Compare base alignment.
25695 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25697         PR target/65184
25698         * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
25699         are never passed by reference.
25701 2015-03-02  Ilya Enkovich  <ilya.enkovich@intel.com>
25703         PR target/65183
25704         * tree-chkp.c (chkp_check_lower): Don't check against
25705         zero bounds for already instrumented functions.
25706         (chkp_check_upper): Likewise.
25707         (chkp_fini): Clean pass local data to avoid wrong reusage.
25709 2015-02-28  Martin Liska  <mliska@suse.cz>
25710             Jan Hubicka  <hubicka@ucw.cz>
25712         * ipa-icf.c (sem_variable::equals): Improve debug output;
25713         get variable constructor.
25714         (sem_variable::parse): Do not filter out too early; give up on
25715         volatile and register vars.
25716         (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
25717         variables.
25718         * ipa-icf.h (sem_variable::init): Do not set ctor.
25719         (sem_variable::ctor): Remove.
25721 2015-03-01  Aldy Hernandez  <aldyh@redhat.com>
25723         PR middle-end/65233
25724         * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
25726 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25728         * ipa-icf.c: Include stor-layout.h
25729         (sem_function::compare_cgraph_references): Rename to ...
25730         (sem_item::compare_cgraph_references): ... this one.
25731         (sem_variable::equals_wpa): New function
25732         (sem_variable::equals): Do not check stuff already verified by
25733         equals_wpa.
25734         (sem_variable::equals): Reorg based on varasm.c:compare_constant.
25735         * ipa-icf.h (sem_item): Add compare_cgraph_references.
25736         (sem_function): Remove compare_cgraph_references.
25737         (sem_variable): Turns equals_wpa into non-inline.
25739 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25741         * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
25742         (sem_item::add_expr): New function.
25743         (sem_function::hash_stmt): Handle operands of most statements.
25744         (sem_variable::get_hash): Hash the actual constructor.
25745         * ipa-icf.h (sem_item): Add add_expr.
25746         (sem_function): Update prototype of hash_stmt
25748 2015-02-28  Martin Liska  <mliska@suse.cz>
25749             Jan Hubicka  <hubicka@ucw.cz>
25751         PR ipa/65245
25752         * ipa-icf-gimple.c (func_checker::compare_function_decl):
25753         Remove.
25754         (func_checker::compare_variable_decl): Skip symtab vars.
25755         (func_checker::compare_cst_or_decl): Update.
25756         * ipa-icf.c (sem_function::parse): Do not consider aliases.
25757         (sem_function::compare_cgraph_references): Add ADDRESS parameter;
25758         use correct symtab predicates.
25759         (sem_function::equals_wpa): Update uses of compare_cgraph_references.
25760         (sem_variable::parse):  Update comment.
25761         (sem_item_optimizer::build_graph): Consider ultimate aliases
25762         for references.
25764 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25766         * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
25767         of OBJ_TYPE_REF.
25769 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25771         * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
25772         (sem_variable::merge) Likewise.
25774 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25776         * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
25777         target; also match flag_ipa_devirt.
25779 2015-03-01  Martin Liska  <mliska@suse.cz>
25780             Jan Hubicka  <hubicka@ucw.cz>
25782         * ipa-icf-gimple.c (func_checker::compare_variable_decl):
25783         Validate variable alignment.
25784         * ipa-icf.c (sem_function::equals_private): Be more precise
25785         about non-common function attributes.
25786         (sem_variable::equals): Likewise.
25788 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25790         PR ipa/65237
25791         * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
25792         across COMDAT group boundary.
25794 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25796         PR ipa/65232
25797         * ipa-icf.c (clear_decl_rtl): New function.
25798         (sem_function::merge): Clear RTL before forming alias.
25799         (sem_variable::merge): Clear RTL before forming alias.
25801 2015-02-28  Jan Hubicka  <hubicka@ucw.cz>
25803         PR ipa/65236
25804         * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
25806 2015-02-28  Xingxing Pan  <xxingpan@marvell.com>
25808         * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
25809         to neon_to_gp<q>.
25811 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
25813         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
25814         a typo in the description.
25816 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
25818         PR target/64317
25819         * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
25820         * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
25821         * lra-constraints.c: Include "params.h".
25822         (EBB_PROBABILITY_CUTOFF): Use
25823         LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
25824         (lra_inheritance): Use '<' instead of '<=' for
25825         EBB_PROBABILITY_CUTOFF.
25826         * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
25827         Document change.
25829 2015-02-27  Martin Liska  <mliska@suse.cz>
25831         * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
25832         vector length condition.
25834 2015-02-27  Sandra Loosemore  <sandra@codesourcery.com>
25836         * doc/extend.texi (x86 transactional memory intrinsics):
25837         Reorganize discussion of _xbegin.  Clarify that the return
25838         value is a bit mask.  Expand example and move to end of section.
25840 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
25841             Aldy Hernandez  <aldyh@redhat.com>
25843         PR rtl-optimization/65220
25844         * config/i386/i386.md (*udivmod<mode>4_pow2): New.
25846 2015-02-27  Vladimir Makarov  <vmakarov@redhat.com>
25848         PR target/65032
25849         * lra-remat.c (update_scratch_ops): New.
25850         (do_remat): Call it.
25851         * lra.c (lra_register_new_scratch_op): New. Take code from ...
25852         (remove_scratches): ... here.
25853         * lra-int.h (lra_register_new_scratch_op): New prototype.
25855 2015-02-27  Marek Polacek  <polacek@redhat.com>
25857         PR c/65040
25858         * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
25859         -Wformat-signedness anymore.
25861 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25863         * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
25864         function.
25865         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
25867 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25869         * config/s390/s390.c (enum s390_builtin):
25870         Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
25871         (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
25872         (s390_init_builtins): Generate new builtin functions.
25873         * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
25874         (s390_sfpc, s390_efpc): New pattern definitions.
25876 2015-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25878         * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
25879         Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
25880         (s390_builtin_decls): New array.
25881         (s390_init_builtins): Put builtin decls into s390_builtin_decls.
25882         (s390_builtin_decl): New function.
25883         (TARGET_BUILTIN_DECL): Define macro.
25885 2015-02-27  Richard Biener  <rguenther@suse.de>
25887         PR middle-end/63175
25888         * builtins.c (get_object_alignment_2): Make sure to re-apply
25889         the ANDed mask after recursing to its operand gets us a new
25890         misalignment bit position.
25892 2015-02-26  Jan Hubicka  <hubicka@ucw.cz>
25893             Martin Liska  <mliska@suse.cz>
25895         PR bootstrap/65150
25896         * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
25897         Use address_matters_p.
25898         (redirect_all_callers, set_addressable): New functions.
25899         (sem_function::merge): Reorganize and fix merging issues.
25900         (sem_variable::merge): Likewise.
25901         (sem_variable::compare_sections): Remove.
25902         * common.opt (fmerge-all-constants, fmerge-constants): Remove
25903         Optimization flag.
25904         * symtab.c (symtab_node::resolve_alias): When alias has aliases,
25905         redirect them.
25906         (symtab_node::make_decl_local): Set ADDRESSABLE bit when
25907         decl is used.
25908         (address_matters_1): New function.
25909         (symtab_node::address_matters_p): New function.
25910         * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
25911         check for merged flag.
25912         * cgraph.h (address_matters_p): Declare.
25913         (symtab_node::address_taken_from_non_vtable_p): Remove.
25914         (symtab_node::address_can_be_compared_p): New method.
25915         (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
25916         * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
25917         Remove.
25918         (comdat_can_be_unshared_p_1) Use address_matters_p.
25919         (update_vtable_references): Fix formating.
25920         * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
25921         * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
25922         * cgraphclones.c: Preserve merged and icf_merged flags.
25924 2015-02-26  Sandra Loosemore  <sandra@codesourcery.com>
25926         * doc/extend.texi (Function Attributes): Fix spelling and typos.
25927         (Label Attributes): Likewise.
25928         (Cilk Plus Builtins): Likewise.
25929         (ARC SIMD Built-in Functions): Likewise.
25930         (ARM C Language Extensions (ACLE)): Likewise.
25931         (PowerPC Built-in Functions): Likewise.
25932         (PowerPC Hardware Transactional Memory Built-in Functions):
25933         Likewise.
25935 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
25937         PR tree-optimization/65216
25938         * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
25939         new stmt and new SSA_NAME for lhs whenever the arguments have
25940         changed and weren't just swapped.  Fix comment typo.
25942         PR tree-optimization/65215
25943         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
25944         for PDP endian targets.
25945         (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
25946         Fix up formatting issues.
25947         (bswap_replace): Likewise.  For BYTES_BIG_ENDIAN, if the final access
25948         size is smaller than the original, adjust MEM_REF offset by the
25949         difference of sizes.  Use is_gimple_mem_ref_addr instead of
25950         is_gimple_min_invariant test to avoid adding address temporaries.
25952 2015-02-26  Martin Liska  <mliska@suse.cz>
25953             Jan Hubicka  <hubicka@ucw.cz>
25955         PR ipa/64693
25956         * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
25957         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
25958         (sem_item_optimizer::process_cong_reduction): Include division by
25959         sensitive references.
25960         * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
25961         * ipa-ref.c (ipa_ref::address_matters_p): New function.
25962         * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
25964 2015-02-26  Georg-Johann Lay  <avr@gjlay.de>
25966         PR target/65192
25967         * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
25968         Remove.
25969         * config/avr/avr.c: Same.
25970         (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
25971         Refuse any constant address not in 0..0xbf.
25972         * config/avr/avr.md (*mov<mode>, *movsf): Remove
25973         tiny_valid_direct_memory_access_range from insn conditions.
25974         (mov<mode>): Don't special-case expansion of avrtiny addresses.
25976 2015-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
25978         PR target/61142
25979         * config/sh/sh.c (sh_check_add_incdec_notes): New function.
25980         * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
25981         * config/sh/predicates.md (const_logical_operand): New predicate.
25982         * config/sh/sh.md: Add new peephole2 patterns.
25984 2015-02-26  Marek Polacek  <polacek@redhat.com>
25986         PR ipa/65008
25987         * ipa-inline.c (early_inliner): Recompute inline parameters.
25989 2015-02-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25991         PR target/65171
25992         * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
25993         instructions with TImode operands are included in the analysis.
25995 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
25997         * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
25998         of an EDGE_FSM_THREAD.
26000 2015-02-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26002         * config/rs6000/htm.md (tcheck): Fix assembly encoding.
26004 2015-02-25  Aldy Hernandez  <aldyh@redhat.com>
26006         PR debug/46102
26007         * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
26009 2015-02-26  Sebastian Pop  <s.pop@samsung.com>
26011         PR tree-optimization/65048
26012         * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
26013         (thread_through_all_blocks): Call valid_jump_thread_path.
26014         Remove invalid FSM jump-thread paths.
26016 2015-02-26  Jakub Jelinek  <jakub@redhat.com>
26018         * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
26019         (ipa_write_optimization_summaries): Likewise.
26020         * tree-streamer.h: Include data-streamer.h.
26021         (streamer_mode_table): Declare extern variable.
26022         (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
26023         * lto-streamer-out.c (lto_output_init_mode_table,
26024         lto_write_mode_table): New functions.
26025         (produce_asm_for_decls): Call lto_write_mode_table when streaming
26026         offloading LTO.
26027         * lto-section-in.c (lto_section_name): Add "mode_table" entry.
26028         (lto_create_simple_input_block): Add mode_table argument to the
26029         lto_input_block constructors.
26030         * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
26031         Likewise.
26032         * data-streamer-in.c (string_for_index): Likewise.
26033         * ipa-inline-analysis.c (inline_read_section): Likewise.
26034         * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
26035         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
26036         * lto-streamer-in.c (lto_read_body_or_constructor,
26037         lto_input_toplevel_asms): Likewise.
26038         (lto_input_mode_table): New function.
26039         * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
26040         pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
26041         Use bp_pack_machine_mode.
26042         * real.h (struct real_format): Add name field.
26043         * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
26044         (class lto_input_block): Add mode_table member.
26045         (lto_input_block::lto_input_block): Add mode_table_ argument,
26046         initialize mode_table.
26047         (struct lto_file_decl_data): Add mode_table field.
26048         (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
26049         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
26050         unpack_ts_decl_common_value_fields,
26051         unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
26052         * tree-streamer.c (streamer_mode_table): New variable.
26053         * real.c (ieee_single_format, mips_single_format,
26054         motorola_single_format, spu_single_format, ieee_double_format,
26055         mips_double_format, motorola_double_format,
26056         ieee_extended_motorola_format, ieee_extended_intel_96_format,
26057         ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
26058         ibm_extended_format, mips_extended_format, ieee_quad_format,
26059         mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
26060         decimal_single_format, decimal_double_format, decimal_quad_format,
26061         ieee_half_format, arm_half_format, real_internal_format): Add name
26062         field.
26063         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
26065 2015-02-26  Yuri Rumyantsev  <ysrumyan@gmail.com>
26067         PR target/65161
26068         * config/i386/i386.c (ix86_sched_reorder): Skip instruction
26069         reordering for selective scheduling.
26071 2015-02-26  Terry Guo  <terry.guo@arm.com>
26073         * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
26074         * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
26075         (arm_arch_no_volatile_ce): Declare new global variable.
26076         * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
26077         (arm_option_override): Assign value to arm_arch_no_volatile_ce.
26078         * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
26079         (TARGET_NO_VOLATILE_CE): New macro.
26080         * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
26081         volatile memory access in IT block
26083 2015-02-25  Kai Tietz  <ktietz@redhat.com>
26085         PR tree-optimization/61917
26086         * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
26087         that reduc_def_stmt is null.
26089 2015-02-25  Martin Liska  <mliska@suse.cz>
26091         * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
26092         hard register variables.
26094 2015-02-25  Kai Tietz  <ktietz@redhat.com>
26096         PR target/64212
26097         * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
26098         (symtab::noninterposable_alias): Likewise.
26100 2015-02-25  Ilya Enkovich  <ilya.enkovich@intel.com>
26102         PR target/65167
26103         * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
26104         bounds registers.
26105         (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
26107 2015-02-25  Alan Lawrence  <alan.lawrence@arm.com>
26109         PR target/64997
26110         * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
26111         as split condition; force split via '#' in output pattern.
26113 2015-02-25  Richard Biener  <rguenther@suse.de>
26114             Kai Tietz  <ktietz@redhat.com>
26116         PR tree-optimization/61917
26117         * tree-vect-loop.c (vectorizable_reduction): Allow
26118         vect_internal_def without reduction to exit graceful.
26120 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
26122         PR target/65196
26123         * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
26124         only with NONDEBUG_INSN_P.
26126 2015-02-25  Georg-Johann Lay  <avr@gjlay.de>
26128         Use variadic macros with avr-log.c.
26130         * config/avr/avr-protos.h (avr_vdump): New prototype.
26131         (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
26132         (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
26133         * config/avr/avr-log.c: Adjust comments.
26134         (avr_vdump): New function.
26135         (avr_vadump): Pass caller as 2nd argument instead of format string.
26136         (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
26137         (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
26139 2015-02-25  Jakub Jelinek  <jakub@redhat.com>
26141         PR lto/64374
26142         * target.def (target_option_stream_in): New target hook.
26143         * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
26144         targetm.target_option.post_stream_in if non-NULL.
26145         * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
26146         * doc/tm.texi: Updated.
26147         * config/i386/i386.c (ix86_function_specific_post_stream_in): New
26148         function.
26149         (TARGET_OPTION_POST_STREAM_IN): Redefine.
26151 2015-02-24  Jeff Law  <law@redhat.com>
26153         PR target/65117
26154         * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
26155         of operand 0 and operand 2.
26156         (zero_cost_loop_end, loop_end): Similarly.
26158 2015-02-24  Aldy Hernandez  <aldyh@redhat.com>
26160         * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
26161         CXX_MEM_STAT_INFO.
26163 2015-02-24  DJ Delorie  <dj@redhat.com>
26165         * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
26166         * config/rl78/rl78-expand.md (movsf): New, same as movsi.
26167         * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
26168         instead of hardcoding SImode.
26170 2015-02-24  Bernd Schmidt  <bernds@codesourcery.com>
26172         * omp-low.c (create_omp_child_function): Tag entrypoint
26173         functions with a special attribute.
26175 2015-02-24  Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
26177         PR target/65058
26178         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
26180 2015-02-24  Vladimir Makarov  <vmakarov@redhat.com>
26182         PR rtl-optimization/65123
26183         * lra-remat.c (operand_to_remat): Check hard regs in insn
26184         definition too.
26186 2015-02-24  Nick Clifton  <nickc@redhat.com>
26188         * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
26189         to the assembler.
26191 2015-02-24  Thomas Schwinge  <thomas@codesourcery.com>
26193         PR libgomp/64625
26194         * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
26195         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
26196         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
26197         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
26198         BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
26199         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
26200         (BUILT_IN_GOACC_PARALLEL): Specify as
26201         BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
26202         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
26203         * builtin-types.def
26204         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26205         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26206         Remove function types.
26207         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
26208         (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
26209         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
26210         New function types.
26212 2015-02-24  Georg-Johann Lay  <avr@gjlay.de>
26214         * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
26216 2015-02-24  Jakub Jelinek  <jakub@redhat.com>
26218         PR tree-optimization/65170
26219         * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
26220         if val[1] < 0, clear also val[2] and return 3.
26222 2015-02-24  Alan Modra  <amodra@gmail.com>
26224         PR target/65172
26225         * config/rs6000/rs6000.c (get_memref_parts): Only return true
26226         when *base is a reg.  Handle nested plus addresses.  Simplify
26227         pre_modify test.
26229 2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>
26231         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
26232         use natural alignment when optimizing for size.
26234 2015-02-23  Kaz Kojima  <kkojima@gcc.gnu.org>
26236         PR target/65153
26237         * config/sh/sh.md (movsicc_true+3): Remove peephole.
26238         * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
26239         * config/sh/sh.c (replace_n_hard_rtx): Remove.
26241 2015-02-23  Richard Sandiford  <richard.sandiford@arm.com>
26243         PR fortran/63427
26244         * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
26245         too big for a wide_int.  Implement missing wrapping operation.
26247 2015-02-23  Oleg Endo  <olegendo@gcc.gnu.org>
26249         PR target/65163
26250         * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
26251         instead of const_int 4294901760.
26253 2015-02-23  Georg-Johann Lay  <avr@gjlay.de>
26255         * config/avr/t-avr: Fix typo in comment.
26257 2015-02-21  Richard Sandiford  <richard.sandiford@arm.com>
26259         * doc/rtl.texi (fma): Clarify documentation.
26261 2015-02-20  Aldy Hernandez  <aldyh@redhat.com>
26263         PR debug/58123
26264         * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
26265         over input_location.
26267 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26269         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
26270         unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
26271         restrict alignments to absolute_biggest_alignment.
26272         * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
26273         Define.
26274         * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
26275         * doc/tm.texi: Regenerate.
26276         * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
26278 2015-02-20  Vladimir Makarov  <vmakarov@redhat.com>
26280         PR target/64172
26281         * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
26283 2015-02-20  Richard Biener  <rguenther@suse.de>
26285         PR tree-optimization/65136
26286         * tree-ssa-propagate.c: Include cfgloop.h.
26287         (replace_phi_args_in): Avoid replacing loop latch edge PHI
26288         arguments with constants.
26290 2015-02-20  Jakub Jelinek  <jakub@redhat.com>
26291             Martin Liska  <mliska@suse.cz>
26293         PR target/63892
26294         * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
26295         don't try to create_thunk if stdarg_p.  If
26296         !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
26297         redirect_callers if possible.
26298         (sem_item_optimizer::execute): Call unregister_hooks here...
26299         (ipa_icf_driver): ... instead of here.
26301 2015-02-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26303         * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
26304         Mark operand 0 as earlyclobber in 2nd alternative.
26305         (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
26306         Write negated shift amount into QI lowpart operand 0 and use it
26307         in the shift step.
26308         (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
26310 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26312         * cgraph.h (clone_function_name_1): Declare.
26313         * cgraphclones.c (clone_function_name_1): New function.
26314         (clone_function_name): Use it.
26315         * lto-partition.c: Include "stringpool.h".
26316         (must_not_rename, maybe_rewrite_identifier)
26317         (validize_symbol_for_target): New static functions.
26318         (privatize_symbol_name): Use must_not_rename.
26319         (promote_symbol): Call validize_symbol_for_target.
26320         (lto_promote_cross_file_statics): Likewise.
26321         (lto_promote_statics_nonwpa): Likewise.
26323 2015-02-20  Georg-Johann Lay  <avr@gjlay.de>
26325         PR target/64452
26326         * config/avr/avr.md (pushhi_insn): New insn.
26327         (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
26329 2015-02-20  Bernd Schmidt  <bernds@codesourcery.com>
26330             Jakub Jelinek  <jakub@redhat.com>
26332         * tree-streamer.c (preload_common_nodes): Don't preload
26333         TI_VA_LIST* for offloading.
26334         * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
26335         in_lto_p.
26337 2015-02-19  John David Anglin  <danlgin@gcc.gnu.org>
26339         * config/pa/pa.c (pa_emit_move_sequence): Always force
26340         (const (plus (symbol) (const_int))) to const mem.  Put REG_EQUAL
26341         note on insn.
26343         * config/pa/pa.c (pa_reloc_rw_mask): New function.
26344         (TARGET_ASM_RELOC_RW_MASK): Define.
26345         (pa_cannot_force_const_mem): Revert previous change.
26347 2015-02-19  Martin Jambor  <mjmabor@suse.cz>
26348             Jan Hubicka  <hubicka@ucw.cz>
26350         PR ipa/65028
26351         * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
26352         across jump functions.
26354 2015-02-19  Uros Bizjak  <ubizjak@gmail.com>
26356         * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
26358 2015-02-19  Sandra Loosemore  <sandra@codesourcery.com>
26360         * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
26362 2015-02-19  Richard Henderson  <rth@redhat.com>
26364         PR middle-end/65074
26365         * varasm.c (default_binds_local_p_2): Don't test node->definition;
26366         test DECL_EXTERNAL independent of symtab_node.
26368 2015-02-19  Jakub Jelinek  <jakub@redhat.com>
26370         PR lto/65012
26371         * varpool.c (varpool_node::get_constructor): Return early
26372         if this->lto_file_data is NULL.
26374 2015-02-19  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
26376         * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
26377         (rank_for_schedule_debug): Update.
26378         (ready_sort): Make static.  Move sorting logic to ...
26379         (ready_sort_debug, ready_sort_real): New static functions.
26380         (schedule_block): Sort both debug insns and real insns in preparation
26381         for ready list trimming.  Improve debug output.
26382         * sched-int.h (ready_sort): Remove global declaration.
26384 2015-02-18  Trevor Saunders  <tsaunders@mozilla.com>
26386         * ipa-icf.c (sem_function::equals_private): Adjust.
26387         (sem_function::bb_dict_test): Take a vec<int> * instead of
26388         auto_vec<int>.
26389         * ipa-icf.h (bb_dict_test): Likewise.
26391 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26393         PR gcov-profile/64634
26394         * tree-eh.c (frob_into_branch_around): Fix up typos
26395         in function comment.
26396         (lower_catch): Put eh_seq resulting from EH lowering of
26397         the cleanup sequence after the cleanup rather than before it.
26399 2015-02-18  Tom de Vries  <tom@codesourcery.com>
26401         * common.opt (fstdarg-opt): New option.
26402         * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
26403         * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
26404         (@item -fstdarg-opt): New item.
26406 2015-02-18  H.J. Lu  <hongjiu.lu@intel.com>
26408         PR target/65064
26409         * config/ia64/predicates.md (sdata_symbolic_operand): Return false
26410         for common symbols.
26412 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26414         * config/i386/t-intelmic (mkoffload.o): Remove dependency on
26415         insn-modes.h.
26416         (ALL_HOST_OBJS): Add mkoffload.o.
26417         * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
26419 2015-02-18  Jan Hubicka  <hubicka@ucw.cz>
26421         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
26422         (compare_virtual_tables): Be smarter about skipping typeinfos;
26423         do sane output on virtual table table mismatch.
26424         (warn_odr): Be ready for forward declarations of enums;
26425         output sane info on base mismatch and virtual table mismatch.
26426         (add_type_duplicate): Fix code choosing prevailing type; do not ICE
26427         when only one type is polymorphic.
26428         (get_odr_type): Fix hashtable corruption.
26429         (dump_odr_type): Dump mangled names.
26431 2015-02-18  Richard Biener  <rguenther@suse.de>
26433         PR tree-optimization/65063
26434         * tree-predcom.c (determine_unroll_factor): Return 1 if we
26435         have replaced looparound PHIs.
26437 2015-02-18  Martin Liska  <mliska@suse.cz>
26439         * lto-streamer.c (lto_streamer_init): Encapsulate
26440         streamer_check_handled_ts_structures with checking macro.
26442 2015-02-18  Jakub Jelinek  <jakub@redhat.com>
26444         PR ipa/65087
26445         * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
26446         section if !implicit_section.
26447         (cgraph_node::create_version_clone_with_body): Likewise.
26448         * trans-mem.c (ipa_tm_create_version): Likewise.
26450 2015-02-18  Richard Biener  <rguenther@suse.de>
26452         PR tree-optimization/62217
26453         * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
26454         into BIVs.
26456 2015-02-18  Marek Polacek  <polacek@redhat.com>
26458         PR sanitizer/65081
26459         * ubsan.c (OBJSZ_MAX_OFFSET): Define.
26460         (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
26461         is in range [-16K, -1].  Don't issue run-time error if
26462         (ptr > ptr + offset).
26464 2015-02-18  Thomas Schwinge  <thomas@codesourcery.com>
26466         * doc/install.texi (nvptx-*-none): New section.
26467         * doc/invoke.texi (Nvidia PTX Options): Likewise.
26468         * config/nvptx/nvptx.opt: Update.
26470         * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
26471         (access_check): New functions, copied from
26472         config/i386/intelmic-mkoffload.c.
26473         (main): For non-installed testing, look in all COMPILER_PATHs for
26474         GCC_INSTALL_NAME.
26476         * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
26478 2015-02-18  Andrew Pinski  <apinski@cavium.com>
26479             Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26481         * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
26482         Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
26484 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
26486         * ipa-visibility.c (function_and_variable_visibility): Only
26487         check locality if node is not already local.
26488         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
26489         call_for_symbol_and_aliases instead of
26490         call_for_symbol_thunks_and_aliases.
26491         (ipa_inline): Likewise.
26492         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
26493         first walk aliases.
26494         * ipa.c (symbol_table::remove_unreachable_nodes): Use
26495         call_for_symbol_and_aliases.
26496         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
26497         (ipa_propagate_frequency_1): Use it; use opt_for_fn
26498         (ipa_propagate_frequency): Update.
26499         (ipa_profile): Add opt_for_fn gueards.
26501 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
26503         * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
26504         * doc/invoke.texi (SH options): Document it.
26505         * config/sh/sh.c (sh_insn_length_adjustment): Check
26506         TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
26508 2015-02-17  H.J. Lu  <hongjiu.lu@intel.com>
26510         * common.opt (fipa-cp-alignment): New.
26511         * ipa-cp.c (ipcp_store_alignment_results): Check
26512         flag_ipa_cp_alignment.
26513         * opts.c (default_options_table): Enable -fipa-cp-alignment for
26514         -O2.
26515         (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
26516         * doc/invoke.texi: Document -fipa-cp-alignment.
26518 2015-02-17  Oleg Endo  <olegendo@gcc.gnu.org>
26520         PR target/64793
26521         * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
26522         to nil.  Adjust comments.
26524 2015-02-17  Jan Hubicka  <hubicka@ucw.cz>
26526         * ipa-visibility.c (function_and_variable_visibility): Only
26527         check locality if node is not already local.
26528         * ipa-inline.c (want_inline_function_to_all_callers_p): Use
26529         call_for_symbol_and_aliases instead of
26530         call_for_symbol_thunks_and_aliases.
26531         (ipa_inline): Likewise.
26532         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
26533         first walk aliases.
26534         * ipa.c (symbol_table::remove_unreachable_nodes): Use
26535         call_for_symbol_and_aliases.
26536         * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
26537         (ipa_propagate_frequency_1): Use it; use opt_for_fn
26538         (ipa_propagate_frequency): Update.
26539         (ipa_profile): Add opt_for_fn guards.
26541 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
26543         * config/nvptx/mkoffload.c (parse_file): Fix logic error in
26544         skipping of "strange" tokens.
26546 2015-02-17  Jeff Law  <law@redhat.com>
26548         * tree-vrp.c (identify_jump_threads): Use last_stmt.  Remove
26549         obsolete comment.
26551 2015-02-17  James Greenhalgh  <james.greenhalgh@arm.com>
26553         * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
26554         as forcing a HARD_DEP between instructions, thereby
26555         disallowing rewriting to break dependencies.
26557 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
26559         * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
26560         * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
26561         variables in boundary that have no inlitalizer encoded and are
26562         not aliases.
26563         * varasm.c (default_binds_local_p_2): External definitions do not
26564         count as definitions here.
26566 2015-02-16  Jeff Law  <law@redhat.com>
26568         PR tree-optimization/64823
26569         * tree-vrp.c (identify_jump_threads): Handle blocks with no real
26570         statements.
26571         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
26572         threading through blocks with PHIs, but no statements.
26573         (thread_through_normal_block): Distinguish between blocks where
26574         we did not process all the statements and blocks with no statements.
26576 2015-02-16  Jakub Jelinek  <jakub@redhat.com>
26577             James Greenhalgh  <james.greenhalgh@arm.com>
26579         PR ipa/64963
26580         * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
26581         section if not linkonce.  Fix up formatting.
26582         (cgraph_node::create_version_clone_with_body): Copy section.
26583         * trans-mem.c (ipa_tm_create_version): Likewise.
26585 2015-02-16  Richard Biener  <rguenther@suse.de>
26587         PR tree-optimization/65077
26588         * tree-ssa-structalias.c (get_constraint_for_1): Handle
26589         IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
26590         (find_func_aliases): Allow float values to carry pointers again.
26592 2015-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
26594         * doc/install.texi (Specific): Reorder targets list to put
26595         aarch64 in alphabetical order.  Add a link to aarch64*-*-*
26596         from the top menu.
26598 2015-02-16  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
26599             David Edelsohn  <dje.gcc@gmail.com>
26601         PR target/65058
26602         * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
26603         mapping class to external variable or function reference.
26604         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
26605         mapping class.
26607 2015-02-16  David Eelsohn  <dje.gcc@gmail.com>
26609         PR target/53348
26610         * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
26611         ASM_WEAKEN_DECL if defined.
26613 2015-02-16  Richard Biener  <rguenther@suse.de>
26615         PR lto/65015
26616         * varasm.c (default_file_start): For LTO produced units
26617         emit <artificial> as file directive.
26619 2015-02-16  Richard Biener  <rguenther@suse.de>
26621         PR tree-optimization/63593
26622         * tree-predcom.c (execute_pred_commoning_chain): Delay removing
26623         stmts and releasing SSA names until...
26624         (execute_pred_commoning): ... after processing all chains.
26626 2015-02-16  Jan Hubicka  <hubicka@ucw.cz>
26628         PR ipa/65059
26629         * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
26630         external functions.
26632 2015-02-15  Sandra Loosemore  <sandra@codesourcery.com>
26634         * doc/bugreport.texi: Adjust section titles throughout the file
26635         to use "Title Case".
26636         * doc/extend.texi: Likewise.
26637         * doc/gcov.texi: Likewise.
26638         * doc/implement-c.texi: Likewise.
26639         * doc/implement-cxx.texi: Likewise.
26640         * doc/invoke.texi: Likewise.
26641         * doc/objc.texi: Likewise.
26642         * doc/standards.texi: Likewise.
26643         * doc/trouble.texi: Likewise.
26645 2015-02-15  Jan Hubicka  <hubicka@ucw.cz>
26647         * cgraph.h (symtab_node::has_aliases_p): Simplify.
26648         (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
26649         * tree.c (lookup_binfo_at_offset): Make static.
26650         (get_binfo_at_offset): Do not shadow offset; add explanatory
26651         comment.
26653 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
26655         * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
26656         for all floading point loads and stores except those using a register
26657         index address.
26658         * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
26659         to a register.
26661 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
26663         * ipa-inline-analysis.c (growth_data): Add uninlinable field.
26664         (do_estimate_growth_1): Record if any uninlinable edge was seen.
26665         (estimate_growth): Handle uninlinable edges correctly.
26666         (check_callers): New.
26667         (growth_likely_positive): Handle aliases correctly.
26669 2015-02-14  Jan Hubicka  <hubicka@ucw.cz>
26671         * ipa-chkp.c: Use iterate_direct_aliases.
26672         * symtab.c (resolution_used_from_other_file_p): Move inline.
26673         (symtab_node::create_reference): Fix formating.
26674         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
26675         (symtab_node::iterate_reference): Move inline.
26676         (symtab_node::iterate_referring): Move inline.
26677         (symtab_node::iterate_direct_aliases): Move inline.
26678         (symtab_node::used_from_object_file_p_worker): Inline into ...
26679         (symtab_node::used_from_object_file_p): ... this one; move inline.
26680         (symtab_node::call_for_symbol_and_aliases): Move inline;
26681         use iterate_direct_aliases.
26682         (symtab_node::call_for_symbol_and_aliases_1): New method.
26683         (cgraph_node::call_for_symbol_and_aliases): Move inline;
26684         use iterate_direct_aliases.
26685         (cgraph_node::call_for_symbol_and_aliases_1): New method.
26686         (varpool_node::call_for_node_and_aliases): Rename to ...
26687         (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
26688         use iterate_direct_aliases.
26689         (varpool_node::call_for_symbol_and_aliases_1): New method.
26690         * ipa.c (ipa_single_use): Use iterate_direct_aliases.
26691         (ipa_discover_readonly_nonaddressable_var): Update.
26692         * ipa-devirt.c: Fix formating.
26693         * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
26694         Move inline.
26695         (cgraph_node::call_for_symbol_and_aliases): Move inline.
26696         (cgraph_node::call_for_symbol_and_aliases_1): New function..
26697         * cgraph.h (used_from_object_file_p_worker): Remove.
26698         (resolution_used_from_other_file_p): Move inline.
26699         (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
26700         (symtab_node::iterate_reference): Move inline.
26701         (symtab_node::iterate_referring): Move inline.
26702         (symtab_node::iterate_direct_aliases): Move inline.
26703         (symtab_node::used_from_object_file_p_worker): Inline into ...
26704         (symtab_node::used_from_object_file_p): Move inline.
26705         * tree-emutls.c (ipa_lower_emutls): Update.
26706         * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
26707         (varpool_node::call_for_node_and_aliases): Remove.
26709 2015-02-14  Jakub Jelinek  <jakub@redhat.com>
26711         PR tree-optimization/62209
26712         * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
26713         op == range->exp, insert seq and gimplified code after labels
26714         instead of after the phi.
26716 2015-02-13  Jeff Law  <law@redhat.com>
26718         PR bootstrap/65060
26719         Revert my change for tree-optimization/64823.
26721 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
26723         PR tree-optimization/65053
26724         * tree-ssa-phiopt.c (value_replacement): When moving assign before
26725         cond, either reset VR on lhs or set it to phi result VR.
26727 2015-02-13  Jeff Law  <law@redhat.com>
26729         PR tree-optimization/64823
26730         * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
26731         * tree-ssa-threadedge.c (potentially_threadable_block): Allow
26732         threading through blocks with PHIs, but no statements.
26733         (thread_through_normal_block): Distinguish between blocks where
26734         we did not process all the statements and blocks with no statements.
26736         PR rtl-optimization/47477
26737         * match.pd (convert (plus/minus (convert @0) (convert @1): New
26738         simplifier to narrow arithmetic.
26740 2015-02-13  Jan Hubicka  <hubicka@ucw.cz>
26742         PR ipa/65028
26743         * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
26744         polymorphic call info when type is not known to be preserved.
26746 2015-02-13  Maritn Jambor  <mjambor@suse.cz>
26748         PR ipa/65028
26749         * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
26750         (inline_call): Use it.
26752 2015-02-13  Thomas Schwinge  <thomas@codesourcery.com>
26754         * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
26755         GOMP_DEVICE_NVIDIA_PTX.
26757 2015-02-13  Jakub Jelinek  <jakub@redhat.com>
26759         PR ipa/65034
26760         * stmt.c (emit_case_nodes): Use void_type_node instead of
26761         NULL_TREE as LABEL_DECL type.
26763 2015-02-13  John David Anglin  <danglin@gcc.gnu.org>
26765         * config/pa/constraints.md: Change "Q" and "T" constraints to memory
26766         constraints.
26767         * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
26768         symbolic references to data to be forced to constant memory on the
26769         SOM target.
26771 2015-02-13  Ilya Enkovich  <ilya.enkovich@intel.com>
26773         PR tree-optimization/65002
26774         * tree-cfg.c (pass_data_fixup_cfg): Don't update
26775         SSA on start.
26776         * tree-sra.c (some_callers_have_no_vuse_p): New.
26777         (ipa_early_sra): Reject functions whose callers
26778         assume function is read only.
26780 2015-02-13  Richard Biener  <rguenther@suse.de>
26782         PR lto/65015
26783         * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
26784         for LTO produced CUs.
26786 2015-02-13  Bin Cheng  <bin.cheng@arm.com>
26788         PR tree-optimization/64705
26789         * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
26790         * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
26791         * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
26792         (find_bivs, find_givs_in_stmt_scev): Pass new argument to
26793         expand_simple_operations.
26795 2015-02-13  H.J. Lu  <hongjiu.lu@intel.com>
26796             Richard Henderson  <rth@redhat.com>
26798         PR rtl/32219
26799         * cgraphunit.c (cgraph_node::finalize_function): Set definition
26800         before notice_global_symbol.
26801         (varpool_node::finalize_decl): Likewise.
26802         * varasm.c (default_binds_local_p_2): Rename from
26803         default_binds_local_p_1, add weak_dominate argument.  Use direct
26804         returns instead of assigning to local variable.  Unify varpool and
26805         cgraph paths via symtab_node.  Reject undef weak variables before
26806         testing visibility.  Reorder tests for simplicity.
26807         (default_binds_local_p): Use default_binds_local_p_2.
26808         (default_binds_local_p_1): Likewise.
26809         (decl_binds_to_current_def_p): Unify varpool and cgraph paths
26810         via symtab_node.
26811         (default_elf_asm_output_external): Emit visibility when specified.
26813 2015-02-13  Alan Modra  <amodra@gmail.com>
26815         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
26816         code setting up r11 for out-of-line fp restore.
26818 2015-02-13  Eric Botcazou  <ebotcazou@adacore.com>
26820         * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
26821         (muser-mode): Likewise.
26823 2015-02-13  Alan Modra  <amodra@gmail.com>
26825         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
26826         or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
26828 2015-02-12  David Howells  <dhowells@redhat.com>
26830         * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
26831         warning.
26832         * tree-ssa-uninit.c (dump_predicates): Likewise.
26833         * opts.c (print_filtered_help): Likewise.
26835 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
26837         * dwarf2out.c (output_die): Use "%s", name instead of name to
26838         avoid -Wformat-security warning.
26840         * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
26841         if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
26842         * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
26843         only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
26845 2015-02-12  Jason Merrill  <jason@redhat.com>
26847         * common.opt (-flifetime-dse): New.
26849 2015-02-12  Jakub Jelinek  <jakub@redhat.com>
26851         PR sanitizer/65019
26852         * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
26854         PR tree-optimization/65014
26855         * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
26856         use original second operand of arg0 or arg1 instead of
26857         that adjusted by STRIP_NOPS.
26859 2015-02-11  Jeff Law  <law@redhat.com>
26861         PR target/63347
26862         * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
26863         that needs to be queued, just queue it for a single cycle.
26865 2015-02-11  Jan Hubicka  <hubicka@ucw.cz>
26867         * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
26868         bodies of thunks; comment on why.
26869         * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
26870         symbols are extern.
26872 2015-02-11  Richard Henderson  <rth@redhat.com>
26874         PR sanitize/65000
26875         * tree-eh.c (mark_reachable_handlers): Mark source and destination
26876         regions of __builtin_eh_copy_values.
26878 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
26880         PR middle-end/65003
26881         * varasm.c (place_block_symbol): Assert that DECL_RTL of the
26882         ultimate alias is MEM with SYMBOL_REF satisfying
26883         SYMBOL_REF_HAS_BLOCK_INFO_P as its operand.  Don't pass the MEM
26884         to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
26886 2015-02-11  Thomas Schwinge  <thomas@codesourcery.com>
26888         * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
26889         "diagnostic-core.h".
26890         (main): Initialize progname, and call diagnostic_initialize.
26892         * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
26893         instead of __OPENMP_TARGET__.
26895         * config/nvptx/mkoffload.c: Include "gomp-constants.h".
26896         (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
26897         hard-coding PTX_ID.
26899 2015-02-11  H.J. Lu  <hongjiu.lu@intel.com>
26901         * doc/sourcebuild.texi (pie_enabled): Document.
26903 2015-02-11  Martin Liska  <mliska@suse.cz>
26905         PR ipa/64813
26906         * cgraphunit.c (cgraph_node::expand_thunk): Do not create
26907         a return value for call to a function that is noreturn.
26909 2015-02-11  Richard Biener  <rguenther@suse.de>
26911         PR lto/65015
26912         * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
26913         and -fresolution.
26915 2015-02-11  Andrew Pinski  <apinski@cavium.com>
26917         PR target/64893
26918         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
26919         Change the first argument type to size_type_node and add another
26920         size_type_node.
26921         (aarch64_simd_expand_builtin): Handle the new argument to
26922         AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
26923         print an out when the first two arguments are not
26924         nonzero integer constants.
26925         * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
26926         Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
26928 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
26930         PR target/61925
26931         * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
26932         (ix86_reset_previous_fndecl): Restore it here, unconditionally.
26933         (ix86_set_current_function): Rewritten.
26934         (ix86_add_new_builtins): Temporarily clear current_target_pragma
26935         when creating builtin fndecls.
26937 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
26939         PR ipa/65005
26940         * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
26941         function.
26942         * symtab.c (symtab_node::verify_base): Remove check that non-definitions
26943         have no comdat group.
26944         * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
26945         (lto_output_varpool_node): Always output alias info.
26946         (output_refs): Output refs of boundary aliases, too.
26947         (compute_ltrans_boundary): Add alias and thunk target into boundaries.
26948         (output_symtab): Output call eges in thunks in boundary.
26949         (get_alias_symbol): Remove.
26950         (input_node, input_varpool_node): Do not special case weakrefs.
26951         * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
26952         alias and thunks targets in the boundary; do not take removed symbols
26953         from their comdat groups.
26954         * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
26955         (cgraph_node::global_info): Remove.
26956         (cgraph_node::rtl_info): Look through aliases and thunks.
26957         * cgrpah.h (global_info): Remove.
26958         (non_local_p): Remove.
26960 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
26961             Sandra Loosemore  <sandra@codesourcery.com>
26963         * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
26964         to inline asm.  List dialects in proper order.
26966 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
26967             Sandra Loosemore  <sandra@codesourcery.com>
26969         * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
26971 2015-02-10  David Wohlferd  <dw@LimeGreenSocks.com>
26973         * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
26974         modified) reference to Solaris.
26976 2015-02-10  Sandra Loosemore  <sandra@codesourcery.com>
26978         * doc/extend.texi (Extended Asm): Fix typos.
26980 2015-02-10  Jakub Jelinek  <jakub@redhat.com>
26982         PR sanitizer/65004
26983         * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
26985 2015-02-10  Oleg Endo  <olegendo@gcc.gnu.org>
26987         PR target/64661
26988         * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
26989         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
26990         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
26991         * config/sh/constraints.md (Ara, Add): New constraints.
26992         * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
26993         predicates.
26994         (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
26995         atomic_mem_operand_0.  Don't use force_reg on the memory address.
26996         (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
26997         Sra constraint.  Convert to insn_and_split.  Add workaround for
26998         PR 64974.
26999         (atomic_compare_and_swap<mode>_hard): Copy to
27000         atomic_compare_and_swap<mode>_hard_1.  Convert to insn_and_split.
27001         Use atomic_mem_operand_0 predicate.
27002         (atomic_compare_and_swap<mode>_soft_gusa,
27003         atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
27004         AraAdd constraints.
27005         (atomic_compare_and_swap<mode>_soft_tcb,
27006         atomic_compare_and_swap<mode>_soft_imask,
27007         atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
27008         atomic_mem_operand_0 predicate and SraSdd constraints.
27009         (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
27010         constraint.
27011         (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
27012         Convert to insn_and_split.  Use atomic_mem_operand_0 predicate.
27013         (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
27014         atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1.  Don't use
27015         force_reg on the memory address.
27016         (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
27017         atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
27018         atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
27019         atomic_mem_operand_1 predicate and Sra constraint.
27020         (atomic_fetch_<fetchop_name><mode>_hard): Copy to
27021         atomic_fetch_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
27022         Use atomic_mem_operand_1 predicate.
27023         (atomic_<fetchop_name><mode>_hard): Copy to
27024         atomic_<fetchop_name><mode>_hard_1.  Convert to insn_and_split.
27025         Use atomic_mem_operand_1 predicate.
27026         (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
27027         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
27028         (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1.  Convert to
27029         insn_and_split.  Use atomic_mem_operand_1 predicate.
27030         (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
27031         atomic_<fetchop_name>_fetch<mode>_hard_1.  Convert to insn_and_split.
27032         Use atomic_mem_operand_1 predicate.
27033         (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
27034         Convert to insn_and_split.  Use atomic_mem_operand_1 predicate.
27035         (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
27036         in generated insn with original mem operand before emitting the insn.
27037         (atomic_fetch_<fetchop_name><mode>_soft_gusa,
27038         atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
27039         atomic_<fetchop_name>_fetch<mode>_soft_gusa,
27040         atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
27041         Use atomic_mem_operand_1 predicate and AraAdd constraints.
27042         (atomic_fetch_<fetchop_name><mode>_soft_tcb,
27043         atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
27044         atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
27045         atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
27046         atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
27047         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
27048         atomic_not_fetch<mode>_soft_tcb,
27049         atomic_<fetchop_name>_fetch<mode>_soft_imask,
27050         atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
27051         atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
27052         Use atomic_mem_operand_1 predicate and SraSdd constraints.
27054 2015-02-10  Uros Bizjak  <ubizjak@gmail.com>
27056         * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
27057         and 3 earlyclobber operands.
27059 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
27061         * common.opt (fstack-reuse): Mark as optimization.
27063 2015-02-10  Jan Hubicka  <hubicka@ucw.cz>
27065         PR ipa/64982
27066         * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
27068 2015-02-10  Trevor Saunders  <tsaunders@mozilla.com>
27070         PR tree-optimization/64326
27071         * cfghooks.c (make_forwarder_block): Cap frequency of created block.
27073 2015-02-10  Rainer Emrich  <rainer@emrich-ebersheim.de>
27075         PR gcov-profile/61889
27076         * gcov-tool.c: Remove wrong #if !defined(_WIN32)
27078 2015-02-10  Richard Biener  <rguenther@suse.de>
27080         PR tree-optimization/64995
27081         * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
27082         value we use is final.
27083         (visit_reference_op_store): Always valueize op.
27084         (visit_use): Properly valueize vuses.
27086 2015-02-10  Richard Biener  <rguenther@suse.de>
27088         PR tree-optimization/64909
27089         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
27090         pass a scalar-stmt count estimate to the cost model.
27091         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
27093 2015-02-10  Alexander Monakov  <amonakov@ispras.ru>
27095         * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
27096         enabled by default together with var-tracking.
27098 2015-02-10  Nick Clifton  <nickc@redhat.com>
27100         * config/rl78/rl78.c: Remove DIV attribute code accidentally
27101         included in previous rl78 commit.
27103 2015-02-10  Richard Biener  <rguenther@suse.de>
27105         * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
27106         * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
27107         return the bitpack.
27109 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
27111         PR gcov-profile/61889
27112         * config.in: regenerate.
27113         * configure.in: Likewise.
27114         * configure.ac: Check for ftw.h.
27115         * gcov-tool.c: Check for ftw.h before using nftw.
27117 2015-02-09  Trevor Saunders  <tsaunders@mozilla.com>
27119         PR lto/64076
27120         * ipa-visibility.c (update_visibility_by_resolution_info): Only
27121         assert when not in lto mode.
27123 2015-02-09  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
27125         * ira-color.c (setup_left_conflict_sizes_p): Simplify
27126         initialization/assignment of conflict_size.
27128 2015-02-09  Jan Hubicka  <hubicka@ucw.cz>
27130         PR ipa/64978
27131         * ipa-cp.c (gather_caller_stats): Skip thunks.
27132         (propagate_constants_topo): Skip aliases.
27134 2015-02-09  Kaz Kojima  <kkojima@gcc.gnu.org>
27136         PR target/64761
27137         * config/sh/sh.c (sh_option_override): Don't change
27138         -freorder-blocks-and-partition to -freorder-blocks even when
27139         unwinding is enabled.
27140         (sh_can_follow_jump): Return false if the followee jump is
27141         a crossing jump when -freorder-blocks-and-partition is specified.
27142         * config/sh/sh.md (*jump_compact_crossing): New insn.
27144 2015-02-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27145             Kaz Kojima  <kkojima@gcc.gnu.org>
27147         PR target/64761
27148         * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
27149         * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
27150         (sh_can_redirect_branch): Rename to ...
27151         (sh_can_follow_jump): ... this.  Constify argument types.
27152         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
27153         * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
27154         * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
27155         * doc/tm.texi: Regenerate.
27157 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
27159         PR sanitizer/64981
27160         * builtins.c (expand_builtin): Call targetm.expand_builtin
27161         for BUILT_IN_MD builtins regardless of asan_intercepted_p.
27163 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27165         PR ipa/61548
27166         * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
27168 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27170         PR ipa/63566
27171         * ipa-icf.c (set_local): New function.
27172         (sem_function::merge): Use it.
27174 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27176         * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
27177         (add_type_duplicate): Fix comparison of BINFOs.
27179 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27181         * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
27182         on getting VOID pointer.
27184 2015-02-09  Jakub Jelinek  <jakub@redhat.com>
27186         PR target/64979
27187         * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
27188         va_list escapes.
27190 2015-02-09  Richard Biener  <rguenther@suse.de>
27192         * genmatch.c (replace_id): Copy expr_type.
27194 2015-02-09  Richard Biener  <rguenther@suse.de>
27196         * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
27197         (streamer_write_tree_bitfields): Declare.
27198         * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
27199         properly unpack padding.
27200         (unpack_value_fields): Inline ...
27201         (streamer_read_tree_bitfields): ... here.
27202         * tree-streamer-out.c (pack_ts_base_value_fields): Inline
27203         and properly add padding bits.
27204         (streamer_pack_tree_bitfields): Fold into ...
27205         (streamer_write_tree_bitfields): ... this new function,
27206         exposing the bitpack object.
27207         * lto-streamer-out.c (lto_write_tree_1): Call
27208         streamer_write_tree_bitfields.
27210 2015-02-09  Richard Biener  <rguenther@suse.de>
27212         PR tree-optimization/54000
27213         * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
27214         (struct ivopts_data): Add loop_loc member.
27215         (tree_ssa_iv_optimize_loop): Dump loop location.
27216         (create_new_ivs): Likewise, also dump number of IVs generated.
27218 2015-02-09  Martin Liska  <mliska@suse.cz>
27220         * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
27221         just if not yet registered.
27222         (ipa_icf_generate_summary): Register callgraph hooks.
27224 2015-02-08  Andrew Pinski  <apinski@cavium.com>
27226         * config/aarch64/aarch64.c (gty_dummy): Delete.
27228 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27230         PR ipa/63566
27231         * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
27232         (cgraph_node::local_p): Remove thunk related FIXME.
27234 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27236         PR ipa/63566
27237         * i386.c (ix86_function_regparm): Look through aliases to see if callee
27238         is local and optimized.
27239         (ix86_function_sseregparm): Likewise; also use target's SSE math
27240         settings; error out instead of silently generating wrong code
27241         on mismatches.
27242         (init_cumulative_args): Look through aliases.
27244 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27246         PR ipa/63566
27247         * ipa-split.c (execute_split_functions): Split if function has aliases.
27249 2015-02-08  Jan Hubicka  <hubicka@ucw.cz>
27251         PR ipa/63566
27252         * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
27253         aliases before trying to expand it.
27254         (cgraph_node::expand_thunk): Fix formating.
27256 2015-02-07  Sandra Loosemore  <sandra@codesourcery.com>
27258         * doc/extend.texi (Function Attributes [naked]): Copy-edit.
27259         (Using Assembly Language with C): Expand introduction.
27260         (Basic Asm): Copy-edit.  Add more information about uses of
27261         basic asm.
27262         (Extended Asm): Copy-edit.  Document new escape syntax and
27263         %l[label] syntax.
27264         (Global Reg Vars): Copy-edit.
27265         (Local Reg Vars): Likewise.
27267 2015-02-06  David Edelsohn  <dje.gcc@gmail.com>
27269         PR debug/2714
27270         PR bootstrap/64256
27271         * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
27272         (DBX_CONTIN_CHAR): Define.
27274 2015-02-06  Sebastian Pop  <s.pop@samsung.com>
27275             Brian Rzycki  <b.rzycki@samsung.com>
27277         PR tree-optimization/64878
27278         * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
27279         (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
27280         Stop recursion at loop phi nodes after having visited a loop phi node.
27282 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27284         * toplev.c (process_options): Change flag_ipa_ra before creating
27285         optimization_{default,current}_node.
27287         PR ipa/64896
27288         * cgraphunit.c (cgraph_node::expand_thunk): If
27289         restype is not is_gimple_reg_type nor the thunk_fndecl
27290         returns aggregate_value_p, set restmp to a temporary variable
27291         instead of resdecl.
27293 2015-02-06  Vladimir Makarov  <vmakarov@redhat.com>
27295         * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
27297 2015-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
27299         PR target/64205
27300         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
27301         add a general secondary reload handler for SDmode, unless we have
27302         both read/write support for SDmode.
27304 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27306         PR middle-end/64937
27307         * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
27308         Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
27309         or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
27310         1 before, push it to abstract_vec.
27311         (dwarf2out_abstract_function): Adjust caller.  Don't call
27312         set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
27313         DECL_ABSTRACT_P flags for all abstract_vec elts.
27315 2015-02-06  Renlin Li  <renlin.li@arm.com>
27317         * tree-ssa-forwprop.c (execute): Keep location info while rewrite
27318         complex gimple.
27319         * tree-ssa.c (execute_update_addresses_taken): Likewise.
27321 2015-02-06  Jeff Law  <law@redhat.com>
27323         PR target/64889
27324         * config/h8300/h8300.c (push): New argument "in_prologue".
27325         Pass "in_prologue" along to "F".
27326         (h8300_push_pop): Corresponding changes.
27327         (h8300_expand_prologue): Likewise.
27328         (h8300_swap_into_er6): Likewise.  Do not set RTX_FRAME_RELATED_P.
27330 2015-02-06  Jakub Jelinek  <jakub@redhat.com>
27332         PR rtl-optimization/64957
27333         PR debug/64817
27334         * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
27335         IOR rather than for AND.
27337 2015-02-06  Eric Botcazou  <ebotcazou@adacore.com>
27339         PR target/62631
27340         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
27341         of shift-add and (add + shift) operations.  Rename local variable.
27343 2015-02-05  Jeff Law  <law@redhat.com>
27345         PR target/17306
27346         * config/h8300/constraints.md (U): Correctly dectect
27347         "eightbit_data" memory addresses.
27348         * config/h8300/h8300.c (eightbit_constant_address_p): Also
27349         handle (const (plus (symbol_ref (x)))) where x is declared
27350         as an 8-bit data memory address.
27351         * config/h8300/h8300.md (call, call_value): Correctly detect
27352         "funcvec" functions.
27354         PR target/43264
27355         * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
27356         24 to 28 bits for the H8/300.
27358 2015-02-06  Alan Modra  <amodra@gmail.com>
27360         PR target/64876
27361         * config/rs6000/rs6000.c (chain_already_loaded): New function.
27362         (rs6000_call_aix): Use it.
27364 2015-02-05  Jan Hubicka <hubicka@ucw.cz>
27366         * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
27367         check.
27369 2015-02-05  Joern Rennecke  <joern.rennecke@embecosm.com>
27371         * config/h8300/constraints.md ("U" constraint): Use strict
27372         variant of REG_OK_FOR_BASE_P after reload has started.
27374 2015-02-04  Mantas Mikaitis  <mantas.mikaitis@arm.com>
27376         * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
27377         define to zero if !TARGET_NEON.
27378         (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
27380 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27381             Trevor Saunders  <tsaunders@mozilla.com>
27383         PR ipa/61548
27384         * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
27386 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27388         PR ipa/61548
27389         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
27390         when removing varpool nodes.
27392 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27394         PR ipa/61548
27395         * varpool.c (varpool_node::remove): Fix order of variables.
27397 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27399         PR ipa/64686
27400         * ipa-inline.c (inline_small_functions): Fix ordering issue between
27401         speculation resolution and key updates.
27403 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27405         * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
27406         about not letting any speculative edges unupdated.
27408 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27410         PR gcov/64123
27411         * gcov-io.c (gcov_var): Export.
27413 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27415         PR middle-end/64922
27416         * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
27417         edges that become speculative.
27419 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
27421         * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
27422         or DW_LANG_Fortran08.
27423         (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
27424         DW_LANG_Fortran08.
27425         (gen_compile_unit_die): Handle "GNU Fortran2003" and
27426         "GNU Fortran2008" language strings.
27427         * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
27428         * langhooks.h (lang_GNU_Fortran): New prototype.
27429         * langhooks.c (lang_GNU_Fortran): New function.
27430         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
27431         lang_GNU_Fortran.
27433 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
27435         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
27436         (RTX_OK_FOR_OLO10_P): Likewise.
27438 2015-02-04  Eric Botcazou  <ebotcazou@adacore.com>
27440         * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
27442 2015-02-04  Jan Hubicka  <hubicka@ucw.cz>
27444         PR middle-end/64922
27445         * gimple.c: Include gimple-ssa.h.
27446         (maybe_remove_unused_call_args): New function.
27447         * gimple.h (maybe_remove_unused_call_args): Declare.
27448         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
27449         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
27450         * gimple-fold.c (gimple_fold_call): Likewise.
27452 2015-02-04  H.J. Lu  <hongjiu.lu@intel.com>
27454         PR rtl-optimization/64905
27455         * lra-eliminations.c (setup_can_eliminate): Clear hard frame
27456         pointer alignment if it isn't needed.
27458 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
27460         * config/aarch64/aarch64-cores.def: Add cortex-a72 and
27461         cortex-a72.cortex-a53.
27462         * config/aarch64/aarch64-tune.md: Regenerate.
27463         * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
27465 2015-02-04  Nick Clifton  <nickc@redhat.com>
27467         * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
27468         inside a MEM.
27470 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
27472         * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
27473         (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
27474         (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
27475         of DEF_BUILTIN.
27476         (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
27477         BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
27478         DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
27479         (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
27480         BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
27481         BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
27482         DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
27483         * tree-core.h (enum built_in_function): In between
27484         BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
27485         for builtins that use DEF_BUILTIN_CHKP macro.
27487 2015-02-04  Alexandre Oliva  <aoliva@redhat.com>
27489         PR debug/64817
27490         * cfgexpand.c (expand_debug_expr): Compute unsignedp from
27491         operands for tcc_comparison exprs.  Fix typos.
27493         PR debug/64817
27494         * simplify-rtx.c (simplify_binary_operation_1): Simplify one
27495         of two XORs that have an intervening AND or IOR.
27497         PR debug/64817
27498         * simplify-rtx.c (simplify_binary_operation_1): Rewrite
27499         simplification of XOR of AND to not allocate new rtx before
27500         committing to a simplification.
27502 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27504         * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
27505         manual swaps in all peepholes.
27507 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27509         * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
27510         of manual swapping implementation.
27511         (aarch64_expand_vec_perm_const_1): Likewise.
27513 2015-02-04  James Greenhalgh <james.greenhalgh@arm.com>
27515         * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
27516         (generic_addrcost_table): Remove NAMED_PARAM.
27517         (cortexa57_addrcost_table): Likewise.
27518         (xgene1_addrcost_table): Likewise.
27519         (generic_regmove_table): Likewise.
27520         (cortexa53_regmove_table): Likewise.
27521         (xgene1_regmove_table): Likewise.
27522         (generic_vector_table): Likewise.
27523         (cortexa57_vector_table): Likewise.
27524         (xgene1_vector_table): Likewise.
27525         (generic_tunings): Likewise.
27526         (cortexa53_tunings): Likewise.
27527         (cortexa57_tunings): Likewise.
27528         (xgene1_tunings): Likewise.
27530 2015-02-04  Matthew Wahab  <matthew.wahab@arm.com>
27532         * config/arm/arm-cores.def: Add cortex-a72 and
27533         cortex-a72.cortex-a53.
27534         * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
27535         * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
27536         * config/arm/arm-tune.md: Regenerate.
27537         * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
27538         "cortex-a72.cortex-a53".
27539         * doc/invoke.texi (ARM Options/-mtune): Likewise.
27541 2015-02-04  Nick Clifton  <nickc@redhat.com>
27543         PR target/64408
27544         * config/fr30/predicates.md (di_operand): Add SUBREG to the list
27545         of accepted codes.
27546         (nonimmediate_di_operand): Likewise.
27548         * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
27549         prefixes of known F5 using MSP430 MCUs.
27551 2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27553         * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
27554         * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
27555         instead of __builtin_sqrt.
27557 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
27559         * varasm.c (do_assemble_alias): Follow transparent alias
27560         chain for target.
27561         (default_assemble_visibility): Follow transparent alias
27562         chain for decl name.
27564 2015-02-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
27566         PR middle-end/62103
27567         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
27568         to compute size of referenced value in the constant case.
27570 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
27572         PR rtl-optimization/64756
27573         * cse.c (invalidate_dest): New function.
27574         (cse_insn): Use it.  If dest != SET_DEST (sets[i].rtl) and
27575         HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
27576         invalidate and do not record it.
27578 2015-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
27580         PR target/64660
27581         * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
27582         atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
27583         atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
27584         atomic_nand<mode>_soft_tcb): New insns.
27585         (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
27586         Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
27587         (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
27588         Split into atomic_not_fetchsi_hard if operands[0] is unused.
27589         (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
27590         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
27591         (atomic_fetch_not<mode>_hard): Convert to insn_and_split.  Split into
27592         atomic_not<mode>_hard if operands[0] is unused.
27593         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
27594         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
27595         if operands[0] is unused.
27596         (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split.  Split
27597         into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
27598         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
27599         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
27600         unused.
27601         (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split.  Split
27602         into atomic_not<mode>_soft_tcb if operands[0] is unused.
27603         (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
27604         insn_and_split.  Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
27605         if operands[0] is unused.
27606         (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split.  Split
27607         into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
27608         (atomic_fetch_nandsi_hard): Convert to insn_and_split.  Split into
27609         atomic_nand_fetchsi_hard if operands[0] is unused.
27610         (atomic_fetch_nand<mode>_hard): Convert to insn_and_split.  Split into
27611         atomic_nand<mode>_hard if operands[0] is unused.
27612         (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split.  Split
27613         into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
27614         (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split.  Split
27615         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
27616         (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split.  Split
27617         into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
27618         (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
27619         Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
27620         (atomic_not_fetch<mode>_hard): Convert to insn_and_split.  Split into
27621         atomic_not<mode>_hard if operands[0] is unused.
27622         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
27623         Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
27624         unused.
27625         (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
27626         into atomic_not<mode>_soft_tcb if operands[0] is unused.
27627         (atomic_nand_fetch<mode>_hard): Convert to insn_and_split.  Split into
27628         atomic_nand<mode>_hard if operands[0] is unused.
27629         (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split.  Split
27630         into atomic_nand<mode>_soft_tcb if operands[0] is unused.
27632 2015-02-03  David Malcolm  <dmalcolm@redhat.com>
27634         PR jit/64810
27635         * Makefile.in (GCC_OBJS): Add gcc-main.o.
27636         * gcc-main.c: New file, containing "main" taken from gcc.c.
27637         * gcc.c (do_self_spec): Free decoded_options.
27638         (class driver): Move declaration to gcc.h.
27639         (main): Move declaration and implementation to new file
27640         gcc-main.c.
27641         (driver_get_configure_time_options): New function.
27642         * gcc.h (class driver): Move this declaration here, from
27643         gcc.c.
27644         (driver_get_configure_time_options): New declaration.
27646 2015-02-03  Jan Hubicka  <hubicka@ucw.cz>
27648         * ipa-inline-analysis.c (simple_edge_hints): Fix check for
27649         cross-module inlining.
27650         * cgraph.h (cgraph_node): Add flag merged.
27651         * ipa-icf.c (sem_function::merge): Maintain it.
27653 2015-02-03  Richard Sandiford  <richard.sandiford@arm.com>
27655         * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
27656         instead of OBJECT_P.
27658 2015-02-03  Eric Botcazou  <ebotcazou@adacore.com>
27660         PR target/62631
27661         * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
27662         (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
27663         * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
27664         int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
27666 2015-02-03  Jakub Jelinek  <jakub@redhat.com>
27668         PR other/63504
27669         * combine.c (reg_n_sets_max): New variable.
27670         (can_change_dest_mode, reg_nonzero_bits_for_combine,
27671         reg_num_sign_bit_copies_for_combine, get_last_value_validate,
27672         get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
27673         (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
27674         (rest_of_handle_combine): Initialize reg_n_sets_max.
27676 2015-02-02  Jan Hubicka  <hubicka@ucw.cz>
27678         * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
27679         if some always_inline was inlined, apply changes before inlining
27680         heuristically.
27682 2015-02-02  David Malcolm  <dmalcolm@redhat.com>
27684         PR jit/64810
27685         * config/arm/arm.c (arm_option_override): Set
27686         arm_selected_arch/cpu/tune to NULL on entry.
27688 2015-02-02  Tejas Belagod  <tejas.belagod@arm.com>
27689             Andrew Pinski  <pinskia@gcc.gnu.org>
27690             Jakub Jelinek  <jakub@gcc.gnu.org>
27692         PR target/64231
27693         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
27694         integer typing for small model. Use IN_RANGE.
27696 2015-02-02  Richard Biener  <rguenther@suse.de>
27698         * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
27699         * tree-vrp.c (vrp_valueize_1): Likewise.
27701 2015-02-02  Alan Modra  <amodra@gmail.com>
27703         * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
27704         than mem for toc_restore.
27705         * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
27706         (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
27707         (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
27709 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
27711         PR target/64047
27712         * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
27713         explicit default options.
27715 2015-02-01  Jan Hubicka  <hubicka@ucw.cz>
27717         PR ipa/64872
27718         * ipa-utils.c (ipa_merge_profiles): Add release argument.
27719         * ipa-icf.c (sem_function::merge): Do not release body when merging.
27720         * ipa-utils.h (ipa_merge_profiles): Update prototype.
27722 2015-02-01  Jakub Jelinek  <jakub@redhat.com>
27724         PR debug/64817
27725         * cfgexpand.c (deep_ter_debug_map): New variable.
27726         (avoid_deep_ter_for_debug): New function.
27727         (expand_debug_expr): If TERed SSA_NAME is in
27728         deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
27729         instead of trying to expand SSA_NAME's def stmt.
27730         (expand_debug_locations): When expanding debug bind
27731         of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
27732         temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
27733         value.
27734         (pass_expand::execute): Call avoid_deep_ter_for_debug on
27735         all debug bind stmts.  Delete deep_ter_debug_map after
27736         expand_debug_location if non-NULL and clear it.
27738 2015-02-01  Oleg Endo  <olegendo@gcc.gnu.org>
27740         PR target/64851
27741         * config/sh/sync.md (atomic_fetch_notsi_hard,
27742         atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
27743         atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
27744         atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
27745         atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
27746         atomic_not_fetch<mode>_soft_imask): New insns.
27748 2015-02-01  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
27750         * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
27751         (rank_for_schedule_debug): Split from ...
27752         (rank_for_schedule): ... this.
27753         (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
27754         * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
27756 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
27758         * doc/md.texi (Machine Constraints): Alphabetize table by target.
27759         * doc/extend.texi (x86 Variable Attributes): Move section to
27760         correct alphabetization after renaming.
27761         (x86 Type Attributes): Likewise.
27762         (Target Builtins): Re-alphabetize menu.
27763         (x86 Built-in Functions): Move section to correct alphabetization
27764         after renaming.
27765         (x86 transactional memory intrinsics): Likewise.
27766         * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
27767         and x86 Windows Options in table and menu.
27768         (x86 Options): Move section to correct alphabetization after
27769         renaming.
27770         (x86 Windows Options): Likewise.
27772 2015-01-31  Sandra Loosemore  <sandra@codesourcery.com>
27774         * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
27775         preferred names of the architecture and its 32- and 64-bit
27776         variants.
27777         * doc/invoke.texi: Likewise.
27778         * doc/md.texi: Likewise.
27780 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
27782         PR target/64882
27783         * config/i386/predicates.md (address_no_seg_operand): Reject
27784         non-CONST_INT_P operands in invalid mode.
27786 2015-01-31  Uros Bizjak  <ubizjak@gmail.com>
27788         * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
27789         address_operand 0.  Rename from *prefetch_prefetchwt1_<mode>.
27790         * config/i386/predicates.md (address_no_seg_operand): Call
27791         address_operand with VOIDmode.
27792         (vsib_address_operand): Ditto.
27793         (address_mpx_no_base_operand): Ditto.
27794         (address_mpx_no_index_operand): Ditto.
27796 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
27798         PR target/64688
27799         * lra-constraints.c (original_subreg_reg_mode): New.
27800         (simplify_operand_subreg): Try to simplify subreg of const.  Use
27801         original_subreg_reg_mode for it.
27802         (swap_operands): Update original_subreg_reg_mode.
27803         (curr_insn_transform): Set up original_subreg_reg_mode.
27805 2015-01-30  Vladimir Makarov  <vmakarov@redhat.com>
27807         PR target/64617
27808         * lra-constraints.c (prohibited_class_reg_set_mode_p): New
27809         function.
27810         (process_alt_operands): Use it.
27811         (curr_insn_transform): Check the optional reload pseudo class is
27812         ok for the mode.
27814 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
27816         * diagnostic.c (fatal_error (const char *, ...)): Remove function.
27817         * diagnostic-core.h (fatal_error (const char *, ...)): Remove
27818         prototype.
27819         * toplev.h (init_asm_output): Update comment on use of
27820         UNKNOWN_LOCATION with fatal_error.
27821         * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
27822         config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
27823         config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
27824         config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
27825         config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
27826         config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
27827         config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
27828         ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
27829         lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
27830         lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
27831         tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
27832         fatal_error changed to pass input_location as first argument.
27834 2015-01-30  Martin Liska  <mliska@suse.cz>
27836         * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
27837         in #pragma GCC diagnostic guards.
27839 2015-01-30  Richard Biener  <rguenther@suse.de>
27841         PR tree-optimization/64829
27842         * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
27843         not add a widening conversion pattern but hand off extra
27844         widenings to callers.
27845         (vect_recog_widen_mult_pattern): Handle extra widening produced
27846         by vect_handle_widen_op_by_const.
27847         (vect_recog_widen_shift_pattern): Likewise.
27848         (vect_pattern_recog_1): Remove excess vertical space in dumping.
27849         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
27850         (vect_init_vector_1): Likewise.
27851         (vect_get_vec_def_for_operand): Likewise.
27852         (vect_finish_stmt_generation): Likewise.
27853         (vectorizable_load): Likewise.
27854         (vect_analyze_stmt): Likewise.
27855         (vect_is_simple_use): Likewise.
27857 2015-01-29  Jeff Law  <law@redhat.com>
27859         * combine.c (try_combine): Fix typo in comment.
27861 2015-01-29  Segher Boessenkool  <segher@kernel.crashing.org>
27863         PR target/64580
27864         * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
27865         (rs6000_stack_info): Add assert.
27866         (rs6000_output_savres_externs): New function, split off from...
27867         (rs6000_output_function_prologue): ... here.  Do not call it for
27868         thunks.
27870 2015-01-29  Jeff Law  <law@redhat.com>
27872         PR target/15184
27873         * combine.c (try_combine): If I0 is a memory load and I3 a store
27874         to a related address, increase the "goodness" of doing a 4-insn
27875         combination with I0-I3.
27876         (make_field_assignment): Handle SUBREGs in the ior+and case.
27878 2015-01-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
27880         PR tree-optimization/64746
27881         * tree-if-conv.c (mask_exists): New function.
27882         (predicate_mem_writes): Save created mask with given size for further
27883         use.
27884         (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
27885         (ifcvt_repair_bool_pattern): Collect all statements that are root
27886         of bool pattern and use iterative algorithm to remove multiple uses
27887         of predicates, display number of required iterations.
27889 2015-01-29  Richard Biener  <rguenther@suse.de>
27891         PR tree-optimization/64853
27892         * tree-vrp.c (vrp_valueize_1): Do not return anything if the
27893         stmt will get simulated again.
27894         * tree-ssa-ccp.c (valueize_op_1): Likewise.
27896 2015-01-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27898         * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
27899         return_in_pc.  Remove redundant assignments.
27900         (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
27901         (arm_expand_epilogue): Don't compare boolean with true in if condition.
27903 2015-01-29  Uros Bizjak  <ubizjak@gmail.com>
27905         * config/i386/i386.c (ix86_mode_after): Make static.
27907 2015-01-29  Richard Biener  <rguenther@suse.de>
27909         PR tree-optimization/64844
27910         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
27911         dump cost model analysis.
27912         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
27913         Do not register adjusted load/store costs here.
27915 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
27916             Uros Bizjak  <ubizjak@gmail.com>
27918         * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
27919         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
27920         using x86_use_pseudo_pic_reg.
27921         * config/i386/i386.c (ix86_conditional_register_usage): Remove
27922         support for fixed PIC register.
27923         (ix86_use_pseudo_pic_reg): Not static any more.
27925 2015-01-29  Ilya Enkovich  <ilya.enkovich@intel.com>
27927         PR middle-end/64805
27928         * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
27929         to avoid error in cgraph node verification.
27931 2015-01-29  Marek Polacek  <polacek@redhat.com>
27933         * doc/standards.texi: Reflect that the default for C is gnu11.
27935 2015-01-29  Kaz Kojima  <kkojima@gcc.gnu.org>
27937         PR target/64761
27938         * reorg.c (switch_text_sections_between_p): New function.
27939         (relax_delay_slots): Call it when testing if the jump insn
27940         is removable.  Use targetm.can_follow_jump when testing if
27941         the conditional branch can follow an unconditional jump.
27943 2015-01-27  Caroline Tice  <cmtice@google.com>
27945         Committing VTV Cywin/Ming patch for Patrick Wollgast
27946         * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
27947         if -fvtable-verify=preinit/std is used.
27948         * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
27949         * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
27950         * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
27951         if -fvtable-verify=preinit/std is used.
27952         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
27953         * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
27954         if -fvtable-verify=preinit/std is used.
27955         * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
27956         * config/i386/mingw32.h (LIB_SPEC): Likewise.
27957         * varasm.c (assemble_variable): Add code to properly set the comdat
27958         section and name for the .vtable_map_vars section in case the
27959         target is PE or COFF.
27961 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
27963         PR ipa/64801
27964         * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
27965         make sane BB profile.
27966         (cgraph_node::expand_thunk): Make sane BB profile.
27967         (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
27968         * cgraph.h (init_lowered_empty_function): Update prototype.
27969         * config/i386/i386.c (make_resolver_func): Update call.
27970         * predict.c (gate): Disable branch prediction pass if
27971         profile is already there.
27973 2015-01-29  Jan Hubicka  <hubicka@ucw.cz>
27975         * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
27976         * opth-gen.awk: Likewise.
27977         * common.opt: Mark flag_fp_contract_mode as Optimization.
27979 2015-01-29  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27981         * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
27982         * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
27984 2015-01-28  Oleg Endo  <olegendo@gcc.gnu.org>
27986         PR target/64659
27987         * config/sh/predicates.md (atomic_arith_operand,
27988         atomic_logical_operand): Remove.
27989         * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
27990         (atomic_arith_operand_0): New predicate.
27991         (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
27992         Use atomic_arith_operand_0 for input values.
27993         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
27994         atomic_compare_and_swap<mode>_soft_gusa,
27995         atomic_compare_and_swap<mode>_soft_tcb,
27996         atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
27997         arith_reg_operand instead of register_operand.
27998         (atomic_exchange<mode>): Use arith_reg_dest for output value.  Use
27999         atomic_arith_operand_0 for newval input.
28000         (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
28001         atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
28002         atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
28003         arith_reg_operand instead of register_operand.
28004         (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
28005         fetchop_predicate_1, fetchop_constraint_1_llcs,
28006         fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
28007         fetchop_constraint_1_imask): New code iterator attributes.
28008         (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
28009         register_operand.  Use fetchop_predicate_1.
28010         (atomic_fetch_<fetchop_name>si_hard,
28011         atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
28012         register_operand.  Use fetchop_predicate_1, fetchop_constraint_1_llcs.
28013         (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
28014         and arith_reg_operand instead of register_operand.  Use
28015         fetchop_predicate_1, fetchop_constraint_1_gusa.
28016         (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
28017         and arith_reg_operand instead of register_operand.  Use
28018         fetchop_predicate_1, fetchop_constraint_1_tcb.  Adjust asm sequence
28019         to allow R0 usage.
28020         (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
28021         and arith_reg_operand instead of register_operand.  Use
28022         fetchop_predicate_1, fetchop_constraint_1_imask.  Adjust asm sequence
28023         to allow R0 usage.
28024         (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
28025         register_operand.  Use atomic_logical_operand_1.
28026         (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
28027         atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
28028         arith_reg_operand instead of register_operand.
28029         (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
28030         Use arith_reg_dest and arith_reg_operand instead of register_operand.
28031         Use logical_operand and rK08.  Adjust asm sequence to allow R0 usage.
28032         (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
28033         register_operand.  Use fetchop_predicate_1.
28034         (atomic_<fetchop_name>_fetchsi_hard,
28035         atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
28036         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28037         fetchop_constraint_1_llcs.
28038         (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
28039         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28040         fetchop_constraint_1_gusa.
28041         (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
28042         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28043         fetchop_constraint_1_tcb.  Adjust asm sequence to allow R0 usage.
28044         (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
28045         arith_reg_operand instead of register_operand.  Use fetchop_predicate_1,
28046         fetchop_constraint_1_imask.  Adjust asm sequence to allow R0 usage.
28047         (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
28048         register_operand.  Use atomic_logical_operand_1.
28049         (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
28050         atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
28051         arith_reg_operand instead of register_operand.
28052         (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
28053         arith_reg_operand instead of register_operand.  Use logical_operand
28054         and K08.  Adjust asm sequence to allow R0 usage.
28055         (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
28056         arith_reg_operand instead of register_operand.  Use logical_operand
28057         and K08.
28059 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
28061         PR other/63504
28062         * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
28063         Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
28064         (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
28065         only get_full_len HOST_WIDE_INTs from get_val () array rather than
28066         all bits in *val_wide.
28068 2015-01-28  Jan Hubicka  <hubicka@ucw.cz>
28070         * varpool.c (tls_model_names): Fix names.
28071         (varpool_node::dump): Dump tls- prefix for tls models.
28073 2015-01-28  Thomas Schwinge  <thomas@codesourcery.com>
28074             Bernd Schmidt  <bernds@codesourcery.com>
28075             Nathan Sidwell  <nathan@codesourcery.com>
28077         * config/nvptx/mkoffload.c: New file.
28078         * config/nvptx/t-nvptx: Add build rules for it.
28079         * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
28080         (extra_programs): Add mkoffload.
28081         * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
28082         function.
28083         (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
28085 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
28087         PR middle-end/64809
28088         * cfgexpand.c (reorder_operands): Skip debug gimples.
28090 2015-01-28  Ilya Enkovich  <ilya.enkovich@intel.com>
28092         PR tree-optimization/64277
28093         * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
28094         range info when possible to refine estimation.
28096 2015-01-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
28098         PR tree-optimization/64718
28099         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
28100         be a 16bit unsigned integer when n->range is 16.
28101         (bswap_replace): Convert src to that type if necessary for all bswap
28102         sizes.  Fix rotation right notation in nearby comment.  Use bswap_type
28103         set in pass_optimize_bswap::execute ().
28105 2015-01-28  James Greenhalgh  <james.greenhalgh@arm.com>
28107         * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
28108         * config/aarch64/aarch64-simd-builtins.def (abs): Split by
28109         integer and floating point variants.
28110         * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
28112 2015-01-28  Robert Suchanek  <robert.suchanek@imgtec.com>
28114         * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
28115         for all vector modes.
28117 2015-01-28  Jakub Jelinek  <jakub@redhat.com>
28119         PR bootstrap/64612
28120         * doc/sourcebuild.texi (comdat_group): Document.
28122 2015-01-28  Terry Guo  <terry.guo@arm.com>
28124         * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
28126 2015-01-27  David Malcolm  <dmalcolm@redhat.com>
28128         * toplev.c (print_version): Add param "show_global_state", and
28129         only print GGC and plugin information if it is true.
28130         (init_asm_output): Pass in "true" for the new param when calling
28131         print_version.
28132         (process_options): Likewise.
28133         (toplev::main): Likewise.
28134         * toplev.h (print_version): Add new param to decl.
28136 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
28138         PR ipa/60871
28139         PR ipa/64139
28140         * tree.c (lookup_binfo_at_offset): New function.
28141         (get_binfo_at_offset): Use it.
28143 2015-01-27  Jan Hubicka  <hubicka@ucw.cz>
28145         PR ipa/64282
28146         * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
28147         on vtable being vtable.
28149 2015-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28151         * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
28152         * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
28153         -mhotpatch= option.
28154         * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
28155         -mno-hotpatch options.  Change syntax of -mhotpatch= option.
28156         * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
28157         Renamed.
28158         (s390_hotpatch_trampoline_halfwords_max): Renamed.
28159         (s390_hotpatch_hw_max): New name.
28160         (s390_hotpatch_trampoline_halfwords): Renamed.
28161         (s390_hotpatch_hw_before_label): New name.
28162         (get_hotpatch_attribute): Removed.
28163         (s390_hotpatch_hw_after_label): New name.
28164         (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
28165         attribute.
28166         (s390_attribute_table): Ditto.
28167         (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
28168         (s390_function_num_hotpatch_hw): New name.
28169         Remove special handling of inline functions and hotpatching.
28170         Return number of nops before and after the function label.
28171         (s390_can_inline_p): Removed.
28172         (s390_asm_output_function_label): Emit a configurable number of nops
28173         after the function label.
28174         (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
28175         (TARGET_CAN_INLINE_P) Removed.
28176         (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
28178 2015-01-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28179             Jiong Wang  <jiong.wang@arm.com>
28181         * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
28182         of scratch reg.
28183         (cb<optab><mode>1): Likewise.
28184         * config/aarch64/iterators.md (bcond): New define_code_attr.
28186 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28188         * config/s390/s390.c (s390_memory_move_cost): Increase costs for
28189         memory accesses.
28191 2015-01-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28193         * config/s390/s390.c (s390_register_move_cost): Increase costs for
28194         FPR->GPR moves.
28196 2015-01-27  Richard Biener  <rguenther@suse.de>
28198         * tree-vrp.c (update_value_range): Intersect the range with
28199         old recorded SSA name range information.
28201 2015-01-27  Nick Clifton  <nickc@redhat.com>
28203         * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
28204         BC, DE and HL registers directly, not via AX.
28205         When decrementing the stack pointer by a large amount, transfer SP
28206         into AX and perform the subtraction there.
28207         (rl78_expand_epilogue): Perform the inverse of the above
28208         enhancements.
28210 2015-01-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28212         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
28214 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28215             Yury Gribov  <y.gribov@samsung.com>
28217         PR ubsan/64741
28218         * ubsan.c (ubsan_source_location): Refactor code.
28219         (ubsan_type_descriptor): Update type size. Refactor code.
28221 2015-01-27  Richard Biener  <rguenther@suse.de>
28223         PR tree-optimization/56273
28224         PR tree-optimization/59124
28225         PR tree-optimization/64277
28226         * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
28227         from the first VRP pass.
28229 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28231         PR ipa/64776
28232         * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
28233         handle the first argument in the same loop as all the other arguments.
28235         PR rtl-optimization/61058
28236         * jump.c (cleanup_barriers): Update basic block boundaries
28237         if BLOCK_FOR_INSN is non-NULL on PREV.
28239 2015-01-27  Ilya Enkovich  <ilya.enkovich@intel.com>
28241         * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
28242         bounds narrowing, already instrumented calls and calls to
28243         not instrumentable functions.
28245 2015-01-27  Jakub Jelinek  <jakub@redhat.com>
28247         PR tree-optimization/64807
28248         * wide-int.cc (wi::divmod_internal): Clear
28249         b_dividend[dividend_blocks_needed].
28251 2015-01-26  DJ Delorie  <dj@redhat.com>
28253         * config/rl78/rl78.c (move_elim_pass): Don't optimize away
28254         volatile memory references.
28256 2015-01-26  Oleg Endo  <olegendo@gcc.gnu.org>
28258         PR target/49263
28259         * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
28260         remove_insn.
28261         * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
28262         shifts if it already fits into K08.
28264 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
28266         PR ipa/64730
28267         * ipa-inline.c (inline_small_functions): Print "unknown" even
28268         if edge->call_stmt is non-NULL, but has builtins or unknown
28269         location.
28271         PR middle-end/64421
28272         * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
28273         with asterisk, skip the first character.
28275 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
28277         PR target/64806
28278         * config/i386/i386 (feature_priority): Revert the last P_POPCNT
28279         order change.
28281 2015-01-26  Uros Bizjak  <ubizjak@gmail.com>
28283         PR target/64795
28284         * config/i386/i386.md (*movdi_internal): Also check operand 0
28285         to determine TYPE_LEA operand.
28286         (*movsi_internal): Ditto.
28288 2015-01-26  Jakub Jelinek  <jakub@redhat.com>
28290         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
28291         OPTION_MASK_QUAD_MEMORY_ATOMIC.
28293 2015-01-26  Renlin Li  <renlin.li@arm.com>
28295         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
28296         the comment.
28297         * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
28298         for higher part.
28300 2015-01-26  Richard Biener  <rguenther@suse.de>
28302         PR middle-end/64764
28303         * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
28304         combining two BIT_AND_EXPR predicates.
28306 2015-01-26  H.J. Lu  <hongjiu.lu@intel.com>
28308         PR bootstrap/64754
28309         * tree-ssa-structalias.c (new_var_info): Initialize ruid.
28311 2015-01-26  Terry Guo  <terry.guo@arm.com>
28313         * config/arm/arm.c (arm_file_start): Update the assignment of
28314         Tag_ABI_HardFP_use.
28316 2015-01-25  James Greenhalgh  <james.greenhalgh@arm.com>
28318         * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
28319         pipeline model.
28320         config/arm/arm.md: Include the new Cortex-A57 model.
28321         (generic_sched): Don't use generic_sched when tuning for
28322         Cortex-A57.
28324 2015-01-25  Allan Sandfeld Jensen  <sandfeld@kde.org>
28325             Uros Bizjak  <ubizjak@gmail.com>
28327         * config/i386/i386.c (get_builtin_code_for_version): Add
28328         support for BMI and BMI2 multiversion functions.
28330 2015-01-25  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28332         * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
28333         (extract_bit_field): Likewise.
28334         (extract_low_bits): Likewise.
28335         (expand_mult): Likewise.
28336         (expand_mult_highpart_adjust): Likewise.
28338 2015-01-24  H.J. Lu  <hongjiu.lu@intel.com>
28340         * config/i386/driver-i386.c (host_detect_local_cpu): Check new
28341         Silvermont, Haswell, Broadwell and Knights Landing model numbers.
28342         * config/i386/i386.c (processor_model): Add
28343         M_INTEL_COREI7_BROADWELL.
28344         (arch_names_table): Add "broadwell".
28346 2015-01-24  Oleg Endo  <olegendo@gcc.gnu.org>
28348         PR target/49263
28349         PR target/53987
28350         PR target/64345
28351         PR target/59533
28352         PR target/52933
28353         PR target/54236
28354         PR target/51244
28355         * config/sh/sh-protos.h
28356         (sh_extending_set_of_reg::can_use_as_unextended_reg,
28357         sh_extending_set_of_reg::use_as_unextended_reg,
28358         sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
28359         sh_is_movrt_insn, sh_insn_operands_modified_between_p,
28360         sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
28361         sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
28362         (sh_treg_insns): New class.
28363         * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
28364         (scope_counter): New class.
28365         (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
28366         sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
28367         sh_extending_set_of_reg::can_use_as_unextended_reg,
28368         sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
28369         sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
28370         sh_split_treg_set_expr): New functions.
28371         (addsubcosts): Handle treg_set_expr.
28372         (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
28373         (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
28374         (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
28375         (sh_insn_operands_modified_between_p): Make non-static.
28376         * config/sh/predicates.md (zero_extend_movu_operand): Allow
28377         simple_mem_operand in addition to displacement_mem_operand.
28378         (zero_extend_operand): Don't allow zero_extend_movu_operand.
28379         (treg_set_expr, treg_set_expr_not_const01,
28380         arith_reg_or_treg_set_expr): New predicates.
28381         * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
28382         arith_or_int_operand instead of logical_operand.  Convert to
28383         insn_and_split.  Try to optimize constant operand in splitter.
28384         (tsthi_t, tstqi_t): Fold into *tst<mode>_t.  Convert to insn_and_split.
28385         (*tstqi_t_zero): Delete.
28386         (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
28387         (tstsi_t_and_not): Delete.
28388         (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
28389         Convert to insn_and_split.
28390         (unnamed split, tstsi_t_zero_extract_xor,
28391         tstsi_t_zero_extract_subreg_xor_little,
28392         tstsi_t_zero_extract_subreg_xor_big): Delete.
28393         (*tstsi_t_shift_mask): New insn_and_split.
28394         (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
28395         to recombine with surrounding insns when splitting.
28396         (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
28397         (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
28398         (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
28399         *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
28400         (*cbranch_div0s: Delete.
28401         (*addc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
28402         Try to recombine with surrounding insns when splitting.  Add operand
28403         order variants.
28404         (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
28405         (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
28406         *addc_r_r_msb, *addc_2r_msb): Delete.
28407         (*addc_2r_lsb): Rename to *addc_2r_t.  Use treg_set_expr.  Add operand
28408         order variant.
28409         (*addc_negreg_t): New insn_and_split.
28410         (*subc): Convert to insn_and_split.  Use treg_set_expr as 3rd operand.
28411         Try to recombine with surrounding insns when splitting.
28412         Add operand order variants.
28413         (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
28414         insn_and_split patterns.
28415         (*rotcr): Use arith_reg_or_treg_set_expr.  Try to recombine with
28416         surrounding insns when splitting.
28417         (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
28418         (*rotcl): Likewise.  Add zero_extract variant.
28419         (*ashrsi2_31): New insn_and_split.
28420         (*negc): Convert to insn_and_split.  Use treg_set_expr.
28421         (*zero_extend<mode>si2_disp_mem): Update comment.
28422         (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
28423         condition.
28424         (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr.  Try to recombine
28425         with surrounding insns when splitting.
28426         (any_treg_expr_to_reg): New insn_and_split.
28427         (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
28428         *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
28429         *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
28430         *zero_extract_2): New single bit zero extract patterns.
28431         (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
28432         (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
28433         *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
28434         *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
28435         set destination.
28436         (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
28437         register_operand for set source.
28439 2015-01-23  Jan Hubicka  <hubicka@ucw.cz>
28441         * i386.opt (prefetch_sse): New targetsave.
28442         * i386.c (ix86_function_specific_save): Save prefetch_sse.
28443         (ix86_function_specific_restore): Restore prefetch_sse and initialize
28444         ix86_cost/ix86_tune_cost.
28446 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28448         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
28449         Support the JIT by using 0 as the language type.
28451 2015-01-23  Vladimir Makarov  <vmakarov@redhat.com>
28453         PR target/64317
28454         * lra-lives.c (make_hard_regno_born): Add parameter.  Don't make
28455         REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
28456         (mark_regno_live, process_bb_lives): Pass new parameter value to
28457         make_hard_regno_born.
28459 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28461         PR rtl-optimization/63637
28462         PR rtl-optimization/60663
28463         * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
28464         if elt->cost is MAX_COST for ASM_OPERANDS.
28465         (find_sets_in_insn): Fix up comment typo.
28466         (cse_insn): Don't set src_volatile for all non-volatile
28467         ASM_OPERANDS in PARALLELs, but just those with multiple outputs
28468         or with "memory" clobber.  Set elt->cost to MAX_COST
28469         for ASM_OPERANDS in PARALLEL.  Set src_elt->cost to MAX_COST
28470         if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
28472 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
28474         * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
28475         alternative 1.
28477 2015-01-23  Uros Bizjak  <ubizjak@gmail.com>
28479         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
28480         libgcc/config/i386/elf-lib.h.
28482 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28484         PR driver/64737
28485         * gcc.c (print_configuration): Don't print a blank line at the end
28486         here...
28487         (run_attempt): ... but here unstead.
28489         PR middle-end/64734
28490         * omp-low.c (scan_sharing_clauses): Don't ignore
28491         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
28492         on target data/update constructs.
28494 2015-01-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28496         PR target/50928
28497         * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
28498         (DEBUG_RELOAD): Removed define.
28499         (m32c_limit_reload_class): Enable traces with if DEBUG0.
28500         (m32c_function_arg): Added a type cast.
28501         (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
28502         * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
28503         * config/m32c/bitops.md (andqi3_16): Likewise.
28504         * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
28505         (push_a01_l): Likewise.
28507 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28509         PR jit/64721
28510         * main.c (main): Construct toplev instances with init_signals=true.
28511         * toplev.c (general_init): Add param "init_signals", and use it to
28512         conditionalize the calls to signal and host_hooks.extra_signals.
28513         (toplev::toplev): Add param "init_signals".
28514         (toplev::main): When invoking general_init, pass m_init_signals
28515         to control whether signal-handlers are installed.
28516         * toplev.h (toplev::toplev): Add param "init_signals".
28517         (toplev::m_init_signals): New field.
28519 2015-01-23  David Malcolm  <dmalcolm@redhat.com>
28521         PR jit/64722
28522         * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
28523         NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
28524         latter may be affected by the former (e.g. on i686).
28526 2015-01-23  Martin Liska  <mliska@suse.cz>
28528         * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
28529         false positive during profiledbootstrap.
28531 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28533         PR libgomp/64672
28534         * lto-opts.c (lto_write_options): Output non-explicit conservative
28535         -fno-openacc.
28536         * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
28537         (append_compiler_options): Pass -fopenacc through.
28539 2015-01-23  Tom de Vries  <tom@codesourcery.com>
28541         PR libgomp/64707
28542         * lto-opts.c (lto_write_options): Output non-explicit conservative
28543         -fno-openmp.
28544         * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
28545         (append_compiler_options): Pass -fopenmp through.
28547 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
28549         PR debug/64511
28550         * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
28551         GTY markup.
28553         * diagnostic-core.h (internal_error_no_backtrace): New prototype.
28554         * diagnostic.def (DK_ICE_NOBT): New kind.
28555         * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
28556         like DK_ICE, but never print backtrace.
28557         (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
28558         (internal_error_no_backtrace): New function.
28559         * gcc.c (execute): Use internal_error_no_backtrace instead of
28560         internal_error.
28562 2015-01-22  Jeff Law  <law@redhat.com>
28564         PR target/52076
28565         * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
28566         improve code density for small immediate to memory case.
28567         (insv): Better handle bitfield assignments when the field is
28568         being set to all ones.
28569         * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
28570         operand predicate.
28572 2015-01-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28573             Jakub Jelinek  <jakub@redhat.com>
28575         PR middle-end/64729
28576         * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
28577         for !TARGET_LIBC_PROVIDES_SSP version and
28578         -fstack-protector-{all,strong,explicit} otherwise.
28579         * config/freebsd.h (LINK_SSP_SPEC): Handle
28580         -fstack-protector-{strong,explicit}.
28582 2015-01-22  Jan Hubicka  <hubicka@ucw.cz>
28583             H.J. Lu  <hongjiu.lu@intel.com>
28585         PR ipa/64694
28586         * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
28587         heap.
28589 2015-01-22  Wei Mi  <wmi@google.com>
28591         PR rtl-optimization/64557
28592         * dse.c (record_store): Call get_addr for mem_addr.
28593         (check_mem_read_rtx): Likewise.
28595 2015-01-22  Eric Botcazou  <ebotcazou@adacore.com>
28597         * fold-const.c (const_binop): Add early return for non-tcc_binary.
28599 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
28601         * toplev.c (init_local_tick): Process the failure when read
28602         fails for random_seed.
28604         * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
28605         'pretty_name' to avoid memory overflow.
28607 2015-01-22  Richard Biener  <rguenther@suse.de>
28609         PR middle-end/64728
28610         * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
28611         abnormal coalescing on undefined SSA names.
28613 2015-22-01  Uros Bizjak  <ubizjak@gmail.com>
28615         PR target/64688
28616         PR target/64477
28617         * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
28618         for alternative 3.
28619         (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
28621 2015-01-22  Trevor Saunders  <tsaunders@mozilla.com>
28623         PR middle-end/63325
28624         * fold-const.c (fold_checksum_tree): Don't include value of
28625         expr->decl_with_vis.symtab_node in the checksum.
28627 2015-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28629         * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
28631 2015-01-22  Max Ostapenko  <m.ostapenko@partner.samsung.com>
28633         PR driver/64690
28634         * gcc.c (insert_comments): New function.
28635         (try_generate_repro): Call it.
28636         (append_text): Removed.
28638 2015-01-22  Richard Biener  <rguenther@suse.de>
28640         * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
28641         with IL incompatible options.  Properly honor user optimize
28642         attributes.
28644 2015-01-21  Segher Boessenkool  <segher@kernel.crashing.org>
28646         PR rtl-optimization/64682
28647         * combine.c (distribute_notes): When moving a death note for
28648         a register that is set in the new I2, make sure to put it
28649         before that new I2.
28651 2015-01-21  David Edelsohn  <dje.gcc@gmail.com>
28653         * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
28654         not TARGET_DEFAULT.
28656 2015-01-21  Jakub Jelinek  <jakub@redhat.com>
28658         PR debug/64511
28659         * simplify-rtx.c (simplify_relational_operation_1): Don't try to
28660         optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
28661         into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
28663         PR sanitizer/64706
28664         * doc/invoke.texi (-fsanitize=vptr): Document.
28666         PR rtl-optimization/62078
28667         * dse.c: Include cfgcleanup.h.
28668         (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
28669         anything call purge_all_dead_edges and cleanup_cfg at the end
28670         of the pass.
28672 2015-01-21  Jan Hubicka  <hubicka@ucw.cz>
28674         * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
28675         edges.
28677 2015-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
28679         * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
28680         decl attribute.
28682 2015-01-21  David Sherwood  <david.sherwood@arm.com>
28683             Tejas Belagod <Tejas.Belagod@arm.com>
28685         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
28686         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
28687         * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
28688         Removed.
28690 2015-01-21  David Sherwood  <david.sherwood@arm.com>
28691             Tejas Belagod <Tejas.Belagod@arm.com>
28693         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
28694         (aarch64_reverse_mask): New decls.
28695         * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
28696         (insn_count): New mode_attr.
28697         * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
28698         (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
28699         (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
28700         (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
28701         (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
28702         (aarch64_simd_st4): New patterns.
28703         * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
28704         (aarch64_reverse_mask): New functions.
28706 2015-01-21  Richard Sandiford  <richard.sandiford@arm.com>
28708         * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
28709         Declare.
28710         * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
28711         addressing modes for BE.
28712         (aarch64_print_operand): Add 'R' specifier.
28713         (aarch64_simd_disambiguate_copy): Delete.
28714         (aarch64_simd_emit_reg_reg_move): New function.
28715         * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
28716         in define_splits for structural moves.
28717         (mov<mode>): Use less restrictive predicates.
28718         (*aarch64_mov<mode>): Simplify and only allow for LE.
28719         (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
28721 2015-01-21  Alan Hayward  <alan.hayward@arm.com>
28723         * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
28725 2015-01-21  Richard Henderson  <rth@redhat.com>
28727         PR target/64669
28728         * ccmp.c (used_in_cond_stmt_p): Remove.
28729         (expand_ccmp_expr): Don't use it.
28731 2015-01-21  Nick Clifton  <nickc@redhat.com>
28733         * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
28734         PARALLELs.
28736 2015-01-21  Richard Biener  <rguenther@suse.de>
28738         PR middle-end/64313
28739         * tree-core.h (builtin_info, builtin_info_type): Turn from
28740         an object with two arrays into an array of an object with
28741         decl and two flags, implicit_p and declared_p.
28742         * tree.h (builtin_decl_explicit, builtin_decl_implicit,
28743         set_builtin_decl, set_builtin_decl_implicit_p,
28744         builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
28745         (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
28746         * builtins.c (builtin_info): Adjust.
28747         * gimplify.c (gimplify_addr_expr): References to builtins
28748         that have been declared by the user makes them eligible for
28749         use by the compiler.  Call set_builtin_decl_implicit_p on them.
28751 2015-01-20  Jeff Law  <law@redhat.com>
28753         PR target/59946
28754         * config/m68k/m68k.md (Comparison expanders and patterns): Do not
28755         allow pc-relative addresses in operand predicates or constraints.
28757 2015-01-21  Bin Cheng  <bin.cheng@arm.com>
28759         * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
28760         neon on aarch32 processors for stringops.
28762 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28764         PR ipa/63576
28765         * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
28767 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28769         PR lto/45375
28770         * ipa-inline.c: Include lto-streamer.h
28771         (report_inline_failed_reason): Output source file differences and
28772         flags on optimization/target node mismatch.
28773         (can_inline_edge_p): Consider caller to be the outer inline function;
28774         be less restrictive about matching opimize and optimize_size attributes.
28775         (inline_account_function_p): Break out from ...
28776         (inline_small_functions): ... here.
28777         * ipa-inline-transform.c (clone_inlined_nodes): Use
28778         inline_account_function_p.
28779         (inline_call): Use optimize attribution; use inline_account_function_p.
28780         (inline_transform): Use opt_for_fn.
28781         * ipa-inline.h (inline_account_function_p): Declare.
28783 2015-01-20  Jakub Jelinek  <jakub@redhat.com>
28785         PR debug/64663
28786         * dwarf2out.c (decl_piece_node): Don't put bitsize into
28787         mode if bitsize <= 0.
28788         (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
28789         dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
28790         sizes and positions.
28792 2015-01-20  Chung-Lin Tang  <cltang@codesourcery.com>
28794         * config/nios2/nios2.c (nios2_asm_file_end): Implement
28795         TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
28796         needed.
28797         (TARGET_ASM_FILE_END): Define.
28799 2015-01-20  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
28801         * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
28802         (struct tune_params): Use the enum.
28803         * arm.c (arm_*_tune): Update.
28804         (arm_option_override): Update.
28806 2015-01-20  Richard Biener  <rguenther@suse.de>
28808         PR ipa/64684
28809         * ipa-reference.c (add_static_var): Inline ...
28810         (analyze_function): ... here after splitting out from ...
28811         (is_proper_for_analysis): ... this.
28813 2015-01-20  Matthew Wahab  <matthew.wahab@arm.com>
28815         PR target/64149
28816         * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
28817         * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
28818         replace the conditional with it's true branch.
28819         * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
28820         (arm_lra_p): Remove.
28822 2015-01-20  Eric Botcazou  <ebotcazou@adacore.com>
28824         * config/visium/visium.h (LIB_SPEC): Adjust in default case.
28826 2015-01-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28828         * config/tilegx/mul-tables.c: Move symtab.h include after
28829         coretypes.h include.
28830         * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
28831         vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
28832         flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
28833         wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
28834         explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
28836 2015-01-20  Igor Zamyatin  <igor.zamyatin@intel.com>
28838         PR bootstrap/64676
28839         Revert:
28840         2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
28842         PR rtl-optimization/64081
28843         * loop-iv.c (def_pred_latch_p): New function.
28844         (latch_dominating_def): Allow specific cases with non-single
28845         definitions.
28846         (iv_get_reaching_def): Likewise.
28847         (check_complex_exit_p): New function.
28848         (check_simple_exit): Use check_complex_exit_p to allow certain cases
28849         with exits not executing on any iteration.
28851 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28853         PR lto/45375
28854         * i386.c (ix86_option_override_internal): Use ix86_tune_cost
28855         to set branch cost.
28857 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28859         PR lto/45375
28860         * i386.c (gate): Check flag_expensive_optimizations and
28861         optimize_size.
28862         (ix86_option_override_internal): Drop optimize_size condition
28863         on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
28864         MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
28865         MASK_PREFER_AVX128.
28866         (ix86_avx256_split_vector_move_misalign,
28867         ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
28868         * sse.md (all uses of TARGET_PREFER_AVX128): Add
28869         optimize_insn_for_speed_p check.
28871 2015-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
28873         * config/mips/mips.h (FP_ASM_SPEC): New define.
28874         (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
28875         instead.
28877 2015-01-19  Oleg Endo  <olegendo@gcc.gnu.org>
28879         PR target/53988
28880         * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
28881         nullptr for insn when reaching the first insn.
28882         * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
28883         (sh_insn_operands_modified_between_p): Add nullptr check.
28884         (sh_find_extending_set_of_reg): Fix log message.  Don't accept
28885         sign extending mem load if the insn contains any UNSPEC or
28886         UNSPEC_VOLATILE.
28888 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28890         * params.def (inline-unit-growth): Drop to 15%.
28891         * invoke.texi (inline-unit-growth): Document change.
28893 2015-01-19  Martin Liska  <mliska@suse.cz>
28895         PR ipa/64668
28896         * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
28897         function for second argument of OBJ_TYPE_REF.
28899 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28901         PR ipa/64218
28902         * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
28903         whether function is an alias.
28905 2015-01-19  Jan Hubicka  <hubicka@ucw.cz>
28907         * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
28908         cases.
28910 2015-01-19  Vladimir Makarov  <vmakarov@redhat.com>
28912         PR rtl-optimization/64671
28913         * lra-remat.c (operand_to_remat): Don't consider jump and call
28914         insns.
28916 2015-01-19  David Edelsohn  <dje.gcc@gmail.com>
28918         PR target/59828
28919         * config/rs6000/default64.h: Include rs6000-cpus.def.
28920         (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
28921         (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
28922         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
28923         and POWER8.
28924         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
28925         POWER8.
28926         * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
28927         pseudo-op to specify assembler dialect.
28929 2015-01-19  Martin Liska  <mliska@suse.cz>
28931         PR ipa/64664
28932         * ipa-icf.c (sem_item_optimizer::filter_removed_items):
28933         Handle safe potentially removed nodes during filtering.
28935 2015-01-19  Martin Liska  <mliska@suse.cz>
28937         * doc/extend.texi (no_icf): Add new attribute description.
28938         * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
28939         where the pass attempts to merge a function with no_icf attribute.
28941 2015-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28943         PR target/64532
28944         * doc/md.texi (ARM Options): Document register constraints.
28946 2015-01-19  Jiong Wang  <jiong.wang@arm.com>
28947             Andrew Pinski  <apinski@cavium.com>
28949         PR target/64304
28950         * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
28951         (ashl<mode>3): Don't expand if operands[2] is not constant.
28953 2015-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28955         PR target/64448
28956         * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
28957         Match xor-and-xor RTL pattern.
28959 2015-01-19  Igor Zamyatin  <igor.zamyatin@intel.com>
28961         PR rtl-optimization/64081
28962         * loop-iv.c (def_pred_latch_p): New function.
28963         (latch_dominating_def): Allow specific cases with non-single
28964         definitions.
28965         (iv_get_reaching_def): Likewise.
28966         (check_complex_exit_p): New function.
28967         (check_simple_exit): Use check_complex_exit_p to allow certain cases
28968         with exits not executing on any iteration.
28970 2015-01-19  Jakub Jelinek  <jakub@redhat.com>
28972         * common.opt (fgraphite): Fix a typo.
28974 2015-01-19  Felix Yang  <felix.yang@huawei.com>
28976         * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
28977         pattern.
28978         * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
28979         uminp, smax_nanp, smin_nanp): New builtins.
28980         * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
28981         vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
28982         vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
28983         vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
28984         vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
28985         vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
28986         vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
28987         vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
28988         vpminnms_f32): Rewrite using builtin functions.
28990 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
28992         PR libgomp/64625
28993         * omp-low.c (offload_symbol_decl): Remove variable.
28994         (get_offload_symbol_decl): Remove function.
28995         (expand_omp_target): For BUILT_IN_GOMP_TARGET,
28996         BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
28997         instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
28998         BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
28999         BUILT_IN_GOACC_UPDATE don't pass it at all.
29001 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
29003         * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
29004         callers.
29006 2015-01-19  Ilya Enkovich  <ilya.enkovich@intel.com>
29008         * ipa-chkp.c (chkp_produce_thunks): Add early param
29009         to split thunks production into two passes.  Keep
29010         'always_inline' function bodies after the first pass.
29011         (pass_data_ipa_chkp_early_produce_thunks): New.
29012         (pass_ipa_chkp_early_produce_thunks): New.
29013         (pass_ipa_chkp_produce_thunks::execute): Adjust to new
29014         chkp_produce_thunks signature.
29015         (make_pass_ipa_chkp_early_produce_thunks): New.
29016         * passes.def (pass_ipa_chkp_early_produce_thunks): New.
29017         (pass_ipa_chkp_produce_thunks): Move after local optimizations.
29018         * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
29020 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29022         * cgraph.c (cgraph_node::dump): Dump profile flags.
29024 2015-01-18  Oleg Endo  <olegendo@gcc.gnu.org>
29026         PR target/64652
29027         * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
29028         reg appear first in the parallel.
29030 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29032         * ipa-reference.c (set_reference_optimization_summary,
29033         ipa_reference_get_not_written_global): Do nothing if ipa-reference is
29034         disabled.
29035         (ignore_module_statics): New static var.
29036         (propagate_bits): If ipa-reference is disabled, do not look into local
29037         properties.
29038         (analyze_function): Disable analysis when ipa_reference is disabled.
29039         (generate_summary): Do not dump when reference is disabled;
29040         collect vars accessed from functions with ipa-reference disabled.
29041         (get_read_write_all_from_node): When ipa-reference is disabled, use the
29042         node flags.
29043         (gate): Enable for LTO.
29044         (ignore_edge_p): New function.
29045         (propagate): Skip functions w/o ipa-reference analysis.
29046         * optc-save-gen.awk: Handle optimize_debug correctly.
29047         * opth-gen.awk: Likewise.
29048         * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
29049         fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
29050         fira-share-save-slots, fira-share-spill-slots,
29051         fmodulo-sched-allow-regmoves, fpartial-inlining,
29052         sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
29053         ftracer, ftree-parallelize-loops, fassociative-math,
29054         freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
29055         Optimization
29056         (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
29057         ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
29058         Optimization.
29059         * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
29060         Fix for IPA.
29062 2015-01-18  Jan Hubicka  <hubicka@ucw.cz>
29064         PR ipa/64378
29065         * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
29066         flag correctly.
29067         * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
29069 2015-01-18  Sandra Loosemore  <sandra@codesourcery.com>
29071         * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
29072         Remove duplicate option listings.
29074 2015-01-18  Felix Yang  <felix.yang@huawei.com>
29076         * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
29077         (autofdo_source_profile::get_callsite_total_count,
29078         function_instance::get_function_instance_by_decl,
29079         string_table::get_index, string_table::get_index_by_decl,
29080         afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
29081         Fix comment typos. Reformatting and minor code rearrangement.
29083 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29085         * config/rs6000/rs6000.md (probe_stack): Delete.
29086         (probe_stack_address): New.
29088 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29090         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
29091         to test for 32-bit ABIs, not !TARGET_POWERPC64.
29093 2015-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
29095         * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
29096         (rs6000_function_value): Use it.  Handle SCmode and TCmode as well,
29097         for TARGET_32BIT && TARGET_POWERPC64.  Fix another BITS_PER_WORD
29098         snafu.
29099         (rs6000_libcall_value): Use the new function.
29101 2015-01-17  Sandra Loosemore  <sandra@codesourcery.com>
29103         * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
29105 2015-01-17  Eric Botcazou  <ebotcazou@adacore.com>
29107         * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
29108         implement a more precise life analysis for it during backward scan.
29110 2015-01-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
29112         * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
29114 2015-01-17  Bernd Schmidt  <bernds@codesourcery.com>
29116         PR rtl-optimization/52773
29117         * calls.c (emit_library_call_value): When pushing arguments use
29118         stack_pointer_rtx rather than virtual_outgoing_args_rtx in
29119         CALL_INSN_FUNCTION_USAGE.  Only emit one of use of the magic
29120         stack pointer reference into CALL_INSN_FUNCTION_USAGE.
29122 2015-01-17  Jeff Law  <law@redhat.com>
29124         PR rtl-optimization/32790
29125         * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
29126         not ZERO_EXTEND in SET_DESTs.
29128 2015-01-17  Alan Modra  <amodra@gmail.com>
29130         * cprop.c (do_local_cprop): Revert last change.
29132 2015-01-16  DJ Delorie  <dj@redhat.com>
29133             Nick Clifton  <nickc@redhat.com>
29135         * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
29136         (addhi3_real): Likewise.  Fix [HL+0] syntax.
29137         (subqi3_real): Likewise.
29138         (subhi3_real): Likewise.
29139         (cbranchqi4_real): Likewise.  Allow saddr,#imm.
29140         (cbranchhi4_real): Likewise.
29141         (cbranchhi4_real_inverted): Likewise.
29142         (cbranchsi4_real_lt): Likewise.
29143         (cbranchsi4_real_ge): Likewise.
29144         (cbranchsi4_real_ge): Likewise.
29145         * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
29146         (sub<mode>3_virt): Likewise.
29147         (cbranchqi4_virt): Likewise.
29148         (cbranchhi4_virt): Likewise.
29149         * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
29150         always use '[reg+imm]' even when imm is zero.
29151         * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
29152         (rl78_general_operand): New.
29153         (rl78_nonimmediate_operand): New.
29154         (rl78_nonfar_operand): Use them.
29155         (rl78_nonfar_nonimm_operand): Likewise.
29156         (rl78_stack_based_mem): Fix.
29157         * config/rl78/constraints.md (Ibqi): New.
29158         (IBqi): New.
29159         (Wsa): New.
29160         (Wsf): New.
29161         (Cs1): Fix.
29162         * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
29163         (iorqi3): Likewise.
29164         (xorqi3): Likewise.
29165         * config/rl78/rl78-protos.h (rl78_sfr_p): New.
29167         * config/rl78/constrains (Qs8): New constraint.
29168         * config/rl78/rl78.c (rl78_flags_already_set): New function.
29169         * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
29170         * config/rl78/rl78-real.md (update_Z): New attribute.
29171         Update patterns to set it.
29172         (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
29173         shorter compare and branch sequence can be used.
29174         (cbranchhi4_real): Likewise.
29175         (cbranchhi4_real_inverted): Likewise.
29177         * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
29178         * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
29179         address space.
29180         * config/rl78/rl78.c (rl78_get_name_encoding): New.
29181         (rl78_option_override): Allow -mes0 only if C.
29182         (characterize_address): Support subregs of symbol_refs.
29183         (rl78_addr_space_address_mode): Move.  Add __near.
29184         (rl78_far_p): Likewise.
29185         (rl78_addr_space_pointer_mode): Likewise.
29186         (rl78_as_legitimate_address): Likewise.
29187         (rl78_addr_space_subset_p): Likewise.
29188         (rl78_addr_space_convert): Likewise.
29189         (rl78_print_operand_1): Support 16-bit addressing of 32-bit
29190         symbols with -mes0.
29191         (transcode_memory_rtx): Don't copy ES if -mes0.  Allow symbol[BC]
29192         addressing.
29193         (rl78_alloc_physical_registers_op1): Change logic to prefer
29194         symbol[BC] addressing.
29195         (frodata_section): New.
29196         (rl78_asm_init_sections): Initialize it.
29197         (rl78_select_section): Put __far readonly symbols in .frodata.
29198         (rl78_make_type_far): New.
29199         (rl78_insert_attributes): Force all readonly symbols to be
29200         __far when -mes0.
29201         (rl78_asm_out_integer): New.
29202         * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
29203         * config/rl78/rl78.opt (-mes0): New.
29205         * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
29206         (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
29207         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
29208         * config/rl78/rl78-protos.h (rl78_output_labelref): New.
29209         (rl78_saddr_p): New.
29210         (rl78_output_aligned_common): New.
29211         * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
29212         (rl78_handle_saddr_attribute): New.
29213         (rl78_handle_naked_attribute): New.
29214         (rl78_attribute_table): Add saddr.
29215         (rl78_print_operand_1): Don't print '!' on saddr operands.
29216         (rl78_print_operand_1): Strip encodings.
29217         (rl78_sfr_p): New.
29218         (rl78_strip_name_encoding): New.
29219         (rl78_attrlist_to_encoding): New.
29220         (rl78_encode_section_info): New.
29221         (rl78_asm_init_sections): New.
29222         (rl78_select_section): New.
29223         (rl78_output_labelref): New.
29224         (rl78_output_aligned_common): New.
29225         (rl78_asm_out_integer): New.
29226         (rl78_asm_ctor_dtor): New.
29227         (rl78_asm_constructor): New.
29228         (rl78_asm_destructor): New.
29230         * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
29231         * config/rl78/rl78.c (rl78_expand_epilogue): Update.
29232         (transcode_memory_rtx): Update.
29233         (rl78_expand_epilogue): Use A_REG instead of 0.
29235 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29237         * config/arm/arm-protos.h (struct tune_params): New field
29238         sched_autopref_queue_depth.
29239         * config/arm/arm.c (sched-int.h): Include header.
29240         (arm_first_cycle_multipass_dfa_lookahead_guard,)
29241         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
29242         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
29243         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
29244         (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
29245         (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
29246         (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
29247         (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
29248         Specify sched_autopref_queue_depth value.  Enabled for A15 and A57.
29249         * config/arm/t-arm (arm.o): Update.
29250         * haifa-sched.c (update_insn_after_change): Update.
29251         (rank_for_schedule): Use auto-prefetcher model, if requested.
29252         (autopref_multipass_init): New static function.
29253         (autopref_rank_for_schedule): New rank_for_schedule heuristic.
29254         (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
29255         variable for debug dumps.
29256         (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
29257         (autopref_multipass_dfa_lookahead_guard): New global function that
29258         implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
29259         (init_h_i_d): Update.
29260         * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
29261         * sched-int.h (enum autopref_multipass_data_status): New const enum.
29262         (autopref_multipass_data_): Structure for auto-prefetcher data.
29263         (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
29264         (struct _haifa_insn_data:autopref_multipass_data): New field.
29265         (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
29266         (autopref_multipass_dfa_lookahead_guard): Declare.
29268 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29270         * rtlanal.c (get_base_term): Handle SCRATCH.
29272 2015-01-17  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
29274         * config/aarch64/aarch64.c
29275         (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
29276         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29277         * config/arm/arm.c
29278         (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
29279         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
29281 2015-01-17  Alan Modra  <amodra@gmail.com>
29283         * cprop.c (do_local_cprop): Disallow replacement of fixed
29284         hard registers.
29286 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29288         PR target/62066
29289         * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
29290         early return 0.
29292 2015-01-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
29294         * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
29295         * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
29297 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29299         * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
29300         * config/arm/thumb1.md: ... Here.
29302 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29304         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
29305         TImode for TARGET_32BIT.
29307 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29309         * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
29310         TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
29311         as ...
29312         (rs6000_abi_word_mode): New function.
29314 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29316         * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
29317         instead of UNITS_PER_WORD to describe the size of stack slots.
29319 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29321         * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
29322         as rs6000_promote_function_mode.  Move comment to there.
29323         (rs6000_promote_function_mode): New function.
29325 2015-01-16  Segher Boessenkool  <segher@kernel.crashing.org>
29327         * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
29328         -mpowerpc64 is active.
29330 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29332         PR middle-end/64353
29333         * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
29334         virtuals on start.
29336 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
29338         * config/arm/cortex-a57.md: Remove duplicate of file accidentally
29339         introduced in revision 219724.
29341 2015-01-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29342             Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29344         PR target/64263
29345         * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
29346         destination is not a GP reg.
29347         (*movdi_aarch64): Likewise.
29349 2015-01-16  David Edelsohn  <dje.gcc@gmail.com>
29351         PR target/64623
29352         * config/rs6000/default64.h: Revert ISA change.
29354 2015-01-16  Richard Biener  <rguenther@suse.de>
29356         PR middle-end/64614
29357         * tree-ssa-uninit.c: Include tree-cfg.h.
29358         (MAX_SWITCH_CASES): New define.
29359         (convert_control_dep_chain_into_preds): Handle switch statements.
29360         (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
29361         (normalize_one_pred_1): Do not split bit-manipulations.
29362         Record (x & CST).
29364 2015-01-16  Richard Biener  <rguenther@suse.de>
29366         PR tree-optimization/64568
29367         * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
29368         complex load rewriting for TARGET_MEM_REFs.
29370 2015-01-16  Uros Bizjak  <ubizjak@gmail.com>
29372         * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
29374 2015-01-16  Matthew Wahab  <matthew.wahab@arm.com>
29376         PR target/64149
29377         * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
29378         variable.
29379         * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
29380         (aarch64_lra_p): Remove.
29382 2015-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
29384         PR target/64363
29385         * ipa-chkp.h (chkp_instrumentable_p): New.
29386         * ipa-chkp.c: Include tree-inline.h.
29387         (chkp_instrumentable_p): New.
29388         (chkp_maybe_create_clone): Use chkp_instrumentable_p.
29389         Fix processing of not instrumentable functions.
29390         (chkp_versioning): Use chkp_instrumentable_p. Warn about
29391         not instrumentable functions.
29392         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
29393         chkp_instrumentable_p.
29394         * tree-inline.h (copy_forbidden): New.
29395         * tree-inline.c (copy_forbidden): Not static anymore.
29397 2015-01-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29399         * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
29400         ptr1, ptr2 unused.
29402 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
29404         * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
29405         type OP_OUT to OP_INOUT.
29407 2015-01-16  Robert Suchanek  <robert.suchanek@imgtec.com>
29409         * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
29410         (high x) y) to y if x and y have the same base.
29412 2015-01-16  James Greenhalgh  <james.greenhalgh@arm.com>
29414         * config/arm/cortex-a57.md: New.
29415         * config/aarch64/aarch64.md: Include it.
29416         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
29417         * config/aarch64/aarch64-tune.md: Regenerate.
29419 2015-01-16  Zhenqiang Chen  <zhenqiang.chen@arm.com>
29421         PR target/64015
29422         * ccmp.c (expand_ccmp_next): New function.
29423         (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
29424         and compare insn sequence.
29425         * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
29426         aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
29427         (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
29428         * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
29429         (*ccmp_ior): Changed to ccmp_ior<mode>.
29430         (cmp<mode>): New pattern.
29431         * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
29432         parameters.
29433         * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
29435 2015-01-16  Ilya Tocar  <ilya.tocar@intel.com>
29437         * config/i386/avx2intrin.h (_mm256_bslli_epi128,
29438         _mm256_bsrli_epi128): New.
29439         * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
29441 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
29443         * expmed.c (store_bit_field_using_insv): Improve warning message.
29444         Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
29446 2015-01-15  Jiong Wang  <jiong.wang@arm.com>
29448         PR rtl-optimization/64011
29449         * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
29450         there is partial overflow.
29452 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29454         * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
29455         prototype.
29456         (nds32_expand_epilogue_v3pop): Likewise.
29457         * config/nds32/nds32.md (sibcall): Define this for sibling call
29458         optimization.
29459         (sibcall_register): Likewise.
29460         (sibcall_immediate): Likewise.
29461         (sibcall_value): Likewise.
29462         (sibcall_value_register): Likewise.
29463         (sibcall_value_immediate): Likewise.
29464         (sibcall_epilogue): Likewise.
29465         (epilogue): Pass false to indicate this is not a sibcall epilogue.
29466         * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
29467         (nds32_expand_epilogue_v3pop): Likewise.
29469 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29471         * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
29472         * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
29473         (return_internal): New.
29474         (return): Define this named pattern.
29475         (simple_return): Define this named pattern.
29476         * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
29477         pattern instead of unspec_volatile_func_return.
29478         (nds32_expand_epilogue_v3pop): Likewise.
29479         (nds32_can_use_return_insn): New function.
29481 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29483         * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
29484         * config/nds32/nds32.md (pop25return): New.
29485         * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
29486         pop25return pattern.
29488 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29490         * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
29491         -mforbid-fp-as-gp, and -mex9 options.
29493 2015-01-16  Chung-Ju Wu  <jasonwucj@gmail.com>
29495         * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
29496         remove -mgp-direct option.
29498 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29500         * doc/invoke.texi (--param early-inlining-insns): Update default value.
29501         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
29503 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29505         * ipa-inline.c (inline_small_functions): Work around hints
29506         cache issue.
29508 2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>
29510         PR target/59710
29511         * doc/invoke.texi (Option Summary): Document new Nios II
29512         -mgpopt= syntax.
29513         (Nios II Options): Likewise.
29514         * config/nios2/nios2.opt: Add -mgpopt= option support.
29515         Modify existing -mgpopt and -mno-gpopt options to be aliases.
29516         * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
29517         * config/nios2/nios2.c (nios2_option_override): Adjust
29518         -mgpopt defaulting.
29519         (nios2_in_small_data_p): Return true for explicit small data
29520         sections even with -G0.
29521         (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
29522         option choices.
29524 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29526         PR ipa/64612
29527         * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
29528         of comdat locals.
29529         (inline_call): Fix removal of aliases.
29531 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
29533         * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
29534         include SANITIZE_VPTR in SANITIZE_UNDEFINED.
29535         * opts.c (common_handle_option): Add -fsanitize=vptr.
29536         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
29537         BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
29538         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
29539         UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
29540         (ubsan_expand_vptr_ifn): New prototype.
29541         * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
29542         expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
29543         expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
29544         expand_LOOP_VECTORIZED): Make argument nameless, remove
29545         ATTRIBUTE_UNUSED.
29546         (expand_UBSAN_VPTR): New function.
29547         * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
29548         in fn spec.
29549         (UBSAN_VPTR): New internal function.
29550         * sanopt.c (tree_map_traits): Renamed to ...
29551         (sanopt_tree_map_traits): ... this.
29552         (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
29553         (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
29554         to sanopt_tree_map_traits renaming.  Add vptr_check_map field.
29555         (maybe_optimize_ubsan_vptr_ifn): New function.
29556         (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
29557         (pass_sanopt::execute): Likewise.  Call sanopt_optimize even for
29558         -fsanitize=vptr.
29559         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
29560         internal calls like pure functions for aliasing, even when they
29561         have other side-effects that prevent making them ECF_PURE.
29562         * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
29563         (ubsan_expand_vptr_ifn): New function.
29565 2015-01-15  Vladimir Makarov  <vmakarov@redhat.com>
29567         PR rtl-optimization/64110
29568         * stmt.c (parse_output_constraint): Process '^' and '$'.
29569         (parse_input_constraint): Ditto.
29570         * lra-constraints.c (process_alt_operands): Process the new
29571         constraints.
29572         * ira-costs.c (record_reg_classes): Process the new constraint
29573         '^'.
29574         * genoutput.c (indep_constraints): Add '^' and '$'.
29575         * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
29576         * doc/md.texi: Add description of the new constraints.
29578 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
29579             Bernd Schmidt  <bernds@codesourcery.com>
29580             Cesar Philippidis  <cesar@codesourcery.com>
29581             James Norris  <jnorris@codesourcery.com>
29582             Tom de Vries  <tom@codesourcery.com>
29583             Ilmir Usmanov  <i.usmanov@samsung.com>
29584             Dmitry Bocharnikov  <dmitry.b@samsung.com>
29585             Evgeny Gavrin  <e.gavrin@samsung.com>
29586             Jakub Jelinek  <jakub@redhat.com>
29588         * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
29589         (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
29590         (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
29591         New function types.
29592         * builtins.c: Include "gomp-constants.h".
29593         (expand_builtin_acc_on_device): New function.
29594         (expand_builtin, is_inexpensive_builtin): Handle
29595         BUILT_IN_ACC_ON_DEVICE.
29596         * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
29597         New macros.
29598         * cgraph.c (cgraph_node::create): Consider flag_openacc next to
29599         flag_openmp.
29600         * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
29601         <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
29602         i386/intelmic-offload.h.
29603         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
29604         to libgomp and its dependencies.
29605         * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
29606         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
29607         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
29608         * config/ia64/hpux.h (LIB_SPEC): Likewise.
29609         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
29610         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
29611         * doc/generic.texi: Update for OpenACC changes.
29612         * doc/gimple.texi: Likewise.
29613         * doc/invoke.texi: Likewise.
29614         * doc/sourcebuild.texi: Likewise.
29615         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
29616         GF_OMP_FOR_KIND_OACC_LOOP.
29617         (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
29618         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
29619         GF_OMP_TARGET_KIND_OACC_UPDATE,
29620         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
29621         Dump more data.
29622         * gimple.c: Update comments for OpenACC changes.
29623         * gimple.def: Likewise.
29624         * gimple.h: Likewise.
29625         (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
29626         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
29627         GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
29628         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
29629         (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
29630         appropriate place.
29631         (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
29632         * gimplify.c: Include "gomp-constants.h".
29633         Update comments for OpenACC changes.
29634         (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
29635         OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
29636         OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
29637         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
29638         OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
29639         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
29640         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
29641         OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
29642         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
29643         OMP_CLAUSE_SEQ.
29644         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
29645         GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
29646         OMP_CLAUSE_SET_MAP_KIND.
29647         (gimplify_oacc_cache): New function.
29648         (gimplify_omp_for): Handle OACC_LOOP.
29649         (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
29650         OACC_DATA.
29651         (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
29652         OACC_EXIT_DATA, OACC_UPDATE.
29653         (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
29654         OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
29655         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
29656         (gimplify_body): Consider flag_openacc next to flag_openmp.
29657         * lto-streamer-out.c: Include "gomp-constants.h".
29658         * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
29659         (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
29660         (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
29661         (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
29662         (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
29663         (BUILT_IN_ACC_ON_DEVICE): New builtins.
29664         * omp-low.c: Include "gomp-constants.h".
29665         Update comments for OpenACC changes.
29666         (struct omp_context): Add reduction_map, gwv_below, gwv_this
29667         members.
29668         (extract_omp_for_data, use_pointer_for_field, install_var_field)
29669         (new_omp_context, delete_omp_context, scan_sharing_clauses)
29670         (create_omp_child_function, scan_omp_for, scan_omp_target)
29671         (check_omp_nesting_restrictions, lower_reduction_clauses)
29672         (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
29673         Update for OpenACC changes.
29674         (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
29675         OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
29676         OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
29677         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
29678         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
29679         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ.  Use GOMP_MAP_* instead of
29680         OMP_CLAUSE_MAP_*.
29681         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
29682         Handle GF_OMP_FOR_KIND_OACC_LOOP.
29683         (expand_omp_target, lower_omp_target): Handle
29684         GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
29685         GF_OMP_TARGET_KIND_OACC_UPDATE,
29686         GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
29687         GF_OMP_TARGET_KIND_OACC_DATA.
29688         (pass_expand_omp::execute, execute_lower_omp)
29689         (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
29690         flag_openmp.
29691         (offload_symbol_decl): New variable.
29692         (oacc_get_reduction_array_id, oacc_max_threads)
29693         (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
29694         (maybe_lookup_oacc_reduction, enclosing_target_ctx)
29695         (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
29696         (oacc_gimple_assign, oacc_initialize_reduction_data)
29697         (oacc_finalize_reduction_data, oacc_process_reduction_data): New
29698         functions.
29699         (is_targetreg_ctx): Remove function.
29700         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
29701         OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
29702         OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
29703         OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
29704         OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
29705         OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
29706         * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
29707         * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
29708         (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
29709         (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
29710         (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
29711         (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
29712         * tree-core.h: Update comments for OpenACC changes.
29713         (enum omp_clause_map_kind): Remove.
29714         (struct tree_omp_clause): Change type of map_kind member from enum
29715         omp_clause_map_kind to unsigned char.
29716         * tree-inline.c: Update comments for OpenACC changes.
29717         * tree-nested.c: Likewise.  Include "gomp-constants.h".
29718         (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
29719         (convert_tramp_reference_stmt, convert_gimple_call): Update for
29720         OpenACC changes.  Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.  Use
29721         OMP_CLAUSE_SET_MAP_KIND.
29722         * tree-pretty-print.c: Include "gomp-constants.h".
29723         (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
29724         OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
29725         OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
29726         OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
29727         OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
29728         OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT.  Use GOMP_MAP_*
29729         instead of OMP_CLAUSE_MAP_*.
29730         (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
29731         OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
29732         OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
29733         * tree-streamer-in.c: Include "gomp-constants.h".
29734         (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
29735         OMP_CLAUSE_MAP_*.  Use OMP_CLAUSE_SET_MAP_KIND.
29736         * tree-streamer-out.c: Include "gomp-constants.h".
29737         (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
29738         OMP_CLAUSE_MAP_*.
29739         * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
29740         (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
29741         (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
29742         * tree.c (omp_clause_num_ops): Update accordingly.
29743         * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
29744         Likewise.
29745         (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
29746         (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
29747         (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
29748         (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
29749         (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
29750         (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
29751         * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
29752         (OMP_CLAUSE_SET_MAP_KIND): New macro.
29753         * varpool.c (varpool_node::get_create): Consider flag_openacc next
29754         to flag_openmp.
29755         * config/i386/intelmic-offload.h: New file.
29756         * config/nvptx/offload.h: Likewise.
29758 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29760         * explow.h: Remove duplicate contents.
29761         * dojump.h: Likewise.
29763 2015-01-15  Richard Earnshaw  <rearnsha@arm.com>
29765         * arm.c (arm_xgene_tune): Add default initializer for instruction
29766         fusion.
29768 2015-01-15  Jan Hubicka  <hubicka@ucw.cz>
29770         PR ipa/64068
29771         PR ipa/64559
29772         * ipa.c (symbol_table::remove_unreachable_nodes):
29773         Do not put abstract origins into boundary.
29775 2015-01-15  Evgeny Stupachenko  <evstupac@gmail.com>
29777         * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
29778         * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
29780 2015-01-15  Steve Ellcey  <sellcey@mips.com>
29782         * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
29783         cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
29784         builtins.def, and chkp-builtins.def.
29786 2015-01-15  David Edelsohn  <dje.gcc@gmail.com>
29788         * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
29789         ISA 2.7 (POWER8).
29791 2015-01-15  Richard Biener  <rguenther@suse.de>
29793         PR tree-optimization/61743
29794         * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
29795         information on PHIs for some simple cases.
29797 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
29799         * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
29800         Include xgene1.md.
29801         * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
29802         * config/arm/arm-cores.def (xgene1): New entry.
29803         * config/arm/arm-tables.opt: Regenerate.
29804         * config/arm/arm-tune.md: Regenerate.
29805         * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
29807 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
29809         * tree-if-conv.c: Include hash-map.h.
29810         (aggressive_if_conv): New variable.
29811         (fold_build_cond_expr): Add simplification of non-zero condition.
29812         (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
29813         destination block is not always executed.
29814         (if_convertible_phi_p): Fix commentary, allow phi nodes have more
29815         than two predecessors if AGGRESSIVE_IF_CONV is true.
29816         (if_convertible_stmt_p): Fix commentary.
29817         (all_preds_critical_p): New function.
29818         (has_pred_critical_p): New function.
29819         (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
29820         BB can have more than two predecessors and all incoming edges can be
29821         critical.
29822         (predicate_bbs): Skip predication for loop exit block, use build2_loc
29823         to compute predicate for true edge.
29824         (find_phi_replacement_condition): Delete this function.
29825         (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
29826         Allow interchange PHI arguments if EXTENDED is false.
29827         Change check that block containing reduction statement candidate
29828         is predecessor of phi-block since phi may have more than two arguments.
29829         (phi_args_hash_traits): New helper structure.
29830         (struct phi_args_hash_traits): New type.
29831         (phi_args_hash_traits::hash): New function.
29832         (phi_args_hash_traits::equal_keys): New function.
29833         (gen_phi_arg_condition): New function.
29834         (predicate_scalar_phi): Add handling of phi nodes with more than two
29835         arguments, delete COND and TRUE_BB arguments, insert body of
29836         find_phi_replacement_condition to predicate ordinary phi nodes.
29837         (predicate_all_scalar_phis): Skip blocks with the only predecessor,
29838         delete call of find_phi_replacement_condition and invoke
29839         predicate_scalar_phi with two arguments.
29840         (insert_gimplified_predicates): Add assert that non-predicated block
29841         don't have statements to insert.
29842         (ifcvt_split_critical_edges): New function.
29843         (ifcvt_split_def_stmt): Likewise.
29844         (ifcvt_walk_pattern_tree): Likewise.
29845         (stmt_is_root_of_bool_pattern): Likewise.
29846         (ifcvt_repair_bool_pattern): Likewise.
29847         (ifcvt_local_dce): Likewise.
29848         (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
29849         is copy of inner or outer loop force_vectorize field, invoke
29850         ifcvt_split_critical_edges, ifcvt_local_dce and
29851         ifcvt_repair_bool_pattern for aggressive if-conversion.
29853 2015-01-15  Philipp Tomsich  <ptomsich@theobroma-systems.com>
29855         * config/aarch64/aarch64.md: Include xgene1.md.
29856         * config/aarch64/xgene1.md: New file.
29858 2015-01-15  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
29860         * config/aarch64/aarch64-cores.def (xgene1): Update/add the
29861         xgene1 (APM XGene-1) core definition.
29862         * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
29863         * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
29864         * doc/invoke.texi: Document -mcpu=xgene1.
29866 2015-01-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
29868         * dojump.h: New header file.
29869         * explow.h: Likewise.
29870         * expr.h: Remove includes.
29871         Move expmed.c prototypes to expmed.h.
29872         Move dojump.c prototypes to dojump.h.
29873         Move alias.c prototypes to alias.h.
29874         Move explow.c prototypes to explow.h.
29875         Move calls.c prototypes to calls.h.
29876         Move emit-rtl.c prototypes to emit-rtl.h.
29877         Move varasm.c prototypes to varasm.h.
29878         Move stmt.c prototypes to stmt.h.
29879         (saved_pending_stack_adjust): Move to dojump.h.
29880         (adjust_address): Move to explow.h.
29881         (adjust_address_nv): Move to emit-rtl.h.
29882         (adjust_bitfield_address): Likewise.
29883         (adjust_bitfield_address_size): Likewise.
29884         (adjust_bitfield_address_nv): Likewise.
29885         (adjust_automodify_address_nv): Likewise.
29886         * explow.c (expr_size): Move to expr.c.
29887         (int_expr_size): Likewise.
29888         (tree_expr_size): Likewise.
29889         Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29890         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
29891         * genemit.c (main): Generate includes statistics.h, real.h,
29892         fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
29893         stmt.h.
29894         * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
29895         function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
29896         explow.h, emit-rtl.h, stmt.h.
29897         * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
29898         fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
29899         * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
29900         real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
29901         emit-rtl.h, varasm.h, stmt.h.
29902         * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
29903         hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
29904         function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
29905         fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
29906         expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
29907         * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
29908         double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
29909         function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
29910         insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
29911         tm.h tree.h varasm.h vec.h wide-int.h.
29912         * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29913         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
29914         hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
29915         real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
29916         * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
29917         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
29918         insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
29919         * loop-iv.c: Likewise.
29920         * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
29921         emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
29922         statistics.h stmt.h tree.h varasm.h wide-int.h.
29923         * lra-constraints.c: Likewise.
29924         * lra-eliminations.c: Likewise.
29925         * lra-lives.c: Likewise.
29926         * lra-remat.c: Likewise.
29927         * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29928         explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
29929         statistics.h stmt.h tree.h varasm.h wide-int.h.
29930         * hw-doloop.c: Likewise.
29931         * ira-color.c: Likewise.
29932         * ira-emit.c: Likewise.
29933         * loop-doloop.c: Likewise.
29934         * loop-invariant.c: Likewise.
29935         * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29936         explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
29937         statistics.h stmt.h tree.h varasm.h wide-int.h.
29938         * caller-save.c: Include alias.h calls.h dojump.h double-int.h
29939         emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
29940         statistics.h stmt.h tree.h varasm.h wide-int.h.
29941         * combine-stack-adj.c: Likewise.
29942         * cse.c: Likewise.
29943         * ddg.c: Likewise.
29944         * ifcvt.c: Likewise.
29945         * ira-costs.c: Likewise.
29946         * jump.c: Likewise.
29947         * lra-coalesce.c: Likewise.
29948         * lra-spills.c: Likewise.
29949         * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29950         explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
29951         stmt.h varasm.h wide-int.h.
29952         * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
29953         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
29954         varasm.h.
29955         * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
29956         double-int.h explow.h expmed.h fixed-value.h flags.h real.h
29957         statistics.h stmt.h varasm.h wide-int.h.
29958         * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
29959         expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
29960         varasm.h wide-int.h.
29961         * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
29962         expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
29963         * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
29964         emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
29965         statistics.h stmt.h.
29966         * config/tilepro/tilepro.c: Likewise.
29967         * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
29968         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
29969         * config/pdp11/pdp11.c: Likewise.
29970         * config/xtensa/xtensa.c: Likewise.
29971         * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
29972         explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
29973         varasm.h.
29974         * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29975         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
29976         insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
29977         * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29978         fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
29979         insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
29980         * rtl-chkp.c: Likewise.
29981         * tree-chkp-opt.c: Likewise.
29982         * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
29983         explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
29984         hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
29985         * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
29986         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
29987         statistics.h stmt.h.
29988         * tree-vect-data-refs.c: Likewise.
29989         * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
29990         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
29991         rtl.h statistics.h stmt.h varasm.h.
29992         * internal-fn.c: Likewise.
29993         * ipa-icf-gimple.c: Likewise.
29994         * lto-section-out.c: Likewise.
29995         * tree-data-ref.c: Likewise.
29996         * tree-nested.c: Likewise.
29997         * tree-outof-ssa.c: Likewise.
29998         * tree-predcom.c: Likewise.
29999         * tree-pretty-print.c: Likewise.
30000         * tree-scalar-evolution.c: Likewise.
30001         * tree-ssa-strlen.c: Likewise.
30002         * tree-vect-loop.c: Likewise.
30003         * tree-vect-patterns.c: Likewise.
30004         * tree-vect-slp.c: Likewise.
30005         * tree-vect-stmts.c: Likewise.
30006         * tsan.c: Likewise.
30007         * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30008         fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
30009         stmt.h.
30010         * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
30011         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30012         statistics.h stmt.h varasm.h.
30013         * loop-unroll.c: Likewise.
30014         * ubsan.c: Likewise.
30015         * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
30016         expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
30017         stmt.h varasm.h.
30018         * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30019         fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
30020         * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
30021         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30022         statistics.h stmt.h.
30023         * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
30024         expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
30025         statistics.h stmt.h varasm.h.
30026         * gimple-match-head.c: Likewise.
30027         * lto-cgraph.c: Likewise.
30028         * lto-section-in.c: Likewise.
30029         * lto-streamer-in.c: Likewise.
30030         * lto-streamer-out.c: Likewise.
30031         * tree-affine.c: Likewise.
30032         * tree-cfg.c: Likewise.
30033         * tree-cfgcleanup.c: Likewise.
30034         * tree-if-conv.c: Likewise.
30035         * tree-into-ssa.c: Likewise.
30036         * tree-ssa-alias.c: Likewise.
30037         * tree-ssa-copyrename.c: Likewise.
30038         * tree-ssa-dse.c: Likewise.
30039         * tree-ssa-forwprop.c: Likewise.
30040         * tree-ssa-live.c: Likewise.
30041         * tree-ssa-math-opts.c: Likewise.
30042         * tree-ssa-pre.c: Likewise.
30043         * tree-ssa-sccvn.c: Likewise.
30044         * tree-tailcall.c: Likewise.
30045         * tree-vect-generic.c: Likewise.
30046         * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30047         fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
30048         * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30049         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
30050         * varasm.c: Likewise.
30051         * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30052         fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
30053         varasm.h.
30054         * init-regs.c: Likewise.
30055         * ira.c: Likewise.
30056         * omp-low.c: Likewise.
30057         * stack-ptr-mod.c: Likewise.
30058         * tree-ssa-reassoc.c: Likewise.
30059         * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30060         fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
30061         varasm.h.
30062         * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30063         fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
30064         * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30065         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
30066         * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30067         fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
30068         * tree-ssa-phiopt.c: Likewise.
30069         * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30070         fixed-value.h hashtab.h real.h statistics.h stmt.h.
30071         * config/fr30/fr30.c: Likewise.
30072         * config/frv/frv.c: Likewise.
30073         * expr.c: Likewise.
30074         * final.c: Likewise.
30075         * optabs.c: Likewise.
30076         * passes.c: Likewise.
30077         * simplify-rtx.c: Likewise.
30078         * stmt.c: Likewise.
30079         * toplev.c: Likewise.
30080         * var-tracking.c: Likewise.
30081         * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30082         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30083         * lower-subreg.c: Likewise.
30084         * postreload-gcse.c: Likewise.
30085         * ree.c: Likewise.
30086         * reginfo.c: Likewise.
30087         * store-motion.c: Likewise.
30088         * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30089         fixed-value.h hashtab.h real.h stmt.h varasm.h.
30090         * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30091         fixed-value.h hashtab.h statistics.h stmt.h.
30092         * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30093         fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
30094         * except.c: Likewise.
30095         * explow.c: Likewise.
30096         * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30097         fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
30098         varasm.h.
30099         * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30100         fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
30101         * tree-ssa-structalias.c: Likewise.
30102         * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30103         fixed-value.h insn-config.h real.h statistics.h.
30104         * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30105         fixed-value.h insn-config.h real.h statistics.h stmt.h.
30106         * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30107         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30108         * cfgbuild.c: Likewise.
30109         * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30110         fixed-value.h real.h rtl.h statistics.h stmt.h.
30111         * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30112         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30113         * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30114         fixed-value.h real.h statistics.h stmt.h.
30115         * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
30116         fixed-value.h real.h statistics.h stmt.h varasm.h.
30117         * cprop.c: Likewise.
30118         * modulo-sched.c: Likewise.
30119         * postreload.c: Likewise.
30120         * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30121         flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
30122         statistics.h stmt.h varasm.h.
30123         * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
30124         explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30125         rtl.h statistics.h stmt.h varasm.h.
30126         * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
30127         fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
30128         varasm.h.
30129         * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
30130         function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
30131         varasm.h.
30132         * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
30133         fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
30134         varasm.h.
30135         * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
30136         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30137         * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30138         function.h real.h statistics.h stmt.h varasm.h.
30139         * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30140         insn-config.h real.h statistics.h stmt.h.
30141         * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
30142         statistics.h stmt.h.
30143         * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
30144         fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
30145         statistics.h stmt.h varasm.h.
30146         * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
30147         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
30148         * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30149         flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
30150         * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
30151         fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
30152         statistics.h stmt.h varasm.h.
30153         * ipa-polymorphic-call.c: Likewise.
30154         * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
30155         expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30156         statistics.h stmt.h.
30157         * config/c6x/c6x.c: Likewise.
30158         * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
30159         explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
30160         statistics.h stmt.h varasm.h.
30161         * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
30162         fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
30163         stmt.h varasm.h.
30164         * ipa-split.c: Likewise.
30165         * tree-eh.c: Likewise.
30166         * tree-ssa-dce.c: Likewise.
30167         * tree-ssa-loop-niter.c: Likewise.
30168         * tree-vrp.c: Likewise.
30169         * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
30170         expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
30171         stmt.h.
30172         * config/nds32/nds32-fp-as-gp.c: Likewise.
30173         * config/nds32/nds32-intrinsic.c: Likewise.
30174         * config/nds32/nds32-isr.c: Likewise.
30175         * config/nds32/nds32-md-auxiliary.c: Likewise.
30176         * config/nds32/nds32-memory-manipulation.c: Likewise.
30177         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
30178         * config/nds32/nds32-predicates.c: Likewise.
30179         * config/nds32/nds32.c: Likewise.
30180         * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
30181         fixed-value.h hashtab.h real.h statistics.h.
30182         * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
30183         fixed-value.h hashtab.h real.h statistics.h stmt.h.
30184         * config/arm/arm.c: Likewise.
30185         * config/avr/avr.c: Likewise.
30186         * config/bfin/bfin.c: Likewise.
30187         * config/h8300/h8300.c: Likewise.
30188         * config/i386/i386.c: Likewise.
30189         * config/ia64/ia64.c: Likewise.
30190         * config/iq2000/iq2000.c: Likewise.
30191         * config/m32c/m32c.c: Likewise.
30192         * config/m32r/m32r.c: Likewise.
30193         * config/m68k/m68k.c: Likewise.
30194         * config/mcore/mcore.c: Likewise.
30195         * config/mep/mep.c: Likewise.
30196         * config/mips/mips.c: Likewise.
30197         * config/mn10300/mn10300.c: Likewise.
30198         * config/moxie/moxie.c: Likewise.
30199         * config/pa/pa.c: Likewise.
30200         * config/rl78/rl78.c: Likewise.
30201         * config/rx/rx.c: Likewise.
30202         * config/s390/s390.c: Likewise.
30203         * config/sh/sh.c: Likewise.
30204         * config/sparc/sparc.c: Likewise.
30205         * config/spu/spu.c: Likewise.
30206         * config/stormy16/stormy16.c: Likewise.
30207         * config/v850/v850.c: Likewise.
30208         * config/vax/vax.c: Likewise.
30209         * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
30210         fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
30211         * config/msp430/msp430.c: Likewise.
30212         * predict.c: Likewise.
30213         * value-prof.c: Likewise.
30214         * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
30215         expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
30216         * config/microblaze/microblaze.c: Likewise.
30217         * config/nios2/nios2.c: Likewise.
30218         * config/rs6000/rs6000.c: Likewise.
30219         * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30220         insn-config.h real.h rtl.h statistics.h stmt.h.
30221         * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
30222         insn-config.h real.h statistics.h stmt.h.
30223         * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
30224         fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
30225         * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
30226         fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
30227         * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
30228         fixed-value.h real.h statistics.h stmt.h.
30229         * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
30230         fixed-value.h statistics.h stmt.h.
30231         * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
30232         stmt.h.
30234 2015-01-15  Jakub Jelinek  <jakub@redhat.com>
30236         * gengtype.c (create_user_defined_type): Workaround
30237         -Wmaybe-uninitialized false positives.
30238         * cse.c (fold_rtx): Likewise.
30239         * loop-invariant.c (gain_for_invariant): Likewise.
30241 2015-01-15  Eric Botcazou  <ebotcazou@adacore.com>
30243         * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
30244         set the memory attributes in all cases but clear MEM_EXPR if need be.
30246 2015-01-15  Yuri Rumyantsev  <ysrumyan@gmail.com>
30248         PR tree-optimization/64434
30249         * cfgexpand.c (reorder_operands): New function.
30250         (expand_gimple_basic_block): Insert call of reorder_operands if
30251         optimized is true.
30253 2015-01-15  Matthew Fortune  <matthew.fortune@imgtec.com>
30255         * config/mips/micromips.md (*swp): Remove explicit parallel.
30256         (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
30257         * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
30258         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
30259         (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
30260         (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
30261         (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
30262         (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
30263         (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
30264         (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
30265         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
30266         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
30267         (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
30268         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
30269         (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
30270         (mips_wrdsp): Likewise.
30271         * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
30272         parallel.
30273         (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
30274         (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
30275         (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
30276         (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
30277         (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
30278         (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
30279         * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
30280         (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
30281         (ssmaddsqdq4, ssmsubsqdq4): Likewise.
30283 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30285         * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
30286         (mips_print_operand): Support 'y' to print exact log2 in decimal
30287         of a const_int.
30288         * config/mips/mips.h (ISA_HAS_LSA): New define.
30289         (ISA_HAS_DLSA): Likewise.
30290         * config/mips/mips.md (<GPR:d>lsa): New define_insn.
30291         * config/mips/predicates.md (const_immlsa_operand): New predicate.
30293 2015-01-15  Martin Liska  <mliska@suse.cz>
30295         PR target/64377
30296         * optc-save-gen.awk: Add support for array types.
30298 2015-01-15  Richard Biener  <rguenther@suse.de>
30300         PR middle-end/64365
30301         * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
30302         for MEM_REF access functions with the same base can never partially
30303         overlap.
30305 2015-01-14  Marcos Diaz <marcos.diaz@tallertechnologies.com>
30307         * common.opt: New option -fstack-protector-explicit.
30308         * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
30309         (stack_protect_decl_phase): Handle stack_protect attribute for
30310         explicit stack protection requests.
30311         (expand_used_vars): Similarly.
30312         * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
30313         * doc/extend.texi: Add documentation for "stack_protect" attribute.
30314         * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
30316 2015-01-14  Oleg Endo  <olegendo@gcc.gnu.org>
30318         PR target/53988
30319         * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
30320         reg-reg copies.
30321         (sh_extending_set_of_reg): New struct.
30322         (sh_find_extending_set_of_reg, sh_split_tst_subregs,
30323         sh_remove_reg_dead_or_unused_notes): New Declarations.
30324         * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
30325         sh_find_extending_set_of_reg, sh_split_tst_subregs,
30326         sh_extending_set_of_reg::use_as_extended_reg): New functions.
30327         * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
30328         convert to insn_and_split and use new function sh_split_tst_subregs.
30330 2015-01-14  Sandra Loosemore  <sandra@codesourcery.com>
30332         * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
30333         option.
30334         (Optimization Options): Move -fuse-ld documentation to...
30335         (Link Options): ...here.
30337 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30339         * config/mips/constraints.md (ZC): Add support for R6 LL/SC
30340         offsets.
30341         (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
30342         * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
30343         (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
30344         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
30345         instead of ZR for the memory operand of LL/SC.
30346         (compare_and_swap_12, sync_add<mode>): Likewise.
30347         (sync_<optab>_12, sync_old_<optab>_12): Likewise.
30348         (sync_new_<optab>_12, sync_nand_12): Likewise.
30349         (sync_old_nand_12, sync_new_nand_12): Likewise.
30350         (sync_sub<mode>, sync_old_add<mode>): Likewise.
30351         (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
30352         (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
30353         (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
30354         (sync_nand<mode>, sync_old_nand<mode>): Likewise.
30355         (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
30356         (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
30357         (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
30358         * doc/md.texi (ZC): Update description.
30360 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
30362         * builtins.c (expand_builtin_atomic_exchange): Remove error when
30363         memory model is CONSUME.
30364         (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
30365         expand_builtin_atomic_store): Change invalid memory model errors to
30366         warnings.
30367         (expand_builtin_atomic_clear): Change invalid model errors to warnings
30368         and issue warning for CONSUME.
30370 2015-01-14  Aldy Hernandez  <aldyh@redhat.com>
30372         * lto-cgraph: Update function comments for
30373         lto_symtab_encoder_encode_*.
30375 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
30377         * Makefile.in (site.exp): Do not set ENABLE_LTO.
30379 2015-01-14  Ilya Verbin  <ilya.verbin@intel.com>
30381         * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
30382         * lto-cgraph.c (select_what_to_stream): Remove argument, use
30383         lto_stream_offload_p instead.
30384         * lto-streamer.h (select_what_to_stream): Remove argument.
30385         * passes.c (ipa_write_summaries): Likewise.
30386         * tree-pass.h (ipa_write_summaries): Likewise.
30388 2015-01-14  Richard Biener  <rguenther@suse.de>
30390         PR tree-optimization/59354
30391         * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
30392         groups larger than the slp group size as having gaps.
30394 2015-01-14  Andrew MacLeod  <amacleod@redhat.com>
30396         PR middle-end/59448
30397         * builtins.c (get_memmodel): Promote consume to acquire always.
30399 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30401         PR target/64386
30402         * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
30403         V32HImode.
30405 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30407         PR target/64393
30408         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
30409         Enable AVX512BW.
30410         (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
30411         * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
30412         AVX512VBMI, as it implies AVX512BW.
30414 2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
30416         PR target/64387
30417         * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
30418         (vec_unpacks_hi_v16sf): Ditto.
30420 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30422         * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
30423         is not available.
30425 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30427         * doc/invoke.texi (mapcs): Mention deprecation.
30428         (mapcs-frame): Likewise.
30430 2015-01-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30432         PR target/64453
30433         * config/arm/arm.c (callee_saved_reg_p): Define.
30434         (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
30435         register is callee saved instead of !call_used_regs[reg].
30436         (thumb1_compute_save_reg_mask): Likewise.
30438 2015-01-14  Hale Wang  <hale.wang@arm.com>
30440         * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
30441         Cortex-M7.
30443 2015-01-14  Richard Biener  <rguenther@suse.de>
30445         PR lto/64415
30446         * tree-inline.c (insert_debug_decl_map): Check destination
30447         function MAY_HAVE_DEBUG_STMTS.
30448         (insert_init_debug_bind): Likewise.
30449         (insert_init_stmt): Remove redundant check.
30450         (remap_gimple_stmt): Drop debug stmts if the destination
30451         function has var-tracking assignments disabled.
30453 2015-01-14  Martin Liska  <mliska@suse.cz>
30455         * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
30456         IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
30458 2015-01-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30460         PR target/64460
30461         * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
30462         (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
30464 2015-01-14  Matthew Fortune  <matthew.fortune@imgtec.com>
30466         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
30467         level from an ARCH; do not inject the default.
30468         (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
30469         MIPS_ISA_LEVEL_SPEC.
30470         (MIPS_ISA_NAN2008_SPEC): Update comment.
30471         (BASE_DRIVER_SELF_SPECS): Likewise.
30472         * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
30473         MIPS_DEFAULT_ISA_LEVEL_SPEC.
30474         * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
30475         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
30476         * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
30478 2015-01-14  Richard Biener  <rguenther@suse.de>
30480         PR tree-optimization/64493
30481         PR tree-optimization/64495
30482         * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
30483         assign the proper vectorized PHI to the inner loop exit PHIs.
30485 2015-01-14  Joey Ye  <joey.ye@arm.com>
30487         * config/arm/arm.c (arm_compute_save_reg_mask):
30488         Do not save lr in case of tail call.
30489         * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
30491 2015-01-14  Martin Uecker <uecker@eecs.berkeley.edu>
30493         * tree-vrp.c (check_array_ref): Emit more warnings
30494         for warn_array_bounds >= 2.
30495         * common.opt: New option -Warray-bounds=.
30496         * doc/invoke.texi: Document -Warray-bounds=.
30498 2015-01-14  Chung-Ju Wu  <jasonwucj@gmail.com>
30500         * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
30501         (mforbid-fp-as-gp): Remove.
30502         (mex9): Remove.
30503         * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
30504         (nds32_symbol_load_store_p): Remove.
30505         (nds32_fp_as_gp_check_available): Clean up implementation.
30506         * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
30507         cases.
30508         * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
30509         fp-as-gp and ex9 cases.
30511 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30513         * tree-profile.c (init_ic_make_global_vars): Drop workaround
30514         for bintuils bug 14342.
30515         (init_ic_make_global_vars): Likewise.
30516         (gimple_init_edge_profiler): Likewise.
30517         (gimple_gen_ic_func_profiler): Likewise.
30519 2015-01-13  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30521         * ipa-inline.c (inline_small_functions): Swap the operands in
30522         enum.
30524 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30526         PR ipa/64481
30527         * ipa-inline-analysis.c (node_growth_cache): Remove.
30528         (initialize_growth_caches): Do not initialize it.
30529         (free_growth_caches): Do not free it.
30530         (do_estimate_growth): Rename to ...
30531         (estimate_growth): ... this one; drop growth cache code.
30532         (growth_likely_positive): Always go the heuristics way.
30533         * ipa-inline.c (can_inline_edge_p): Walk through aliases.
30534         (reset_edge_caches): Do not reset node growth.
30535         (heap_edge_removal_hook): Do not maintain cache.
30536         (inline_small_functions): Likewise; strenghten sanity check.
30537         (ipa_inline): Do not maintain caches.
30538         * ipa-inline.h (node_growth_cache): Remove.
30539         (do_estimate_growth): Remove to ...
30540         (estimate_growth): this one; remove inline version.
30541         (reset_node_growth_cache): Remove.
30543 2015-01-13  Jan Hubicka  <hubicka@ucw.cz>
30545         PR ipa/64565
30546         * ipa-inline.c (inline_small_functions): Update callee keys after
30547         resolving speculation
30548         (inline_small_functions): Always check monotonicity of the queue.
30550 2015-01-13  Marek Polacek  <polacek@redhat.com>
30552         PR middle-end/64391
30553         * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
30555 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
30557         PR rtl-optimization/64286
30558         * ree.c (combine_reaching_defs): Move part of comment earlier,
30559         remove !SCALAR_INT_MODE_P check.
30560         (add_removable_extension): Don't add vector mode
30561         extensions if all uses of the source register aren't the same
30562         vector extensions.
30564 2015-01-13  Renlin Li  <renlin.li@arm.com>
30566         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
30567         (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
30569 2015-01-13  Martin Liska  <mliska@suse.cz>
30571         * ipa-icf.c (sem_function::equals_private): Call new functions
30572         cl_target_option_print_diff and cl_optimization_print_diff.
30573         * optc-save-gen.awk (cl_target_option_print_diff): New function.
30574         (cl_optimization_print_diff): Likewise.
30575         * opth-gen.awk: Likewise.
30577 2015-01-13  Richard Sandiford  <richard.sandiford@arm.com>
30579         * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
30580         (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
30581         (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
30582         (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
30583         (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
30584         (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
30586 2015-01-13  Andrew Pinski  <apinski@cavium.com>
30588         * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
30589         instead of src mode.
30591 2015-01-13  Richard Biener  <rguenther@suse.de>
30593         PR lto/64373
30594         * lto-streamer-out.c (tree_is_indexable): Guard for NULL
30595         DECL_CONTEXT.
30597 2015-01-13  Andrew Pinski  <apinski@cavium.com>
30599         * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
30600         volatile mems.
30601         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
30603 2015-01-13  Jakub Jelinek  <jakub@redhat.com>
30605         PR middle-end/63974
30606         * cfgexpand.c (expand_computed_goto): Don't call
30607         convert_memory_address here.
30609 2015-01-13  Richard Biener  <rguenther@suse.de>
30611         PR tree-optimization/64406
30612         * tree-loop-distibution.c (pass_loop_distribution::execute):
30613         Reset the SCEV hashtable if we distributed anything.
30615 2015-01-13  Richard Biener  <rguenther@suse.de>
30617         PR tree-optimization/64404
30618         * tree-vect-stmts.c (vectorizable_load): Reject conflicting
30619         SLP types for CSEd loads.
30621 2015-01-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
30623         PR tree-optimization/64436
30624         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
30625         merge of two symbolic numbers for a bitwise OR to ...
30626         (perform_symbolic_merge): This. Also fix computation of the range and
30627         end of the symbolic number corresponding to the result of a bitwise OR.
30629 2015-01-13  Richard Biener  <rguenther@suse.de>
30631         PR tree-optimization/64568
30632         * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
30633         release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
30635 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30637         * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
30638         TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
30640 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30642         * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
30643         target-specific symbol_ref flag.
30644         (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
30645         resides in rodata section.
30646         * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
30647         (nds32_encode_section_info): New function.
30649 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30651         * config/nds32/nds32.md (call): Use pseudo instruction bal which
30652         clobbers TA_REGNUM if large code model is specified.
30653         (call_register): Likewise.
30654         (call_immediate): Likewise.
30655         (call_value): Likewise.
30656         (call_value_register): Likewise.
30657         (call_value_immediate): Likewise.
30659 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30661         * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
30662         (TARGET_CMODEL_MEDIUM): New macro.
30663         (TARGET_CMODEL_LARGE): New macro.
30664         * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
30665         code model setting in assembly code.
30667 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30669         * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
30670         Remove MASK_GP_DIRECT flag.
30671         * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
30672         one of the multilib default options.
30673         * config/nds32/nds32.opt (mgp-direct): Remove.
30674         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
30675         -mgp-direct.  We also remove unnecessary -mlittle-endian/-mbig-endian.
30677 2015-01-13  Chung-Ju Wu  <jasonwucj@gmail.com>
30679         * config/nds32/nds32.opt (mcmodel): Add new option.
30680         * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
30681         to describe code model.
30683 2015-01-13  Oleg Endo  <olegendo@gcc.gnu.org>
30685         PR target/64479
30686         * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
30688 2015-01-12  Kaz Kojima  <kkojima@gcc.gnu.org>
30690         * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
30691         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
30692         (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
30693         (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
30694         __builtin_sh_set_fpscr.
30696 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
30698         * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
30699         after a funtion name just to indicate it is a function.
30700         ([-fsanitize-undefined-trap-on-error]): Likewise.
30701         ([-fdbg-cnt=]): Likewise.
30702         ([-mmemcpy]): Likewise.
30703         ([-mflush-func]): Likewise.
30704         ([-msynci]): Likewise.
30706 2015-01-12  Sandra Loosemore  <sandra@codesourcery.com>
30708         * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
30709         example.
30711 2015-01-12  Jakub Jelinek  <jakub@redhat.com>
30713         PR tree-optimization/64563
30714         * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
30715         instead of != VR_VARYING.
30717         PR target/64513
30718         * config/i386/i386.c (ix86_expand_prologue): Add
30719         REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
30721         PR tree-optimization/64454
30722         * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
30723         op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
30724         for signed or [0, op1 - 1] for unsigned modulo.
30725         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
30726         even if op1 does not satisfy integer_pow2p.
30728         PR other/64370
30729         * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
30731 2015-01-12  Jeff Law  <law@redhat.com>
30733         PR target/64461
30734         * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
30735         (trunchiqi2, truncsihi2): Similarly.
30737         * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
30738         rather than calling F.
30740 2015-01-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
30742         * tsan.c (instrument_expr): Use force_gimple_operand.
30743         Use may_be_nonaddressable_p instead of is_gimple_addressable.
30745 2015-01-12  Richard Biener  <rguenther@suse.de>
30747         PR tree-optimization/64530
30748         * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
30749         back dr1.
30751 2015-01-12  Richard Biener  <rguenther@suse.de>
30753         PR middle-end/64357
30754         * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
30755         latches properly.
30757 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30759         * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
30760         Cortex-A17 tuning parameters.
30761         * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
30763 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30765         * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
30766         * config/arm/arm.c (arm_macro_fusion_p): New function.
30767         (arm_macro_fusion_pair_p): Likewise.
30768         (TARGET_SCHED_MACRO_FUSION_P): Define.
30769         (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
30770         (ARM_FUSE_NOTHING): Likewise.
30771         (ARM_FUSE_MOVW_MOVT): Likewise.
30772         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
30773         arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
30774         arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
30775         arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
30776         arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
30777         arm_cortex_a5_tune): Specify fuseable_ops value.
30779 2015-01-12  H.J. Lu  <hongjiu.lu@intel.com>
30781         PR bootstrap/64561
30782         * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
30783         test for PIE with copy reloc.
30784         * configure: Regenerated.
30786 2015-01-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30788         * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
30789         in gen_rtx_REG.
30790         (arm_tls_descseq_addr): Likewise.
30791         (arm_gen_movmemqi): Likewise.
30792         (arm_expand_epilogue_apcs_frame): Likewise.
30793         (arm_expand_epilogue): Likewise.
30794         (arm_expand_prologue): Likewise.  Use R1_REGNUM instead of constant 1
30795         in gen_rtx_REG.
30797 2015-01-12  Martin Liska  <mliska@suse.cz>
30799         PR ipa/64550
30800         * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
30801         volatility for correct operands.
30803 2015-01-12  Martin Liska  <mliska@suse.cz>
30805         * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
30806         indication that a function is not leaf.
30807         (sem_function::compare_polymorphic_p): Likewise.
30809 2015-01-12  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
30811         * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
30812         machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
30813         fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
30814         fold-const.h, tree-check.h.
30816 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
30818         PR ipa/63967
30819         PR ipa/64425
30820         * ipa-inline.c (compute_uninlined_call_time,
30821         compute_inlined_call_time): Use counts for extra precision when
30822         needed possible.
30823         (big_speedup_p): Fix formating.
30824         (RELATIVE_TIME_BENEFIT_RANGE): Remove.
30825         (relative_time_benefit): Remove.
30826         (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
30827         merge guessed and read profile paths.
30828         (inline_small_functions): Count only !optimize_size functions into
30829         initial size; be more lax about sanity check when profile is used;
30830         be sure to update inlined function profile when profile is read.
30832 2015-01-12  Jan Hubicka  <hubicka@ucw.cz>
30834         PR ipa/63470
30835         * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
30836         cost when edge becomes direct.
30837         * ipa-prop.c (make_edge_direct): Do not adjust when speculation
30838         is resolved or when introducing new speculation.
30840 2015-01-12  Chen Gang  <gang.chen.5i5j@gmail.com>
30842         PR ipa/64551
30843         PR ipa/64552
30844         * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
30845         '||' to fix typo issue.
30847         * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
30848         accept and return NULL.
30850 2015-01-12  Martin Liska  <mliska@suse.cz>
30852         * cgraph.c (cgraph_edge::remove_callee): Move function to header
30853         file for being inlined.
30854         (cgraph_set_edge_callee): Delete.
30855         (cgraph_edge::redirect_callee): Move function to header file
30856         for being inlined.
30857         (cgraph_edge::make_direct): Use new function.
30858         (cgraph_edge::dump_edge_flags): New function created from
30859         static dump_edge_flags function.
30860         (cgraph_node::dump): Use new function.
30861         (cgraph_edge::verify_count_and_frequency): New function created
30862         from verify_edge_count_and_frequency.
30863         (cgraph_edge::verify_corresponds_to_fndecl): New function created
30864         from verify_edge_corresponds_to_fndecl.
30865         (verify_edge_corresponds_to_fndecl): Delete.
30866         (cgraph_node::verify_node): Use new function.
30867         * cgraph.h (cgraph_edge::set_callee): New function.
30868         (cgraph_edge::dump_edge_flags): Likewise.
30869         (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
30871 2015-01-11  Jan Hubicka  <hubicka@ucw.cz>
30873         * ipa-utils.c (estimate_function_body_sizes): Do not
30874         free node params when called late with early=true.
30876 2015-01-11  James Greenhalgh  <james.greenhalgh@arm.com>
30878         * doc/md.texi (Instruction Patterns): Rewrite text for
30879         clarity.
30880         (Example): Likewise.
30882 2015-01-10  Sandra Loosemore  <sandra@codesourcery.com>
30884         * doc/invoke.texi (Option Summary): Break long lines.
30885         [(-fdiagnostics-color)]: Put long literal in @smallexample
30886         instead of inline.
30887         [(-fsanitize-recover)]: Likewise.
30888         [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
30889         [(-ffast-math)]: Likewise.
30890         [(--param max-inline-insns-recursive)]: Likewise.
30891         [(--param max-inline-recursive-depth)]: Likewise.
30892         [(-mno-text-section-literals)]: Likewise.
30894 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
30896         * doc/install.texi: Update for libgomp being renamed from "GNU
30897         OpenMP Runtime Library" to "GNU Offloading and Multi Processing
30898         Runtime Library".
30899         * doc/sourcebuild.texi: Likewise.
30901 2015-01-10  Anthony Green  <green@moxielogic.com>
30903         * config/moxie/moxie.c (moxie_option_override): Fix forcing of
30904         mul.x availability for moxiebox configuration.
30906 2015-01-09  Anthony Green  <green@moxielogic.com>
30908         * config/moxie/moxie.md: Tabify assembly output.
30910 2015-01-09  Anthony Green  <green@moxielogic.com>
30912         * config/moxie/moxie.md (CC_REG): Correct register definition.
30914 2015-01-09  Sandra Loosemore  <sandra@codesourcery.com>
30916         * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
30917         ([-fvtv-debug], [-fvtv-counts]): Likewise.  Correct location
30918         of log files.
30920 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
30922         * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
30924 2015-01-09  Bernd Schmidt  <bernds@codesourcery.com>
30925             Jakub Jelinek  <jakub@redhat.com>
30927         PR middle-end/64412
30928         * lto-streamer.h (lto_stream_offload_p): New declaration.
30929         * lto-streamer.c (lto_stream_offload_p): New variable.
30930         * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
30931         at the same time as section_name_prefix.
30932         * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
30933         if lto_stream_offload_p.
30934         * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
30935         stream TREE_TARGET_OPTION if lto_stream_offload_p.
30936         (write_ts_function_decl_tree_pointers): Don't
30937         stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
30938         * tree-streamer-in.c (unpack_value_fields): Don't stream
30939         TREE_TARGET_OPTION in if ACCEL_COMPILER.
30940         (lto_input_ts_function_decl_tree_pointers): Don't stream
30941         DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
30942         * lto-opts.c (lto_write_options): Use lto_stream_offload_p
30943         instead of section_name_prefix string comparisons.
30945 2015-01-09  Jakub Jelinek  <jakub@redhat.com>
30947         PR rtl-optimization/64536
30948         * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
30949         tablejumps.
30951 2015-01-09  Michael Collison  <michael.collison@linaro.org>
30953         PR tree-optimization/64322
30954         * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
30955         range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
30957 2015-01-09  Tom de Vries  <tom@codesourcery.com>
30959         PR rtl-optimization/64539
30960         * regcprop.c (kill_clobbered_values): Factor out of ...
30961         (copyprop_hardreg_forward_1): ... here.  Use kill_clobbered_values
30962         instead of note_stores with kill_clobbered_value.
30964 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
30966          * ginclude/unwind-arm-common.h: Revert previous commit.
30968 2015-01-09  Andreas Tobler  <andreast@gcc.gnu.org>
30970         * config.gcc (arm*-*-freebsd*): New configuration.
30971         * config/arm/freebsd.h: New file.
30972         * config.host: Add extra components for arm*-*-freebsd*.
30973         * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
30974         * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
30976 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30978         * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
30979         for -mcpu=e6500.
30980         * config/rs6000/t-rtems: Add e6500 multilibs.
30982 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30984         * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
30985         MPC8540.
30987 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30989         * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
30990         MULTILIB_EXCEPTIONS.
30992 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30994         * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
30995         MULTILIB_EXCEPTIONS.
30997 2015-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30999         * config/arm/t-rtems-eabi: Rename to...
31000         * config/arm/t-rtems: ...this.
31001         * config/arm/rtems-eabi.h: Rename to...
31002         * config/arm/rtems.h: ...this.
31003         * config.gcc (arm*-*-rtems*): Reflect changes above.
31005 2015-01-09  Richard Biener  <rguenther@suse.de>
31007         PR tree-optimization/64410
31008         * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
31009         on the LHS.
31010         (execute_update_addresses_taken): Deal with that.
31011         * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
31012         loads/stores for complex variables.
31014 2015-01-09  Martin Liska  <mliska@suse.cz>
31016         * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
31017         name comparison.
31018         (func_checker::compare_memory_operand): New function.
31019         (func_checker::compare_operand): Split case to newly
31020         added functions.
31021         (func_checker::compare_cst_or_decl): New function.
31022         (func_checker::compare_gimple_call): Identify
31023         memory operands.
31024         (func_checker::compare_gimple_assign): Likewise.
31025         * ipa-icf-gimple.h: New function.
31027 2015-01-09  Martin Liska  <mliska@suse.cz>
31029         PR ipa/64503
31030         * sreal.c (sreal::dump): Change unsigned format to signed for
31031         m_exp value.
31032         (sreal::to_double): Replace exp2 with scalbln.
31034 2015-01-09  Martin Liska  <mliska@suse.cz>
31036         * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
31037         * ipa-icf.c (sem_function::equals_private): Add support for target and
31038         (sem_item_optimizer::merge_classes): Remove redundant function
31039         optimization flags comparison.
31040         * tree.h (target_opts_for_fn): New function.
31042 2015-01-09  Tom de Vries  <tom@codesourcery.com>
31044         * omp-low.c (expand_omp_for_static_chunk): Fix assert.
31046 2015-01-09  Kito Cheng  <kito@0xlab.org>
31048         PR rtl-optimization/64348
31049         * lra-constraints.c (split_reg): Fix caller-save store/restore
31050         instruction generation.
31052 2015-01-08  John David Anglin  <danglin@gcc.gnu.org>
31054         PR gcov-profile/61790
31055         * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
31056         long long.  Fallback to int64_t if host doesn't have long long and
31057         use strtol if int64_t is long.  Otherwise, use sscanf for conversion.
31059 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31061         PR tree-optimization/63989
31062         * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
31063         from 1000 to 10000.
31064         * tree-ssa-strlen.c (get_strinfo): Moved earlier.
31065         (get_stridx): If we don't have a record for certain SSA_NAME,
31066         but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
31067         constant offset, call get_stridx_plus_constant.
31068         (get_stridx_plus_constant): New function.
31069         (zero_length_string): Don't use get_stridx here.
31071         PR target/55023
31072         PR middle-end/64388
31073         * dse.c (struct insn_info): Mention frame_read set also
31074         before reload for tail calls on some targets.
31075         (scan_insn): Revert 2014-12-22 change.  Set frame_read
31076         also before reload for tail calls if
31077         HARD_FRAME_POINTER_IS_ARG_POINTER.  Call add_wild_read
31078         instead of add_non_frame_wild_read for non-const/memset
31079         tail calls after reload.
31081 2015-01-08  Jason Merrill  <jason@redhat.com>
31083         * ubsan.c (do_ubsan_in_current_function): New.
31084         (pass_ubsan::gate): Use it.
31085         * ubsan.h: Declare it.
31086         * convert.c (convert_to_integer): Use it.
31088 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31090         PR target/64338
31091         * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
31092         compare_code when it is unconditionally overwritten afterwards.
31093         Use ix86_reverse_condition instead of reverse_condition.  Don't
31094         change code if *reverse_condition* returned UNKNOWN and don't
31095         swap ct/cf and negate diff in that case.
31097 2015-01-08  Mike Stump  <mikestump@comcast.net>
31099         * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
31100         (pass_tsan_O0::gate): Likewise.
31101         * extend.texi (Function Attributes): Add no_sanitize_thread
31102         documentation.
31104 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
31106         * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
31107         for registering builtins.
31108         * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
31109         add -fopenmp to the argv_obstack used when invoking
31110         compile_for_target.
31112         * config/i386/intelmic-mkoffload.c (compile_for_target): Always
31113         add "-m32" or "-m64" to argv_obstack.
31114         (generate_host_descr_file): Likewise, when invoking host_compiler.
31115         (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
31116         ld.
31118 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
31120         * config/sh/sh-mem.cc: Use constant as second operand when emitting
31121         tstsi_t insns.
31123 2015-01-08  Oleg Endo  <olegendo@gcc.gnu.org>
31125         PR target/55212
31126         * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
31127         constant load if constant operand fits into I08.
31129 2015-01-08  Jakub Jelinek  <jakub@redhat.com>
31131         PR sanitizer/64336
31132         * tree.c (build2_stat): Fix up initialization of TREE_READONLY
31133         and TREE_THIS_VOLATILE for MEM_REFs.
31134         (build5_stat): Fix up initialization of TREE_READONLY and
31135         TREE_THIS_VOLATILE for TARGET_MEM_REFs.
31137 2015-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
31139         PR target/64533
31140         * config/sh/sh.md (*addsi3_compact): Use u constraint instead
31141         of r for the second alternative of the destination operand.
31143 2015-01-07  Segher Boessenkool  <segher@kernel.crashing.org>
31145         PR target/36557
31146         * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
31148 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31150         * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
31151         keywords.
31152         ([-fivar-visibility], [-fvisibility]): Likewise.
31154 2015-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31156         * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
31157         the file where @code, @command, etc is more appropriate.
31159 2015-01-06  Sandra Loosemore  <sandra@codesourcery.com>
31161         * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
31162         of -mrecip= documentation.
31164 2015-01-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
31166         PR target/64505
31167         * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
31168         correct reload handler if -m32 -mpowerpc64 is used.
31170 2015-01-06  Tom de Vries  <tom@codesourcery.com>
31172         * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
31174 2015-01-08  Christian Bruel  <christian.bruel@st.com>
31176         PR target/64507
31177         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
31179 2015-01-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31181         PR tree-optimization/63259
31182         * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
31183         if optab exists for 16bit byteswap.
31185 2015-01-06  Jakub Jelinek  <jakub@redhat.com>
31187         * opts.c (common_handle_option): Add support for
31188         -fno-sanitize=all and -f{,no-}sanitize-recover=all.
31189         * doc/invoke.texi: Document -fno-sanitize=all,
31190         -f{,no-}sanitize-recover=all.  Document that
31191         -fsanitize=float-cast-overflow is not enabled
31192         by -fsanitize=undefined.  Fix up documentation
31193         of -f{,no-}sanitize-recover.
31195 2015-01-06  Eric Botcazou  <ebotcazou@adacore.com>
31197         * config.gcc: Add Visium support.
31198         * configure.ac: Likewise.
31199         * configure: Regenerate.
31200         * doc/extend.texi (interrupt attribute): Add Visium.
31201         * doc/invoke.texi: Document Visium options.
31202         * doc/install.texi: Document Visium target.
31203         * doc/md.texi: Document Visium constraints.
31204         * common/config/visium: New directory.
31205         * config/visium: Likewise.
31207 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
31209         * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
31210         for the "(and X (ior (not X) Y) -> (and X Y)" transform.
31212 2015-01-05  Segher Boessenkool  <segher@kernel.crashing.org>
31214         * combine.c (combine_validate_cost): Do not count the cost of a
31215         split I2 twice.  Do not display it twice in the dump, either.
31217 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31219         Revert parts of r219199.
31220         * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
31221         <inttypes.h>.
31222         ([-Wtraditional]): Restore markup on <limits.h>.
31224 2015-01-05  Trevor Saunders  <tsaunders@mozilla.com>
31226         PR c++/31397
31227         * doc/invoke.texi: Document -Wsuggest-override.
31229 2015-01-05  Radovan Obradovic  <radovan.obradovic@imgtec.com>
31231         PR rtl-optimization/64287
31232         * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
31233         (process_options): Disable flag_ipa_ra if profiling.
31235 2015-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31237         * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
31239 2015-01-05  Max Filippov  <jcmvbkbc@gmail.com>
31241         * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
31242         hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
31243         put under #if TARGET_LOOPS guard.
31245 2015-01-05  Uros Bizjak  <ubizjak@gmail.com>
31247         * config/i386/i386.c (output_387_binary_op): Use std::swap.
31249 2015-01-05  Oleg Endo  <olegendo@gcc.gnu.org>
31251         * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
31252         * rtl.h (refers_to_regno_p): Add overload.
31253         * cse.c: Use it.
31254         * bt-load.c: Likewise.
31255         * combine.c: Likewise.
31256         * df-scan.c: Likewise.
31257         * sched-deps.c: Likewise.
31258         * config/s390/s390.c: Likewise.
31259         * config/m32r/m32r.c: Likewise.
31260         * config/rs6000/spe.md: Likewise.
31261         * config/rs6000/rs6000.c: Likewise.
31262         * config/pa/pa.c: Likewise.
31263         * config/stormy16/stormy16.c: Likewise.
31264         * config/cris/cris.c: Likewise.
31265         * config/arc/arc.md: Likewise.
31266         * config/arc/arc.c: Likewise.
31267         * config/sh/sh.md: Likewise.
31268         * config/sh/sh.c: Likewise.
31269         * config/frv/frv.c: Likewise.
31271 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31273         PR sanitizer/64265
31274         * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
31275         call as cleanup of the whole body.
31276         * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
31277         * tsan.c (replace_func_exit): New function.
31278         (instrument_func_exit): Moved earlier.
31279         (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
31280         Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
31281         been found.
31282         (tsan_pass): Don't call instrument_func_exit.
31283         * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
31284         * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
31285         inlining.
31287         PR sanitizer/64344
31288         * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
31289         * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
31290         it to libubsan handler instead of EXPR.  Fold comparisons earlier,
31291         if the result is integer_zerop, return NULL_TREE.
31292         * convert.c (convert_to_integer): Pass expr as ARG.
31294         PR tree-optimization/64465
31295         * tree-inline.c (redirect_all_calls): During inlining
31296         clean up EH stmts and EH edges if redirect_call_stmt_to_callee
31297         changed the stmt to a non-throwing call.
31299 2015-01-05  Sandra Loosemore  <sandra@codesourcery.com>
31301         * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
31302         etc markup throughout the file.
31304 2015-01-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31306         Enable experimental TSAN support for Ada.
31307         * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
31309 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31311         PR tree-optimization/64494
31312         * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
31313         clear SSA_NAME_ANTI_RANGE_P flag.
31315 2015-01-05  Marek Polacek  <polacek@redhat.com>
31317         * doc/extend.texi (Arrays of Length Zero): Add missing comma.
31319 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
31321         Update copyright years.
31323         * gcc.c (process_command): Update copyright notice dates.
31324         * gcov-dump.c: Ditto.
31325         * gcov.c: Ditto.
31326         * doc/cpp.texi: Bump @copying's copyright year.
31327         * doc/cppinternals.texi: Ditto.
31328         * doc/gcc.texi: Ditto.
31329         * doc/gccint.texi: Ditto.
31330         * doc/gcov.texi: Ditto.
31331         * doc/install.texi: Ditto.
31332         * doc/invoke.texi: Ditto.
31334         * auto-profile.c, auto-profile.h: Fix up Copyright line.
31336 2015-01-04  Sandra Loosemore  <sandra@codesourcery.com>
31338         * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
31339         verb tense, etc.
31340         ([-fvtable-verify], [-fvtv-debug]): Likewise.
31341         ([-Wabi]): Likewise.
31342         ([-fmessage-length]): Likewise.
31343         ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
31344         ([-Wno-discarded-qualifiers]): Likewise.
31345         ([-Wnodiscarded-array-qualifiers]): Likewise.
31346         ([-Wno-virtual-move-assign]): Likewise.
31347         ([-fsanitize=address], [-fsanitize=thread]): Likewise.
31348         ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
31349         ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
31350         ([-fsanitize-undefined-trap-on-error]): Likewise.
31351         ([-floop-interchange]): Likewise.
31352         ([-ftree-coalesce-inlined-vars]): Likewise.
31353         ([-fvect-cost-model]): Likewise.
31354         ([-flto]): Likewise.
31355         ([--param]): Likewise.
31356         (Spec Files): Likewise.
31357         ([-mstrict-align]): Likewise.
31358         ([-mfix-cortex-a53-835769]): Likewise.
31359         ([-march], [-mtune]): Likewise.
31360         ([-mpic-register]): Likewise.
31361         ([-munaligned-access]): Likewise.
31362         ([-msp8]): Likewise.
31363         (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
31364         (AVR Built-in Macros): Likewise.
31365         ([-mpreferred-stack-boundary]): Likewise.
31366         ([-mtune-crtl]): Likewise.
31367         ([-mashf]): Likewise.
31368         ([-mmcu=]): Likewise.
31369         ([-minrt]): Likewise.
31370         ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
31371         ([-mupper-regs]): Likewise.
31372         ([-matomic-model]): Likewise.
31373         ([-mdiv]): Likewise.
31374         ([-mzdcbranch]): Likewise.
31375         ([-mdisable-callt]): Likewise.
31376         ([-msoft-float]): Likewise.
31377         ([-m8byte-align]): Likewise.
31378         ([-fstack-reuse]): Likewise.
31380 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31382         * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
31383         Fix markup, light copy-editing.
31384         ([-fauto-profile]): Rewrite to fix formatting and content
31385         problems.
31387 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31389         * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
31390         Copy-edit description.
31391         ([-fisolate-erroneous-paths-attribute]): Likewise.
31392         * common.opt (fisolate-erroneous-paths-dereference):
31393         Copy-edit description.
31394         (fisolate-erroneous-paths-attribute): Likewise.
31396 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31398         * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
31399         tidy grammar.
31401 2015-01-03  Sandra Loosemore  <sandra@codesourcery.com>
31403         * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
31404         ([-fvtv-debug]): Likewise.
31405         ([-Wc++-compat]): Likewise.
31406         ([-Wc++11-compat]): Likewise.
31407         ([-Wc++14-compat]): Likewise.
31408         ([-Wno-sized-deallocation]): Likewise.
31409         ([-femit-class-debug-always]): Likewise.
31410         ([-femit-struct-debug-detailed]): Likewise.
31411         ([-fno-keep-inline-dllexport]): Likewise.
31412         ([-fira-algorithm]): Likewise.
31413         ([-fira-region]): Likewise.
31414         ([-flra-remat]): Likewise.
31415         ([-fipa-ra]): Likewise.
31416         ([-fhoist-adjacent-loads]): Likewise.
31417         ([-fisolate-erroneous-paths-dereference]): Likewise.
31418         ([-fisolate-erroneous-paths-attribute]): Likewise.
31419         ([-ftree-switch-conversion]): Likewise.
31420         ([-ftree-tail-merge]): Likewise.
31421         ([-ftree-loop-if-convert]): Likewise.
31422         ([-ftree-loop-if-convert-stores]): Likewise.
31423         ([-ftree-loop-distribution]): Likewise.
31424         ([-ftree-loop-distribute-patterns]): Likewise.
31425         ([-flto-compression-level]): Likewise.
31426         ([-flto-report]): Likewise.
31427         ([-flto-report-wpa]): Likewise.
31428         ([-fuse-linker-plugin]): Likewise.
31429         ([-mfix-cortex-a53-835769]): Likewise.
31430         ([-mno-fix-cortex-a53-835769]): Likewise.
31431         ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
31432         explicit listing; add a note to the discussion indicating they
31433         exist.  Reorder table to group similar options.  Add missing
31434         @opindex entries.  Add @need commands throughout the table to
31435         allow it to be split across multiple pages.
31436         ([-m8bit-idiv]): Fix @opindex.
31437         ([-mavx256-split-unaligned-load]): Likewise.
31438         ([-mavx256-split-unaligned-store]): Likewise.
31439         ([-mstack-protector-guard]): Likewise.
31440         ([-mcpu=]): Likewise.
31441         ([-mcpu]): Likewise.
31442         ([-mpointer-size=]): Likewise.
31444 2015-01-03  John David Anglin  <danglin@gcc.gnu.org>
31446         * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
31447         instead of `m' constraint.  Likewise for unnamed movb comparison
31448         patterns using reg_before_reload_operand predicate.
31449         * config/pa/predicates.md (reg_before_reload_operand): Tighten
31450         predicate to reject register index and LO_SUM DLT memory forms
31451         after reload.
31453 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
31455         * doc/invoke.texi (Option Summary): Fix spelling of
31456         -fdevirtualize-at-ltrans.
31457         ([-fdevirtualize]): Fix markup.
31458         ([-fdevirtualize-speculatively]): Fix typo.
31459         ([-fdevirtualize-at-ltrans]): Likewise.  Make description less
31460         implementor-speaky.
31461         * common.opt (fdevirtualize-at-ltrans): Likewise.
31462         * ipa-devirt.c: Fix typos in comments throughout the file.
31463         (ipa_devirt): Fix typos in format strings for dump output.
31465 2015-01-02  Sandra Loosemore  <sandra@codesourcery.com>
31467         * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
31468         discussion of defaults, light copy-editing.
31470 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31472         * tsan.c (instrument_expr): corrected previous checkin.
31474 2015-01-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
31476         Instrument bit field and unaligned accesses for TSAN.
31477         * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
31478         (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
31479         * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
31480         Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
31481         unaligned memory regions.
31483 2015-01-01  Anthony Green  <green@moxielogic.com>
31485         * config/moxie/predicates.md (moxie_general_movsrc_operand):
31486         Restrict move source register offsets to 16 bits.
31488 Copyright (C) 2015 Free Software Foundation, Inc.
31490 Copying and distribution of this file, with or without modification,
31491 are permitted in any medium without royalty provided the copyright
31492 notice and this notice are preserved.